Skip to content
v2.278.0

MqttTopicConfigProperty Struct ​

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 .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotfleetwise as iotfleetwise } from 'aws-cdk-lib';
const mqttTopicConfigProperty: iotfleetwise.CfnCampaign.MqttTopicConfigProperty = {
  executionRoleArn: 'executionRoleArn',
  mqttTopicArn: 'mqttTopicArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iotfleetwise as iotfleetwise

mqtt_topic_config_property = iotfleetwise.CfnCampaign.MqttTopicConfigProperty(
    execution_role_arn="executionRoleArn",
    mqtt_topic_arn="mqttTopicArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotfleetwise.*;

MqttTopicConfigProperty mqttTopicConfigProperty = MqttTopicConfigProperty.builder()
        .executionRoleArn("executionRoleArn")
        .mqttTopicArn("mqttTopicArn")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoTFleetWise;

var mqttTopicConfigProperty = new MqttTopicConfigProperty {
    ExecutionRoleArn = "executionRoleArn",
    MqttTopicArn = "mqttTopicArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

mqttTopicConfigProperty := &MqttTopicConfigProperty{
	ExecutionRoleArn: jsii.String("executionRoleArn"),
	MqttTopicArn: jsii.String("mqttTopicArn"),
}

Properties ​

executionRoleArnstringexecution_role_arnstrexecutionRoleArnStringExecutionRoleArnstringExecutionRoleArn*string required #
The ARN of the role that grants AWS IoT FleetWise permission to access and act on messages sent to the MQTT topic.
mqttTopicArnstringmqtt_topic_arnstrmqttTopicArnStringMqttTopicArnstringMqttTopicArn*string required #
The ARN of the MQTT topic.