Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data TimestreamAction = TimestreamAction' {}
- newTimestreamAction :: Text -> Text -> Text -> NonEmpty TimestreamDimension -> TimestreamAction
- timestreamAction_timestamp :: Lens' TimestreamAction (Maybe TimestreamTimestamp)
- timestreamAction_roleArn :: Lens' TimestreamAction Text
- timestreamAction_databaseName :: Lens' TimestreamAction Text
- timestreamAction_tableName :: Lens' TimestreamAction Text
- timestreamAction_dimensions :: Lens' TimestreamAction (NonEmpty TimestreamDimension)
Documentation
data TimestreamAction Source #
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.
See: newTimestreamAction
smart constructor.
TimestreamAction' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> NonEmpty TimestreamDimension | |
-> TimestreamAction |
Create a value of TimestreamAction
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:timestamp:TimestreamAction'
, timestreamAction_timestamp
- 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.
$sel:roleArn:TimestreamAction'
, timestreamAction_roleArn
- The ARN of the role that grants permission to write to the Amazon
Timestream database table.
$sel:databaseName:TimestreamAction'
, timestreamAction_databaseName
- The name of an Amazon Timestream database.
$sel:tableName:TimestreamAction'
, timestreamAction_tableName
- The name of the database table into which to write the measure records.
$sel:dimensions:TimestreamAction'
, timestreamAction_dimensions
- Metadata attributes of the time series that are written in each measure
record.
timestreamAction_timestamp :: Lens' TimestreamAction (Maybe TimestreamTimestamp) Source #
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.
timestreamAction_roleArn :: Lens' TimestreamAction Text Source #
The ARN of the role that grants permission to write to the Amazon Timestream database table.
timestreamAction_databaseName :: Lens' TimestreamAction Text Source #
The name of an Amazon Timestream database.
timestreamAction_tableName :: Lens' TimestreamAction Text Source #
The name of the database table into which to write the measure records.
timestreamAction_dimensions :: Lens' TimestreamAction (NonEmpty TimestreamDimension) Source #
Metadata attributes of the time series that are written in each measure record.