@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.411Z") @Stability(value=Stable) public class WaitTime extends software.amazon.jsii.JsiiObject
Example:
EvaluateExpression convertToSeconds = EvaluateExpression.Builder.create(this, "Convert to seconds")
.expression("$.waitMilliseconds / 1000")
.resultPath("$.waitSeconds")
.build();
EvaluateExpression createMessage = EvaluateExpression.Builder.create(this, "Create message")
// Note: this is a string inside a string.
.expression("`Now waiting ${$.waitSeconds} seconds...`")
.runtime(Runtime.NODEJS_14_X)
.resultPath("$.message")
.build();
SnsPublish publishMessage = SnsPublish.Builder.create(this, "Publish message")
.topic(new Topic(this, "cool-topic"))
.message(TaskInput.fromJsonPathAt("$.message"))
.resultPath("$.sns")
.build();
Wait wait = Wait.Builder.create(this, "Wait")
.time(WaitTime.secondsPath("$.waitSeconds"))
.build();
StateMachine.Builder.create(this, "StateMachine")
.definition(convertToSeconds.next(createMessage).next(publishMessage).next(wait))
.build();
| Modifier | Constructor and Description |
|---|---|
protected |
WaitTime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
WaitTime(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static WaitTime |
duration(Duration duration)
Wait a fixed amount of time.
|
static WaitTime |
secondsPath(String path)
Wait for a number of seconds stored in the state object.
|
static WaitTime |
timestamp(String timestamp)
Wait until the given ISO8601 timestamp.
|
static WaitTime |
timestampPath(String path)
Wait until a timestamp found in the state object.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected WaitTime(software.amazon.jsii.JsiiObjectRef objRef)
protected WaitTime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static WaitTime duration(@NotNull Duration duration)
duration - This parameter is required.@Stability(value=Stable) @NotNull public static WaitTime secondsPath(@NotNull String path)
Example value: $.waitSeconds
path - This parameter is required.@Stability(value=Stable) @NotNull public static WaitTime timestamp(@NotNull String timestamp)
Example value: 2016-03-14T01:59:00Z
timestamp - This parameter is required.Copyright © 2022. All rights reserved.