public static interface CfnDetectorModel.AssetPropertyTimestampProperty
You must use expressions for all parameters in AssetPropertyTimestamp
. The expressions accept literals, operators, functions, references, and substitution templates.
Examples - For literal values, the expressions must contain single quotes. For example, the value for the timeInSeconds
parameter can be '1586400675'
.
offsetInNanos
parameter can be $variable.time
.${}
, and the template must be in single quotes. A substitution template can also contain a combination of literals, operators, functions, references, and substitution templates.
In the following example, the value for the timeInSeconds
parameter uses a substitution template.
'${$input.TemperatureInput.sensorData.timestamp / 1000}'
For more information, see Expressions in the AWS IoT Events Developer Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.iotevents.*; AssetPropertyTimestampProperty assetPropertyTimestampProperty = AssetPropertyTimestampProperty.builder() .timeInSeconds("timeInSeconds") // the properties below are optional .offsetInNanos("offsetInNanos") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnDetectorModel.AssetPropertyTimestampProperty.Builder
A builder for
CfnDetectorModel.AssetPropertyTimestampProperty |
static class |
CfnDetectorModel.AssetPropertyTimestampProperty.Jsii$Proxy
An implementation for
CfnDetectorModel.AssetPropertyTimestampProperty |
Modifier and Type | Method and Description |
---|---|
static CfnDetectorModel.AssetPropertyTimestampProperty.Builder |
builder() |
default java.lang.String |
getOffsetInNanos()
The nanosecond offset converted from `timeInSeconds` .
|
java.lang.String |
getTimeInSeconds()
The timestamp, in seconds, in the Unix epoch format.
|
java.lang.String getTimeInSeconds()
The valid range is between 1-31556889864403199.
default java.lang.String getOffsetInNanos()
The valid range is between 0-999999999.
static CfnDetectorModel.AssetPropertyTimestampProperty.Builder builder()