/var/runtime/node_modules/@aws-sdk/client-internetmonitor/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, { AccessDeniedException: () => AccessDeniedException, BadRequestException: () => BadRequestException, ConflictException: () => ConflictException, CreateMonitorCommand: () => CreateMonitorCommand, DeleteMonitorCommand: () => DeleteMonitorCommand, GetHealthEventCommand: () => GetHealthEventCommand, GetInternetEventCommand: () => GetInternetEventCommand, GetMonitorCommand: () => GetMonitorCommand, GetQueryResultsCommand: () => GetQueryResultsCommand, GetQueryStatusCommand: () => GetQueryStatusCommand, HealthEventImpactType: () => HealthEventImpactType, HealthEventStatus: () => HealthEventStatus, InternalServerErrorException: () => InternalServerErrorException, InternalServerException: () => InternalServerException, InternetEventStatus: () => InternetEventStatus, InternetEventType: () => InternetEventType, InternetMonitor: () => InternetMonitor, InternetMonitorClient: () => InternetMonitorClient, InternetMonitorServiceException: () => InternetMonitorServiceException, LimitExceededException: () => LimitExceededException, ListHealthEventsCommand: () => ListHealthEventsCommand, ListInternetEventsCommand: () => ListInternetEventsCommand, ListMonitorsCommand: () => ListMonitorsCommand, ListTagsForResourceCommand: () => ListTagsForResourceCommand, LocalHealthEventsConfigStatus: () => LocalHealthEventsConfigStatus, LogDeliveryStatus: () => LogDeliveryStatus, MonitorConfigState: () => MonitorConfigState, MonitorProcessingStatusCode: () => MonitorProcessingStatusCode, NotFoundException: () => NotFoundException, Operator: () => Operator, QueryStatus: () => QueryStatus, QueryType: () => QueryType, ResourceNotFoundException: () => ResourceNotFoundException, StartQueryCommand: () => StartQueryCommand, StopQueryCommand: () => StopQueryCommand, TagResourceCommand: () => TagResourceCommand, ThrottlingException: () => ThrottlingException, TooManyRequestsException: () => TooManyRequestsException, TriangulationEventType: () => TriangulationEventType, UntagResourceCommand: () => UntagResourceCommand, UpdateMonitorCommand: () => UpdateMonitorCommand, ValidationException: () => ValidationException, __Client: () => import_smithy_client.Client, paginateGetQueryResults: () => paginateGetQueryResults, paginateListHealthEvents: () => paginateListHealthEvents, paginateListInternetEvents: () => paginateListInternetEvents, paginateListMonitors: () => paginateListMonitors});module.exports = __toCommonJS(index_exports); // src/InternetMonitorClient.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: "internetmonitor" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/InternetMonitorClient.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/InternetMonitorClient.tsvar InternetMonitorClient = class extends import_smithy_client.Client { static { __name(this, "InternetMonitorClient"); } /** * The resolved configuration of InternetMonitorClient class. This is resolved and normalized from the {@link InternetMonitorClientConfig | 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.defaultInternetMonitorHttpAuthSchemeParametersProvider, 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/InternetMonitor.ts // src/commands/CreateMonitorCommand.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/InternetMonitorServiceException.ts var InternetMonitorServiceException = class _InternetMonitorServiceException extends import_smithy_client.ServiceException { static { __name(this, "InternetMonitorServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _InternetMonitorServiceException.prototype); }}; // src/models/models_0.tsvar AccessDeniedException = class _AccessDeniedException extends InternetMonitorServiceException { static { __name(this, "AccessDeniedException"); } name = "AccessDeniedException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedException.prototype); }};var BadRequestException = class _BadRequestException extends InternetMonitorServiceException { static { __name(this, "BadRequestException"); } name = "BadRequestException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "BadRequestException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _BadRequestException.prototype); }};var ConflictException = class _ConflictException extends InternetMonitorServiceException { static { __name(this, "ConflictException"); } name = "ConflictException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ConflictException.prototype); }};var LocalHealthEventsConfigStatus = { DISABLED: "DISABLED", ENABLED: "ENABLED"};var LogDeliveryStatus = { DISABLED: "DISABLED", ENABLED: "ENABLED"};var MonitorConfigState = { ACTIVE: "ACTIVE", ERROR: "ERROR", INACTIVE: "INACTIVE", PENDING: "PENDING"};var InternalServerException = class _InternalServerException extends InternetMonitorServiceException { static { __name(this, "InternalServerException"); } name = "InternalServerException"; $fault = "server"; $retryable = {}; /** * @internal */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); }};var LimitExceededException = class _LimitExceededException extends InternetMonitorServiceException { 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 InternetMonitorServiceException { static { __name(this, "ThrottlingException"); } name = "ThrottlingException"; $fault = "client"; $retryable = { throttling: true }; /** * @internal */ constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ThrottlingException.prototype); }};var ValidationException = class _ValidationException extends InternetMonitorServiceException { static { __name(this, "ValidationException"); } name = "ValidationException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ValidationException.prototype); }};var Operator = { EQUALS: "EQUALS", NOT_EQUALS: "NOT_EQUALS"};var TriangulationEventType = { AWS: "AWS", INTERNET: "Internet"};var HealthEventStatus = { ACTIVE: "ACTIVE", RESOLVED: "RESOLVED"};var HealthEventImpactType = { AVAILABILITY: "AVAILABILITY", LOCAL_AVAILABILITY: "LOCAL_AVAILABILITY", LOCAL_PERFORMANCE: "LOCAL_PERFORMANCE", PERFORMANCE: "PERFORMANCE"};var InternetEventStatus = { ACTIVE: "ACTIVE", RESOLVED: "RESOLVED"};var InternetEventType = { AVAILABILITY: "AVAILABILITY", PERFORMANCE: "PERFORMANCE"};var MonitorProcessingStatusCode = { COLLECTING_DATA: "COLLECTING_DATA", FAULT_ACCESS_CLOUDWATCH: "FAULT_ACCESS_CLOUDWATCH", FAULT_SERVICE: "FAULT_SERVICE", INACTIVE: "INACTIVE", INSUFFICIENT_DATA: "INSUFFICIENT_DATA", OK: "OK"};var QueryStatus = { CANCELED: "CANCELED", FAILED: "FAILED", QUEUED: "QUEUED", RUNNING: "RUNNING", SUCCEEDED: "SUCCEEDED"};var InternalServerErrorException = class _InternalServerErrorException extends InternetMonitorServiceException { static { __name(this, "InternalServerErrorException"); } name = "InternalServerErrorException"; $fault = "server"; $retryable = {}; /** * @internal */ constructor(opts) { super({ name: "InternalServerErrorException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerErrorException.prototype); }};var NotFoundException = class _NotFoundException extends InternetMonitorServiceException { static { __name(this, "NotFoundException"); } name = "NotFoundException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "NotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _NotFoundException.prototype); }};var TooManyRequestsException = class _TooManyRequestsException extends InternetMonitorServiceException { static { __name(this, "TooManyRequestsException"); } name = "TooManyRequestsException"; $fault = "client"; $retryable = { throttling: true }; /** * @internal */ constructor(opts) { super({ name: "TooManyRequestsException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _TooManyRequestsException.prototype); }};var QueryType = { MEASUREMENTS: "MEASUREMENTS", OVERALL_TRAFFIC_SUGGESTIONS: "OVERALL_TRAFFIC_SUGGESTIONS", OVERALL_TRAFFIC_SUGGESTIONS_DETAILS: "OVERALL_TRAFFIC_SUGGESTIONS_DETAILS", ROUTING_SUGGESTIONS: "ROUTING_SUGGESTIONS", TOP_LOCATIONS: "TOP_LOCATIONS", TOP_LOCATION_DETAILS: "TOP_LOCATION_DETAILS"};var ResourceNotFoundException = class _ResourceNotFoundException extends InternetMonitorServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); }}; // src/protocols/Aws_restJson1.tsvar se_CreateMonitorCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/v20210603/Monitors"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], HealthEventsConfig: /* @__PURE__ */ __name((_) => se_HealthEventsConfig(_, context), "HealthEventsConfig"), InternetMeasurementsLogDelivery: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "InternetMeasurementsLogDelivery"), MaxCityNetworksToMonitor: [], MonitorName: [], Resources: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Resources"), Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags"), TrafficPercentageToMonitor: [] }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CreateMonitorCommand");var se_DeleteMonitorCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/v20210603/Monitors/{MonitorName}"); b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false); let body; b.m("DELETE").h(headers).b(body); return b.build();}, "se_DeleteMonitorCommand");var se_GetHealthEventCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/v20210603/Monitors/{MonitorName}/HealthEvents/{EventId}"); b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false); b.p("EventId", () => input.EventId, "{EventId}", false); const query = (0, import_smithy_client.map)({ [_LAI]: [, input[_LAI]] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_GetHealthEventCommand");var se_GetInternetEventCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/v20210603/InternetEvents/{EventId}"); b.p("EventId", () => input.EventId, "{EventId}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_GetInternetEventCommand");var se_GetMonitorCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/v20210603/Monitors/{MonitorName}"); b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false); const query = (0, import_smithy_client.map)({ [_LAI]: [, input[_LAI]] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_GetMonitorCommand");var se_GetQueryResultsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/v20210603/Monitors/{MonitorName}/Queries/{QueryId}/Results"); b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false); b.p("QueryId", () => input.QueryId, "{QueryId}", false); const query = (0, import_smithy_client.map)({ [_NT]: [, input[_NT]], [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_GetQueryResultsCommand");var se_GetQueryStatusCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/v20210603/Monitors/{MonitorName}/Queries/{QueryId}/Status"); b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false); b.p("QueryId", () => input.QueryId, "{QueryId}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_GetQueryStatusCommand");var se_ListHealthEventsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/v20210603/Monitors/{MonitorName}/HealthEvents"); b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false); const query = (0, import_smithy_client.map)({ [_ST]: [() => input.StartTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ST]).toString()], [_ET]: [() => input.EndTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ET]).toString()], [_NT]: [, input[_NT]], [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()], [_ES]: [, input[_ES]], [_LAI]: [, input[_LAI]] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_ListHealthEventsCommand");var se_ListInternetEventsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/v20210603/InternetEvents"); const query = (0, import_smithy_client.map)({ [_NT]: [, input[_NT]], [_IEMR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()], [_ST]: [() => input.StartTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ST]).toString()], [_ET]: [() => input.EndTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ET]).toString()], [_ES]: [, input[_ES]], [_ETv]: [, input[_ETv]] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_ListInternetEventsCommand");var se_ListMonitorsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/v20210603/Monitors"); const query = (0, import_smithy_client.map)({ [_NT]: [, input[_NT]], [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()], [_MS]: [, input[_MS]], [_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_ListMonitorsCommand");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_StartQueryCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/v20210603/Monitors/{MonitorName}/Queries"); b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "EndTime"), FilterParameters: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "FilterParameters"), LinkedAccountId: [], QueryType: [], StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "StartTime") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_StartQueryCommand");var se_StopQueryCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/v20210603/Monitors/{MonitorName}/Queries/{QueryId}"); b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false); b.p("QueryId", () => input.QueryId, "{QueryId}", false); let body; b.m("DELETE").h(headers).b(body); return b.build();}, "se_StopQueryCommand");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_UpdateMonitorCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/v20210603/Monitors/{MonitorName}"); b.p("MonitorName", () => input.MonitorName, "{MonitorName}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], HealthEventsConfig: /* @__PURE__ */ __name((_) => se_HealthEventsConfig(_, context), "HealthEventsConfig"), InternetMeasurementsLogDelivery: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "InternetMeasurementsLogDelivery"), MaxCityNetworksToMonitor: [], ResourcesToAdd: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ResourcesToAdd"), ResourcesToRemove: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ResourcesToRemove"), Status: [], TrafficPercentageToMonitor: [] }) ); b.m("PATCH").h(headers).b(body); return b.build();}, "se_UpdateMonitorCommand");var de_CreateMonitorCommand = /* @__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, { Arn: import_smithy_client.expectString, Status: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_CreateMonitorCommand");var de_DeleteMonitorCommand = /* @__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_DeleteMonitorCommand");var de_GetHealthEventCommand = /* @__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, { CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedAt"), EndedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "EndedAt"), EventArn: import_smithy_client.expectString, EventId: import_smithy_client.expectString, HealthScoreThreshold: import_smithy_client.limitedParseDouble, ImpactType: import_smithy_client.expectString, ImpactedLocations: /* @__PURE__ */ __name((_) => de_ImpactedLocationsList(_, context), "ImpactedLocations"), LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastUpdatedAt"), PercentOfTotalTrafficImpacted: import_smithy_client.limitedParseDouble, StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "StartedAt"), Status: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_GetHealthEventCommand");var de_GetInternetEventCommand = /* @__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, { ClientLocation: /* @__PURE__ */ __name((_) => de_ClientLocation(_, context), "ClientLocation"), EndedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "EndedAt"), EventArn: import_smithy_client.expectString, EventId: import_smithy_client.expectString, EventStatus: import_smithy_client.expectString, EventType: import_smithy_client.expectString, StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "StartedAt") }); Object.assign(contents, doc); return contents;}, "de_GetInternetEventCommand");var de_GetMonitorCommand = /* @__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, { CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedAt"), HealthEventsConfig: /* @__PURE__ */ __name((_) => de_HealthEventsConfig(_, context), "HealthEventsConfig"), InternetMeasurementsLogDelivery: import_smithy_client._json, MaxCityNetworksToMonitor: import_smithy_client.expectInt32, ModifiedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "ModifiedAt"), MonitorArn: import_smithy_client.expectString, MonitorName: import_smithy_client.expectString, ProcessingStatus: import_smithy_client.expectString, ProcessingStatusInfo: import_smithy_client.expectString, Resources: import_smithy_client._json, Status: import_smithy_client.expectString, Tags: import_smithy_client._json, TrafficPercentageToMonitor: import_smithy_client.expectInt32 }); Object.assign(contents, doc); return contents;}, "de_GetMonitorCommand");var de_GetQueryResultsCommand = /* @__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, { Data: import_smithy_client._json, Fields: import_smithy_client._json, NextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_GetQueryResultsCommand");var de_GetQueryStatusCommand = /* @__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, { Status: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_GetQueryStatusCommand");var de_ListHealthEventsCommand = /* @__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, { HealthEvents: /* @__PURE__ */ __name((_) => de_HealthEventList(_, context), "HealthEvents"), NextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_ListHealthEventsCommand");var de_ListInternetEventsCommand = /* @__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, { InternetEvents: /* @__PURE__ */ __name((_) => de_InternetEventsList(_, context), "InternetEvents"), NextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_ListInternetEventsCommand");var de_ListMonitorsCommand = /* @__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, { Monitors: import_smithy_client._json, NextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_ListMonitorsCommand");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_StartQueryCommand = /* @__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, { QueryId: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_StartQueryCommand");var de_StopQueryCommand = /* @__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_StopQueryCommand");var de_TagResourceCommand = /* @__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_TagResourceCommand");var de_UntagResourceCommand = /* @__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_UntagResourceCommand");var de_UpdateMonitorCommand = /* @__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, { MonitorArn: import_smithy_client.expectString, Status: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_UpdateMonitorCommand");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 "AccessDeniedException": case "com.amazonaws.internetmonitor#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.internetmonitor#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.internetmonitor#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "LimitExceededException": case "com.amazonaws.internetmonitor#LimitExceededException": throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.internetmonitor#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); case "ValidationException": case "com.amazonaws.internetmonitor#ValidationException": throw await de_ValidationExceptionRes(parsedOutput, context); case "BadRequestException": case "com.amazonaws.internetmonitor#BadRequestException": throw await de_BadRequestExceptionRes(parsedOutput, context); case "InternalServerErrorException": case "com.amazonaws.internetmonitor#InternalServerErrorException": throw await de_InternalServerErrorExceptionRes(parsedOutput, context); case "NotFoundException": case "com.amazonaws.internetmonitor#NotFoundException": throw await de_NotFoundExceptionRes(parsedOutput, context); case "TooManyRequestsException": case "com.amazonaws.internetmonitor#TooManyRequestsException": throw await de_TooManyRequestsExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.internetmonitor#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(InternetMonitorServiceException);var de_AccessDeniedExceptionRes = /* @__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 AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_AccessDeniedExceptionRes");var de_BadRequestExceptionRes = /* @__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 BadRequestException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_BadRequestExceptionRes");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_InternalServerErrorExceptionRes = /* @__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 InternalServerErrorException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalServerErrorExceptionRes");var de_InternalServerExceptionRes = /* @__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 InternalServerException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalServerExceptionRes");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_NotFoundExceptionRes = /* @__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 NotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_NotFoundExceptionRes");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 de_TooManyRequestsExceptionRes = /* @__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 TooManyRequestsException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_TooManyRequestsExceptionRes");var de_ValidationExceptionRes = /* @__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 ValidationException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ValidationExceptionRes");var se_HealthEventsConfig = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { AvailabilityLocalHealthEventsConfig: /* @__PURE__ */ __name((_) => se_LocalHealthEventsConfig(_, context), "AvailabilityLocalHealthEventsConfig"), AvailabilityScoreThreshold: import_smithy_client.serializeFloat, PerformanceLocalHealthEventsConfig: /* @__PURE__ */ __name((_) => se_LocalHealthEventsConfig(_, context), "PerformanceLocalHealthEventsConfig"), PerformanceScoreThreshold: import_smithy_client.serializeFloat });}, "se_HealthEventsConfig");var se_LocalHealthEventsConfig = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { HealthScoreThreshold: import_smithy_client.serializeFloat, MinTrafficImpact: import_smithy_client.serializeFloat, Status: [] });}, "se_LocalHealthEventsConfig");var de_AvailabilityMeasurement = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { ExperienceScore: import_smithy_client.limitedParseDouble, PercentOfClientLocationImpacted: import_smithy_client.limitedParseDouble, PercentOfTotalTrafficImpacted: import_smithy_client.limitedParseDouble });}, "de_AvailabilityMeasurement");var de_ClientLocation = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { ASName: import_smithy_client.expectString, ASNumber: import_smithy_client.expectLong, City: import_smithy_client.expectString, Country: import_smithy_client.expectString, Latitude: import_smithy_client.limitedParseDouble, Longitude: import_smithy_client.limitedParseDouble, Metro: import_smithy_client.expectString, Subdivision: import_smithy_client.expectString });}, "de_ClientLocation");var de_HealthEvent = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedAt"), EndedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "EndedAt"), EventArn: import_smithy_client.expectString, EventId: import_smithy_client.expectString, HealthScoreThreshold: import_smithy_client.limitedParseDouble, ImpactType: import_smithy_client.expectString, ImpactedLocations: /* @__PURE__ */ __name((_) => de_ImpactedLocationsList(_, context), "ImpactedLocations"), LastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "LastUpdatedAt"), PercentOfTotalTrafficImpacted: import_smithy_client.limitedParseDouble, StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "StartedAt"), Status: import_smithy_client.expectString });}, "de_HealthEvent");var de_HealthEventList = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_HealthEvent(entry, context); }); return retVal;}, "de_HealthEventList");var de_HealthEventsConfig = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { AvailabilityLocalHealthEventsConfig: /* @__PURE__ */ __name((_) => de_LocalHealthEventsConfig(_, context), "AvailabilityLocalHealthEventsConfig"), AvailabilityScoreThreshold: import_smithy_client.limitedParseDouble, PerformanceLocalHealthEventsConfig: /* @__PURE__ */ __name((_) => de_LocalHealthEventsConfig(_, context), "PerformanceLocalHealthEventsConfig"), PerformanceScoreThreshold: import_smithy_client.limitedParseDouble });}, "de_HealthEventsConfig");var de_ImpactedLocation = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { ASName: import_smithy_client.expectString, ASNumber: import_smithy_client.expectLong, CausedBy: import_smithy_client._json, City: import_smithy_client.expectString, Country: import_smithy_client.expectString, CountryCode: import_smithy_client.expectString, InternetHealth: /* @__PURE__ */ __name((_) => de_InternetHealth(_, context), "InternetHealth"), Ipv4Prefixes: import_smithy_client._json, Latitude: import_smithy_client.limitedParseDouble, Longitude: import_smithy_client.limitedParseDouble, Metro: import_smithy_client.expectString, ServiceLocation: import_smithy_client.expectString, Status: import_smithy_client.expectString, Subdivision: import_smithy_client.expectString, SubdivisionCode: import_smithy_client.expectString });}, "de_ImpactedLocation");var de_ImpactedLocationsList = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_ImpactedLocation(entry, context); }); return retVal;}, "de_ImpactedLocationsList");var de_InternetEventsList = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_InternetEventSummary(entry, context); }); return retVal;}, "de_InternetEventsList");var de_InternetEventSummary = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { ClientLocation: /* @__PURE__ */ __name((_) => de_ClientLocation(_, context), "ClientLocation"), EndedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "EndedAt"), EventArn: import_smithy_client.expectString, EventId: import_smithy_client.expectString, EventStatus: import_smithy_client.expectString, EventType: import_smithy_client.expectString, StartedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "StartedAt") });}, "de_InternetEventSummary");var de_InternetHealth = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { Availability: /* @__PURE__ */ __name((_) => de_AvailabilityMeasurement(_, context), "Availability"), Performance: /* @__PURE__ */ __name((_) => de_PerformanceMeasurement(_, context), "Performance") });}, "de_InternetHealth");var de_LocalHealthEventsConfig = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { HealthScoreThreshold: import_smithy_client.limitedParseDouble, MinTrafficImpact: import_smithy_client.limitedParseDouble, Status: import_smithy_client.expectString });}, "de_LocalHealthEventsConfig");var de_PerformanceMeasurement = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { ExperienceScore: import_smithy_client.limitedParseDouble, PercentOfClientLocationImpacted: import_smithy_client.limitedParseDouble, PercentOfTotalTrafficImpacted: import_smithy_client.limitedParseDouble, RoundTripTime: /* @__PURE__ */ __name((_) => de_RoundTripTime(_, context), "RoundTripTime") });}, "de_PerformanceMeasurement");var de_RoundTripTime = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { P50: import_smithy_client.limitedParseDouble, P90: import_smithy_client.limitedParseDouble, P95: import_smithy_client.limitedParseDouble });}, "de_RoundTripTime");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 _ES = "EventStatus";var _ET = "EndTime";var _ETv = "EventType";var _IEMR = "InternetEventMaxResults";var _ILA = "IncludeLinkedAccounts";var _LAI = "LinkedAccountId";var _MR = "MaxResults";var _MS = "MonitorStatus";var _NT = "NextToken";var _ST = "StartTime";var _TK = "TagKeys";var _tK = "tagKeys"; // src/commands/CreateMonitorCommand.tsvar CreateMonitorCommand = 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("InternetMonitor20210603", "CreateMonitor", {}).n("InternetMonitorClient", "CreateMonitorCommand").f(void 0, void 0).ser(se_CreateMonitorCommand).de(de_CreateMonitorCommand).build() { static { __name(this, "CreateMonitorCommand"); }}; // src/commands/DeleteMonitorCommand.ts var DeleteMonitorCommand = 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("InternetMonitor20210603", "DeleteMonitor", {}).n("InternetMonitorClient", "DeleteMonitorCommand").f(void 0, void 0).ser(se_DeleteMonitorCommand).de(de_DeleteMonitorCommand).build() { static { __name(this, "DeleteMonitorCommand"); }}; // src/commands/GetHealthEventCommand.ts var GetHealthEventCommand = 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("InternetMonitor20210603", "GetHealthEvent", {}).n("InternetMonitorClient", "GetHealthEventCommand").f(void 0, void 0).ser(se_GetHealthEventCommand).de(de_GetHealthEventCommand).build() { static { __name(this, "GetHealthEventCommand"); }}; // src/commands/GetInternetEventCommand.ts var GetInternetEventCommand = 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("InternetMonitor20210603", "GetInternetEvent", {}).n("InternetMonitorClient", "GetInternetEventCommand").f(void 0, void 0).ser(se_GetInternetEventCommand).de(de_GetInternetEventCommand).build() { static { __name(this, "GetInternetEventCommand"); }}; // src/commands/GetMonitorCommand.ts var GetMonitorCommand = 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("InternetMonitor20210603", "GetMonitor", {}).n("InternetMonitorClient", "GetMonitorCommand").f(void 0, void 0).ser(se_GetMonitorCommand).de(de_GetMonitorCommand).build() { static { __name(this, "GetMonitorCommand"); }}; // src/commands/GetQueryResultsCommand.ts var GetQueryResultsCommand = 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("InternetMonitor20210603", "GetQueryResults", {}).n("InternetMonitorClient", "GetQueryResultsCommand").f(void 0, void 0).ser(se_GetQueryResultsCommand).de(de_GetQueryResultsCommand).build() { static { __name(this, "GetQueryResultsCommand"); }}; // src/commands/GetQueryStatusCommand.ts var GetQueryStatusCommand = 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("InternetMonitor20210603", "GetQueryStatus", {}).n("InternetMonitorClient", "GetQueryStatusCommand").f(void 0, void 0).ser(se_GetQueryStatusCommand).de(de_GetQueryStatusCommand).build() { static { __name(this, "GetQueryStatusCommand"); }}; // src/commands/ListHealthEventsCommand.ts var ListHealthEventsCommand = 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("InternetMonitor20210603", "ListHealthEvents", {}).n("InternetMonitorClient", "ListHealthEventsCommand").f(void 0, void 0).ser(se_ListHealthEventsCommand).de(de_ListHealthEventsCommand).build() { static { __name(this, "ListHealthEventsCommand"); }}; // src/commands/ListInternetEventsCommand.ts var ListInternetEventsCommand = 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("InternetMonitor20210603", "ListInternetEvents", {}).n("InternetMonitorClient", "ListInternetEventsCommand").f(void 0, void 0).ser(se_ListInternetEventsCommand).de(de_ListInternetEventsCommand).build() { static { __name(this, "ListInternetEventsCommand"); }}; // src/commands/ListMonitorsCommand.ts var ListMonitorsCommand = 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("InternetMonitor20210603", "ListMonitors", {}).n("InternetMonitorClient", "ListMonitorsCommand").f(void 0, void 0).ser(se_ListMonitorsCommand).de(de_ListMonitorsCommand).build() { static { __name(this, "ListMonitorsCommand"); }}; // 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("InternetMonitor20210603", "ListTagsForResource", {}).n("InternetMonitorClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() { static { __name(this, "ListTagsForResourceCommand"); }}; // src/commands/StartQueryCommand.ts var StartQueryCommand = 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("InternetMonitor20210603", "StartQuery", {}).n("InternetMonitorClient", "StartQueryCommand").f(void 0, void 0).ser(se_StartQueryCommand).de(de_StartQueryCommand).build() { static { __name(this, "StartQueryCommand"); }}; // src/commands/StopQueryCommand.ts var StopQueryCommand = 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("InternetMonitor20210603", "StopQuery", {}).n("InternetMonitorClient", "StopQueryCommand").f(void 0, void 0).ser(se_StopQueryCommand).de(de_StopQueryCommand).build() { static { __name(this, "StopQueryCommand"); }}; // 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("InternetMonitor20210603", "TagResource", {}).n("InternetMonitorClient", "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("InternetMonitor20210603", "UntagResource", {}).n("InternetMonitorClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/commands/UpdateMonitorCommand.ts var UpdateMonitorCommand = 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("InternetMonitor20210603", "UpdateMonitor", {}).n("InternetMonitorClient", "UpdateMonitorCommand").f(void 0, void 0).ser(se_UpdateMonitorCommand).de(de_UpdateMonitorCommand).build() { static { __name(this, "UpdateMonitorCommand"); }}; // src/InternetMonitor.tsvar commands = { CreateMonitorCommand, DeleteMonitorCommand, GetHealthEventCommand, GetInternetEventCommand, GetMonitorCommand, GetQueryResultsCommand, GetQueryStatusCommand, ListHealthEventsCommand, ListInternetEventsCommand, ListMonitorsCommand, ListTagsForResourceCommand, StartQueryCommand, StopQueryCommand, TagResourceCommand, UntagResourceCommand, UpdateMonitorCommand};var InternetMonitor = class extends InternetMonitorClient { static { __name(this, "InternetMonitor"); }};(0, import_smithy_client.createAggregatedClient)(commands, InternetMonitor); // src/pagination/GetQueryResultsPaginator.ts var paginateGetQueryResults = (0, import_core.createPaginator)(InternetMonitorClient, GetQueryResultsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListHealthEventsPaginator.ts var paginateListHealthEvents = (0, import_core.createPaginator)(InternetMonitorClient, ListHealthEventsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListInternetEventsPaginator.ts var paginateListInternetEvents = (0, import_core.createPaginator)(InternetMonitorClient, ListInternetEventsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListMonitorsPaginator.ts var paginateListMonitors = (0, import_core.createPaginator)(InternetMonitorClient, ListMonitorsCommand, "NextToken", "NextToken", "MaxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { InternetMonitorServiceException, __Client, InternetMonitorClient, InternetMonitor, $Command, CreateMonitorCommand, DeleteMonitorCommand, GetHealthEventCommand, GetInternetEventCommand, GetMonitorCommand, GetQueryResultsCommand, GetQueryStatusCommand, ListHealthEventsCommand, ListInternetEventsCommand, ListMonitorsCommand, ListTagsForResourceCommand, StartQueryCommand, StopQueryCommand, TagResourceCommand, UntagResourceCommand, UpdateMonitorCommand, paginateGetQueryResults, paginateListHealthEvents, paginateListInternetEvents, paginateListMonitors, AccessDeniedException, BadRequestException, ConflictException, LocalHealthEventsConfigStatus, LogDeliveryStatus, MonitorConfigState, InternalServerException, LimitExceededException, ThrottlingException, ValidationException, Operator, TriangulationEventType, HealthEventStatus, HealthEventImpactType, InternetEventStatus, InternetEventType, MonitorProcessingStatusCode, QueryStatus, InternalServerErrorException, NotFoundException, TooManyRequestsException, QueryType, ResourceNotFoundException});