Class: AWSCDK::StepFunctions::ResultWriter Deprecated
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::StepFunctions::ResultWriter
- 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
-
#bucket ⇒ AWSCDK::S3::IBucket
S3 Bucket in which to save Map Run results.
-
#initialize(props) ⇒ ResultWriter
constructor
A new instance of ResultWriter.
-
#prefix ⇒ String?
S3 prefix in which to save Map Run results.
-
#provide_policy_statements ⇒ Array<AWSCDK::IAM::PolicyStatement>
Compile policy statements to provide relevent permissions to the state machine.
-
#render(query_language = nil) ⇒ Object
Render ResultWriter in ASL JSON format.
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_methods ⇒ Object
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
#bucket ⇒ AWSCDK::S3::IBucket
S3 Bucket in which to save Map Run results.
29 30 31 |
# File 'step_functions/result_writer.rb', line 29 def bucket() jsii_get_property("bucket") end |
#prefix ⇒ String?
Note:
Default: - No prefix
S3 prefix in which to save Map Run results.
37 38 39 |
# File 'step_functions/result_writer.rb', line 37 def prefix() jsii_get_property("prefix") end |
#provide_policy_statements ⇒ Array<AWSCDK::IAM::PolicyStatement>
Compile policy statements to provide relevent permissions to the state machine.
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.
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 |