UNPKG

@aws-sdk/client-iot

Version:

AWS SDK for JavaScript Iot Client for Node.js, Browser and React Native

85 lines (84 loc) 3.69 kB
import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient"; import { 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/smithy-client").CommandImpl<CreatePackageCommandInput, CreatePackageCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; new (__0_0: CreatePackageCommandInput): import("@smithy/smithy-client").CommandImpl<CreatePackageCommandInput, CreatePackageCommandOutput, IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** * <p>Creates an IoT software package that can be deployed to your fleet.</p> * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreatePackage</a> and <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetIndexingConfiguration</a> actions.</p> * @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 * const client = new IoTClient(config); * const input = { // CreatePackageRequest * packageName: "STRING_VALUE", // required * description: "STRING_VALUE", * tags: { // TagMap * "<keys>": "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) * <p>A resource with the same name already exists.</p> * * @throws {@link InternalServerException} (server fault) * <p>Internal error from the service that indicates an unexpected error or that the service * is unavailable.</p> * * @throws {@link ServiceQuotaExceededException} (client fault) * <p>A limit has been exceeded.</p> * * @throws {@link ThrottlingException} (client fault) * <p>The rate exceeds the limit.</p> * * @throws {@link ValidationException} (client fault) * <p>The request is not valid.</p> * * @throws {@link IoTServiceException} * <p>Base exception class for all service exceptions from IoT service.</p> * * @public */ export declare class CreatePackageCommand extends CreatePackageCommand_base { }