@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.
24 lines (23 loc) • 1.25 kB
JavaScript
import { __assign } from "tslib";
import { endpointDiscoveryMiddleware } from "./endpointDiscoveryMiddleware";
export var endpointDiscoveryMiddlewareOptions = {
name: "endpointDiscoveryMiddleware",
step: "build",
tags: ["ENDPOINT_DISCOVERY"],
override: true,
};
export var getEndpointDiscoveryPlugin = function (pluginConfig, middlewareConfig) { return ({
applyToStack: function (commandStack) {
commandStack.add(endpointDiscoveryMiddleware(pluginConfig, middlewareConfig), endpointDiscoveryMiddlewareOptions);
},
}); };
export var getEndpointDiscoveryRequiredPlugin = function (pluginConfig, middlewareConfig) { return ({
applyToStack: function (commandStack) {
commandStack.add(endpointDiscoveryMiddleware(pluginConfig, __assign(__assign({}, middlewareConfig), { isDiscoveredEndpointRequired: true })), endpointDiscoveryMiddlewareOptions);
},
}); };
export var getEndpointDiscoveryOptionalPlugin = function (pluginConfig, middlewareConfig) { return ({
applyToStack: function (commandStack) {
commandStack.add(endpointDiscoveryMiddleware(pluginConfig, __assign(__assign({}, middlewareConfig), { isDiscoveredEndpointRequired: false })), endpointDiscoveryMiddlewareOptions);
},
}); };