

# CancelledSpotInstanceRequest
<a name="API_CancelledSpotInstanceRequest"></a>

Describes a request to cancel a Spot Instance.

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

 ** spotInstanceRequestId **   
The ID of the Spot Instance request.  
Type: String  
Required: No

 ** state **   
The state of the Spot Instance request.  
Type: String  
Valid Values: `active | open | closed | cancelled | completed`   
Required: No

## See Also
<a name="API_CancelledSpotInstanceRequest_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/ec2-2016-11-15/CancelledSpotInstanceRequest) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/ec2-2016-11-15/CancelledSpotInstanceRequest) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/ec2-2016-11-15/CancelledSpotInstanceRequest) 