@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.
18 lines (17 loc) • 857 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveEndpointDiscoveryConfig = void 0;
const endpoint_cache_1 = require("@aws-sdk/endpoint-cache");
const resolveEndpointDiscoveryConfig = (input, { endpointDiscoveryCommandCtor }) => {
var _a;
return ({
...input,
endpointDiscoveryCommandCtor,
endpointCache: new endpoint_cache_1.EndpointCache((_a = input.endpointCacheSize) !== null && _a !== void 0 ? _a : 1000),
endpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== undefined
? () => Promise.resolve(input.endpointDiscoveryEnabled)
: input.endpointDiscoveryEnabledProvider,
isClientEndpointDiscoveryEnabled: input.endpointDiscoveryEnabled !== undefined,
});
};
exports.resolveEndpointDiscoveryConfig = resolveEndpointDiscoveryConfig;