Class: AWSCDK::StepFunctions::Result

Inherits:
Jsii::Object
  • Object
show all
Defined in:
step_functions/result.rb

Overview

The result of a Pass operation.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Result

Returns a new instance of Result.

Parameters:

  • value (Object)

    result of the Pass operation.



9
10
11
12
# File 'step_functions/result.rb', line 9

def initialize(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "value")
  Jsii::Object.instance_method(:initialize).bind(self).call(value)
end

Class Method Details

.from_array(value) ⇒ AWSCDK::StepFunctions::Result

The result of the operation is an array.

Parameters:

  • value (Array<Object>)

Returns:

  • (AWSCDK::StepFunctions::Result)


24
25
26
27
# File 'step_functions/result.rb', line 24

def self.from_array(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6ImFueSJ9LCJraW5kIjoiYXJyYXkifX0=")), "value")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.Result", "fromArray", [value])
end

.from_boolean(value) ⇒ AWSCDK::StepFunctions::Result

The result of the operation is a boolean.

Parameters:

  • value (Boolean)

Returns:

  • (AWSCDK::StepFunctions::Result)


33
34
35
36
# File 'step_functions/result.rb', line 33

def self.from_boolean(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "value")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.Result", "fromBoolean", [value])
end

.from_number(value) ⇒ AWSCDK::StepFunctions::Result

The result of the operation is a number.

Parameters:

  • value (Numeric)

Returns:

  • (AWSCDK::StepFunctions::Result)


42
43
44
45
# File 'step_functions/result.rb', line 42

def self.from_number(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.Result", "fromNumber", [value])
end

.from_object(value) ⇒ AWSCDK::StepFunctions::Result

The result of the operation is an object.

Parameters:

  • value (Hash{String => Object})

Returns:

  • (AWSCDK::StepFunctions::Result)


51
52
53
54
# File 'step_functions/result.rb', line 51

def self.from_object(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6ImFueSJ9LCJraW5kIjoibWFwIn19")), "value")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.Result", "fromObject", [value])
end

.from_string(value) ⇒ AWSCDK::StepFunctions::Result

The result of the operation is a string.

Parameters:

  • value (String)

Returns:

  • (AWSCDK::StepFunctions::Result)


60
61
62
63
# File 'step_functions/result.rb', line 60

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

.jsii_overridable_methodsObject



14
15
16
17
18
# File 'step_functions/result.rb', line 14

def self.jsii_overridable_methods
  {
    :value => { kind: :property, name: "value", is_optional: false },
  }
end

Instance Method Details

#valueObject

result of the Pass operation.

Returns:

  • (Object)


68
69
70
# File 'step_functions/result.rb', line 68

def value()
  jsii_get_property("value")
end