Skip to content
v2.278.0

AssetPropertyTimestampProperty Struct ​

An asset property timestamp entry containing the following information.

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 assetPropertyTimestampProperty: iot.CfnTopicRule.AssetPropertyTimestampProperty = {
  timeInSeconds: 'timeInSeconds',

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

asset_property_timestamp_property = iot.CfnTopicRule.AssetPropertyTimestampProperty(
    time_in_seconds="timeInSeconds",

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

AssetPropertyTimestampProperty assetPropertyTimestampProperty = AssetPropertyTimestampProperty.builder()
        .timeInSeconds("timeInSeconds")

        // the properties below are optional
        .offsetInNanos("offsetInNanos")
        .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 assetPropertyTimestampProperty = new AssetPropertyTimestampProperty {
    TimeInSeconds = "timeInSeconds",

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

assetPropertyTimestampProperty := &AssetPropertyTimestampProperty{
	TimeInSeconds: jsii.String("timeInSeconds"),

	// the properties below are optional
	OffsetInNanos: jsii.String("offsetInNanos"),
}

Properties ​

offsetInNanosoptionalstringoffset_in_nanosoptionalstroffsetInNanosoptionalStringOffsetInNanosoptionalstringOffsetInNanosoptional*string #
Optional.

A string that contains the nanosecond time offset. Accepts substitution templates.

timeInSecondsstringtime_in_secondsstrtimeInSecondsStringTimeInSecondsstringTimeInSeconds*string required #
A string that contains the time in seconds since epoch.

Accepts substitution templates.