Amazon Elastic Compute Cloud
API Reference (API Version 2016-09-15)


Creates a data feed for Spot instances, enabling you to view Spot instance usage logs. You can create one data feed per AWS account. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.


The Amazon S3 bucket in which to store the Spot instance data feed.

Type: String

Required: Yes


Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No


A prefix for the data feed file names.

Type: String

Required: No

Response Elements

The following elements are returned by the service.


The ID of the request.

Type: String


The Spot instance data feed subscription.

Type: SpotDatafeedSubscription object


For information about the errors that are common to all actions, see Common Client Errors.



This example creates a Spot instance data feed for the account.

Sample Request

Sample Response

<CreateSpotDatafeedSubscriptionResponse xmlns="">