import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateManagedThingRequest, CreateManagedThingResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateManagedThingCommand}. */ export interface CreateManagedThingCommandInput extends CreateManagedThingRequest { } /** * @public * * The output of {@link CreateManagedThingCommand}. */ export interface CreateManagedThingCommandOutput extends CreateManagedThingResponse, __MetadataBearer { } declare const CreateManagedThingCommand_base: { new (input: CreateManagedThingCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateManagedThingCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a managed thing. A managed thing contains the device identifier, protocol supported, and capabilities of the device in a data model format defined by Managed integrations.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTManagedIntegrationsClient, CreateManagedThingCommand } from "@aws-sdk/client-iot-managed-integrations"; // ES Modules import * // const { IoTManagedIntegrationsClient, CreateManagedThingCommand } = require("@aws-sdk/client-iot-managed-integrations"); // CommonJS import * // import type { IoTManagedIntegrationsClientConfig } from "@aws-sdk/client-iot-managed-integrations"; * const config = {}; // type is IoTManagedIntegrationsClientConfig * const client = new IoTManagedIntegrationsClient(config); * const input = { // CreateManagedThingRequest * Role: "CONTROLLER" || "DEVICE", // required * Owner: "STRING_VALUE", * CredentialLockerId: "STRING_VALUE", * AuthenticationMaterial: "STRING_VALUE", // required * AuthenticationMaterialType: "CUSTOM_PROTOCOL_QR_BAR_CODE" || "WIFI_SETUP_QR_BAR_CODE" || "ZWAVE_QR_BAR_CODE" || "ZIGBEE_QR_BAR_CODE" || "DISCOVERED_DEVICE" || "PRE_ONBOARDED_CLOUD", // required * WiFiSimpleSetupConfiguration: { // WiFiSimpleSetupConfiguration * EnableAsProvisioner: true || false, * EnableAsProvisionee: true || false, * TimeoutInMinutes: Number("int"), * }, * SerialNumber: "STRING_VALUE", * Brand: "STRING_VALUE", * Model: "STRING_VALUE", * Name: "STRING_VALUE", * CapabilityReport: { // CapabilityReport * version: "STRING_VALUE", // required * nodeId: "STRING_VALUE", * endpoints: [ // CapabilityReportEndpoints // required * { // CapabilityReportEndpoint * id: "STRING_VALUE", // required * deviceTypes: [ // DeviceTypes // required * "STRING_VALUE", * ], * capabilities: [ // CapabilityReportCapabilities // required * { // CapabilityReportCapability * id: "STRING_VALUE", // required * name: "STRING_VALUE", // required * version: "STRING_VALUE", // required * properties: [ // CapabilityReportProperties // required * "STRING_VALUE", * ], * actions: [ // CapabilityReportActions // required * "STRING_VALUE", * ], * events: [ // CapabilityReportEvents // required * "STRING_VALUE", * ], * }, * ], * }, * ], * }, * CapabilitySchemas: [ // CapabilitySchemas * { // CapabilitySchemaItem * Format: "AWS" || "ZCL" || "CONNECTOR", // required * CapabilityId: "STRING_VALUE", // required * ExtrinsicId: "STRING_VALUE", // required * ExtrinsicVersion: Number("int"), // required * Schema: "DOCUMENT_VALUE", // required * }, * ], * Capabilities: "STRING_VALUE", * ClientToken: "STRING_VALUE", * Classification: "STRING_VALUE", * Tags: { // TagsMap * "": "STRING_VALUE", * }, * MetaData: { // MetaData * "": "STRING_VALUE", * }, * }; * const command = new CreateManagedThingCommand(input); * const response = await client.send(command); * // { // CreateManagedThingResponse * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // CreatedAt: new Date("TIMESTAMP"), * // }; * * ``` * * @param CreateManagedThingCommandInput - {@link CreateManagedThingCommandInput} * @returns {@link CreateManagedThingCommandOutput} * @see {@link CreateManagedThingCommandInput} for command's `input` shape. * @see {@link CreateManagedThingCommandOutput} for command's `response` shape. * @see {@link IoTManagedIntegrationsClientResolvedConfig | config} for IoTManagedIntegrationsClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

User is not authorized.

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

There is a conflict with the request.

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

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

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

The specified resource does not exist.

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

The service is temporarily unavailable.

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

The rate exceeds the limit.

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

You are not authorized to perform this operation.

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

A validation error occurred when performing the API request.

* * @throws {@link IoTManagedIntegrationsServiceException} *

Base exception class for all service exceptions from IoTManagedIntegrations service.

* * * @public */ export declare class CreateManagedThingCommand extends CreateManagedThingCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateManagedThingRequest; output: CreateManagedThingResponse; }; sdk: { input: CreateManagedThingCommandInput; output: CreateManagedThingCommandOutput; }; }; }