

# MqttContext
<a name="API_MqttContext"></a>

Specifies the MQTT context to use for the test authorizer request

## Contents
<a name="API_MqttContext_Contents"></a>

 ** clientId **   <a name="iot-Type-MqttContext-clientId"></a>
The value of the `clientId` key in an MQTT authorization request.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 65535.  
Pattern: `[\s\S]*`   
Required: No

 ** password **   <a name="iot-Type-MqttContext-password"></a>
The value of the `password` key in an MQTT authorization request.  
Type: Base64-encoded binary data object  
Length Constraints: Minimum length of 1. Maximum length of 65535.  
Required: No

 ** username **   <a name="iot-Type-MqttContext-username"></a>
The value of the `username` key in an MQTT authorization request.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 65535.  
Pattern: `[\s\S]*`   
Required: No

## See Also
<a name="API_MqttContext_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/iot-2015-05-28/MqttContext) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iot-2015-05-28/MqttContext) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iot-2015-05-28/MqttContext) 