Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SetTimerAction

import type { SetTimerAction } from "https://aws-api.deno.dev/v0.3/services/iotevents.ts?docs=full";

Information needed to set the timer.

interface SetTimerAction {
durationExpression?: string | null;
seconds?: number | null;
timerName: string;
}

§Properties

§
durationExpression?: string | null
[src]

The duration of the timer, in seconds. You can use a string expression that includes numbers, variables ($variable.<variable-name>), and input values ($input.<input-name>.<path-to-datum>) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.

§
seconds?: number | null
[src]

The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.

§
timerName: string
[src]

The name of the timer.