interface TransitionEventProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.IoTEvents.CfnDetectorModel.TransitionEventProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsiotevents#CfnDetectorModel_TransitionEventProperty |
![]() | software.amazon.awscdk.services.iotevents.CfnDetectorModel.TransitionEventProperty |
![]() | aws_cdk.aws_iotevents.CfnDetectorModel.TransitionEventProperty |
![]() | aws-cdk-lib » aws_iotevents » CfnDetectorModel » TransitionEventProperty |
Specifies the actions performed and the next state entered when a condition
evaluates to TRUE.
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 transitionEventProperty: iotevents.CfnDetectorModel.TransitionEventProperty = {
condition: 'condition',
eventName: 'eventName',
nextState: 'nextState',
// the properties below are optional
actions: [{
clearTimer: {
timerName: 'timerName',
},
dynamoDb: {
hashKeyField: 'hashKeyField',
hashKeyValue: 'hashKeyValue',
tableName: 'tableName',
// the properties below are optional
hashKeyType: 'hashKeyType',
operation: 'operation',
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
payloadField: 'payloadField',
rangeKeyField: 'rangeKeyField',
rangeKeyType: 'rangeKeyType',
rangeKeyValue: 'rangeKeyValue',
},
dynamoDBv2: {
tableName: 'tableName',
// the properties below are optional
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
},
firehose: {
deliveryStreamName: 'deliveryStreamName',
// the properties below are optional
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
separator: 'separator',
},
iotEvents: {
inputName: 'inputName',
// the properties below are optional
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
},
iotSiteWise: {
propertyValue: {
value: {
booleanValue: 'booleanValue',
doubleValue: 'doubleValue',
integerValue: 'integerValue',
stringValue: 'stringValue',
},
// the properties below are optional
quality: 'quality',
timestamp: {
timeInSeconds: 'timeInSeconds',
// the properties below are optional
offsetInNanos: 'offsetInNanos',
},
},
// the properties below are optional
assetId: 'assetId',
entryId: 'entryId',
propertyAlias: 'propertyAlias',
propertyId: 'propertyId',
},
iotTopicPublish: {
mqttTopic: 'mqttTopic',
// the properties below are optional
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
},
lambda: {
functionArn: 'functionArn',
// the properties below are optional
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
},
resetTimer: {
timerName: 'timerName',
},
setTimer: {
timerName: 'timerName',
// the properties below are optional
durationExpression: 'durationExpression',
seconds: 123,
},
setVariable: {
value: 'value',
variableName: 'variableName',
},
sns: {
targetArn: 'targetArn',
// the properties below are optional
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
},
sqs: {
queueUrl: 'queueUrl',
// the properties below are optional
payload: {
contentExpression: 'contentExpression',
type: 'type',
},
useBase64: false,
},
}],
};
Properties
Name | Type | Description |
---|---|---|
condition | string | Required. |
event | string | The name of the transition event. |
next | string | The next state to enter. |
actions? | IResolvable | IResolvable | Action [] | The actions to be performed. |
condition
Type:
string
Required.
A Boolean expression that when TRUE causes the actions to be performed and the nextState
to be entered.
eventName
Type:
string
The name of the transition event.
nextState
Type:
string
The next state to enter.
actions?
Type:
IResolvable
|
IResolvable
|
Action
[]
(optional)
The actions to be performed.