Class: AWSCDK::SAM::CfnFunction::KinesisEventProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sam/cfn_function.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(starting_position:, stream:, batch_size: nil, enabled: nil, function_response_types: nil) ⇒ KinesisEventProperty

Returns a new instance of KinesisEventProperty.

Parameters:

  • starting_position (String)
  • stream (String)
  • batch_size (Numeric, nil) (defaults to: nil)
  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)
  • function_response_types (Array<String>, nil) (defaults to: nil)


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_sizeNumeric? (readonly)



2396
2397
2398
# File 'sam/cfn_function.rb', line 2396

def batch_size
  @batch_size
end

#enabledBoolean, ... (readonly)



2399
2400
2401
# File 'sam/cfn_function.rb', line 2399

def enabled
  @enabled
end

#function_response_typesArray<String>? (readonly)



2402
2403
2404
# File 'sam/cfn_function.rb', line 2402

def function_response_types
  @function_response_types
end

#starting_positionString (readonly)



2390
2391
2392
# File 'sam/cfn_function.rb', line 2390

def starting_position
  @starting_position
end

#streamString (readonly)



2393
2394
2395
# File 'sam/cfn_function.rb', line 2393

def stream
  @stream
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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