Skip to content
v2.278.0

TimestampProperty Struct ​

Describes how to interpret an application-defined timestamp value from an MQTT message payload and the precision of that value.

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 timestampProperty: iot.CfnTopicRule.TimestampProperty = {
  value: 'value',

  // the properties below are optional
  unit: 'unit',
};
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

timestamp_property = iot.CfnTopicRule.TimestampProperty(
    value="value",

    # the properties below are optional
    unit="unit"
)
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.*;

TimestampProperty timestampProperty = TimestampProperty.builder()
        .value("value")

        // the properties below are optional
        .unit("unit")
        .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 timestampProperty = new TimestampProperty {
    Value = "value",

    // the properties below are optional
    Unit = "unit"
};
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"

timestampProperty := &TimestampProperty{
	Value: jsii.String("value"),

	// the properties below are optional
	Unit: jsii.String("unit"),
}

Properties ​

unitoptionalstringunitoptionalstrunitoptionalStringUnitoptionalstringUnitoptional*string #
The precision of the timestamp value that results from the expression described in `value` .
valuestringvaluestrvalueStringValuestringValue*string required #
An expression that returns a long epoch time value.