Class: AWSCDK::IoT::CfnSecurityProfile::MetricsExportConfigProperty

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

Overview

Specifies the MQTT topic and role ARN required for metric export.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mqtt_topic:, role_arn:) ⇒ MetricsExportConfigProperty

Returns a new instance of MetricsExportConfigProperty.

Parameters:

  • mqtt_topic (String)

    The MQTT topic that Device Defender Detect should publish messages to for metrics export.

  • role_arn (String)

    This role ARN has permission to publish MQTT messages, after which Device Defender Detect can assume the role and publish messages on your behalf.



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_topicString (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_arnString (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_propertiesObject



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_jsiiObject



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