Creates the datafeed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per account. For more information about Spot Instances, go to Using Spot Instances in the Amazon Elastic Compute Cloud User Guide.
| Name | Description | Required |
|---|---|---|
|
|
The Amazon S3 bucket in which to store the Spot Instance datafeed. Type: String Default: None Constraints: Must be a valid bucket associated with your account. |
Yes |
|
|
Prefix that is prepended to datafeed files. Type: String Default: None |
No |
The elements in the following table are wrapped in a
CreateSpotDatafeedSubscriptionResponse structure.
| Name | Description |
|---|---|
|
|
The ID of the request. Type: xsd:string |
|
|
Datafeed subscription. |
This example creates the data feed for the account.
https://ec2.amazonaws.com/?Action=CreateSpotDatafeedSubscription &Bucket=my-bucket &AUTHPARAMS
<CreateSpotDatafeedSubscriptionResponse xmlns="http://ec2.amazonaws.com/doc/2011-01-01/">
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
<spotDatafeedSubscription>
<ownerId>254933287430</ownerId>
<bucket>my-bucket</bucket>
<prefix/>
<state>Active</state>
</spotDatafeedSubscription>
</CreateSpotDatafeedSubscriptionResponse>