# MqttTopicConfigProperty

Struct · External

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

For more information, see [Device communication protocols](https://docs.aws.amazon.com/iot/latest/developerguide/protocols.html) 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](https://docs.aws.amazon.com/iot-fleetwise/latest/developerguide/fleetwise-regions.html) in the *AWS IoT FleetWise Developer Guide* .

- Source: Generated at build time
- Type last changed: v2.157.0 · 10 Sep 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `executionRoleArn`: string (required) — The ARN of the role that grants AWS IoT FleetWise permission to access and act on messages sent to the MQTT topic.

- `mqttTopicArn`: string (required) — The ARN of the MQTT topic.
