@Stability(value=Stable)
public static interface CfnAlarmModel.AssetPropertyTimestampProperty
extends software.amazon.jsii.JsiiSerializable
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 |
CfnAlarmModel.AssetPropertyTimestampProperty.Builder
A builder for
CfnAlarmModel.AssetPropertyTimestampProperty |
static class |
CfnAlarmModel.AssetPropertyTimestampProperty.Jsii$Proxy
An implementation for
CfnAlarmModel.AssetPropertyTimestampProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAlarmModel.AssetPropertyTimestampProperty.Builder |
builder() |
default String |
getOffsetInNanos()
The nanosecond offset converted from `timeInSeconds` .
|
String |
getTimeInSeconds()
The timestamp, in seconds, in the Unix epoch format.
|
@Stability(value=Stable) @NotNull String getTimeInSeconds()
The valid range is between 1-31556889864403199.
@Stability(value=Stable) @Nullable default String getOffsetInNanos()
The valid range is between 0-999999999.
@Stability(value=Stable) static CfnAlarmModel.AssetPropertyTimestampProperty.Builder builder()
Copyright © 2022. All rights reserved.