import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import type { CreatePackageRequest, CreatePackageResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreatePackageCommand}. */ export interface CreatePackageCommandInput extends CreatePackageRequest { } /** * @public * * The output of {@link CreatePackageCommand}. */ export interface CreatePackageCommandOutput extends CreatePackageResponse, __MetadataBearer { } declare const CreatePackageCommand_base: { new (input: CreatePackageCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreatePackageCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates an IoT software package that can be deployed to your fleet.

*

Requires permission to access the CreatePackage and GetIndexingConfiguration actions.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, CreatePackageCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, CreatePackageCommand } = require("@aws-sdk/client-iot"); // CommonJS import * // import type { IoTClientConfig } from "@aws-sdk/client-iot"; * const config = {}; // type is IoTClientConfig * const client = new IoTClient(config); * const input = { // CreatePackageRequest * packageName: "STRING_VALUE", // required * description: "STRING_VALUE", * tags: { // TagMap * "": "STRING_VALUE", * }, * clientToken: "STRING_VALUE", * }; * const command = new CreatePackageCommand(input); * const response = await client.send(command); * // { // CreatePackageResponse * // packageName: "STRING_VALUE", * // packageArn: "STRING_VALUE", * // description: "STRING_VALUE", * // }; * * ``` * * @param CreatePackageCommandInput - {@link CreatePackageCommandInput} * @returns {@link CreatePackageCommandOutput} * @see {@link CreatePackageCommandInput} for command's `input` shape. * @see {@link CreatePackageCommandOutput} for command's `response` shape. * @see {@link IoTClientResolvedConfig | config} for IoTClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

The request conflicts with the current state of the resource.

* * @throws {@link InternalServerException} (server fault) *

Internal error from the service that indicates an unexpected error or that the service * is unavailable.

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

Service quota has been exceeded.

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

The rate exceeds the limit.

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

The request is not valid.

* * @throws {@link IoTServiceException} *

Base exception class for all service exceptions from IoT service.

* * * @public */ export declare class CreatePackageCommand extends CreatePackageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreatePackageRequest; output: CreatePackageResponse; }; sdk: { input: CreatePackageCommandInput; output: CreatePackageCommandOutput; }; }; }