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 for Linux Instances.
example
Use a bare-bones client and the command you need to make an API call.
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 for Linux Instances.
Use a bare-bones client and the command you need to make an API call.
import { EC2Client, CreateSpotDatafeedSubscriptionCommand } from "@aws-sdk/client-ec2"; // ES Modules import // const { EC2Client, CreateSpotDatafeedSubscriptionCommand } = require("@aws-sdk/client-ec2"); // CommonJS import const client = new EC2Client(config); const command = new CreateSpotDatafeedSubscriptionCommand(input); const response = await client.send(command);
CreateSpotDatafeedSubscriptionCommandInput for command's
input
shape.CreateSpotDatafeedSubscriptionCommandOutput for command's
response
shape.config for EC2Client's
config
shape.