Class: AWSCDK::IoTAnalytics::CfnPipeline::SelectAttributesProperty

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

Overview

Creates a new message using only the specified attributes from the original message.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes:, name:, _next: nil) ⇒ SelectAttributesProperty

Returns a new instance of SelectAttributesProperty.

Parameters:

  • attributes (Array<String>)

    A list of the attributes to select from the message.

  • name (String)

    The name of the 'selectAttributes' activity.

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

    The next activity in the pipeline.



1212
1213
1214
1215
1216
1217
1218
1219
# File 'io_t_analytics/cfn_pipeline.rb', line 1212

def initialize(attributes:, name:, _next: nil)
  @attributes = attributes
  Jsii::Type.check_type(@attributes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "attributes")
  @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.



1235
1236
1237
# File 'io_t_analytics/cfn_pipeline.rb', line 1235

def _next
  @_next
end

#attributesArray<String> (readonly)

A list of the attributes to select from the message.



1225
1226
1227
# File 'io_t_analytics/cfn_pipeline.rb', line 1225

def attributes
  @attributes
end

#nameString (readonly)

The name of the 'selectAttributes' activity.



1230
1231
1232
# File 'io_t_analytics/cfn_pipeline.rb', line 1230

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1237
1238
1239
1240
1241
1242
1243
# File 'io_t_analytics/cfn_pipeline.rb', line 1237

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

Instance Method Details

#to_jsiiObject



1245
1246
1247
1248
1249
1250
1251
1252
1253
# File 'io_t_analytics/cfn_pipeline.rb', line 1245

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