/proc/self/root/proc/self/root/var/runtime/node_modules/@aws-sdk/client-amp/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 client$1 = require('@aws-sdk/core/client');var core = require('@smithy/core');var client = require('@smithy/core/client');var config = require('@smithy/core/config');var endpoints = require('@smithy/core/endpoints');var protocols = require('@smithy/core/protocols');var retry = require('@smithy/core/retry');var schema = require('@smithy/core/schema');var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');var runtimeConfig = require('./runtimeConfig');var schemas_0 = require('./schemas/schemas_0');var errors = require('./models/errors');var AmpServiceException = require('./models/AmpServiceException'); const resolveClientEndpointParameters = (options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "aps", });};const commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },}; const getHttpAuthExtensionConfiguration = (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; }, };};const resolveHttpAuthRuntimeConfig = (config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials(), };}; const resolveRuntimeExtensions = (runtimeConfig, extensions) => { const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class AmpClient extends client.Client { config; constructor(...[configuration]) { const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = client$1.resolveUserAgentConfig(_config_1); const _config_3 = retry.resolveRetryConfig(_config_2); const _config_4 = config.resolveRegionConfig(_config_3); const _config_5 = client$1.resolveHostHeaderConfig(_config_4); const _config_6 = endpoints.resolveEndpointConfig(_config_5); const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config)); this.middlewareStack.use(client$1.getUserAgentPlugin(this.config)); this.middlewareStack.use(retry.getRetryPlugin(this.config)); this.middlewareStack.use(protocols.getContentLengthPlugin(this.config)); this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config)); this.middlewareStack.use(client$1.getLoggerPlugin(this.config)); this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultAmpHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, }), })); this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); }} class CreateAlertManagerDefinitionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "CreateAlertManagerDefinition", {}) .n("AmpClient", "CreateAlertManagerDefinitionCommand") .sc(schemas_0.CreateAlertManagerDefinition$) .build() {} class CreateAnomalyDetectorCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "CreateAnomalyDetector", {}) .n("AmpClient", "CreateAnomalyDetectorCommand") .sc(schemas_0.CreateAnomalyDetector$) .build() {} class CreateLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "CreateLoggingConfiguration", {}) .n("AmpClient", "CreateLoggingConfigurationCommand") .sc(schemas_0.CreateLoggingConfiguration$) .build() {} class CreateQueryLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "CreateQueryLoggingConfiguration", {}) .n("AmpClient", "CreateQueryLoggingConfigurationCommand") .sc(schemas_0.CreateQueryLoggingConfiguration$) .build() {} class CreateRuleGroupsNamespaceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "CreateRuleGroupsNamespace", {}) .n("AmpClient", "CreateRuleGroupsNamespaceCommand") .sc(schemas_0.CreateRuleGroupsNamespace$) .build() {} class CreateScraperCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "CreateScraper", {}) .n("AmpClient", "CreateScraperCommand") .sc(schemas_0.CreateScraper$) .build() {} class CreateWorkspaceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "CreateWorkspace", {}) .n("AmpClient", "CreateWorkspaceCommand") .sc(schemas_0.CreateWorkspace$) .build() {} class DeleteAlertManagerDefinitionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DeleteAlertManagerDefinition", {}) .n("AmpClient", "DeleteAlertManagerDefinitionCommand") .sc(schemas_0.DeleteAlertManagerDefinition$) .build() {} class DeleteAnomalyDetectorCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DeleteAnomalyDetector", {}) .n("AmpClient", "DeleteAnomalyDetectorCommand") .sc(schemas_0.DeleteAnomalyDetector$) .build() {} class DeleteLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DeleteLoggingConfiguration", {}) .n("AmpClient", "DeleteLoggingConfigurationCommand") .sc(schemas_0.DeleteLoggingConfiguration$) .build() {} class DeleteQueryLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DeleteQueryLoggingConfiguration", {}) .n("AmpClient", "DeleteQueryLoggingConfigurationCommand") .sc(schemas_0.DeleteQueryLoggingConfiguration$) .build() {} class DeleteResourcePolicyCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DeleteResourcePolicy", {}) .n("AmpClient", "DeleteResourcePolicyCommand") .sc(schemas_0.DeleteResourcePolicy$) .build() {} class DeleteRuleGroupsNamespaceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DeleteRuleGroupsNamespace", {}) .n("AmpClient", "DeleteRuleGroupsNamespaceCommand") .sc(schemas_0.DeleteRuleGroupsNamespace$) .build() {} class DeleteScraperCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DeleteScraper", {}) .n("AmpClient", "DeleteScraperCommand") .sc(schemas_0.DeleteScraper$) .build() {} class DeleteScraperLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DeleteScraperLoggingConfiguration", {}) .n("AmpClient", "DeleteScraperLoggingConfigurationCommand") .sc(schemas_0.DeleteScraperLoggingConfiguration$) .build() {} class DeleteWorkspaceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DeleteWorkspace", {}) .n("AmpClient", "DeleteWorkspaceCommand") .sc(schemas_0.DeleteWorkspace$) .build() {} class DescribeAlertManagerDefinitionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DescribeAlertManagerDefinition", {}) .n("AmpClient", "DescribeAlertManagerDefinitionCommand") .sc(schemas_0.DescribeAlertManagerDefinition$) .build() {} class DescribeAnomalyDetectorCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DescribeAnomalyDetector", {}) .n("AmpClient", "DescribeAnomalyDetectorCommand") .sc(schemas_0.DescribeAnomalyDetector$) .build() {} class DescribeLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DescribeLoggingConfiguration", {}) .n("AmpClient", "DescribeLoggingConfigurationCommand") .sc(schemas_0.DescribeLoggingConfiguration$) .build() {} class DescribeQueryLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DescribeQueryLoggingConfiguration", {}) .n("AmpClient", "DescribeQueryLoggingConfigurationCommand") .sc(schemas_0.DescribeQueryLoggingConfiguration$) .build() {} class DescribeResourcePolicyCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DescribeResourcePolicy", {}) .n("AmpClient", "DescribeResourcePolicyCommand") .sc(schemas_0.DescribeResourcePolicy$) .build() {} class DescribeRuleGroupsNamespaceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DescribeRuleGroupsNamespace", {}) .n("AmpClient", "DescribeRuleGroupsNamespaceCommand") .sc(schemas_0.DescribeRuleGroupsNamespace$) .build() {} class DescribeScraperCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DescribeScraper", {}) .n("AmpClient", "DescribeScraperCommand") .sc(schemas_0.DescribeScraper$) .build() {} class DescribeScraperLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DescribeScraperLoggingConfiguration", {}) .n("AmpClient", "DescribeScraperLoggingConfigurationCommand") .sc(schemas_0.DescribeScraperLoggingConfiguration$) .build() {} class DescribeWorkspaceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DescribeWorkspace", {}) .n("AmpClient", "DescribeWorkspaceCommand") .sc(schemas_0.DescribeWorkspace$) .build() {} class DescribeWorkspaceConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "DescribeWorkspaceConfiguration", {}) .n("AmpClient", "DescribeWorkspaceConfigurationCommand") .sc(schemas_0.DescribeWorkspaceConfiguration$) .build() {} class GetDefaultScraperConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "GetDefaultScraperConfiguration", {}) .n("AmpClient", "GetDefaultScraperConfigurationCommand") .sc(schemas_0.GetDefaultScraperConfiguration$) .build() {} class ListAnomalyDetectorsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "ListAnomalyDetectors", {}) .n("AmpClient", "ListAnomalyDetectorsCommand") .sc(schemas_0.ListAnomalyDetectors$) .build() {} class ListRuleGroupsNamespacesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "ListRuleGroupsNamespaces", {}) .n("AmpClient", "ListRuleGroupsNamespacesCommand") .sc(schemas_0.ListRuleGroupsNamespaces$) .build() {} class ListScrapersCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "ListScrapers", {}) .n("AmpClient", "ListScrapersCommand") .sc(schemas_0.ListScrapers$) .build() {} class ListTagsForResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "ListTagsForResource", {}) .n("AmpClient", "ListTagsForResourceCommand") .sc(schemas_0.ListTagsForResource$) .build() {} class ListWorkspacesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "ListWorkspaces", {}) .n("AmpClient", "ListWorkspacesCommand") .sc(schemas_0.ListWorkspaces$) .build() {} class PutAlertManagerDefinitionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "PutAlertManagerDefinition", {}) .n("AmpClient", "PutAlertManagerDefinitionCommand") .sc(schemas_0.PutAlertManagerDefinition$) .build() {} class PutAnomalyDetectorCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "PutAnomalyDetector", {}) .n("AmpClient", "PutAnomalyDetectorCommand") .sc(schemas_0.PutAnomalyDetector$) .build() {} class PutResourcePolicyCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "PutResourcePolicy", {}) .n("AmpClient", "PutResourcePolicyCommand") .sc(schemas_0.PutResourcePolicy$) .build() {} class PutRuleGroupsNamespaceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "PutRuleGroupsNamespace", {}) .n("AmpClient", "PutRuleGroupsNamespaceCommand") .sc(schemas_0.PutRuleGroupsNamespace$) .build() {} class TagResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "TagResource", {}) .n("AmpClient", "TagResourceCommand") .sc(schemas_0.TagResource$) .build() {} class UntagResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "UntagResource", {}) .n("AmpClient", "UntagResourceCommand") .sc(schemas_0.UntagResource$) .build() {} class UpdateLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "UpdateLoggingConfiguration", {}) .n("AmpClient", "UpdateLoggingConfigurationCommand") .sc(schemas_0.UpdateLoggingConfiguration$) .build() {} class UpdateQueryLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "UpdateQueryLoggingConfiguration", {}) .n("AmpClient", "UpdateQueryLoggingConfigurationCommand") .sc(schemas_0.UpdateQueryLoggingConfiguration$) .build() {} class UpdateScraperCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "UpdateScraper", {}) .n("AmpClient", "UpdateScraperCommand") .sc(schemas_0.UpdateScraper$) .build() {} class UpdateScraperLoggingConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "UpdateScraperLoggingConfiguration", {}) .n("AmpClient", "UpdateScraperLoggingConfigurationCommand") .sc(schemas_0.UpdateScraperLoggingConfiguration$) .build() {} class UpdateWorkspaceAliasCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "UpdateWorkspaceAlias", {}) .n("AmpClient", "UpdateWorkspaceAliasCommand") .sc(schemas_0.UpdateWorkspaceAlias$) .build() {} class UpdateWorkspaceConfigurationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AmazonPrometheusService", "UpdateWorkspaceConfiguration", {}) .n("AmpClient", "UpdateWorkspaceConfigurationCommand") .sc(schemas_0.UpdateWorkspaceConfiguration$) .build() {} const paginateListAnomalyDetectors = core.createPaginator(AmpClient, ListAnomalyDetectorsCommand, "nextToken", "nextToken", "maxResults"); const paginateListRuleGroupsNamespaces = core.createPaginator(AmpClient, ListRuleGroupsNamespacesCommand, "nextToken", "nextToken", "maxResults"); const paginateListScrapers = core.createPaginator(AmpClient, ListScrapersCommand, "nextToken", "nextToken", "maxResults"); const paginateListWorkspaces = core.createPaginator(AmpClient, ListWorkspacesCommand, "nextToken", "nextToken", "maxResults"); const checkState$5 = async (client$1, input) => { let reason; try { let result = await client$1.send(new DescribeAnomalyDetectorCommand(input)); reason = result; try { const returnComparator = () => { return result.anomalyDetector.status.statusCode; }; if (returnComparator() === "ACTIVE") { return { state: client.WaiterState.SUCCESS, reason }; } } catch (e) { } try { const returnComparator = () => { return result.anomalyDetector.status.statusCode; }; if (returnComparator() === "CREATING") { return { state: client.WaiterState.RETRY, reason }; } } catch (e) { } try { const returnComparator = () => { return result.anomalyDetector.status.statusCode; }; if (returnComparator() === "UPDATING") { return { state: client.WaiterState.RETRY, reason }; } } catch (e) { } } catch (exception) { reason = exception; } return { state: client.WaiterState.RETRY, reason };};const waitForAnomalyDetectorActive = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5);};const waitUntilAnomalyDetectorActive = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$5); return client.checkExceptions(result);}; const checkState$4 = async (client$1, input) => { let reason; try { let result = await client$1.send(new DescribeAnomalyDetectorCommand(input)); reason = result; try { const returnComparator = () => { return result.anomalyDetector.status.statusCode; }; if (returnComparator() === "DELETING") { return { state: client.WaiterState.RETRY, reason }; } } catch (e) { } } catch (exception) { reason = exception; if (exception.name === "ResourceNotFoundException") { return { state: client.WaiterState.SUCCESS, reason }; } } return { state: client.WaiterState.RETRY, reason };};const waitForAnomalyDetectorDeleted = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4);};const waitUntilAnomalyDetectorDeleted = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$4); return client.checkExceptions(result);}; const checkState$3 = async (client$1, input) => { let reason; try { let result = await client$1.send(new DescribeScraperCommand(input)); reason = result; try { const returnComparator = () => { return result.scraper.status.statusCode; }; if (returnComparator() === "ACTIVE") { return { state: client.WaiterState.SUCCESS, reason }; } } catch (e) { } try { const returnComparator = () => { return result.scraper.status.statusCode; }; if (returnComparator() === "CREATION_FAILED") { return { state: client.WaiterState.FAILURE, reason }; } } catch (e) { } } catch (exception) { reason = exception; } return { state: client.WaiterState.RETRY, reason };};const waitForScraperActive = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);};const waitUntilScraperActive = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3); return client.checkExceptions(result);}; const checkState$2 = async (client$1, input) => { let reason; try { let result = await client$1.send(new DescribeScraperCommand(input)); reason = result; try { const returnComparator = () => { return result.scraper.status.statusCode; }; if (returnComparator() === "DELETION_FAILED") { return { state: client.WaiterState.FAILURE, reason }; } } catch (e) { } } catch (exception) { reason = exception; if (exception.name === "ResourceNotFoundException") { return { state: client.WaiterState.SUCCESS, reason }; } } return { state: client.WaiterState.RETRY, reason };};const waitForScraperDeleted = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);};const waitUntilScraperDeleted = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2); return client.checkExceptions(result);}; const checkState$1 = async (client$1, input) => { let reason; try { let result = await client$1.send(new DescribeWorkspaceCommand(input)); reason = result; try { const returnComparator = () => { return result.workspace.status.statusCode; }; if (returnComparator() === "ACTIVE") { return { state: client.WaiterState.SUCCESS, reason }; } } catch (e) { } try { const returnComparator = () => { return result.workspace.status.statusCode; }; if (returnComparator() === "UPDATING") { return { state: client.WaiterState.RETRY, reason }; } } catch (e) { } try { const returnComparator = () => { return result.workspace.status.statusCode; }; if (returnComparator() === "CREATING") { return { state: client.WaiterState.RETRY, reason }; } } catch (e) { } } catch (exception) { reason = exception; } return { state: client.WaiterState.RETRY, reason };};const waitForWorkspaceActive = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);};const waitUntilWorkspaceActive = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1); return client.checkExceptions(result);}; const checkState = async (client$1, input) => { let reason; try { let result = await client$1.send(new DescribeWorkspaceCommand(input)); reason = result; try { const returnComparator = () => { return result.workspace.status.statusCode; }; if (returnComparator() === "DELETING") { return { state: client.WaiterState.RETRY, reason }; } } catch (e) { } } catch (exception) { reason = exception; if (exception.name === "ResourceNotFoundException") { return { state: client.WaiterState.SUCCESS, reason }; } } return { state: client.WaiterState.RETRY, reason };};const waitForWorkspaceDeleted = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);};const waitUntilWorkspaceDeleted = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState); return client.checkExceptions(result);}; const commands = { CreateAlertManagerDefinitionCommand, CreateAnomalyDetectorCommand, CreateLoggingConfigurationCommand, CreateQueryLoggingConfigurationCommand, CreateRuleGroupsNamespaceCommand, CreateScraperCommand, CreateWorkspaceCommand, DeleteAlertManagerDefinitionCommand, DeleteAnomalyDetectorCommand, DeleteLoggingConfigurationCommand, DeleteQueryLoggingConfigurationCommand, DeleteResourcePolicyCommand, DeleteRuleGroupsNamespaceCommand, DeleteScraperCommand, DeleteScraperLoggingConfigurationCommand, DeleteWorkspaceCommand, DescribeAlertManagerDefinitionCommand, DescribeAnomalyDetectorCommand, DescribeLoggingConfigurationCommand, DescribeQueryLoggingConfigurationCommand, DescribeResourcePolicyCommand, DescribeRuleGroupsNamespaceCommand, DescribeScraperCommand, DescribeScraperLoggingConfigurationCommand, DescribeWorkspaceCommand, DescribeWorkspaceConfigurationCommand, GetDefaultScraperConfigurationCommand, ListAnomalyDetectorsCommand, ListRuleGroupsNamespacesCommand, ListScrapersCommand, ListTagsForResourceCommand, ListWorkspacesCommand, PutAlertManagerDefinitionCommand, PutAnomalyDetectorCommand, PutResourcePolicyCommand, PutRuleGroupsNamespaceCommand, TagResourceCommand, UntagResourceCommand, UpdateLoggingConfigurationCommand, UpdateQueryLoggingConfigurationCommand, UpdateScraperCommand, UpdateScraperLoggingConfigurationCommand, UpdateWorkspaceAliasCommand, UpdateWorkspaceConfigurationCommand,};const paginators = { paginateListAnomalyDetectors, paginateListRuleGroupsNamespaces, paginateListScrapers, paginateListWorkspaces,};const waiters = { waitUntilAnomalyDetectorActive, waitUntilAnomalyDetectorDeleted, waitUntilScraperActive, waitUntilScraperDeleted, waitUntilWorkspaceActive, waitUntilWorkspaceDeleted,};class Amp extends AmpClient {}client.createAggregatedClient(commands, Amp, { paginators, waiters }); const AlertManagerDefinitionStatusCode = { ACTIVE: "ACTIVE", CREATING: "CREATING", CREATION_FAILED: "CREATION_FAILED", DELETING: "DELETING", UPDATE_FAILED: "UPDATE_FAILED", UPDATING: "UPDATING",};const ValidationExceptionReason = { CANNOT_PARSE: "CANNOT_PARSE", FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", OTHER: "OTHER", UNKNOWN_OPERATION: "UNKNOWN_OPERATION",};const ScraperStatusCode = { ACTIVE: "ACTIVE", CREATING: "CREATING", CREATION_FAILED: "CREATION_FAILED", DELETING: "DELETING", DELETION_FAILED: "DELETION_FAILED", UPDATE_FAILED: "UPDATE_FAILED", UPDATING: "UPDATING",};const ScraperComponentType = { COLLECTOR: "COLLECTOR", EXPORTER: "EXPORTER", SERVICE_DISCOVERY: "SERVICE_DISCOVERY",};const ScraperLoggingConfigurationStatusCode = { ACTIVE: "ACTIVE", CREATING: "CREATING", CREATION_FAILED: "CREATION_FAILED", DELETING: "DELETING", UPDATE_FAILED: "UPDATE_FAILED", UPDATING: "UPDATING",};const AnomalyDetectorStatusCode = { ACTIVE: "ACTIVE", CREATING: "CREATING", CREATION_FAILED: "CREATION_FAILED", DELETING: "DELETING", DELETION_FAILED: "DELETION_FAILED", UPDATE_FAILED: "UPDATE_FAILED", UPDATING: "UPDATING",};const WorkspaceStatusCode = { ACTIVE: "ACTIVE", CREATING: "CREATING", CREATION_FAILED: "CREATION_FAILED", DELETING: "DELETING", UPDATING: "UPDATING",};const LoggingConfigurationStatusCode = { ACTIVE: "ACTIVE", CREATING: "CREATING", CREATION_FAILED: "CREATION_FAILED", DELETING: "DELETING", UPDATE_FAILED: "UPDATE_FAILED", UPDATING: "UPDATING",};const QueryLoggingConfigurationStatusCode = { ACTIVE: "ACTIVE", CREATING: "CREATING", CREATION_FAILED: "CREATION_FAILED", DELETING: "DELETING", UPDATE_FAILED: "UPDATE_FAILED", UPDATING: "UPDATING",};const RuleGroupsNamespaceStatusCode = { ACTIVE: "ACTIVE", CREATING: "CREATING", CREATION_FAILED: "CREATION_FAILED", DELETING: "DELETING", UPDATE_FAILED: "UPDATE_FAILED", UPDATING: "UPDATING",};const WorkspaceConfigurationStatusCode = { ACTIVE: "ACTIVE", UPDATE_FAILED: "UPDATE_FAILED", UPDATING: "UPDATING",};const WorkspacePolicyStatusCode = { ACTIVE: "ACTIVE", CREATING: "CREATING", DELETING: "DELETING", UPDATING: "UPDATING",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.AmpServiceException = AmpServiceException.AmpServiceException;exports.AlertManagerDefinitionStatusCode = AlertManagerDefinitionStatusCode;exports.Amp = Amp;exports.AmpClient = AmpClient;exports.AnomalyDetectorStatusCode = AnomalyDetectorStatusCode;exports.CreateAlertManagerDefinitionCommand = CreateAlertManagerDefinitionCommand;exports.CreateAnomalyDetectorCommand = CreateAnomalyDetectorCommand;exports.CreateLoggingConfigurationCommand = CreateLoggingConfigurationCommand;exports.CreateQueryLoggingConfigurationCommand = CreateQueryLoggingConfigurationCommand;exports.CreateRuleGroupsNamespaceCommand = CreateRuleGroupsNamespaceCommand;exports.CreateScraperCommand = CreateScraperCommand;exports.CreateWorkspaceCommand = CreateWorkspaceCommand;exports.DeleteAlertManagerDefinitionCommand = DeleteAlertManagerDefinitionCommand;exports.DeleteAnomalyDetectorCommand = DeleteAnomalyDetectorCommand;exports.DeleteLoggingConfigurationCommand = DeleteLoggingConfigurationCommand;exports.DeleteQueryLoggingConfigurationCommand = DeleteQueryLoggingConfigurationCommand;exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;exports.DeleteRuleGroupsNamespaceCommand = DeleteRuleGroupsNamespaceCommand;exports.DeleteScraperCommand = DeleteScraperCommand;exports.DeleteScraperLoggingConfigurationCommand = DeleteScraperLoggingConfigurationCommand;exports.DeleteWorkspaceCommand = DeleteWorkspaceCommand;exports.DescribeAlertManagerDefinitionCommand = DescribeAlertManagerDefinitionCommand;exports.DescribeAnomalyDetectorCommand = DescribeAnomalyDetectorCommand;exports.DescribeLoggingConfigurationCommand = DescribeLoggingConfigurationCommand;exports.DescribeQueryLoggingConfigurationCommand = DescribeQueryLoggingConfigurationCommand;exports.DescribeResourcePolicyCommand = DescribeResourcePolicyCommand;exports.DescribeRuleGroupsNamespaceCommand = DescribeRuleGroupsNamespaceCommand;exports.DescribeScraperCommand = DescribeScraperCommand;exports.DescribeScraperLoggingConfigurationCommand = DescribeScraperLoggingConfigurationCommand;exports.DescribeWorkspaceCommand = DescribeWorkspaceCommand;exports.DescribeWorkspaceConfigurationCommand = DescribeWorkspaceConfigurationCommand;exports.GetDefaultScraperConfigurationCommand = GetDefaultScraperConfigurationCommand;exports.ListAnomalyDetectorsCommand = ListAnomalyDetectorsCommand;exports.ListRuleGroupsNamespacesCommand = ListRuleGroupsNamespacesCommand;exports.ListScrapersCommand = ListScrapersCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListWorkspacesCommand = ListWorkspacesCommand;exports.LoggingConfigurationStatusCode = LoggingConfigurationStatusCode;exports.PutAlertManagerDefinitionCommand = PutAlertManagerDefinitionCommand;exports.PutAnomalyDetectorCommand = PutAnomalyDetectorCommand;exports.PutResourcePolicyCommand = PutResourcePolicyCommand;exports.PutRuleGroupsNamespaceCommand = PutRuleGroupsNamespaceCommand;exports.QueryLoggingConfigurationStatusCode = QueryLoggingConfigurationStatusCode;exports.RuleGroupsNamespaceStatusCode = RuleGroupsNamespaceStatusCode;exports.ScraperComponentType = ScraperComponentType;exports.ScraperLoggingConfigurationStatusCode = ScraperLoggingConfigurationStatusCode;exports.ScraperStatusCode = ScraperStatusCode;exports.TagResourceCommand = TagResourceCommand;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateLoggingConfigurationCommand = UpdateLoggingConfigurationCommand;exports.UpdateQueryLoggingConfigurationCommand = UpdateQueryLoggingConfigurationCommand;exports.UpdateScraperCommand = UpdateScraperCommand;exports.UpdateScraperLoggingConfigurationCommand = UpdateScraperLoggingConfigurationCommand;exports.UpdateWorkspaceAliasCommand = UpdateWorkspaceAliasCommand;exports.UpdateWorkspaceConfigurationCommand = UpdateWorkspaceConfigurationCommand;exports.ValidationExceptionReason = ValidationExceptionReason;exports.WorkspaceConfigurationStatusCode = WorkspaceConfigurationStatusCode;exports.WorkspacePolicyStatusCode = WorkspacePolicyStatusCode;exports.WorkspaceStatusCode = WorkspaceStatusCode;exports.paginateListAnomalyDetectors = paginateListAnomalyDetectors;exports.paginateListRuleGroupsNamespaces = paginateListRuleGroupsNamespaces;exports.paginateListScrapers = paginateListScrapers;exports.paginateListWorkspaces = paginateListWorkspaces;exports.waitForAnomalyDetectorActive = waitForAnomalyDetectorActive;exports.waitForAnomalyDetectorDeleted = waitForAnomalyDetectorDeleted;exports.waitForScraperActive = waitForScraperActive;exports.waitForScraperDeleted = waitForScraperDeleted;exports.waitForWorkspaceActive = waitForWorkspaceActive;exports.waitForWorkspaceDeleted = waitForWorkspaceDeleted;exports.waitUntilAnomalyDetectorActive = waitUntilAnomalyDetectorActive;exports.waitUntilAnomalyDetectorDeleted = waitUntilAnomalyDetectorDeleted;exports.waitUntilScraperActive = waitUntilScraperActive;exports.waitUntilScraperDeleted = waitUntilScraperDeleted;exports.waitUntilWorkspaceActive = waitUntilWorkspaceActive;exports.waitUntilWorkspaceDeleted = waitUntilWorkspaceDeleted;Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') && !Object.prototype.hasOwnProperty.call(exports, '__proto__') && Object.defineProperty(exports, '__proto__', { enumerable: true, value: schemas_0['__proto__'] }); Object.keys(schemas_0).forEach(function (k) { if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];});Object.prototype.hasOwnProperty.call(errors, '__proto__') && !Object.prototype.hasOwnProperty.call(exports, '__proto__') && Object.defineProperty(exports, '__proto__', { enumerable: true, value: errors['__proto__'] }); Object.keys(errors).forEach(function (k) { if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];});