UNPKG

@softchef/cdk-iot-device-management

Version:

IoT device management is composed of things, thing types, thing groups, jobs, files API services. The constructs can be used independently, that are based on full-managed service to create an API Gateway & Lambda function.

12 lines (11 loc) 578 B
import { __awaiter, __generator } from "tslib"; import { fromStatic as convertToProvider } from "@aws-sdk/property-provider"; var isFunction = function (func) { return typeof func === "function"; }; export var fromStatic = function (defaultValue) { return isFunction(defaultValue) ? function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) { switch (_a.label) { case 0: return [4, defaultValue()]; case 1: return [2, _a.sent()]; } }); }); } : convertToProvider(defaultValue); };