

# CapacityTaskFailure
<a name="API_CapacityTaskFailure"></a>

The capacity tasks that failed.

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

 ** Reason **   <a name="outposts-Type-CapacityTaskFailure-Reason"></a>
The reason that the specified capacity task failed.  
Type: String  
Length Constraints: Maximum length of 128.  
Required: Yes

 ** Type **   <a name="outposts-Type-CapacityTaskFailure-Type"></a>
The type of failure.  
Type: String  
Valid Values: `UNSUPPORTED_CAPACITY_CONFIGURATION | UNEXPECTED_ASSET_STATE | BLOCKING_INSTANCES_NOT_EVACUATED | INTERNAL_SERVER_ERROR | RESOURCE_NOT_FOUND`   
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/outposts-2019-12-03/CapacityTaskFailure) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/outposts-2019-12-03/CapacityTaskFailure) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/outposts-2019-12-03/CapacityTaskFailure) 

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for AWS Outposts. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query outposts` — 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).
