@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.
20 lines (19 loc) • 657 B
JavaScript
import { __awaiter, __generator } from "tslib";
export var defaultUserAgent = function (_a) {
var serviceId = _a.serviceId, clientVersion = _a.clientVersion;
return function () { return __awaiter(void 0, void 0, void 0, function () {
var sections;
return __generator(this, function (_a) {
sections = [
["aws-sdk-js", clientVersion],
["os/other"],
["lang/js"],
["md/rn"],
];
if (serviceId) {
sections.push(["api/" + serviceId, clientVersion]);
}
return [2, sections];
});
}); };
};