TimestreamActionProperty Struct
Describes an action that writes records into an Amazon Timestream table.
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot
timestream_action_property = iot.CfnTopicRule.TimestreamActionProperty(
database_name="databaseName",
dimensions=[iot.CfnTopicRule.TimestreamDimensionProperty(
name="name",
value="value"
)],
role_arn="roleArn",
table_name="tableName",
# the properties below are optional
timestamp=iot.CfnTopicRule.TimestreamTimestampProperty(
unit="unit",
value="value"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
TimestreamActionProperty timestreamActionProperty = TimestreamActionProperty.builder()
.databaseName("databaseName")
.dimensions(List.of(TimestreamDimensionProperty.builder()
.name("name")
.value("value")
.build()))
.roleArn("roleArn")
.tableName("tableName")
// the properties below are optional
.timestamp(TimestreamTimestampProperty.builder()
.unit("unit")
.value("value")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var timestreamActionProperty = new TimestreamActionProperty {
DatabaseName = "databaseName",
Dimensions = new [] { new TimestreamDimensionProperty {
Name = "name",
Value = "value"
} },
RoleArn = "roleArn",
TableName = "tableName",
// the properties below are optional
Timestamp = new TimestreamTimestampProperty {
Unit = "unit",
Value = "value"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
timestreamActionProperty := &TimestreamActionProperty{
DatabaseName: jsii.String("databaseName"),
Dimensions: []interface{}{
&TimestreamDimensionProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
RoleArn: jsii.String("roleArn"),
TableName: jsii.String("tableName"),
// the properties below are optional
Timestamp: &TimestreamTimestampProperty{
Unit: jsii.String("unit"),
Value: jsii.String("value"),
},
}
Properties
databaseNamestringdatabase_namestrdatabaseNameStringDatabaseNamestringDatabaseName*string required #The name of an Amazon Timestream database that has the table to write records into.
dimensionsIResolvable | IResolvable | CfnTopicRule.dimensionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TimestreamDimensionProperty]]]dimensionsIResolvableDimensionsIResolvableDimensionsinterface{} required #Metadata attributes of the time series that are written in each measure record.
The Amazon Resource Name (ARN) of the role that grants AWS IoT permission to write to the Timestream database table.
The table where the message data will be written.
timestampoptionalIResolvable | CfnTopicRule.timestampoptionaltyping.Union[IResolvable, TimestreamTimestampProperty]timestampoptionalIResolvableTimestampoptionalIResolvableTimestampoptionalinterface{} #The value to use for the entry's timestamp.
If blank, the time that the entry was processed is used.