Class: AWSCDK::StepFunctions::ItemReaderProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctions::ItemReaderProps
- Defined in:
- step_functions/item_reader_props.rb
Overview
Base interface for Item Reader configuration properties.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bucket ⇒ AWSCDK::S3::IBucket?
readonly
S3 Bucket containing objects to iterate over or a file with a list to iterate over.
-
#bucket_name_path ⇒ String?
readonly
S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath.
-
#max_items ⇒ Numeric?
readonly
Limits the number of items passed to the Distributed Map state.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket: nil, bucket_name_path: nil, max_items: nil) ⇒ ItemReaderProps
constructor
A new instance of ItemReaderProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket: nil, bucket_name_path: nil, max_items: nil) ⇒ ItemReaderProps
Returns a new instance of ItemReaderProps.
10 11 12 13 14 15 16 17 |
# File 'step_functions/item_reader_props.rb', line 10 def initialize(bucket: nil, bucket_name_path: nil, max_items: nil) @bucket = bucket Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "bucket") unless @bucket.nil? @bucket_name_path = bucket_name_path Jsii::Type.check_type(@bucket_name_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketNamePath") unless @bucket_name_path.nil? @max_items = max_items Jsii::Type.check_type(@max_items, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxItems") unless @max_items.nil? end |
Instance Attribute Details
#bucket ⇒ AWSCDK::S3::IBucket? (readonly)
Default: - S3 bucket will be determined from
S3 Bucket containing objects to iterate over or a file with a list to iterate over.
24 25 26 |
# File 'step_functions/item_reader_props.rb', line 24 def bucket @bucket end |
#bucket_name_path ⇒ String? (readonly)
Default: - S3 bucket will be determined from
S3 bucket name containing objects to iterate over or a file with a list to iterate over, as JsonPath.
30 31 32 |
# File 'step_functions/item_reader_props.rb', line 30 def bucket_name_path @bucket_name_path end |
#max_items ⇒ Numeric? (readonly)
Default: - Distributed Map state will iterate over all items provided by the ItemReader
Limits the number of items passed to the Distributed Map state.
35 36 37 |
# File 'step_functions/item_reader_props.rb', line 35 def max_items @max_items end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'step_functions/item_reader_props.rb', line 37 def self.jsii_properties { :bucket => "bucket", :bucket_name_path => "bucketNamePath", :max_items => "maxItems", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'step_functions/item_reader_props.rb', line 45 def to_jsii result = {} result.merge!({ "bucket" => @bucket, "bucketNamePath" => @bucket_name_path, "maxItems" => @max_items, }) result.compact end |