- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
ListLongTermPricingCommand
Lists all long-term pricing types.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { SnowballClient, ListLongTermPricingCommand } from "@aws-sdk/client-snowball"; // ES Modules import
// const { SnowballClient, ListLongTermPricingCommand } = require("@aws-sdk/client-snowball"); // CommonJS import
const client = new SnowballClient(config);
const input = { // ListLongTermPricingRequest
MaxResults: Number("int"),
NextToken: "STRING_VALUE",
};
const command = new ListLongTermPricingCommand(input);
const response = await client.send(command);
// { // ListLongTermPricingResult
// LongTermPricingEntries: [ // LongTermPricingEntryList
// { // LongTermPricingListEntry
// LongTermPricingId: "STRING_VALUE",
// LongTermPricingEndDate: new Date("TIMESTAMP"),
// LongTermPricingStartDate: new Date("TIMESTAMP"),
// LongTermPricingType: "OneYear" || "ThreeYear" || "OneMonth",
// CurrentActiveJob: "STRING_VALUE",
// ReplacementJob: "STRING_VALUE",
// IsLongTermPricingAutoRenew: true || false,
// LongTermPricingStatus: "STRING_VALUE",
// SnowballType: "STANDARD" || "EDGE" || "EDGE_C" || "EDGE_CG" || "EDGE_S" || "SNC1_HDD" || "SNC1_SSD" || "V3_5C" || "V3_5S" || "RACK_5U_C",
// JobIds: [ // LongTermPricingAssociatedJobIdList
// "STRING_VALUE",
// ],
// },
// ],
// NextToken: "STRING_VALUE",
// };
ListLongTermPricingCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
MaxResults | number | undefined | The maximum number of |
NextToken | string | undefined | Because HTTP requests are stateless, this is the starting point for your next list of |
ListLongTermPricingCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
LongTermPricingEntries | LongTermPricingListEntry[] | undefined | Each |
NextToken | string | undefined | Because HTTP requests are stateless, this is the starting point for your next list of returned |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
InvalidNextTokenException | client | The |
InvalidResourceException | client | The specified resource can't be found. Check the information you provided in your last request, and try again. |
SnowballServiceException | Base exception class for all service exceptions from Snowball service. |