Class: AWSCDK::IoTAnalytics::CfnPipeline::AddAttributesProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTAnalytics::CfnPipeline::AddAttributesProperty
- 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
-
#_next ⇒ String?
readonly
The next activity in the pipeline.
-
#attributes ⇒ AWSCDK::IResolvable, Hash{String => String}
readonly
A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.
-
#name ⇒ String
readonly
The name of the 'addAttributes' activity.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes:, name:, _next: nil) ⇒ AddAttributesProperty
constructor
A new instance of AddAttributesProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attributes:, name:, _next: nil) ⇒ AddAttributesProperty
Returns a new instance of AddAttributesProperty.
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
#_next ⇒ String? (readonly)
The next activity in the pipeline.
706 707 708 |
# File 'io_t_analytics/cfn_pipeline.rb', line 706 def _next @_next end |
#attributes ⇒ AWSCDK::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 |
#name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |