Class: AWSCDK::IoT::CfnTopicRule::HttpActionHeaderProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::HttpActionHeaderProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
The HTTP action header.
Instance Attribute Summary collapse
-
#key ⇒ String
readonly
The HTTP header key.
-
#value ⇒ String
readonly
The HTTP header value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ HttpActionHeaderProperty
constructor
A new instance of HttpActionHeaderProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key:, value:) ⇒ HttpActionHeaderProperty
Returns a new instance of HttpActionHeaderProperty.
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
#key ⇒ String (readonly)
The HTTP header key.
1582 1583 1584 |
# File 'io_t/cfn_topic_rule.rb', line 1582 def key @key end |
#value ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |