Class: AWSCDK::SAM::CfnStateMachine::EventBridgeRuleEventProperty

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) ⇒ EventBridgeRuleEventProperty

Returns a new instance of EventBridgeRuleEventProperty.

Parameters:

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


759
760
761
762
763
764
765
766
767
768
# File 'sam/cfn_state_machine.rb', line 759

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)



775
776
777
# File 'sam/cfn_state_machine.rb', line 775

def event_bus_name
  @event_bus_name
end

#inputString? (readonly)



778
779
780
# File 'sam/cfn_state_machine.rb', line 778

def input
  @input
end

#input_pathString? (readonly)



781
782
783
# File 'sam/cfn_state_machine.rb', line 781

def input_path
  @input_path
end

#patternObject (readonly)



772
773
774
# File 'sam/cfn_state_machine.rb', line 772

def pattern
  @pattern
end

Class Method Details

.jsii_propertiesObject



783
784
785
786
787
788
789
790
# File 'sam/cfn_state_machine.rb', line 783

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

Instance Method Details

#to_jsiiObject



792
793
794
795
796
797
798
799
800
801
# File 'sam/cfn_state_machine.rb', line 792

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