package awsstepfunctions // Properties for defining a Wait state. // // Example: // convertToSeconds := tasks.NewEvaluateExpression(this, jsii.String("Convert to seconds"), &EvaluateExpressionProps{ // Expression: jsii.String("$.waitMilliseconds / 1000"), // ResultPath: jsii.String("$.waitSeconds"), // }) // // createMessage := tasks.NewEvaluateExpression(this, jsii.String("Create message"), &EvaluateExpressionProps{ // // Note: this is a string inside a string. // Expression: jsii.String("`Now waiting ${$.waitSeconds} seconds...`"), // Runtime: lambda.Runtime_NODEJS_16_X(), // ResultPath: jsii.String("$.message"), // }) // // publishMessage := tasks.NewSnsPublish(this, jsii.String("Publish message"), &SnsPublishProps{ // Topic: sns.NewTopic(this, jsii.String("cool-topic")), // Message: sfn.TaskInput_FromJsonPathAt(jsii.String("$.message")), // ResultPath: jsii.String("$.sns"), // }) // // wait := sfn.NewWait(this, jsii.String("Wait"), &WaitProps{ // Time: sfn.WaitTime_SecondsPath(jsii.String("$.waitSeconds")), // }) // // sfn.NewStateMachine(this, jsii.String("StateMachine"), &StateMachineProps{ // Definition: convertToSeconds.Next(createMessage).Next(publishMessage).*Next(wait), // }) // type WaitProps struct { // Wait duration. Time WaitTime `field:"required" json:"time" yaml:"time"` // An optional description for this state. Comment *string `field:"optional" json:"comment" yaml:"comment"` }