Class: AWSCDK::Pipes::CfnPipe::FilterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

Filter events using an event pattern.

For more information, see Events and Event Patterns in the Amazon EventBridge User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pattern: nil) ⇒ FilterProperty

Returns a new instance of FilterProperty.

Parameters:

  • pattern (String, nil) (defaults to: nil)

    The event pattern.



1784
1785
1786
1787
# File 'pipes/cfn_pipe.rb', line 1784

def initialize(pattern: nil)
  @pattern = pattern
  Jsii::Type.check_type(@pattern, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "pattern") unless @pattern.nil?
end

Instance Attribute Details

#patternString? (readonly)

The event pattern.



1793
1794
1795
# File 'pipes/cfn_pipe.rb', line 1793

def pattern
  @pattern
end

Class Method Details

.jsii_propertiesObject



1795
1796
1797
1798
1799
# File 'pipes/cfn_pipe.rb', line 1795

def self.jsii_properties
  {
    :pattern => "pattern",
  }
end

Instance Method Details

#to_jsiiObject



1801
1802
1803
1804
1805
1806
1807
# File 'pipes/cfn_pipe.rb', line 1801

def to_jsii
  result = {}
  result.merge!({
    "pattern" => @pattern,
  })
  result.compact
end