Class: AWSCDK::SAM::CfnFunction::EventBridgeRuleEventProperty

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(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)


1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
# File 'sam/cfn_function.rb', line 1734

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)



1750
1751
1752
# File 'sam/cfn_function.rb', line 1750

def event_bus_name
  @event_bus_name
end

#inputString? (readonly)



1753
1754
1755
# File 'sam/cfn_function.rb', line 1753

def input
  @input
end

#input_pathString? (readonly)



1756
1757
1758
# File 'sam/cfn_function.rb', line 1756

def input_path
  @input_path
end

#patternObject (readonly)



1747
1748
1749
# File 'sam/cfn_function.rb', line 1747

def pattern
  @pattern
end

Class Method Details

.jsii_propertiesObject



1758
1759
1760
1761
1762
1763
1764
1765
# File 'sam/cfn_function.rb', line 1758

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

Instance Method Details

#to_jsiiObject



1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
# File 'sam/cfn_function.rb', line 1767

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