Class: AWSCDK::IoTEvents::CfnInput::AttributeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_events/cfn_input.rb

Overview

The attributes from the JSON payload that are made available by the input.

Inputs are derived from messages sent to the AWS IoT Events system using BatchPutMessage . Each such message contains a JSON payload. Those attributes (and their paired values) specified here are available for use in the condition expressions used by detectors.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_path:) ⇒ AttributeProperty

Returns a new instance of AttributeProperty.

Parameters:

  • json_path (String)

    An expression that specifies an attribute-value pair in a JSON structure.



566
567
568
569
# File 'io_t_events/cfn_input.rb', line 566

def initialize(json_path:)
  @json_path = json_path
  Jsii::Type.check_type(@json_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jsonPath")
end

Instance Attribute Details

#json_pathString (readonly)

An expression that specifies an attribute-value pair in a JSON structure.

Use this to specify an attribute from the JSON payload that is made available by the input. Inputs are derived from messages sent to AWS IoT Events ( BatchPutMessage ). Each such message contains a JSON payload. The attribute (and its paired value) specified here are available for use in the condition expressions used by detectors.

Syntax: <field-name>.<field-name>...



579
580
581
# File 'io_t_events/cfn_input.rb', line 579

def json_path
  @json_path
end

Class Method Details

.jsii_propertiesObject



581
582
583
584
585
# File 'io_t_events/cfn_input.rb', line 581

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

Instance Method Details

#to_jsiiObject



587
588
589
590
591
592
593
# File 'io_t_events/cfn_input.rb', line 587

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