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 { CreateCommandRequest, CreateCommandResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateCommandCommand}. */ export interface CreateCommandCommandInput extends CreateCommandRequest { } /** * @public * * The output of {@link CreateCommandCommand}. */ export interface CreateCommandCommandOutput extends CreateCommandResponse, __MetadataBearer { } declare const CreateCommandCommand_base: { new (input: CreateCommandCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateCommandCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates a command. A command contains reusable configurations that can be applied * before they are sent to the devices.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTClient, CreateCommandCommand } from "@aws-sdk/client-iot"; // ES Modules import * // const { IoTClient, CreateCommandCommand } = 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 = { // CreateCommandRequest * commandId: "STRING_VALUE", // required * namespace: "AWS-IoT" || "AWS-IoT-FleetWise", * displayName: "STRING_VALUE", * description: "STRING_VALUE", * payload: { // CommandPayload * content: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * contentType: "STRING_VALUE", * }, * payloadTemplate: "STRING_VALUE", * preprocessor: { // CommandPreprocessor * awsJsonSubstitution: { // AwsJsonSubstitutionCommandPreprocessorConfig * outputFormat: "JSON" || "CBOR", // required * }, * }, * mandatoryParameters: [ // CommandParameterList * { // CommandParameter * name: "STRING_VALUE", // required * type: "STRING" || "INTEGER" || "DOUBLE" || "LONG" || "UNSIGNEDLONG" || "BOOLEAN" || "BINARY", * value: { // CommandParameterValue * S: "STRING_VALUE", * B: true || false, * I: Number("int"), * L: Number("long"), * D: Number("double"), * BIN: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * UL: "STRING_VALUE", * }, * defaultValue: { * S: "STRING_VALUE", * B: true || false, * I: Number("int"), * L: Number("long"), * D: Number("double"), * BIN: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * UL: "STRING_VALUE", * }, * valueConditions: [ // CommandParameterValueConditionList * { // CommandParameterValueCondition * comparisonOperator: "EQUALS" || "NOT_EQUALS" || "LESS_THAN" || "LESS_THAN_EQUALS" || "GREATER_THAN" || "GREATER_THAN_EQUALS" || "IN_SET" || "NOT_IN_SET" || "IN_RANGE" || "NOT_IN_RANGE", // required * operand: { // CommandParameterValueComparisonOperand * number: "STRING_VALUE", * numbers: [ // CommandParameterValueStringList * "STRING_VALUE", * ], * string: "STRING_VALUE", * strings: [ * "STRING_VALUE", * ], * numberRange: { // CommandParameterValueNumberRange * min: "STRING_VALUE", // required * max: "STRING_VALUE", // required * }, * }, * }, * ], * description: "STRING_VALUE", * }, * ], * roleArn: "STRING_VALUE", * tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", * }, * ], * }; * const command = new CreateCommandCommand(input); * const response = await client.send(command); * // { // CreateCommandResponse * // commandId: "STRING_VALUE", * // commandArn: "STRING_VALUE", * // }; * * ``` * * @param CreateCommandCommandInput - {@link CreateCommandCommandInput} * @returns {@link CreateCommandCommandOutput} * @see {@link CreateCommandCommandInput} for command's `input` shape. * @see {@link CreateCommandCommandOutput} 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 CreateCommandCommand extends CreateCommandCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateCommandRequest; output: CreateCommandResponse; }; sdk: { input: CreateCommandCommandInput; output: CreateCommandCommandOutput; }; }; }