File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/client-opensearchserverless/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.js32.8 KB · 884 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 OpenSearchServerlessServiceException = require('./models/OpenSearchServerlessServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "aoss",    });};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 OpenSearchServerlessClient 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.defaultOpenSearchServerlessHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class BatchGetCollectionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "BatchGetCollection", {})    .n("OpenSearchServerlessClient", "BatchGetCollectionCommand")    .sc(schemas_0.BatchGetCollection$)    .build() {} class BatchGetCollectionGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "BatchGetCollectionGroup", {})    .n("OpenSearchServerlessClient", "BatchGetCollectionGroupCommand")    .sc(schemas_0.BatchGetCollectionGroup$)    .build() {} class BatchGetEffectiveLifecyclePolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "BatchGetEffectiveLifecyclePolicy", {})    .n("OpenSearchServerlessClient", "BatchGetEffectiveLifecyclePolicyCommand")    .sc(schemas_0.BatchGetEffectiveLifecyclePolicy$)    .build() {} class BatchGetLifecyclePolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "BatchGetLifecyclePolicy", {})    .n("OpenSearchServerlessClient", "BatchGetLifecyclePolicyCommand")    .sc(schemas_0.BatchGetLifecyclePolicy$)    .build() {} class BatchGetVpcEndpointCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "BatchGetVpcEndpoint", {})    .n("OpenSearchServerlessClient", "BatchGetVpcEndpointCommand")    .sc(schemas_0.BatchGetVpcEndpoint$)    .build() {} class CreateAccessPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "CreateAccessPolicy", {})    .n("OpenSearchServerlessClient", "CreateAccessPolicyCommand")    .sc(schemas_0.CreateAccessPolicy$)    .build() {} class CreateCollectionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "CreateCollection", {})    .n("OpenSearchServerlessClient", "CreateCollectionCommand")    .sc(schemas_0.CreateCollection$)    .build() {} class CreateCollectionGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "CreateCollectionGroup", {})    .n("OpenSearchServerlessClient", "CreateCollectionGroupCommand")    .sc(schemas_0.CreateCollectionGroup$)    .build() {} class CreateIndexCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "CreateIndex", {})    .n("OpenSearchServerlessClient", "CreateIndexCommand")    .sc(schemas_0.CreateIndex$)    .build() {} class CreateLifecyclePolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "CreateLifecyclePolicy", {})    .n("OpenSearchServerlessClient", "CreateLifecyclePolicyCommand")    .sc(schemas_0.CreateLifecyclePolicy$)    .build() {} class CreateSecurityConfigCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "CreateSecurityConfig", {})    .n("OpenSearchServerlessClient", "CreateSecurityConfigCommand")    .sc(schemas_0.CreateSecurityConfig$)    .build() {} class CreateSecurityPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "CreateSecurityPolicy", {})    .n("OpenSearchServerlessClient", "CreateSecurityPolicyCommand")    .sc(schemas_0.CreateSecurityPolicy$)    .build() {} class CreateVpcEndpointCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "CreateVpcEndpoint", {})    .n("OpenSearchServerlessClient", "CreateVpcEndpointCommand")    .sc(schemas_0.CreateVpcEndpoint$)    .build() {} class DeleteAccessPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "DeleteAccessPolicy", {})    .n("OpenSearchServerlessClient", "DeleteAccessPolicyCommand")    .sc(schemas_0.DeleteAccessPolicy$)    .build() {} class DeleteCollectionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "DeleteCollection", {})    .n("OpenSearchServerlessClient", "DeleteCollectionCommand")    .sc(schemas_0.DeleteCollection$)    .build() {} class DeleteCollectionGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "DeleteCollectionGroup", {})    .n("OpenSearchServerlessClient", "DeleteCollectionGroupCommand")    .sc(schemas_0.DeleteCollectionGroup$)    .build() {} class DeleteIndexCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "DeleteIndex", {})    .n("OpenSearchServerlessClient", "DeleteIndexCommand")    .sc(schemas_0.DeleteIndex$)    .build() {} class DeleteLifecyclePolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "DeleteLifecyclePolicy", {})    .n("OpenSearchServerlessClient", "DeleteLifecyclePolicyCommand")    .sc(schemas_0.DeleteLifecyclePolicy$)    .build() {} class DeleteSecurityConfigCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "DeleteSecurityConfig", {})    .n("OpenSearchServerlessClient", "DeleteSecurityConfigCommand")    .sc(schemas_0.DeleteSecurityConfig$)    .build() {} class DeleteSecurityPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "DeleteSecurityPolicy", {})    .n("OpenSearchServerlessClient", "DeleteSecurityPolicyCommand")    .sc(schemas_0.DeleteSecurityPolicy$)    .build() {} class DeleteVpcEndpointCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "DeleteVpcEndpoint", {})    .n("OpenSearchServerlessClient", "DeleteVpcEndpointCommand")    .sc(schemas_0.DeleteVpcEndpoint$)    .build() {} class GetAccessPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "GetAccessPolicy", {})    .n("OpenSearchServerlessClient", "GetAccessPolicyCommand")    .sc(schemas_0.GetAccessPolicy$)    .build() {} class GetAccountSettingsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "GetAccountSettings", {})    .n("OpenSearchServerlessClient", "GetAccountSettingsCommand")    .sc(schemas_0.GetAccountSettings$)    .build() {} class GetIndexCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "GetIndex", {})    .n("OpenSearchServerlessClient", "GetIndexCommand")    .sc(schemas_0.GetIndex$)    .build() {} class GetPoliciesStatsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "GetPoliciesStats", {})    .n("OpenSearchServerlessClient", "GetPoliciesStatsCommand")    .sc(schemas_0.GetPoliciesStats$)    .build() {} class GetSecurityConfigCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "GetSecurityConfig", {})    .n("OpenSearchServerlessClient", "GetSecurityConfigCommand")    .sc(schemas_0.GetSecurityConfig$)    .build() {} class GetSecurityPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "GetSecurityPolicy", {})    .n("OpenSearchServerlessClient", "GetSecurityPolicyCommand")    .sc(schemas_0.GetSecurityPolicy$)    .build() {} class ListAccessPoliciesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "ListAccessPolicies", {})    .n("OpenSearchServerlessClient", "ListAccessPoliciesCommand")    .sc(schemas_0.ListAccessPolicies$)    .build() {} class ListCollectionGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "ListCollectionGroups", {})    .n("OpenSearchServerlessClient", "ListCollectionGroupsCommand")    .sc(schemas_0.ListCollectionGroups$)    .build() {} class ListCollectionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "ListCollections", {})    .n("OpenSearchServerlessClient", "ListCollectionsCommand")    .sc(schemas_0.ListCollections$)    .build() {} class ListLifecyclePoliciesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "ListLifecyclePolicies", {})    .n("OpenSearchServerlessClient", "ListLifecyclePoliciesCommand")    .sc(schemas_0.ListLifecyclePolicies$)    .build() {} class ListSecurityConfigsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "ListSecurityConfigs", {})    .n("OpenSearchServerlessClient", "ListSecurityConfigsCommand")    .sc(schemas_0.ListSecurityConfigs$)    .build() {} class ListSecurityPoliciesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "ListSecurityPolicies", {})    .n("OpenSearchServerlessClient", "ListSecurityPoliciesCommand")    .sc(schemas_0.ListSecurityPolicies$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "ListTagsForResource", {})    .n("OpenSearchServerlessClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class ListVpcEndpointsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "ListVpcEndpoints", {})    .n("OpenSearchServerlessClient", "ListVpcEndpointsCommand")    .sc(schemas_0.ListVpcEndpoints$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "TagResource", {})    .n("OpenSearchServerlessClient", "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("OpenSearchServerless", "UntagResource", {})    .n("OpenSearchServerlessClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdateAccessPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "UpdateAccessPolicy", {})    .n("OpenSearchServerlessClient", "UpdateAccessPolicyCommand")    .sc(schemas_0.UpdateAccessPolicy$)    .build() {} class UpdateAccountSettingsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "UpdateAccountSettings", {})    .n("OpenSearchServerlessClient", "UpdateAccountSettingsCommand")    .sc(schemas_0.UpdateAccountSettings$)    .build() {} class UpdateCollectionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "UpdateCollection", {})    .n("OpenSearchServerlessClient", "UpdateCollectionCommand")    .sc(schemas_0.UpdateCollection$)    .build() {} class UpdateCollectionGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "UpdateCollectionGroup", {})    .n("OpenSearchServerlessClient", "UpdateCollectionGroupCommand")    .sc(schemas_0.UpdateCollectionGroup$)    .build() {} class UpdateIndexCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "UpdateIndex", {})    .n("OpenSearchServerlessClient", "UpdateIndexCommand")    .sc(schemas_0.UpdateIndex$)    .build() {} class UpdateLifecyclePolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "UpdateLifecyclePolicy", {})    .n("OpenSearchServerlessClient", "UpdateLifecyclePolicyCommand")    .sc(schemas_0.UpdateLifecyclePolicy$)    .build() {} class UpdateSecurityConfigCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "UpdateSecurityConfig", {})    .n("OpenSearchServerlessClient", "UpdateSecurityConfigCommand")    .sc(schemas_0.UpdateSecurityConfig$)    .build() {} class UpdateSecurityPolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "UpdateSecurityPolicy", {})    .n("OpenSearchServerlessClient", "UpdateSecurityPolicyCommand")    .sc(schemas_0.UpdateSecurityPolicy$)    .build() {} class UpdateVpcEndpointCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("OpenSearchServerless", "UpdateVpcEndpoint", {})    .n("OpenSearchServerlessClient", "UpdateVpcEndpointCommand")    .sc(schemas_0.UpdateVpcEndpoint$)    .build() {} const paginateListAccessPolicies = core.createPaginator(OpenSearchServerlessClient, ListAccessPoliciesCommand, "nextToken", "nextToken", ""); const paginateListCollectionGroups = core.createPaginator(OpenSearchServerlessClient, ListCollectionGroupsCommand, "nextToken", "nextToken", ""); const paginateListCollections = core.createPaginator(OpenSearchServerlessClient, ListCollectionsCommand, "nextToken", "nextToken", ""); const paginateListLifecyclePolicies = core.createPaginator(OpenSearchServerlessClient, ListLifecyclePoliciesCommand, "nextToken", "nextToken", ""); const paginateListSecurityConfigs = core.createPaginator(OpenSearchServerlessClient, ListSecurityConfigsCommand, "nextToken", "nextToken", ""); const paginateListSecurityPolicies = core.createPaginator(OpenSearchServerlessClient, ListSecurityPoliciesCommand, "nextToken", "nextToken", ""); const paginateListVpcEndpoints = core.createPaginator(OpenSearchServerlessClient, ListVpcEndpointsCommand, "nextToken", "nextToken", ""); const commands = {    BatchGetCollectionCommand,    BatchGetCollectionGroupCommand,    BatchGetEffectiveLifecyclePolicyCommand,    BatchGetLifecyclePolicyCommand,    BatchGetVpcEndpointCommand,    CreateAccessPolicyCommand,    CreateCollectionCommand,    CreateCollectionGroupCommand,    CreateIndexCommand,    CreateLifecyclePolicyCommand,    CreateSecurityConfigCommand,    CreateSecurityPolicyCommand,    CreateVpcEndpointCommand,    DeleteAccessPolicyCommand,    DeleteCollectionCommand,    DeleteCollectionGroupCommand,    DeleteIndexCommand,    DeleteLifecyclePolicyCommand,    DeleteSecurityConfigCommand,    DeleteSecurityPolicyCommand,    DeleteVpcEndpointCommand,    GetAccessPolicyCommand,    GetAccountSettingsCommand,    GetIndexCommand,    GetPoliciesStatsCommand,    GetSecurityConfigCommand,    GetSecurityPolicyCommand,    ListAccessPoliciesCommand,    ListCollectionGroupsCommand,    ListCollectionsCommand,    ListLifecyclePoliciesCommand,    ListSecurityConfigsCommand,    ListSecurityPoliciesCommand,    ListTagsForResourceCommand,    ListVpcEndpointsCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateAccessPolicyCommand,    UpdateAccountSettingsCommand,    UpdateCollectionCommand,    UpdateCollectionGroupCommand,    UpdateIndexCommand,    UpdateLifecyclePolicyCommand,    UpdateSecurityConfigCommand,    UpdateSecurityPolicyCommand,    UpdateVpcEndpointCommand,};const paginators = {    paginateListAccessPolicies,    paginateListCollectionGroups,    paginateListCollections,    paginateListLifecyclePolicies,    paginateListSecurityConfigs,    paginateListSecurityPolicies,    paginateListVpcEndpoints,};class OpenSearchServerless extends OpenSearchServerlessClient {}client.createAggregatedClient(commands, OpenSearchServerless, { paginators }); const AccessPolicyType = {    data: "data",};const StandbyReplicas = {    DISABLED: "DISABLED",    ENABLED: "ENABLED",};const CollectionStatus = {    ACTIVE: "ACTIVE",    CREATING: "CREATING",    DELETING: "DELETING",    FAILED: "FAILED",    UPDATE_FAILED: "UPDATE_FAILED",    UPDATING: "UPDATING",};const CollectionType = {    SEARCH: "SEARCH",    TIMESERIES: "TIMESERIES",    VECTORSEARCH: "VECTORSEARCH",};const ServerlessVectorAccelerationStatus = {    ALLOWED: "ALLOWED",    DISABLED: "DISABLED",    ENABLED: "ENABLED",};const LifecyclePolicyType = {    retention: "retention",};const ResourceType = {    index: "index",};const VpcEndpointStatus = {    ACTIVE: "ACTIVE",    DELETING: "DELETING",    FAILED: "FAILED",    PENDING: "PENDING",};const IamIdentityCenterGroupAttribute = {    GroupId: "GroupId",    GroupName: "GroupName",};const IamIdentityCenterUserAttribute = {    Email: "Email",    UserId: "UserId",    UserName: "UserName",};const SecurityConfigType = {    iamfederation: "iamfederation",    iamidentitycenter: "iamidentitycenter",    saml: "saml",};const SecurityPolicyType = {    encryption: "encryption",    network: "network",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.OpenSearchServerlessServiceException = OpenSearchServerlessServiceException.OpenSearchServerlessServiceException;exports.AccessPolicyType = AccessPolicyType;exports.BatchGetCollectionCommand = BatchGetCollectionCommand;exports.BatchGetCollectionGroupCommand = BatchGetCollectionGroupCommand;exports.BatchGetEffectiveLifecyclePolicyCommand = BatchGetEffectiveLifecyclePolicyCommand;exports.BatchGetLifecyclePolicyCommand = BatchGetLifecyclePolicyCommand;exports.BatchGetVpcEndpointCommand = BatchGetVpcEndpointCommand;exports.CollectionStatus = CollectionStatus;exports.CollectionType = CollectionType;exports.CreateAccessPolicyCommand = CreateAccessPolicyCommand;exports.CreateCollectionCommand = CreateCollectionCommand;exports.CreateCollectionGroupCommand = CreateCollectionGroupCommand;exports.CreateIndexCommand = CreateIndexCommand;exports.CreateLifecyclePolicyCommand = CreateLifecyclePolicyCommand;exports.CreateSecurityConfigCommand = CreateSecurityConfigCommand;exports.CreateSecurityPolicyCommand = CreateSecurityPolicyCommand;exports.CreateVpcEndpointCommand = CreateVpcEndpointCommand;exports.DeleteAccessPolicyCommand = DeleteAccessPolicyCommand;exports.DeleteCollectionCommand = DeleteCollectionCommand;exports.DeleteCollectionGroupCommand = DeleteCollectionGroupCommand;exports.DeleteIndexCommand = DeleteIndexCommand;exports.DeleteLifecyclePolicyCommand = DeleteLifecyclePolicyCommand;exports.DeleteSecurityConfigCommand = DeleteSecurityConfigCommand;exports.DeleteSecurityPolicyCommand = DeleteSecurityPolicyCommand;exports.DeleteVpcEndpointCommand = DeleteVpcEndpointCommand;exports.GetAccessPolicyCommand = GetAccessPolicyCommand;exports.GetAccountSettingsCommand = GetAccountSettingsCommand;exports.GetIndexCommand = GetIndexCommand;exports.GetPoliciesStatsCommand = GetPoliciesStatsCommand;exports.GetSecurityConfigCommand = GetSecurityConfigCommand;exports.GetSecurityPolicyCommand = GetSecurityPolicyCommand;exports.IamIdentityCenterGroupAttribute = IamIdentityCenterGroupAttribute;exports.IamIdentityCenterUserAttribute = IamIdentityCenterUserAttribute;exports.LifecyclePolicyType = LifecyclePolicyType;exports.ListAccessPoliciesCommand = ListAccessPoliciesCommand;exports.ListCollectionGroupsCommand = ListCollectionGroupsCommand;exports.ListCollectionsCommand = ListCollectionsCommand;exports.ListLifecyclePoliciesCommand = ListLifecyclePoliciesCommand;exports.ListSecurityConfigsCommand = ListSecurityConfigsCommand;exports.ListSecurityPoliciesCommand = ListSecurityPoliciesCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListVpcEndpointsCommand = ListVpcEndpointsCommand;exports.OpenSearchServerless = OpenSearchServerless;exports.OpenSearchServerlessClient = OpenSearchServerlessClient;exports.ResourceType = ResourceType;exports.SecurityConfigType = SecurityConfigType;exports.SecurityPolicyType = SecurityPolicyType;exports.ServerlessVectorAccelerationStatus = ServerlessVectorAccelerationStatus;exports.StandbyReplicas = StandbyReplicas;exports.TagResourceCommand = TagResourceCommand;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateAccessPolicyCommand = UpdateAccessPolicyCommand;exports.UpdateAccountSettingsCommand = UpdateAccountSettingsCommand;exports.UpdateCollectionCommand = UpdateCollectionCommand;exports.UpdateCollectionGroupCommand = UpdateCollectionGroupCommand;exports.UpdateIndexCommand = UpdateIndexCommand;exports.UpdateLifecyclePolicyCommand = UpdateLifecyclePolicyCommand;exports.UpdateSecurityConfigCommand = UpdateSecurityConfigCommand;exports.UpdateSecurityPolicyCommand = UpdateSecurityPolicyCommand;exports.UpdateVpcEndpointCommand = UpdateVpcEndpointCommand;exports.VpcEndpointStatus = VpcEndpointStatus;exports.paginateListAccessPolicies = paginateListAccessPolicies;exports.paginateListCollectionGroups = paginateListCollectionGroups;exports.paginateListCollections = paginateListCollections;exports.paginateListLifecyclePolicies = paginateListLifecyclePolicies;exports.paginateListSecurityConfigs = paginateListSecurityConfigs;exports.paginateListSecurityPolicies = paginateListSecurityPolicies;exports.paginateListVpcEndpoints = paginateListVpcEndpoints;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];});