interface TimestreamActionProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.IoT.CfnTopicRule.TimestreamActionProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsiot#CfnTopicRule_TimestreamActionProperty |
![]() | software.amazon.awscdk.services.iot.CfnTopicRule.TimestreamActionProperty |
![]() | aws_cdk.aws_iot.CfnTopicRule.TimestreamActionProperty |
![]() | aws-cdk-lib » aws_iot » CfnTopicRule » TimestreamActionProperty |
Describes an action that writes records into an Amazon Timestream table.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const timestreamActionProperty: iot.CfnTopicRule.TimestreamActionProperty = {
databaseName: 'databaseName',
dimensions: [{
name: 'name',
value: 'value',
}],
roleArn: 'roleArn',
tableName: 'tableName',
// the properties below are optional
timestamp: {
unit: 'unit',
value: 'value',
},
};
Properties
Name | Type | Description |
---|---|---|
database | string | The name of an Amazon Timestream database that has the table to write records into. |
dimensions | IResolvable | IResolvable | Timestream [] | Metadata attributes of the time series that are written in each measure record. |
role | string | The Amazon Resource Name (ARN) of the role that grants AWS IoT permission to write to the Timestream database table. |
table | string | The table where the message data will be written. |
timestamp? | IResolvable | Timestream | The value to use for the entry's timestamp. |
databaseName
Type:
string
The name of an Amazon Timestream database that has the table to write records into.
dimensions
Type:
IResolvable
|
IResolvable
|
Timestream
[]
Metadata attributes of the time series that are written in each measure record.
roleArn
Type:
string
The Amazon Resource Name (ARN) of the role that grants AWS IoT permission to write to the Timestream database table.
tableName
Type:
string
The table where the message data will be written.
timestamp?
Type:
IResolvable
|
Timestream
(optional)
The value to use for the entry's timestamp.
If blank, the time that the entry was processed is used.