/proc/self/root/var/runtime/node_modules/@aws-sdk/client-trustedadvisor/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 TrustedAdvisorServiceException = require('./models/TrustedAdvisorServiceException'); const resolveClientEndpointParameters = (options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "trustedadvisor", });};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 TrustedAdvisorClient 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.defaultTrustedAdvisorHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, }), })); this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); }} class BatchUpdateRecommendationResourceExclusionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "BatchUpdateRecommendationResourceExclusion", {}) .n("TrustedAdvisorClient", "BatchUpdateRecommendationResourceExclusionCommand") .sc(schemas_0.BatchUpdateRecommendationResourceExclusion$) .build() {} class GetOrganizationRecommendationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "GetOrganizationRecommendation", {}) .n("TrustedAdvisorClient", "GetOrganizationRecommendationCommand") .sc(schemas_0.GetOrganizationRecommendation$) .build() {} class GetRecommendationCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "GetRecommendation", {}) .n("TrustedAdvisorClient", "GetRecommendationCommand") .sc(schemas_0.GetRecommendation$) .build() {} class ListChecksCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "ListChecks", {}) .n("TrustedAdvisorClient", "ListChecksCommand") .sc(schemas_0.ListChecks$) .build() {} class ListOrganizationRecommendationAccountsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "ListOrganizationRecommendationAccounts", {}) .n("TrustedAdvisorClient", "ListOrganizationRecommendationAccountsCommand") .sc(schemas_0.ListOrganizationRecommendationAccounts$) .build() {} class ListOrganizationRecommendationResourcesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "ListOrganizationRecommendationResources", {}) .n("TrustedAdvisorClient", "ListOrganizationRecommendationResourcesCommand") .sc(schemas_0.ListOrganizationRecommendationResources$) .build() {} class ListOrganizationRecommendationsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "ListOrganizationRecommendations", {}) .n("TrustedAdvisorClient", "ListOrganizationRecommendationsCommand") .sc(schemas_0.ListOrganizationRecommendations$) .build() {} class ListRecommendationResourcesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "ListRecommendationResources", {}) .n("TrustedAdvisorClient", "ListRecommendationResourcesCommand") .sc(schemas_0.ListRecommendationResources$) .build() {} class ListRecommendationsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "ListRecommendations", {}) .n("TrustedAdvisorClient", "ListRecommendationsCommand") .sc(schemas_0.ListRecommendations$) .build() {} class UpdateOrganizationRecommendationLifecycleCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "UpdateOrganizationRecommendationLifecycle", {}) .n("TrustedAdvisorClient", "UpdateOrganizationRecommendationLifecycleCommand") .sc(schemas_0.UpdateOrganizationRecommendationLifecycle$) .build() {} class UpdateRecommendationLifecycleCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("TrustedAdvisor", "UpdateRecommendationLifecycle", {}) .n("TrustedAdvisorClient", "UpdateRecommendationLifecycleCommand") .sc(schemas_0.UpdateRecommendationLifecycle$) .build() {} const paginateListChecks = core.createPaginator(TrustedAdvisorClient, ListChecksCommand, "nextToken", "nextToken", "maxResults"); const paginateListOrganizationRecommendationAccounts = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationAccountsCommand, "nextToken", "nextToken", "maxResults"); const paginateListOrganizationRecommendationResources = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults"); const paginateListOrganizationRecommendations = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationsCommand, "nextToken", "nextToken", "maxResults"); const paginateListRecommendationResources = core.createPaginator(TrustedAdvisorClient, ListRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults"); const paginateListRecommendations = core.createPaginator(TrustedAdvisorClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults"); const commands = { BatchUpdateRecommendationResourceExclusionCommand, GetOrganizationRecommendationCommand, GetRecommendationCommand, ListChecksCommand, ListOrganizationRecommendationAccountsCommand, ListOrganizationRecommendationResourcesCommand, ListOrganizationRecommendationsCommand, ListRecommendationResourcesCommand, ListRecommendationsCommand, UpdateOrganizationRecommendationLifecycleCommand, UpdateRecommendationLifecycleCommand,};const paginators = { paginateListChecks, paginateListOrganizationRecommendationAccounts, paginateListOrganizationRecommendationResources, paginateListOrganizationRecommendations, paginateListRecommendationResources, paginateListRecommendations,};class TrustedAdvisor extends TrustedAdvisorClient {}client.createAggregatedClient(commands, TrustedAdvisor, { paginators }); const RecommendationLifecycleStage = { DISMISSED: "dismissed", IN_PROGRESS: "in_progress", PENDING_RESPONSE: "pending_response", RESOLVED: "resolved",};const UpdateRecommendationLifecycleStageReasonCode = { LOW_PRIORITY: "low_priority", NON_CRITICAL_ACCOUNT: "non_critical_account", NOT_APPLICABLE: "not_applicable", OTHER: "other", OTHER_METHODS_AVAILABLE: "other_methods_available", TEMPORARY_ACCOUNT: "temporary_account", VALID_BUSINESS_CASE: "valid_business_case",};const RecommendationPillar = { COST_OPTIMIZING: "cost_optimizing", FAULT_TOLERANCE: "fault_tolerance", OPERATIONAL_EXCELLENCE: "operational_excellence", PERFORMANCE: "performance", SECURITY: "security", SERVICE_LIMITS: "service_limits",};const RecommendationSource = { AWS_CONFIG: "aws_config", COMPUTE_OPTIMIZER: "compute_optimizer", COST_EXPLORER: "cost_explorer", COST_OPTIMIZATION_HUB: "cost_optimization_hub", LSE: "lse", MANUAL: "manual", PSE: "pse", RDS: "rds", RESILIENCE: "resilience", RESILIENCE_HUB: "resilience_hub", SECURITY_HUB: "security_hub", STIR: "stir", TA_CHECK: "ta_check", WELL_ARCHITECTED: "well_architected",};const ExclusionStatus = { EXCLUDED: "excluded", INCLUDED: "included",};const RecommendationStatus = { ERROR: "error", OK: "ok", WARNING: "warning",};const RecommendationType = { PRIORITY: "priority", STANDARD: "standard",};const RecommendationLanguage = { BAHASA_INDONESIA: "id", BRAZILIAN_PORTUGUESE: "pt_BR", CHINESE: "zh", ENGLISH: "en", FRENCH: "fr", GERMAN: "de", ITALIAN: "it", JAPANESE: "ja", KOREAN: "ko", SPANISH: "es", TRADITIONAL_CHINESE: "zh_TW",};const StatusReason = { NO_DATA_OK: "no_data_ok",};const ResourceStatus = { ERROR: "error", OK: "ok", WARNING: "warning",};const UpdateRecommendationLifecycleStage = { DISMISSED: "dismissed", IN_PROGRESS: "in_progress", PENDING_RESPONSE: "pending_response", RESOLVED: "resolved",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.TrustedAdvisorServiceException = TrustedAdvisorServiceException.TrustedAdvisorServiceException;exports.BatchUpdateRecommendationResourceExclusionCommand = BatchUpdateRecommendationResourceExclusionCommand;exports.ExclusionStatus = ExclusionStatus;exports.GetOrganizationRecommendationCommand = GetOrganizationRecommendationCommand;exports.GetRecommendationCommand = GetRecommendationCommand;exports.ListChecksCommand = ListChecksCommand;exports.ListOrganizationRecommendationAccountsCommand = ListOrganizationRecommendationAccountsCommand;exports.ListOrganizationRecommendationResourcesCommand = ListOrganizationRecommendationResourcesCommand;exports.ListOrganizationRecommendationsCommand = ListOrganizationRecommendationsCommand;exports.ListRecommendationResourcesCommand = ListRecommendationResourcesCommand;exports.ListRecommendationsCommand = ListRecommendationsCommand;exports.RecommendationLanguage = RecommendationLanguage;exports.RecommendationLifecycleStage = RecommendationLifecycleStage;exports.RecommendationPillar = RecommendationPillar;exports.RecommendationSource = RecommendationSource;exports.RecommendationStatus = RecommendationStatus;exports.RecommendationType = RecommendationType;exports.ResourceStatus = ResourceStatus;exports.StatusReason = StatusReason;exports.TrustedAdvisor = TrustedAdvisor;exports.TrustedAdvisorClient = TrustedAdvisorClient;exports.UpdateOrganizationRecommendationLifecycleCommand = UpdateOrganizationRecommendationLifecycleCommand;exports.UpdateRecommendationLifecycleCommand = UpdateRecommendationLifecycleCommand;exports.UpdateRecommendationLifecycleStage = UpdateRecommendationLifecycleStage;exports.UpdateRecommendationLifecycleStageReasonCode = UpdateRecommendationLifecycleStageReasonCode;exports.paginateListChecks = paginateListChecks;exports.paginateListOrganizationRecommendationAccounts = paginateListOrganizationRecommendationAccounts;exports.paginateListOrganizationRecommendationResources = paginateListOrganizationRecommendationResources;exports.paginateListOrganizationRecommendations = paginateListOrganizationRecommendations;exports.paginateListRecommendationResources = paginateListRecommendationResources;exports.paginateListRecommendations = paginateListRecommendations;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];});