- 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.
UpdateLongTermPricingCommand
Updates the long-term pricing type.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { SnowballClient, UpdateLongTermPricingCommand } from "@aws-sdk/client-snowball"; // ES Modules import
// const { SnowballClient, UpdateLongTermPricingCommand } = require("@aws-sdk/client-snowball"); // CommonJS import
const client = new SnowballClient(config);
const input = { // UpdateLongTermPricingRequest
LongTermPricingId: "STRING_VALUE", // required
ReplacementJob: "STRING_VALUE",
IsLongTermPricingAutoRenew: true || false,
};
const command = new UpdateLongTermPricingCommand(input);
const response = await client.send(command);
// {};
UpdateLongTermPricingCommand Input
See UpdateLongTermPricingCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
LongTermPricingId Required | string | undefined | The ID of the long-term pricing type for the device. |
IsLongTermPricingAutoRenew | boolean | undefined | If set to |
ReplacementJob | string | undefined | Specifies that a device that is ordered with long-term pricing should be replaced with a new device. |
UpdateLongTermPricingCommand Output
See UpdateLongTermPricingCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
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. |