aws-cdk-lib.aws_iotevents.CfnDetectorModel.SetTimerProperty

interface SetTimerProperty

LanguageType name
.NETAmazon.CDK.AWS.IoTEvents.CfnDetectorModel.SetTimerProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnDetectorModel_SetTimerProperty
Javasoftware.amazon.awscdk.services.iotevents.CfnDetectorModel.SetTimerProperty
Pythonaws_cdk.aws_iotevents.CfnDetectorModel.SetTimerProperty
TypeScript aws-cdk-lib » aws_iotevents » CfnDetectorModel » SetTimerProperty

Information needed to set the timer.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotevents as iotevents } from 'aws-cdk-lib';
const setTimerProperty: iotevents.CfnDetectorModel.SetTimerProperty = {
  timerName: 'timerName',

  // the properties below are optional
  durationExpression: 'durationExpression',
  seconds: 123,
};

Properties

NameTypeDescription
timerNamestringThe name of the timer.
durationExpression?stringThe duration of the timer, in seconds.
seconds?numberThe number of seconds until the timer expires.

timerName

Type: string

The name of the timer.


durationExpression?

Type: string (optional)

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?

Type: number (optional)

The number of seconds until the timer expires.

The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.