/var/runtime/node_modules/@aws-sdk/client-iotfleethub/dist-cjs
This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.
"use strict";var __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, { ApplicationState: () => ApplicationState, ConflictException: () => ConflictException, CreateApplicationCommand: () => CreateApplicationCommand, DeleteApplicationCommand: () => DeleteApplicationCommand, DescribeApplicationCommand: () => DescribeApplicationCommand, InternalFailureException: () => InternalFailureException, InvalidRequestException: () => InvalidRequestException, IoTFleetHub: () => IoTFleetHub, IoTFleetHubClient: () => IoTFleetHubClient, IoTFleetHubServiceException: () => IoTFleetHubServiceException, LimitExceededException: () => LimitExceededException, ListApplicationsCommand: () => ListApplicationsCommand, ListTagsForResourceCommand: () => ListTagsForResourceCommand, ResourceNotFoundException: () => ResourceNotFoundException, TagResourceCommand: () => TagResourceCommand, ThrottlingException: () => ThrottlingException, UntagResourceCommand: () => UntagResourceCommand, UpdateApplicationCommand: () => UpdateApplicationCommand, __Client: () => import_smithy_client.Client, paginateListApplications: () => paginateListApplications});module.exports = __toCommonJS(index_exports); // src/IoTFleetHubClient.tsvar import_middleware_host_header = require("@aws-sdk/middleware-host-header");var import_middleware_logger = require("@aws-sdk/middleware-logger");var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");var import_config_resolver = require("@smithy/config-resolver");var import_core = require("@smithy/core");var import_middleware_content_length = require("@smithy/middleware-content-length");var import_middleware_endpoint = require("@smithy/middleware-endpoint");var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "iotfleethub" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/IoTFleetHubClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar import_region_config_resolver = require("@aws-sdk/region-config-resolver");var import_protocol_http = require("@smithy/protocol-http");var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.tsvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } };}, "getHttpAuthExtensionConfiguration");var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() };}, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign( (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig) ); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign( runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration) );}, "resolveRuntimeExtensions"); // src/IoTFleetHubClient.tsvar IoTFleetHubClient = class extends import_smithy_client.Client { static { __name(this, "IoTFleetHubClient"); } /** * The resolved configuration of IoTFleetHubClient class. This is resolved and normalized from the {@link IoTFleetHubClientConfig | constructor configuration interface}. */ config; constructor(...[configuration]) { const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultIoTFleetHubHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }), "identityProviderConfigProvider") }) ); this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. * Otherwise, sockets might stay open for quite a long time before the server terminates them. */ destroy() { super.destroy(); }}; // src/IoTFleetHub.ts // src/commands/CreateApplicationCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core"); var import_uuid = require("uuid"); // src/models/IoTFleetHubServiceException.ts var IoTFleetHubServiceException = class _IoTFleetHubServiceException extends import_smithy_client.ServiceException { static { __name(this, "IoTFleetHubServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _IoTFleetHubServiceException.prototype); }}; // src/models/models_0.tsvar ApplicationState = { ACTIVE: "ACTIVE", CREATE_FAILED: "CREATE_FAILED", CREATING: "CREATING", DELETE_FAILED: "DELETE_FAILED", DELETING: "DELETING"};var InternalFailureException = class _InternalFailureException extends IoTFleetHubServiceException { static { __name(this, "InternalFailureException"); } name = "InternalFailureException"; $fault = "server"; /** * @internal */ constructor(opts) { super({ name: "InternalFailureException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalFailureException.prototype); }};var InvalidRequestException = class _InvalidRequestException extends IoTFleetHubServiceException { static { __name(this, "InvalidRequestException"); } name = "InvalidRequestException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "InvalidRequestException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidRequestException.prototype); }};var LimitExceededException = class _LimitExceededException extends IoTFleetHubServiceException { static { __name(this, "LimitExceededException"); } name = "LimitExceededException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "LimitExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _LimitExceededException.prototype); }};var ThrottlingException = class _ThrottlingException extends IoTFleetHubServiceException { static { __name(this, "ThrottlingException"); } name = "ThrottlingException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ThrottlingException.prototype); }};var ResourceNotFoundException = class _ResourceNotFoundException extends IoTFleetHubServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); }};var ConflictException = class _ConflictException extends IoTFleetHubServiceException { static { __name(this, "ConflictException"); } name = "ConflictException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ConflictException.prototype); }}; // src/protocols/Aws_restJson1.tsvar se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/applications"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { applicationDescription: [], applicationName: [], clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], roleArn: [], tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CreateApplicationCommand");var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/applications/{applicationId}"); b.p("applicationId", () => input.applicationId, "{applicationId}", false); const query = (0, import_smithy_client.map)({ [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()] }); let body; b.m("DELETE").h(headers).q(query).b(body); return b.build();}, "se_DeleteApplicationCommand");var se_DescribeApplicationCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/applications/{applicationId}"); b.p("applicationId", () => input.applicationId, "{applicationId}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_DescribeApplicationCommand");var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/applications"); const query = (0, import_smithy_client.map)({ [_nT]: [, input[_nT]] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_ListApplicationsCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/tags/{resourceArn}"); b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_ListTagsForResourceCommand");var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/tags/{resourceArn}"); b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_TagResourceCommand");var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/tags/{resourceArn}"); b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false); const query = (0, import_smithy_client.map)({ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []] }); let body; b.m("DELETE").h(headers).q(query).b(body); return b.build();}, "se_UntagResourceCommand");var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/applications/{applicationId}"); b.p("applicationId", () => input.applicationId, "{applicationId}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { applicationDescription: [], applicationName: [], clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()] }) ); b.m("PATCH").h(headers).b(body); return b.build();}, "se_UpdateApplicationCommand");var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 201 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { applicationArn: import_smithy_client.expectString, applicationId: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_CreateApplicationCommand");var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 204 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_DeleteApplicationCommand");var de_DescribeApplicationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { applicationArn: import_smithy_client.expectString, applicationCreationDate: import_smithy_client.expectLong, applicationDescription: import_smithy_client.expectString, applicationId: import_smithy_client.expectString, applicationLastUpdateDate: import_smithy_client.expectLong, applicationName: import_smithy_client.expectString, applicationState: import_smithy_client.expectString, applicationUrl: import_smithy_client.expectString, errorMessage: import_smithy_client.expectString, roleArn: import_smithy_client.expectString, ssoClientId: import_smithy_client.expectString, tags: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_DescribeApplicationCommand");var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { applicationSummaries: import_smithy_client._json, nextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_ListApplicationsCommand");var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { tags: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_ListTagsForResourceCommand");var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_TagResourceCommand");var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_UntagResourceCommand");var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 202 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_UpdateApplicationCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core2.parseJsonErrorBody)(output.body, context) }; const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "InternalFailureException": case "com.amazonaws.iotfleethub#InternalFailureException": throw await de_InternalFailureExceptionRes(parsedOutput, context); case "InvalidRequestException": case "com.amazonaws.iotfleethub#InvalidRequestException": throw await de_InvalidRequestExceptionRes(parsedOutput, context); case "LimitExceededException": case "com.amazonaws.iotfleethub#LimitExceededException": throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.iotfleethub#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.iotfleethub#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.iotfleethub#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTFleetHubServiceException);var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ConflictException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ConflictExceptionRes");var de_InternalFailureExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new InternalFailureException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalFailureExceptionRes");var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new InvalidRequestException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InvalidRequestExceptionRes");var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new LimitExceededException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_LimitExceededExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ResourceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ResourceNotFoundExceptionRes");var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ThrottlingException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ThrottlingExceptionRes");var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"]}), "deserializeMetadata");var _cT = "clientToken";var _nT = "nextToken";var _tK = "tagKeys"; // src/commands/CreateApplicationCommand.tsvar CreateApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSIoTFleetHub", "CreateApplication", {}).n("IoTFleetHubClient", "CreateApplicationCommand").f(void 0, void 0).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() { static { __name(this, "CreateApplicationCommand"); }}; // src/commands/DeleteApplicationCommand.ts var DeleteApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSIoTFleetHub", "DeleteApplication", {}).n("IoTFleetHubClient", "DeleteApplicationCommand").f(void 0, void 0).ser(se_DeleteApplicationCommand).de(de_DeleteApplicationCommand).build() { static { __name(this, "DeleteApplicationCommand"); }}; // src/commands/DescribeApplicationCommand.ts var DescribeApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSIoTFleetHub", "DescribeApplication", {}).n("IoTFleetHubClient", "DescribeApplicationCommand").f(void 0, void 0).ser(se_DescribeApplicationCommand).de(de_DescribeApplicationCommand).build() { static { __name(this, "DescribeApplicationCommand"); }}; // src/commands/ListApplicationsCommand.ts var ListApplicationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSIoTFleetHub", "ListApplications", {}).n("IoTFleetHubClient", "ListApplicationsCommand").f(void 0, void 0).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() { static { __name(this, "ListApplicationsCommand"); }}; // src/commands/ListTagsForResourceCommand.ts var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSIoTFleetHub", "ListTagsForResource", {}).n("IoTFleetHubClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() { static { __name(this, "ListTagsForResourceCommand"); }}; // src/commands/TagResourceCommand.ts var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSIoTFleetHub", "TagResource", {}).n("IoTFleetHubClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() { static { __name(this, "TagResourceCommand"); }}; // src/commands/UntagResourceCommand.ts var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSIoTFleetHub", "UntagResource", {}).n("IoTFleetHubClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/commands/UpdateApplicationCommand.ts var UpdateApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSIoTFleetHub", "UpdateApplication", {}).n("IoTFleetHubClient", "UpdateApplicationCommand").f(void 0, void 0).ser(se_UpdateApplicationCommand).de(de_UpdateApplicationCommand).build() { static { __name(this, "UpdateApplicationCommand"); }}; // src/IoTFleetHub.tsvar commands = { CreateApplicationCommand, DeleteApplicationCommand, DescribeApplicationCommand, ListApplicationsCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateApplicationCommand};var IoTFleetHub = class extends IoTFleetHubClient { static { __name(this, "IoTFleetHub"); }};(0, import_smithy_client.createAggregatedClient)(commands, IoTFleetHub); // src/pagination/ListApplicationsPaginator.ts var paginateListApplications = (0, import_core.createPaginator)(IoTFleetHubClient, ListApplicationsCommand, "nextToken", "nextToken", "");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { IoTFleetHubServiceException, __Client, IoTFleetHubClient, IoTFleetHub, $Command, CreateApplicationCommand, DeleteApplicationCommand, DescribeApplicationCommand, ListApplicationsCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateApplicationCommand, paginateListApplications, ApplicationState, InternalFailureException, InvalidRequestException, LimitExceededException, ThrottlingException, ResourceNotFoundException, ConflictException});