Class: AWSCDK::StepFunctions::WaitTime
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::StepFunctions::WaitTime
- Defined in:
- step_functions/wait_time.rb
Overview
Represents the Wait state which delays a state machine from continuing for a specified time.
Class Method Summary collapse
-
.duration(duration) ⇒ AWSCDK::StepFunctions::WaitTime
Wait a fixed amount of time.
- .jsii_overridable_methods ⇒ Object
-
.seconds(seconds) ⇒ AWSCDK::StepFunctions::WaitTime
Wait for a number of seconds stored in the state object from string.
-
.seconds_path(path) ⇒ AWSCDK::StepFunctions::WaitTime
Wait for a number of seconds stored in the state object.
-
.timestamp(timestamp) ⇒ AWSCDK::StepFunctions::WaitTime
Wait until the given ISO8601 timestamp.
-
.timestamp_path(path) ⇒ AWSCDK::StepFunctions::WaitTime
Wait until a timestamp found in the state object.
Instance Method Summary collapse
-
#initialize(*args) ⇒ WaitTime
constructor
A new instance of WaitTime.
Constructor Details
#initialize(*args) ⇒ WaitTime
Returns a new instance of WaitTime.
10 11 12 |
# File 'step_functions/wait_time.rb', line 10 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_stepfunctions.WaitTime does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.duration(duration) ⇒ AWSCDK::StepFunctions::WaitTime
Wait a fixed amount of time.
23 24 25 26 |
# File 'step_functions/wait_time.rb', line 23 def self.duration(duration) Jsii::Type.check_type(duration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5EdXJhdGlvbiJ9")), "duration") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.WaitTime", "duration", [duration]) end |
.jsii_overridable_methods ⇒ Object
14 15 16 17 |
# File 'step_functions/wait_time.rb', line 14 def self.jsii_overridable_methods { } end |
.seconds(seconds) ⇒ AWSCDK::StepFunctions::WaitTime
Wait for a number of seconds stored in the state object from string. This method can use JSONata expression.
If you want to use fixed value, we recommend using WaitTime.duration()
Example value: {% $waitSeconds %}
36 37 38 39 |
# File 'step_functions/wait_time.rb', line 36 def self.seconds(seconds) Jsii::Type.check_type(seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "seconds") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.WaitTime", "seconds", [seconds]) end |
.seconds_path(path) ⇒ AWSCDK::StepFunctions::WaitTime
Wait for a number of seconds stored in the state object.
Example value: $.waitSeconds
47 48 49 50 |
# File 'step_functions/wait_time.rb', line 47 def self.seconds_path(path) Jsii::Type.check_type(path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.WaitTime", "secondsPath", [path]) end |
.timestamp(timestamp) ⇒ AWSCDK::StepFunctions::WaitTime
Wait until the given ISO8601 timestamp. This method can use JSONata expression.
Example value: 2016-03-14T01:59:00Z
58 59 60 61 |
# File 'step_functions/wait_time.rb', line 58 def self.() Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timestamp") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.WaitTime", "timestamp", []) end |
.timestamp_path(path) ⇒ AWSCDK::StepFunctions::WaitTime
Wait until a timestamp found in the state object.
Example value: $.waitTimestamp
69 70 71 72 |
# File 'step_functions/wait_time.rb', line 69 def self.(path) Jsii::Type.check_type(path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.WaitTime", "timestampPath", [path]) end |