File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/client-cloudsearch/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 /.

index.js22.0 KB · 604 lines
'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 CloudSearchServiceException = require('./models/CloudSearchServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "cloudsearch",    });};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 CloudSearchClient 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.defaultCloudSearchHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class BuildSuggestersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "BuildSuggesters", {})    .n("CloudSearchClient", "BuildSuggestersCommand")    .sc(schemas_0.BuildSuggesters$)    .build() {} class CreateDomainCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "CreateDomain", {})    .n("CloudSearchClient", "CreateDomainCommand")    .sc(schemas_0.CreateDomain$)    .build() {} class DefineAnalysisSchemeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DefineAnalysisScheme", {})    .n("CloudSearchClient", "DefineAnalysisSchemeCommand")    .sc(schemas_0.DefineAnalysisScheme$)    .build() {} class DefineExpressionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DefineExpression", {})    .n("CloudSearchClient", "DefineExpressionCommand")    .sc(schemas_0.DefineExpression$)    .build() {} class DefineIndexFieldCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DefineIndexField", {})    .n("CloudSearchClient", "DefineIndexFieldCommand")    .sc(schemas_0.DefineIndexField$)    .build() {} class DefineSuggesterCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DefineSuggester", {})    .n("CloudSearchClient", "DefineSuggesterCommand")    .sc(schemas_0.DefineSuggester$)    .build() {} class DeleteAnalysisSchemeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DeleteAnalysisScheme", {})    .n("CloudSearchClient", "DeleteAnalysisSchemeCommand")    .sc(schemas_0.DeleteAnalysisScheme$)    .build() {} class DeleteDomainCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DeleteDomain", {})    .n("CloudSearchClient", "DeleteDomainCommand")    .sc(schemas_0.DeleteDomain$)    .build() {} class DeleteExpressionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DeleteExpression", {})    .n("CloudSearchClient", "DeleteExpressionCommand")    .sc(schemas_0.DeleteExpression$)    .build() {} class DeleteIndexFieldCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DeleteIndexField", {})    .n("CloudSearchClient", "DeleteIndexFieldCommand")    .sc(schemas_0.DeleteIndexField$)    .build() {} class DeleteSuggesterCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DeleteSuggester", {})    .n("CloudSearchClient", "DeleteSuggesterCommand")    .sc(schemas_0.DeleteSuggester$)    .build() {} class DescribeAnalysisSchemesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DescribeAnalysisSchemes", {})    .n("CloudSearchClient", "DescribeAnalysisSchemesCommand")    .sc(schemas_0.DescribeAnalysisSchemes$)    .build() {} class DescribeAvailabilityOptionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DescribeAvailabilityOptions", {})    .n("CloudSearchClient", "DescribeAvailabilityOptionsCommand")    .sc(schemas_0.DescribeAvailabilityOptions$)    .build() {} class DescribeDomainEndpointOptionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DescribeDomainEndpointOptions", {})    .n("CloudSearchClient", "DescribeDomainEndpointOptionsCommand")    .sc(schemas_0.DescribeDomainEndpointOptions$)    .build() {} class DescribeDomainsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DescribeDomains", {})    .n("CloudSearchClient", "DescribeDomainsCommand")    .sc(schemas_0.DescribeDomains$)    .build() {} class DescribeExpressionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DescribeExpressions", {})    .n("CloudSearchClient", "DescribeExpressionsCommand")    .sc(schemas_0.DescribeExpressions$)    .build() {} class DescribeIndexFieldsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DescribeIndexFields", {})    .n("CloudSearchClient", "DescribeIndexFieldsCommand")    .sc(schemas_0.DescribeIndexFields$)    .build() {} class DescribeScalingParametersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DescribeScalingParameters", {})    .n("CloudSearchClient", "DescribeScalingParametersCommand")    .sc(schemas_0.DescribeScalingParameters$)    .build() {} class DescribeServiceAccessPoliciesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DescribeServiceAccessPolicies", {})    .n("CloudSearchClient", "DescribeServiceAccessPoliciesCommand")    .sc(schemas_0.DescribeServiceAccessPolicies$)    .build() {} class DescribeSuggestersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "DescribeSuggesters", {})    .n("CloudSearchClient", "DescribeSuggestersCommand")    .sc(schemas_0.DescribeSuggesters$)    .build() {} class IndexDocumentsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "IndexDocuments", {})    .n("CloudSearchClient", "IndexDocumentsCommand")    .sc(schemas_0.IndexDocuments$)    .build() {} class ListDomainNamesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "ListDomainNames", {})    .n("CloudSearchClient", "ListDomainNamesCommand")    .sc(schemas_0.ListDomainNames$)    .build() {} class UpdateAvailabilityOptionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "UpdateAvailabilityOptions", {})    .n("CloudSearchClient", "UpdateAvailabilityOptionsCommand")    .sc(schemas_0.UpdateAvailabilityOptions$)    .build() {} class UpdateDomainEndpointOptionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "UpdateDomainEndpointOptions", {})    .n("CloudSearchClient", "UpdateDomainEndpointOptionsCommand")    .sc(schemas_0.UpdateDomainEndpointOptions$)    .build() {} class UpdateScalingParametersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "UpdateScalingParameters", {})    .n("CloudSearchClient", "UpdateScalingParametersCommand")    .sc(schemas_0.UpdateScalingParameters$)    .build() {} class UpdateServiceAccessPoliciesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("A9SearchCloudConfigService2013", "UpdateServiceAccessPolicies", {})    .n("CloudSearchClient", "UpdateServiceAccessPoliciesCommand")    .sc(schemas_0.UpdateServiceAccessPolicies$)    .build() {} const commands = {    BuildSuggestersCommand,    CreateDomainCommand,    DefineAnalysisSchemeCommand,    DefineExpressionCommand,    DefineIndexFieldCommand,    DefineSuggesterCommand,    DeleteAnalysisSchemeCommand,    DeleteDomainCommand,    DeleteExpressionCommand,    DeleteIndexFieldCommand,    DeleteSuggesterCommand,    DescribeAnalysisSchemesCommand,    DescribeAvailabilityOptionsCommand,    DescribeDomainEndpointOptionsCommand,    DescribeDomainsCommand,    DescribeExpressionsCommand,    DescribeIndexFieldsCommand,    DescribeScalingParametersCommand,    DescribeServiceAccessPoliciesCommand,    DescribeSuggestersCommand,    IndexDocumentsCommand,    ListDomainNamesCommand,    UpdateAvailabilityOptionsCommand,    UpdateDomainEndpointOptionsCommand,    UpdateScalingParametersCommand,    UpdateServiceAccessPoliciesCommand,};class CloudSearch extends CloudSearchClient {}client.createAggregatedClient(commands, CloudSearch); const AlgorithmicStemming = {    full: "full",    light: "light",    minimal: "minimal",    none: "none",};const AnalysisSchemeLanguage = {    ar: "ar",    bg: "bg",    ca: "ca",    cs: "cs",    da: "da",    de: "de",    el: "el",    en: "en",    es: "es",    eu: "eu",    fa: "fa",    fi: "fi",    fr: "fr",    ga: "ga",    gl: "gl",    he: "he",    hi: "hi",    hu: "hu",    hy: "hy",    id: "id",    it: "it",    ja: "ja",    ko: "ko",    lv: "lv",    mul: "mul",    nl: "nl",    no: "no",    pt: "pt",    ro: "ro",    ru: "ru",    sv: "sv",    th: "th",    tr: "tr",    zh_Hans: "zh-Hans",    zh_Hant: "zh-Hant",};const OptionState = {    Active: "Active",    FailedToValidate: "FailedToValidate",    Processing: "Processing",    RequiresIndexDocuments: "RequiresIndexDocuments",};const IndexFieldType = {    date: "date",    date_array: "date-array",    double: "double",    double_array: "double-array",    int: "int",    int_array: "int-array",    latlon: "latlon",    literal: "literal",    literal_array: "literal-array",    text: "text",    text_array: "text-array",};const SuggesterFuzzyMatching = {    high: "high",    low: "low",    none: "none",};const TLSSecurityPolicy = {    POLICY_MIN_TLS_1_0_2019_07: "Policy-Min-TLS-1-0-2019-07",    POLICY_MIN_TLS_1_2_2019_07: "Policy-Min-TLS-1-2-2019-07",};const PartitionInstanceType = {    search_2xlarge: "search.2xlarge",    search_large: "search.large",    search_m1_large: "search.m1.large",    search_m1_small: "search.m1.small",    search_m2_2xlarge: "search.m2.2xlarge",    search_m2_xlarge: "search.m2.xlarge",    search_m3_2xlarge: "search.m3.2xlarge",    search_m3_large: "search.m3.large",    search_m3_medium: "search.m3.medium",    search_m3_xlarge: "search.m3.xlarge",    search_medium: "search.medium",    search_previousgeneration_2xlarge: "search.previousgeneration.2xlarge",    search_previousgeneration_large: "search.previousgeneration.large",    search_previousgeneration_small: "search.previousgeneration.small",    search_previousgeneration_xlarge: "search.previousgeneration.xlarge",    search_small: "search.small",    search_xlarge: "search.xlarge",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.CloudSearchServiceException = CloudSearchServiceException.CloudSearchServiceException;exports.AlgorithmicStemming = AlgorithmicStemming;exports.AnalysisSchemeLanguage = AnalysisSchemeLanguage;exports.BuildSuggestersCommand = BuildSuggestersCommand;exports.CloudSearch = CloudSearch;exports.CloudSearchClient = CloudSearchClient;exports.CreateDomainCommand = CreateDomainCommand;exports.DefineAnalysisSchemeCommand = DefineAnalysisSchemeCommand;exports.DefineExpressionCommand = DefineExpressionCommand;exports.DefineIndexFieldCommand = DefineIndexFieldCommand;exports.DefineSuggesterCommand = DefineSuggesterCommand;exports.DeleteAnalysisSchemeCommand = DeleteAnalysisSchemeCommand;exports.DeleteDomainCommand = DeleteDomainCommand;exports.DeleteExpressionCommand = DeleteExpressionCommand;exports.DeleteIndexFieldCommand = DeleteIndexFieldCommand;exports.DeleteSuggesterCommand = DeleteSuggesterCommand;exports.DescribeAnalysisSchemesCommand = DescribeAnalysisSchemesCommand;exports.DescribeAvailabilityOptionsCommand = DescribeAvailabilityOptionsCommand;exports.DescribeDomainEndpointOptionsCommand = DescribeDomainEndpointOptionsCommand;exports.DescribeDomainsCommand = DescribeDomainsCommand;exports.DescribeExpressionsCommand = DescribeExpressionsCommand;exports.DescribeIndexFieldsCommand = DescribeIndexFieldsCommand;exports.DescribeScalingParametersCommand = DescribeScalingParametersCommand;exports.DescribeServiceAccessPoliciesCommand = DescribeServiceAccessPoliciesCommand;exports.DescribeSuggestersCommand = DescribeSuggestersCommand;exports.IndexDocumentsCommand = IndexDocumentsCommand;exports.IndexFieldType = IndexFieldType;exports.ListDomainNamesCommand = ListDomainNamesCommand;exports.OptionState = OptionState;exports.PartitionInstanceType = PartitionInstanceType;exports.SuggesterFuzzyMatching = SuggesterFuzzyMatching;exports.TLSSecurityPolicy = TLSSecurityPolicy;exports.UpdateAvailabilityOptionsCommand = UpdateAvailabilityOptionsCommand;exports.UpdateDomainEndpointOptionsCommand = UpdateDomainEndpointOptionsCommand;exports.UpdateScalingParametersCommand = UpdateScalingParametersCommand;exports.UpdateServiceAccessPoliciesCommand = UpdateServiceAccessPoliciesCommand;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];});