Class: AWSCDK::IoTAnalytics::CfnPipeline::AddAttributesProperty

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

Overview

An activity that adds other attributes based on existing attributes in the message.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AddAttributesProperty.

Parameters:

  • attributes (AWSCDK::IResolvable, Hash{String => String})

    A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.

  • name (String)

    The name of the 'addAttributes' activity.

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

    The next activity in the pipeline.



681
682
683
684
685
686
687
688
# File 'io_t_analytics/cfn_pipeline.rb', line 681

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



706
707
708
# File 'io_t_analytics/cfn_pipeline.rb', line 706

def _next
  @_next
end

#attributesAWSCDK::IResolvable, Hash{String => String} (readonly)

A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.

The existing attributes remain in the message, so if you want to remove the originals, use "RemoveAttributeActivity".



696
697
698
# File 'io_t_analytics/cfn_pipeline.rb', line 696

def attributes
  @attributes
end

#nameString (readonly)

The name of the 'addAttributes' activity.



701
702
703
# File 'io_t_analytics/cfn_pipeline.rb', line 701

def name
  @name
end

Class Method Details

.jsii_propertiesObject



708
709
710
711
712
713
714
# File 'io_t_analytics/cfn_pipeline.rb', line 708

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

Instance Method Details

#to_jsiiObject



716
717
718
719
720
721
722
723
724
# File 'io_t_analytics/cfn_pipeline.rb', line 716

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