Class: AWSCDK::SAM::CfnFunction::KinesisEventProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SAM::CfnFunction::KinesisEventProperty
- Defined in:
- sam/cfn_function.rb
Overview
Instance Attribute Summary collapse
- #batch_size ⇒ Numeric? readonly
- #enabled ⇒ Boolean, ... readonly
- #function_response_types ⇒ Array<String>? readonly
- #starting_position ⇒ String readonly
- #stream ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(starting_position:, stream:, batch_size: nil, enabled: nil, function_response_types: nil) ⇒ KinesisEventProperty
constructor
A new instance of KinesisEventProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(starting_position:, stream:, batch_size: nil, enabled: nil, function_response_types: nil) ⇒ KinesisEventProperty
Returns a new instance of KinesisEventProperty.
2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 |
# File 'sam/cfn_function.rb', line 2375 def initialize(starting_position:, stream:, batch_size: nil, enabled: nil, function_response_types: nil) @starting_position = starting_position Jsii::Type.check_type(@starting_position, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "startingPosition") @stream = stream Jsii::Type.check_type(@stream, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "stream") @batch_size = batch_size Jsii::Type.check_type(@batch_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "batchSize") unless @batch_size.nil? @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil? @function_response_types = function_response_types Jsii::Type.check_type(@function_response_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "functionResponseTypes") unless @function_response_types.nil? end |
Instance Attribute Details
#batch_size ⇒ Numeric? (readonly)
2396 2397 2398 |
# File 'sam/cfn_function.rb', line 2396 def batch_size @batch_size end |
#enabled ⇒ Boolean, ... (readonly)
2399 2400 2401 |
# File 'sam/cfn_function.rb', line 2399 def enabled @enabled end |
#function_response_types ⇒ Array<String>? (readonly)
2402 2403 2404 |
# File 'sam/cfn_function.rb', line 2402 def function_response_types @function_response_types end |
#starting_position ⇒ String (readonly)
2390 2391 2392 |
# File 'sam/cfn_function.rb', line 2390 def starting_position @starting_position end |
#stream ⇒ String (readonly)
2393 2394 2395 |
# File 'sam/cfn_function.rb', line 2393 def stream @stream end |
Class Method Details
.jsii_properties ⇒ Object
2404 2405 2406 2407 2408 2409 2410 2411 2412 |
# File 'sam/cfn_function.rb', line 2404 def self.jsii_properties { :starting_position => "startingPosition", :stream => "stream", :batch_size => "batchSize", :enabled => "enabled", :function_response_types => "functionResponseTypes", } end |
Instance Method Details
#to_jsii ⇒ Object
2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 |
# File 'sam/cfn_function.rb', line 2414 def to_jsii result = {} result.merge!({ "startingPosition" => @starting_position, "stream" => @stream, "batchSize" => @batch_size, "enabled" => @enabled, "functionResponseTypes" => @function_response_types, }) result.compact end |