"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var aws_iot_device_sdk_1 = require("aws-iot-device-sdk");
exports.mqttClient = function (_a) {
    var caCert = _a.caCert, clientCert = _a.clientCert, privateKey = _a.privateKey, id = _a.id, endpoint = _a.endpoint;
    return new aws_iot_device_sdk_1.device({
        privateKey: privateKey,
        clientCert: clientCert,
        caCert: caCert,
        clientId: id,
        host: endpoint,
        region: endpoint.split('.')[2],
        debug: false,
    });
};
