interface SetTimerProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoTEvents.Mixins.CfnDetectorModelPropsMixin.SetTimerProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiotevents/mixins#CfnDetectorModelPropsMixin_SetTimerProperty |
Java | software.amazon.awscdk.mixins.preview.services.iotevents.mixins.CfnDetectorModelPropsMixin.SetTimerProperty |
Python | aws_cdk.mixins_preview.aws_iotevents.mixins.CfnDetectorModelPropsMixin.SetTimerProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iotevents » mixins » CfnDetectorModelPropsMixin » 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 { mixins as iotevents_mixins } from '@aws-cdk/mixins-preview/aws-iotevents';
const setTimerProperty: iotevents_mixins.CfnDetectorModelPropsMixin.SetTimerProperty = {
durationExpression: 'durationExpression',
seconds: 123,
timerName: 'timerName',
};
Properties
| Name | Type | Description |
|---|---|---|
| duration | string | The duration of the timer, in seconds. |
| seconds? | number | The number of seconds until the timer expires. |
| timer | 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.
timerName?
Type:
string
(optional)
The name of the timer.

.NET
Go
Java
Python
TypeScript