

# TagPolicyException
<a name="API_TagPolicyException"></a>

**Note**  
 `TagPolicyException` is deprecated. See [`ValidationException`](https://docs.aws.amazon.com/evs/latest/APIReference/API_ValidationException.html) instead.

The request doesn't comply with IAM tag policy. Correct your request and then retry it.

HTTP Status Code returned: 400

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

 ** message **   <a name="evs-Type-TagPolicyException-message"></a>
Describes the error encountered  
Type: String  
Required: Yes

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/evs-2023-07-27/TagPolicyException) 

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Amazon Elastic VMware Service. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query evs` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
