import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IoTEventsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTEventsClient"; import type { CreateInputRequest, CreateInputResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateInputCommand}. */ export interface CreateInputCommandInput extends CreateInputRequest { } /** * @public * * The output of {@link CreateInputCommand}. */ export interface CreateInputCommandOutput extends CreateInputResponse, __MetadataBearer { } declare const CreateInputCommand_base: { new (input: CreateInputCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateInputCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Creates an input.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTEventsClient, CreateInputCommand } from "@aws-sdk/client-iot-events"; // ES Modules import * // const { IoTEventsClient, CreateInputCommand } = require("@aws-sdk/client-iot-events"); // CommonJS import * // import type { IoTEventsClientConfig } from "@aws-sdk/client-iot-events"; * const config = {}; // type is IoTEventsClientConfig * const client = new IoTEventsClient(config); * const input = { // CreateInputRequest * inputName: "STRING_VALUE", // required * inputDescription: "STRING_VALUE", * inputDefinition: { // InputDefinition * attributes: [ // Attributes // required * { // Attribute * jsonPath: "STRING_VALUE", // required * }, * ], * }, * tags: [ // Tags * { // Tag * key: "STRING_VALUE", // required * value: "STRING_VALUE", // required * }, * ], * }; * const command = new CreateInputCommand(input); * const response = await client.send(command); * // { // CreateInputResponse * // inputConfiguration: { // InputConfiguration * // inputName: "STRING_VALUE", // required * // inputDescription: "STRING_VALUE", * // inputArn: "STRING_VALUE", // required * // creationTime: new Date("TIMESTAMP"), // required * // lastUpdateTime: new Date("TIMESTAMP"), // required * // status: "CREATING" || "UPDATING" || "ACTIVE" || "DELETING", // required * // }, * // }; * * ``` * * @param CreateInputCommandInput - {@link CreateInputCommandInput} * @returns {@link CreateInputCommandOutput} * @see {@link CreateInputCommandInput} for command's `input` shape. * @see {@link CreateInputCommandOutput} for command's `response` shape. * @see {@link IoTEventsClientResolvedConfig | config} for IoTEventsClient's `config` shape. * * @throws {@link InternalFailureException} (server fault) *

An internal failure occurred.

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

The request was invalid.

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

The resource already exists.

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

The service is currently unavailable.

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

The request could not be completed due to throttling.

* * @throws {@link IoTEventsServiceException} *

Base exception class for all service exceptions from IoTEvents service.

* * * @public */ export declare class CreateInputCommand extends CreateInputCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateInputRequest; output: CreateInputResponse; }; sdk: { input: CreateInputCommandInput; output: CreateInputCommandOutput; }; }; }