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.

10 lines (9 loc) 748 B
import { __assign } from "tslib"; import { EndpointCache } from "@aws-sdk/endpoint-cache"; export var resolveEndpointDiscoveryConfig = function (input, _a) { var _b; var endpointDiscoveryCommandCtor = _a.endpointDiscoveryCommandCtor; return (__assign(__assign({}, input), { endpointDiscoveryCommandCtor: endpointDiscoveryCommandCtor, endpointCache: new EndpointCache((_b = input.endpointCacheSize) !== null && _b !== void 0 ? _b : 1000), endpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== undefined ? function () { return Promise.resolve(input.endpointDiscoveryEnabled); } : input.endpointDiscoveryEnabledProvider, isClientEndpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== undefined })); };