createSpotDatafeedSubscription

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per Amazon Web Services account. For more information, see Spot Instance data feed in the Amazon EC2 User Guide.

Samples


fun main() { 
   //sampleStart 
   // This example creates a Spot Instance data feed for your AWS account.
val resp = ec2Client.createSpotDatafeedSubscription {
    bucket = "my-s3-bucket"
    prefix = "spotdata"
} 
   //sampleEnd
}