import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IoTWirelessClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTWirelessClient"; import type { CreateWirelessDeviceRequest, CreateWirelessDeviceResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateWirelessDeviceCommand}. */ export interface CreateWirelessDeviceCommandInput extends CreateWirelessDeviceRequest { } /** * @public * * The output of {@link CreateWirelessDeviceCommand}. */ export interface CreateWirelessDeviceCommandOutput extends CreateWirelessDeviceResponse, __MetadataBearer { } declare const CreateWirelessDeviceCommand_base: { new (input: CreateWirelessDeviceCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateWirelessDeviceCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Provisions a wireless device.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IoTWirelessClient, CreateWirelessDeviceCommand } from "@aws-sdk/client-iot-wireless"; // ES Modules import * // const { IoTWirelessClient, CreateWirelessDeviceCommand } = require("@aws-sdk/client-iot-wireless"); // CommonJS import * // import type { IoTWirelessClientConfig } from "@aws-sdk/client-iot-wireless"; * const config = {}; // type is IoTWirelessClientConfig * const client = new IoTWirelessClient(config); * const input = { // CreateWirelessDeviceRequest * Type: "Sidewalk" || "LoRaWAN", // required * Name: "STRING_VALUE", * Description: "STRING_VALUE", * DestinationName: "STRING_VALUE", // required * ClientRequestToken: "STRING_VALUE", * LoRaWAN: { // LoRaWANDevice * DevEui: "STRING_VALUE", * DeviceProfileId: "STRING_VALUE", * ServiceProfileId: "STRING_VALUE", * OtaaV1_1: { // OtaaV1_1 * AppKey: "STRING_VALUE", * NwkKey: "STRING_VALUE", * JoinEui: "STRING_VALUE", * }, * OtaaV1_0_x: { // OtaaV1_0_x * AppKey: "STRING_VALUE", * AppEui: "STRING_VALUE", * JoinEui: "STRING_VALUE", * GenAppKey: "STRING_VALUE", * }, * AbpV1_1: { // AbpV1_1 * DevAddr: "STRING_VALUE", * SessionKeys: { // SessionKeysAbpV1_1 * FNwkSIntKey: "STRING_VALUE", * SNwkSIntKey: "STRING_VALUE", * NwkSEncKey: "STRING_VALUE", * AppSKey: "STRING_VALUE", * }, * FCntStart: Number("int"), * }, * AbpV1_0_x: { // AbpV1_0_x * DevAddr: "STRING_VALUE", * SessionKeys: { // SessionKeysAbpV1_0_x * NwkSKey: "STRING_VALUE", * AppSKey: "STRING_VALUE", * }, * FCntStart: Number("int"), * }, * FPorts: { // FPorts * Fuota: Number("int"), * Multicast: Number("int"), * ClockSync: Number("int"), * Positioning: { // Positioning * ClockSync: Number("int"), * Stream: Number("int"), * Gnss: Number("int"), * }, * Applications: [ // Applications * { // ApplicationConfig * FPort: Number("int"), * Type: "SemtechGeolocation", * DestinationName: "STRING_VALUE", * }, * ], * }, * }, * Tags: [ // TagList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", // required * }, * ], * Positioning: "Enabled" || "Disabled", * Sidewalk: { // SidewalkCreateWirelessDevice * DeviceProfileId: "STRING_VALUE", * Positioning: { // SidewalkPositioning * DestinationName: "STRING_VALUE", * }, * SidewalkManufacturingSn: "STRING_VALUE", * }, * }; * const command = new CreateWirelessDeviceCommand(input); * const response = await client.send(command); * // { // CreateWirelessDeviceResponse * // Arn: "STRING_VALUE", * // Id: "STRING_VALUE", * // }; * * ``` * * @param CreateWirelessDeviceCommandInput - {@link CreateWirelessDeviceCommandInput} * @returns {@link CreateWirelessDeviceCommandOutput} * @see {@link CreateWirelessDeviceCommandInput} for command's `input` shape. * @see {@link CreateWirelessDeviceCommandOutput} for command's `response` shape. * @see {@link IoTWirelessClientResolvedConfig | config} for IoTWirelessClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

User does not have permission to perform this action.

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

Adding, updating, or deleting the resource can cause an inconsistent state.

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

An unexpected error occurred while processing a request.

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

Resource does not exist.

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

The request was denied because it exceeded the allowed API request rate.

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

The input did not meet the specified constraints.

* * @throws {@link IoTWirelessServiceException} *

Base exception class for all service exceptions from IoTWireless service.

* * * @public */ export declare class CreateWirelessDeviceCommand extends CreateWirelessDeviceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateWirelessDeviceRequest; output: CreateWirelessDeviceResponse; }; sdk: { input: CreateWirelessDeviceCommandInput; output: CreateWirelessDeviceCommandOutput; }; }; }