

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::IoTFleetWise::Campaign MqttTopicConfig
<a name="aws-properties-iotfleetwise-campaign-mqtttopicconfig"></a>

The MQTT topic to which the Amazon IoT FleetWise campaign routes data. For more information, see [Device communication protocols](https://docs.amazonaws.cn/iot/latest/developerguide/protocols.html) in the *Amazon IoT Core Developer Guide*.

**Important**  
Amazon IoT FleetWise is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see [Amazon IoT FleetWise availability change](https://docs.amazonaws.cn/iot-fleetwise/latest/developerguide/iotfleetwise-availability-change.html).

## Syntax
<a name="aws-properties-iotfleetwise-campaign-mqtttopicconfig-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-iotfleetwise-campaign-mqtttopicconfig-syntax.json"></a>

```
{
  "[ExecutionRoleArn](#cfn-iotfleetwise-campaign-mqtttopicconfig-executionrolearn)" : {{String}},
  "[MqttTopicArn](#cfn-iotfleetwise-campaign-mqtttopicconfig-mqtttopicarn)" : {{String}}
}
```

### YAML
<a name="aws-properties-iotfleetwise-campaign-mqtttopicconfig-syntax.yaml"></a>

```
  [ExecutionRoleArn](#cfn-iotfleetwise-campaign-mqtttopicconfig-executionrolearn): {{String}}
  [MqttTopicArn](#cfn-iotfleetwise-campaign-mqtttopicconfig-mqtttopicarn): {{String}}
```

## Properties
<a name="aws-properties-iotfleetwise-campaign-mqtttopicconfig-properties"></a>

`ExecutionRoleArn`  <a name="cfn-iotfleetwise-campaign-mqtttopicconfig-executionrolearn"></a>
The ARN of the role that grants Amazon IoT FleetWise permission to access and act on messages sent to the MQTT topic.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^arn:(aws[a-zA-Z0-9-]*):iam::(\d{12})?:(role((\u002F)|(\u002F[\u0021-\u007F]+\u002F))[\w+=,.@-]+)$`  
*Minimum*: `20`  
*Maximum*: `2048`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`MqttTopicArn`  <a name="cfn-iotfleetwise-campaign-mqtttopicconfig-mqtttopicarn"></a>
The ARN of the MQTT topic.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^arn:.*`  
*Minimum*: `20`  
*Maximum*: `2048`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)