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

Parameter
Type
Description
LongTermPricingId
Required
string | undefined

The ID of the long-term pricing type for the device.

IsLongTermPricingAutoRenew
boolean | undefined

If set to true, specifies that the current long-term pricing type for the device should be automatically renewed before the long-term pricing contract expires.

ReplacementJob
string | undefined

Specifies that a device that is ordered with long-term pricing should be replaced with a new device.

UpdateLongTermPricingCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

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.