Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateSpotDatafeedSubscriptionCommand

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.

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);
see

CreateSpotDatafeedSubscriptionCommandInput for command's input shape.

see

CreateSpotDatafeedSubscriptionCommandOutput for command's response shape.

see

config for EC2Client's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateSpotDatafeedSubscriptionCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions