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.

39 lines (38 loc) 2.09 kB
import { __extends } from "tslib"; import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver"; import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length"; import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header"; import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; import { getOmitRetryHeadersPlugin, getRetryPlugin, resolveRetryConfig, } from "@aws-sdk/middleware-retry"; import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing"; import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent"; import { Client as __Client, } from "@aws-sdk/smithy-client"; import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; var IoTClient = (function (_super) { __extends(IoTClient, _super); function IoTClient(configuration) { var _this = this; var _config_0 = __getRuntimeConfig(configuration); var _config_1 = resolveRegionConfig(_config_0); var _config_2 = resolveEndpointsConfig(_config_1); var _config_3 = resolveRetryConfig(_config_2); var _config_4 = resolveHostHeaderConfig(_config_3); var _config_5 = resolveAwsAuthConfig(_config_4); var _config_6 = resolveUserAgentConfig(_config_5); _this = _super.call(this, _config_6) || this; _this.config = _config_6; _this.middlewareStack.use(getRetryPlugin(_this.config)); _this.middlewareStack.use(getContentLengthPlugin(_this.config)); _this.middlewareStack.use(getHostHeaderPlugin(_this.config)); _this.middlewareStack.use(getLoggerPlugin(_this.config)); _this.middlewareStack.use(getAwsAuthPlugin(_this.config)); _this.middlewareStack.use(getUserAgentPlugin(_this.config)); _this.middlewareStack.use(getOmitRetryHeadersPlugin(_this.config)); return _this; } IoTClient.prototype.destroy = function () { _super.prototype.destroy.call(this); }; return IoTClient; }(__Client)); export { IoTClient };