Class: AWSCDK::StepFunctions::ResultWriterProps Deprecated

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

Overview

Deprecated.

use {@link ResultWriterV2Props } instead

Interface for Result Writer configuration props.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, prefix: nil) ⇒ ResultWriterProps

Returns a new instance of ResultWriterProps.

Parameters:

  • bucket (AWSCDK::S3::IBucket)

    S3 Bucket in which to save Map Run results.

  • prefix (String, nil) (defaults to: nil)

    S3 prefix in which to save Map Run results.



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

def initialize(bucket:, prefix: nil)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "bucket")
  @prefix = prefix
  Jsii::Type.check_type(@prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless @prefix.nil?
end

Instance Attribute Details

#bucketAWSCDK::S3::IBucket (readonly)

S3 Bucket in which to save Map Run results.

Returns:



21
22
23
# File 'step_functions/result_writer_props.rb', line 21

def bucket
  @bucket
end

#prefixString? (readonly)

Note:

Default: - No prefix

S3 prefix in which to save Map Run results.

Returns:

  • (String, nil)


26
27
28
# File 'step_functions/result_writer_props.rb', line 26

def prefix
  @prefix
end

Class Method Details

.jsii_propertiesObject



28
29
30
31
32
33
# File 'step_functions/result_writer_props.rb', line 28

def self.jsii_properties
  {
    :bucket => "bucket",
    :prefix => "prefix",
  }
end

Instance Method Details

#to_jsiiObject



35
36
37
38
39
40
41
42
# File 'step_functions/result_writer_props.rb', line 35

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "prefix" => @prefix,
  })
  result.compact
end