Class: AWSCDK::IoTAnalytics::CfnPipeline::FilterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_analytics/cfn_pipeline.rb

Overview

An activity that filters a message based on its attributes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filter:, name:, _next: nil) ⇒ FilterProperty

Returns a new instance of FilterProperty.

Parameters:

  • filter (String)

    An expression that looks like an SQL WHERE clause that must return a Boolean value.

  • name (String)

    The name of the 'filter' activity.

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

    The next activity in the pipeline.



978
979
980
981
982
983
984
985
# File 'io_t_analytics/cfn_pipeline.rb', line 978

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

Instance Attribute Details

#_nextString? (readonly)

The next activity in the pipeline.



1001
1002
1003
# File 'io_t_analytics/cfn_pipeline.rb', line 1001

def _next
  @_next
end

#filterString (readonly)

An expression that looks like an SQL WHERE clause that must return a Boolean value.



991
992
993
# File 'io_t_analytics/cfn_pipeline.rb', line 991

def filter
  @filter
end

#nameString (readonly)

The name of the 'filter' activity.



996
997
998
# File 'io_t_analytics/cfn_pipeline.rb', line 996

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1003
1004
1005
1006
1007
1008
1009
# File 'io_t_analytics/cfn_pipeline.rb', line 1003

def self.jsii_properties
  {
    :filter => "filter",
    :name => "name",
    :_next => "next",
  }
end

Instance Method Details

#to_jsiiObject



1011
1012
1013
1014
1015
1016
1017
1018
1019
# File 'io_t_analytics/cfn_pipeline.rb', line 1011

def to_jsii
  result = {}
  result.merge!({
    "filter" => @filter,
    "name" => @name,
    "next" => @_next,
  })
  result.compact
end