Class: AWSCDK::IoTFleetWise::CfnCampaign::MqttTopicConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_fleet_wise/cfn_campaign.rb

Overview

The MQTT topic to which the AWS IoT FleetWise campaign routes data.

For more information, see Device communication protocols in the AWS IoT Core Developer Guide .

Access to certain AWS IoT FleetWise features is currently gated. For more information, see AWS Region and feature availability in the AWS IoT FleetWise Developer Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(execution_role_arn:, mqtt_topic_arn:) ⇒ MqttTopicConfigProperty

Returns a new instance of MqttTopicConfigProperty.

Parameters:

  • execution_role_arn (String)

    The ARN of the role that grants AWS IoT FleetWise permission to access and act on messages sent to the MQTT topic.

  • mqtt_topic_arn (String)

    The ARN of the MQTT topic.



1200
1201
1202
1203
1204
1205
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1200

def initialize(execution_role_arn:, mqtt_topic_arn:)
  @execution_role_arn = execution_role_arn
  Jsii::Type.check_type(@execution_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executionRoleArn")
  @mqtt_topic_arn = mqtt_topic_arn
  Jsii::Type.check_type(@mqtt_topic_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mqttTopicArn")
end

Instance Attribute Details

#execution_role_arnString (readonly)

The ARN of the role that grants AWS IoT FleetWise permission to access and act on messages sent to the MQTT topic.



1211
1212
1213
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1211

def execution_role_arn
  @execution_role_arn
end

#mqtt_topic_arnString (readonly)

The ARN of the MQTT topic.



1216
1217
1218
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1216

def mqtt_topic_arn
  @mqtt_topic_arn
end

Class Method Details

.jsii_propertiesObject



1218
1219
1220
1221
1222
1223
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1218

def self.jsii_properties
  {
    :execution_role_arn => "executionRoleArn",
    :mqtt_topic_arn => "mqttTopicArn",
  }
end

Instance Method Details

#to_jsiiObject



1225
1226
1227
1228
1229
1230
1231
1232
# File 'io_t_fleet_wise/cfn_campaign.rb', line 1225

def to_jsii
  result = {}
  result.merge!({
    "executionRoleArn" => @execution_role_arn,
    "mqttTopicArn" => @mqtt_topic_arn,
  })
  result.compact
end