

# MessageData
<a name="API_MessageData"></a>

A message returned by the `GetMetricData`API, including a code and a description.

If a cross-Region `GetMetricData` operation fails with a code of `Forbidden` and a value of `Authentication too complex to retrieve cross region data`, you can correct the problem by running the `GetMetricData` operation in the same Region where the metric data is.

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

 ** Code **   <a name="ACW-Type-MessageData-Code"></a>
The error code or status code associated with the message.  
Type: String  
Required: No

 ** Value **   <a name="ACW-Type-MessageData-Value"></a>
The message text.  
Type: String  
Required: No

## See Also
<a name="API_MessageData_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/monitoring-2010-08-01/MessageData) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/monitoring-2010-08-01/MessageData) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/monitoring-2010-08-01/MessageData) 