Class: AWSCDK::IoT::CfnSecurityProfile::MetricsExportConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnSecurityProfile::MetricsExportConfigProperty
- Defined in:
- io_t/cfn_security_profile.rb
Overview
Specifies the MQTT topic and role ARN required for metric export.
Instance Attribute Summary collapse
-
#mqtt_topic ⇒ String
readonly
The MQTT topic that Device Defender Detect should publish messages to for metrics export.
-
#role_arn ⇒ String
readonly
This role ARN has permission to publish MQTT messages, after which Device Defender Detect can assume the role and publish messages on your behalf.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mqtt_topic:, role_arn:) ⇒ MetricsExportConfigProperty
constructor
A new instance of MetricsExportConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mqtt_topic:, role_arn:) ⇒ MetricsExportConfigProperty
Returns a new instance of MetricsExportConfigProperty.
1094 1095 1096 1097 1098 1099 |
# File 'io_t/cfn_security_profile.rb', line 1094 def initialize(mqtt_topic:, role_arn:) @mqtt_topic = mqtt_topic Jsii::Type.check_type(@mqtt_topic, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mqttTopic") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") end |
Instance Attribute Details
#mqtt_topic ⇒ String (readonly)
The MQTT topic that Device Defender Detect should publish messages to for metrics export.
1105 1106 1107 |
# File 'io_t/cfn_security_profile.rb', line 1105 def mqtt_topic @mqtt_topic end |
#role_arn ⇒ String (readonly)
This role ARN has permission to publish MQTT messages, after which Device Defender Detect can assume the role and publish messages on your behalf.
1110 1111 1112 |
# File 'io_t/cfn_security_profile.rb', line 1110 def role_arn @role_arn end |
Class Method Details
.jsii_properties ⇒ Object
1112 1113 1114 1115 1116 1117 |
# File 'io_t/cfn_security_profile.rb', line 1112 def self.jsii_properties { :mqtt_topic => "mqttTopic", :role_arn => "roleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
1119 1120 1121 1122 1123 1124 1125 1126 |
# File 'io_t/cfn_security_profile.rb', line 1119 def to_jsii result = {} result.merge!({ "mqttTopic" => @mqtt_topic, "roleArn" => @role_arn, }) result.compact end |