Class: AWSCDK::SAM::CfnStateMachine::CloudWatchEventEventProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pattern:, event_bus_name: nil, input: nil, input_path: nil) ⇒ CloudWatchEventEventProperty

Returns a new instance of CloudWatchEventEventProperty.

Parameters:

  • pattern (Object)
  • event_bus_name (String, nil) (defaults to: nil)
  • input (String, nil) (defaults to: nil)
  • input_path (String, nil) (defaults to: nil)


677
678
679
680
681
682
683
684
685
686
# File 'sam/cfn_state_machine.rb', line 677

def initialize(pattern:, event_bus_name: nil, input: nil, input_path: nil)
  @pattern = pattern
  Jsii::Type.check_type(@pattern, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "pattern")
  @event_bus_name = event_bus_name
  Jsii::Type.check_type(@event_bus_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "eventBusName") unless @event_bus_name.nil?
  @input = input
  Jsii::Type.check_type(@input, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "input") unless @input.nil?
  @input_path = input_path
  Jsii::Type.check_type(@input_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputPath") unless @input_path.nil?
end

Instance Attribute Details

#event_bus_nameString? (readonly)



693
694
695
# File 'sam/cfn_state_machine.rb', line 693

def event_bus_name
  @event_bus_name
end

#inputString? (readonly)



696
697
698
# File 'sam/cfn_state_machine.rb', line 696

def input
  @input
end

#input_pathString? (readonly)



699
700
701
# File 'sam/cfn_state_machine.rb', line 699

def input_path
  @input_path
end

#patternObject (readonly)



690
691
692
# File 'sam/cfn_state_machine.rb', line 690

def pattern
  @pattern
end

Class Method Details

.jsii_propertiesObject



701
702
703
704
705
706
707
708
# File 'sam/cfn_state_machine.rb', line 701

def self.jsii_properties
  {
    :pattern => "pattern",
    :event_bus_name => "eventBusName",
    :input => "input",
    :input_path => "inputPath",
  }
end

Instance Method Details

#to_jsiiObject



710
711
712
713
714
715
716
717
718
719
# File 'sam/cfn_state_machine.rb', line 710

def to_jsii
  result = {}
  result.merge!({
    "pattern" => @pattern,
    "eventBusName" => @event_bus_name,
    "input" => @input,
    "inputPath" => @input_path,
  })
  result.compact
end