Class: AWSCDK::IoT::CfnTopicRule::HttpActionHeaderProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t/cfn_topic_rule.rb

Overview

The HTTP action header.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ HttpActionHeaderProperty

Returns a new instance of HttpActionHeaderProperty.

Parameters:

  • key (String)

    The HTTP header key.

  • value (String)

    The HTTP header value.



1571
1572
1573
1574
1575
1576
# File 'io_t/cfn_topic_rule.rb', line 1571

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

Instance Attribute Details

#keyString (readonly)

The HTTP header key.



1582
1583
1584
# File 'io_t/cfn_topic_rule.rb', line 1582

def key
  @key
end

#valueString (readonly)

The HTTP header value.

Substitution templates are supported.



1589
1590
1591
# File 'io_t/cfn_topic_rule.rb', line 1589

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1591
1592
1593
1594
1595
1596
# File 'io_t/cfn_topic_rule.rb', line 1591

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1598
1599
1600
1601
1602
1603
1604
1605
# File 'io_t/cfn_topic_rule.rb', line 1598

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