Class: AWSCDK::StepFunctions::ResultWriter Deprecated

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

Overview

Deprecated.

use {@link ResultWriterV2 } instead

Configuration for writing Distributed Map state results to S3.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props) ⇒ ResultWriter

Returns a new instance of ResultWriter.



11
12
13
14
15
# File 'step_functions/result_writer.rb', line 11

def initialize(props)
  props = props.is_a?(Hash) ? ::AWSCDK::StepFunctions::ResultWriterProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5SZXN1bHRXcml0ZXJQcm9wcyJ9")), "props")
  Jsii::Object.instance_method(:initialize).bind(self).call(props)
end

Class Method Details

.jsii_overridable_methodsObject



17
18
19
20
21
22
23
24
# File 'step_functions/result_writer.rb', line 17

def self.jsii_overridable_methods
  {
    :bucket => { kind: :property, name: "bucket", is_optional: false },
    :prefix => { kind: :property, name: "prefix", is_optional: true },
    :provide_policy_statements => { kind: :method, name: "providePolicyStatements", is_optional: false },
    :render => { kind: :method, name: "render", is_optional: false },
  }
end

Instance Method Details

#bucketAWSCDK::S3::IBucket

S3 Bucket in which to save Map Run results.

Returns:



29
30
31
# File 'step_functions/result_writer.rb', line 29

def bucket()
  jsii_get_property("bucket")
end

#prefixString?

Note:

Default: - No prefix

S3 prefix in which to save Map Run results.

Returns:

  • (String, nil)


37
38
39
# File 'step_functions/result_writer.rb', line 37

def prefix()
  jsii_get_property("prefix")
end

#provide_policy_statementsArray<AWSCDK::IAM::PolicyStatement>

Compile policy statements to provide relevent permissions to the state machine.

Returns:



44
45
46
# File 'step_functions/result_writer.rb', line 44

def provide_policy_statements()
  jsii_call_method("providePolicyStatements", [])
end

#render(query_language = nil) ⇒ Object

Render ResultWriter in ASL JSON format.

Parameters:

Returns:

  • (Object)


52
53
54
55
# File 'step_functions/result_writer.rb', line 52

def render(query_language = nil)
  Jsii::Type.check_type(query_language, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5RdWVyeUxhbmd1YWdlIn0=")), "queryLanguage") unless query_language.nil?
  jsii_call_method("render", [query_language])
end