Class: AWSCDK::IoT::CfnTopicRule::HttpAuthorizationProperty

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

Overview

The authorization method used to send messages.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sigv4: nil) ⇒ HttpAuthorizationProperty

Returns a new instance of HttpAuthorizationProperty.

Parameters:



1698
1699
1700
1701
# File 'io_t/cfn_topic_rule.rb', line 1698

def initialize(sigv4: nil)
  @sigv4 = sigv4.is_a?(Hash) ? ::AWSCDK::IoT::CfnTopicRule::SigV4AuthorizationProperty.new(**sigv4.transform_keys(&:to_sym)) : sigv4
  Jsii::Type.check_type(@sigv4, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3QuQ2ZuVG9waWNSdWxlLlNpZ1Y0QXV0aG9yaXphdGlvblByb3BlcnR5In1dfX0=")), "sigv4") unless @sigv4.nil?
end

Instance Attribute Details

#sigv4AWSCDK::IResolvable, ... (readonly)

Use Sig V4 authorization.

For more information, see Signature Version 4 Signing Process .



1709
1710
1711
# File 'io_t/cfn_topic_rule.rb', line 1709

def sigv4
  @sigv4
end

Class Method Details

.jsii_propertiesObject



1711
1712
1713
1714
1715
# File 'io_t/cfn_topic_rule.rb', line 1711

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

Instance Method Details

#to_jsiiObject



1717
1718
1719
1720
1721
1722
1723
# File 'io_t/cfn_topic_rule.rb', line 1717

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