Class: AWSCDK::StepFunctions::WaitTime

Inherits:
Jsii::Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ WaitTime

Returns a new instance of WaitTime.

Raises:

  • (NoMethodError)


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.

Parameters:

Returns:

  • (AWSCDK::StepFunctions::WaitTime)


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_methodsObject



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 %}

Parameters:

  • seconds (String)

Returns:

  • (AWSCDK::StepFunctions::WaitTime)


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

Parameters:

  • path (String)

Returns:

  • (AWSCDK::StepFunctions::WaitTime)


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

Parameters:

  • timestamp (String)

Returns:

  • (AWSCDK::StepFunctions::WaitTime)


58
59
60
61
# File 'step_functions/wait_time.rb', line 58

def self.timestamp(timestamp)
  Jsii::Type.check_type(timestamp, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timestamp")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.WaitTime", "timestamp", [timestamp])
end

.timestamp_path(path) ⇒ AWSCDK::StepFunctions::WaitTime

Wait until a timestamp found in the state object.

Example value: $.waitTimestamp

Parameters:

  • path (String)

Returns:

  • (AWSCDK::StepFunctions::WaitTime)


69
70
71
72
# File 'step_functions/wait_time.rb', line 69

def self.timestamp_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", "timestampPath", [path])
end