# TimestampProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `unit`: string — The precision of the timestamp value that results from the expression described in `value` .

- `value`: string (required) — An expression that returns a long epoch time value.
