import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeviceFarmClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DeviceFarmClient"; import type { RenewOfferingRequest, RenewOfferingResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link RenewOfferingCommand}. */ export interface RenewOfferingCommandInput extends RenewOfferingRequest { } /** * @public * * The output of {@link RenewOfferingCommand}. */ export interface RenewOfferingCommandOutput extends RenewOfferingResult, __MetadataBearer { } declare const RenewOfferingCommand_base: { new (input: RenewOfferingCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: RenewOfferingCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Explicitly sets the quantity of devices to renew for an offering, starting from the * effectiveDate of the next period. The API returns a NotEligible error if the * user is not permitted to invoke the operation. If you must be able to invoke this operation, contact aws-devicefarm-support@amazon.com.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DeviceFarmClient, RenewOfferingCommand } from "@aws-sdk/client-device-farm"; // ES Modules import * // const { DeviceFarmClient, RenewOfferingCommand } = require("@aws-sdk/client-device-farm"); // CommonJS import * // import type { DeviceFarmClientConfig } from "@aws-sdk/client-device-farm"; * const config = {}; // type is DeviceFarmClientConfig * const client = new DeviceFarmClient(config); * const input = { // RenewOfferingRequest * offeringId: "STRING_VALUE", // required * quantity: Number("int"), // required * }; * const command = new RenewOfferingCommand(input); * const response = await client.send(command); * // { // RenewOfferingResult * // offeringTransaction: { // OfferingTransaction * // offeringStatus: { // OfferingStatus * // type: "PURCHASE" || "RENEW" || "SYSTEM", * // offering: { // Offering * // id: "STRING_VALUE", * // description: "STRING_VALUE", * // type: "RECURRING", * // platform: "ANDROID" || "IOS", * // recurringCharges: [ // RecurringCharges * // { // RecurringCharge * // cost: { // MonetaryAmount * // amount: Number("double"), * // currencyCode: "USD", * // }, * // frequency: "MONTHLY", * // }, * // ], * // }, * // quantity: Number("int"), * // effectiveOn: new Date("TIMESTAMP"), * // }, * // transactionId: "STRING_VALUE", * // offeringPromotionId: "STRING_VALUE", * // createdOn: new Date("TIMESTAMP"), * // cost: { * // amount: Number("double"), * // currencyCode: "USD", * // }, * // }, * // }; * * ``` * * @param RenewOfferingCommandInput - {@link RenewOfferingCommandInput} * @returns {@link RenewOfferingCommandOutput} * @see {@link RenewOfferingCommandInput} for command's `input` shape. * @see {@link RenewOfferingCommandOutput} for command's `response` shape. * @see {@link DeviceFarmClientResolvedConfig | config} for DeviceFarmClient's `config` shape. * * @throws {@link ArgumentException} (client fault) *

An invalid argument was specified.

* * @throws {@link LimitExceededException} (client fault) *

A limit was exceeded.

* * @throws {@link NotEligibleException} (client fault) *

Exception gets thrown when a user is not eligible to perform the specified * transaction.

* * @throws {@link NotFoundException} (client fault) *

The specified entity was not found.

* * @throws {@link ServiceAccountException} (client fault) *

There was a problem with the service account.

* * @throws {@link DeviceFarmServiceException} *

Base exception class for all service exceptions from DeviceFarm service.

* * * @public */ export declare class RenewOfferingCommand extends RenewOfferingCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RenewOfferingRequest; output: RenewOfferingResult; }; sdk: { input: RenewOfferingCommandInput; output: RenewOfferingCommandOutput; }; }; }