/proc/self/root/proc/4/root/var/runtime/node_modules/@aws-sdk/client-dsql/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 /.
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");const { Command: $Command } = require("@smithy/core/client");exports.$Command = $Command;exports.__Client = Client;const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");const { defaultProvider } = require("@aws-sdk/credential-provider-node");const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");const { Sha256 } = require("@smithy/core/checksum"); const defaultDSQLHttpAuthSchemeParametersProvider = async (config, context, input) => { return { operation: getSmithyContext(context).operation, region: await normalizeProvider(config.region)() || (() => { throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); })(), };};function createAwsAuthSigv4HttpAuthOption(authParameters) { return { schemeId: "aws.auth#sigv4", signingProperties: { name: "dsql", region: authParameters.region, }, propertiesExtractor: (config, context) => ({ signingProperties: { config, context, }, }), };}const defaultDSQLHttpAuthSchemeProvider = (authParameters) => { const options = []; switch (authParameters.operation) { default: { options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); } } return options;};const resolveHttpAuthSchemeConfig = (config) => { const config_0 = resolveAwsSdkSigV4Config(config); return Object.assign(config_0, { authSchemePreference: normalizeProvider(config.authSchemePreference ?? []), });}; const resolveClientEndpointParameters = (options) => { return Object.assign(options, { useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "dsql", });};const commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" },}; var version = "3.1104.0";var packageInfo = { version: version}; const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];const _data = { conditions: [ [a, [b]], [a, c], ["aws.partition", c, "PartitionResult"], ["booleanEquals", [{ ref: "UseFIPS" }, true]] ], results: [ [-1], [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"], [b, {}], ["https://dsql-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}], ["https://dsql.{Region}.{PartitionResult#dualStackDnsSuffix}", {}], [-1, "Invalid Configuration: Missing Region"] ]};const root = 2;const r = 100_000_000;const nodes = new Int32Array([ -1, 1, -1, 0, 6, 3, 1, 4, r + 5, 2, 5, r + 5, 3, r + 3, r + 4, 3, r + 1, r + 2,]);const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results); const cache = new EndpointCache({ size: 50, params: ["Endpoint", "Region", "UseFIPS"],});const defaultEndpointResolver = (endpointParams, context = {}) => { return cache.get(endpointParams, () => decideEndpoint(bdd, { endpointParams: endpointParams, logger: context.logger, }));};customEndpointFunctions.aws = awsEndpointFunctions; class DSQLServiceException extends ServiceException { constructor(options) { super(options); Object.setPrototypeOf(this, DSQLServiceException.prototype); }} class AccessDeniedException extends DSQLServiceException { name = "AccessDeniedException"; $fault = "client"; constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, AccessDeniedException.prototype); }}class ConflictException extends DSQLServiceException { name = "ConflictException"; $fault = "client"; resourceId; resourceType; constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ConflictException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; }}class InternalServerException extends DSQLServiceException { name = "InternalServerException"; $fault = "server"; $retryable = {}; retryAfterSeconds; constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts, }); Object.setPrototypeOf(this, InternalServerException.prototype); this.retryAfterSeconds = opts.retryAfterSeconds; }}class ServiceQuotaExceededException extends DSQLServiceException { name = "ServiceQuotaExceededException"; $fault = "client"; resourceId; resourceType; serviceCode; quotaCode; constructor(opts) { super({ name: "ServiceQuotaExceededException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; this.serviceCode = opts.serviceCode; this.quotaCode = opts.quotaCode; }}class ThrottlingException extends DSQLServiceException { name = "ThrottlingException"; $fault = "client"; $retryable = { throttling: true, }; serviceCode; quotaCode; retryAfterSeconds; constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ThrottlingException.prototype); this.serviceCode = opts.serviceCode; this.quotaCode = opts.quotaCode; this.retryAfterSeconds = opts.retryAfterSeconds; }}class ValidationException extends DSQLServiceException { name = "ValidationException"; $fault = "client"; reason; fieldList; constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ValidationException.prototype); this.reason = opts.reason; this.fieldList = opts.fieldList; }}class ResourceNotFoundException extends DSQLServiceException { name = "ResourceNotFoundException"; $fault = "client"; resourceId; resourceType; constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts, }); Object.setPrototypeOf(this, ResourceNotFoundException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; }} const _ADE = "AccessDeniedException";const _CC = "CreateCluster";const _CCI = "CreateClusterInput";const _CCO = "CreateClusterOutput";const _CE = "ConflictException";const _CL = "ClusterList";const _CS = "ClusterSummary";const _CSI = "CreateStreamInput";const _CSO = "CreateStreamOutput";const _CSr = "CreateStream";const _DC = "DeleteCluster";const _DCI = "DeleteClusterInput";const _DCO = "DeleteClusterOutput";const _DCP = "DeleteClusterPolicy";const _DCPI = "DeleteClusterPolicyInput";const _DCPO = "DeleteClusterPolicyOutput";const _DS = "DeleteStream";const _DSI = "DeleteStreamInput";const _DSO = "DeleteStreamOutput";const _ED = "EncryptionDetails";const _GC = "GetCluster";const _GCI = "GetClusterInput";const _GCO = "GetClusterOutput";const _GCP = "GetClusterPolicy";const _GCPI = "GetClusterPolicyInput";const _GCPO = "GetClusterPolicyOutput";const _GS = "GetStream";const _GSI = "GetStreamInput";const _GSO = "GetStreamOutput";const _GVESN = "GetVpcEndpointServiceName";const _GVESNI = "GetVpcEndpointServiceNameInput";const _GVESNO = "GetVpcEndpointServiceNameOutput";const _ISE = "InternalServerException";const _KTD = "KinesisTargetDefinition";const _LC = "ListClusters";const _LCI = "ListClustersInput";const _LCO = "ListClustersOutput";const _LS = "ListStreams";const _LSI = "ListStreamsInput";const _LSO = "ListStreamsOutput";const _LTFR = "ListTagsForResource";const _LTFRI = "ListTagsForResourceInput";const _LTFRO = "ListTagsForResourceOutput";const _MRP = "MultiRegionProperties";const _PCP = "PutClusterPolicy";const _PCPI = "PutClusterPolicyInput";const _PCPO = "PutClusterPolicyOutput";const _RA = "Retry-After";const _RNFE = "ResourceNotFoundException";const _SL = "StreamList";const _SQEE = "ServiceQuotaExceededException";const _SR = "StatusReason";const _SS = "StreamSummary";const _TD = "TargetDefinition";const _TE = "ThrottlingException";const _TR = "TagResource";const _TRI = "TagResourceInput";const _UC = "UpdateCluster";const _UCI = "UpdateClusterInput";const _UCO = "UpdateClusterOutput";const _UR = "UntagResource";const _URI = "UntagResourceInput";const _VE = "ValidationException";const _VEF = "ValidationExceptionField";const _VEFL = "ValidationExceptionFieldList";const _a = "arn";const _bPLSC = "bypassPolicyLockoutSafetyCheck";const _c = "client";const _cI = "clusterIdentifier";const _cT = "clientToken";const _cTr = "creationTime";const _cVE = "clusterVpcEndpoint";const _cl = "clusters";const _ct = "client-token";const _dPE = "deletionProtectionEnabled";const _e = "error";const _eD = "encryptionDetails";const _ePV = "expectedPolicyVersion";const _eS = "encryptionStatus";const _eT = "encryptionType";const _en = "endpoint";const _epv = "expected-policy-version";const _f = "format";const _fL = "fieldList";const _h = "http";const _hE = "httpError";const _hH = "httpHeader";const _hQ = "httpQuery";const _i = "identifier";const _iT = "idempotencyToken";const _k = "kinesis";const _kEK = "kmsEncryptionKey";const _kKA = "kmsKeyArn";const _m = "message";const _mR = "maxResults";const _mRP = "multiRegionProperties";const _mr = "max-results";const _n = "name";const _nT = "nextToken";const _nt = "next-token";const _o = "ordering";const _p = "policy";const _pV = "policyVersion";const _qC = "quotaCode";const _r = "reason";const _rA = "roleArn";const _rAS = "retryAfterSeconds";const _rAe = "resourceArn";const _rI = "resourceId";const _rT = "resourceType";const _s = "smithy.ts.sdk.synthetic.com.amazonaws.dsql";const _sA = "streamArn";const _sC = "serviceCode";const _sI = "streamIdentifier";const _sN = "serviceName";const _sR = "statusReason";const _se = "server";const _st = "status";const _str = "streams";const _t = "tags";const _tD = "targetDefinition";const _tK = "tagKeys";const _uA = "updatedAt";const _wR = "witnessRegion";const n0 = "com.amazonaws.dsql";const _s_registry = TypeRegistry.for(_s);var DSQLServiceException$ = [-3, _s, "DSQLServiceException", 0, [], []];_s_registry.registerError(DSQLServiceException$, DSQLServiceException);const n0_registry = TypeRegistry.for(n0);var AccessDeniedException$ = [-3, n0, _ADE, { [_e]: _c, [_hE]: 403 }, [_m], [0], 1];n0_registry.registerError(AccessDeniedException$, AccessDeniedException);var ConflictException$ = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_m, _rI, _rT], [0, 0, 0], 1];n0_registry.registerError(ConflictException$, ConflictException);var InternalServerException$ = [-3, n0, _ISE, { [_e]: _se, [_hE]: 500 }, [_m, _rAS], [0, [1, { [_hH]: _RA }]], 1];n0_registry.registerError(InternalServerException$, InternalServerException);var ResourceNotFoundException$ = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m, _rI, _rT], [0, 0, 0], 3];n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);var ServiceQuotaExceededException$ = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 402 }, [_m, _rI, _rT, _sC, _qC], [0, 0, 0, 0, 0], 5];n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);var ThrottlingException$ = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m, _sC, _qC, _rAS], [0, 0, 0, [1, { [_hH]: _RA }]], 1];n0_registry.registerError(ThrottlingException$, ThrottlingException);var ValidationException$ = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_m, _r, _fL], [0, 0, () => ValidationExceptionFieldList], 2];n0_registry.registerError(ValidationException$, ValidationException);const errorTypeRegistries = [ _s_registry, n0_registry,];var ClusterSummary$ = [3, n0, _CS, 0, [_i, _a], [0, 0], 2];var CreateClusterInput$ = [3, n0, _CCI, 0, [_dPE, _kEK, _t, _cT, _mRP, _p, _bPLSC], [2, 0, 128 | 0, [0, 4], () => MultiRegionProperties$, 0, 2]];var CreateClusterOutput$ = [3, n0, _CCO, 0, [_i, _a, _st, _cTr, _dPE, _mRP, _eD, _en], [0, 0, 0, 4, 2, () => MultiRegionProperties$, () => EncryptionDetails$, 0], 5];var CreateStreamInput$ = [3, n0, _CSI, 0, [_cI, _tD, _o, _f, _t, _cT], [[0, 1], () => TargetDefinition$, 0, 0, 128 | 0, [0, 4]], 4];var CreateStreamOutput$ = [3, n0, _CSO, 0, [_cI, _sI, _a, _st, _cTr, _o, _f], [0, 0, 0, 0, 4, 0, 0], 7];var DeleteClusterInput$ = [3, n0, _DCI, 0, [_i, _cT], [[0, 1], [0, { [_hQ]: _ct, [_iT]: 1 }]], 1];var DeleteClusterOutput$ = [3, n0, _DCO, 0, [_i, _a, _st, _cTr], [0, 0, 0, 4], 4];var DeleteClusterPolicyInput$ = [3, n0, _DCPI, 0, [_i, _ePV, _cT], [[0, 1], [0, { [_hQ]: _epv }], [0, { [_hQ]: _ct, [_iT]: 1 }]], 1];var DeleteClusterPolicyOutput$ = [3, n0, _DCPO, 0, [_pV], [0], 1];var DeleteStreamInput$ = [3, n0, _DSI, 0, [_cI, _sI, _cT], [[0, 1], [0, 1], [0, { [_hQ]: _ct, [_iT]: 1 }]], 2];var DeleteStreamOutput$ = [3, n0, _DSO, 0, [_cI, _sI, _a, _st, _cTr], [0, 0, 0, 0, 4], 5];var EncryptionDetails$ = [3, n0, _ED, 0, [_eT, _eS, _kKA], [0, 0, 0], 2];var GetClusterInput$ = [3, n0, _GCI, 0, [_i], [[0, 1]], 1];var GetClusterOutput$ = [3, n0, _GCO, 0, [_i, _a, _st, _cTr, _dPE, _mRP, _t, _eD, _en], [0, 0, 0, 4, 2, () => MultiRegionProperties$, 128 | 0, () => EncryptionDetails$, 0], 5];var GetClusterPolicyInput$ = [3, n0, _GCPI, 0, [_i], [[0, 1]], 1];var GetClusterPolicyOutput$ = [3, n0, _GCPO, 0, [_p, _pV], [0, 0], 2];var GetStreamInput$ = [3, n0, _GSI, 0, [_cI, _sI], [[0, 1], [0, 1]], 2];var GetStreamOutput$ = [3, n0, _GSO, 0, [_cI, _sI, _a, _st, _cTr, _o, _f, _tD, _sR, _t], [0, 0, 0, 0, 4, 0, 0, () => TargetDefinition$, () => StatusReason$, 128 | 0], 7];var GetVpcEndpointServiceNameInput$ = [3, n0, _GVESNI, 0, [_i], [[0, 1]], 1];var GetVpcEndpointServiceNameOutput$ = [3, n0, _GVESNO, 0, [_sN, _cVE], [0, 0], 1];var KinesisTargetDefinition$ = [3, n0, _KTD, 0, [_sA, _rA], [0, 0], 2];var ListClustersInput$ = [3, n0, _LCI, 0, [_mR, _nT], [[1, { [_hQ]: _mr }], [0, { [_hQ]: _nt }]]];var ListClustersOutput$ = [3, n0, _LCO, 0, [_cl, _nT], [() => ClusterList, 0], 1];var ListStreamsInput$ = [3, n0, _LSI, 0, [_cI, _mR, _nT], [[0, 1], [1, { [_hQ]: _mr }], [0, { [_hQ]: _nt }]], 1];var ListStreamsOutput$ = [3, n0, _LSO, 0, [_str, _nT], [() => StreamList, 0], 1];var ListTagsForResourceInput$ = [3, n0, _LTFRI, 0, [_rAe], [[0, 1]], 1];var ListTagsForResourceOutput$ = [3, n0, _LTFRO, 0, [_t], [128 | 0]];var MultiRegionProperties$ = [3, n0, _MRP, 0, [_wR, _cl], [0, 64 | 0]];var PutClusterPolicyInput$ = [3, n0, _PCPI, 0, [_i, _p, _bPLSC, _ePV, _cT], [[0, 1], 0, 2, 0, [0, 4]], 2];var PutClusterPolicyOutput$ = [3, n0, _PCPO, 0, [_pV], [0], 1];var StatusReason$ = [3, n0, _SR, 0, [_e, _uA], [0, 4], 2];var StreamSummary$ = [3, n0, _SS, 0, [_cI, _sI, _a, _cTr, _st], [0, 0, 0, 4, 0], 5];var TagResourceInput$ = [3, n0, _TRI, 0, [_rAe, _t], [[0, 1], 128 | 0], 2];var UntagResourceInput$ = [3, n0, _URI, 0, [_rAe, _tK], [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2];var UpdateClusterInput$ = [3, n0, _UCI, 0, [_i, _dPE, _kEK, _cT, _mRP], [[0, 1], 2, 0, [0, 4], () => MultiRegionProperties$], 1];var UpdateClusterOutput$ = [3, n0, _UCO, 0, [_i, _a, _st, _cTr], [0, 0, 0, 4], 4];var ValidationExceptionField$ = [3, n0, _VEF, 0, [_n, _m], [0, 0], 2];var __Unit = "unit";var ClusterList = [1, n0, _CL, 0, () => ClusterSummary$];var StreamList = [1, n0, _SL, 0, () => StreamSummary$];var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField$];var TargetDefinition$ = [4, n0, _TD, 0, [_k], [() => KinesisTargetDefinition$]];var CreateCluster$ = [9, n0, _CC, { [_h]: ["POST", "/cluster", 200] }, () => CreateClusterInput$, () => CreateClusterOutput$];var CreateStream$ = [9, n0, _CSr, { [_h]: ["POST", "/stream/{clusterIdentifier}", 200] }, () => CreateStreamInput$, () => CreateStreamOutput$];var DeleteCluster$ = [9, n0, _DC, { [_h]: ["DELETE", "/cluster/{identifier}", 200] }, () => DeleteClusterInput$, () => DeleteClusterOutput$];var DeleteClusterPolicy$ = [9, n0, _DCP, { [_h]: ["DELETE", "/cluster/{identifier}/policy", 200] }, () => DeleteClusterPolicyInput$, () => DeleteClusterPolicyOutput$];var DeleteStream$ = [9, n0, _DS, { [_h]: ["DELETE", "/stream/{clusterIdentifier}/{streamIdentifier}", 200] }, () => DeleteStreamInput$, () => DeleteStreamOutput$];var GetCluster$ = [9, n0, _GC, { [_h]: ["GET", "/cluster/{identifier}", 200] }, () => GetClusterInput$, () => GetClusterOutput$];var GetClusterPolicy$ = [9, n0, _GCP, { [_h]: ["GET", "/cluster/{identifier}/policy", 200] }, () => GetClusterPolicyInput$, () => GetClusterPolicyOutput$];var GetStream$ = [9, n0, _GS, { [_h]: ["GET", "/stream/{clusterIdentifier}/{streamIdentifier}", 200] }, () => GetStreamInput$, () => GetStreamOutput$];var GetVpcEndpointServiceName$ = [9, n0, _GVESN, { [_h]: ["GET", "/clusters/{identifier}/vpc-endpoint-service-name", 200] }, () => GetVpcEndpointServiceNameInput$, () => GetVpcEndpointServiceNameOutput$];var ListClusters$ = [9, n0, _LC, { [_h]: ["GET", "/cluster", 200] }, () => ListClustersInput$, () => ListClustersOutput$];var ListStreams$ = [9, n0, _LS, { [_h]: ["GET", "/stream/{clusterIdentifier}", 200] }, () => ListStreamsInput$, () => ListStreamsOutput$];var ListTagsForResource$ = [9, n0, _LTFR, { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$];var PutClusterPolicy$ = [9, n0, _PCP, { [_h]: ["POST", "/cluster/{identifier}/policy", 200] }, () => PutClusterPolicyInput$, () => PutClusterPolicyOutput$];var TagResource$ = [9, n0, _TR, { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceInput$, () => __Unit];var UntagResource$ = [9, n0, _UR, { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceInput$, () => __Unit];var UpdateCluster$ = [9, n0, _UC, { [_h]: ["POST", "/cluster/{identifier}", 200] }, () => UpdateClusterInput$, () => UpdateClusterOutput$]; const getRuntimeConfig$1 = (config) => { return { apiVersion: "2018-05-10", base64Decoder: config?.base64Decoder ?? fromBase64, base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, extensions: config?.extensions ?? [], httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultDSQLHttpAuthSchemeProvider, httpAuthSchemes: config?.httpAuthSchemes ?? [ { schemeId: "aws.auth#sigv4", identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"), signer: new AwsSdkSigV4Signer(), }, ], logger: config?.logger ?? new NoOpLogger(), protocol: config?.protocol ?? AwsRestJsonProtocol, protocolSettings: config?.protocolSettings ?? { defaultNamespace: "com.amazonaws.dsql", errorTypeRegistries, version: "2018-05-10", serviceTarget: "DSQL", }, serviceId: config?.serviceId ?? "DSQL", sha256: config?.sha256 ?? Sha256, urlParser: config?.urlParser ?? parseUrl, utf8Decoder: config?.utf8Decoder ?? fromUtf8, utf8Encoder: config?.utf8Encoder ?? toUtf8, };}; const getRuntimeConfig = (config) => { emitWarningIfUnsupportedVersion(process.version); const defaultsMode = resolveDefaultsModeConfig(config); const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); const clientSharedValues = getRuntimeConfig$1(config); emitWarningIfUnsupportedVersion$1(process.version); const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger, }; return { ...clientSharedValues, ...config, runtime: "node", defaultsMode, authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig), bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config), region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }), requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider), retryMode: config?.retryMode ?? loadConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }, config), streamCollector: config?.streamCollector ?? streamCollector, useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig), useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig), userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig), };}; 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(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig)); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class DSQLClient extends Client { config; constructor(...[configuration]) { const _config_0 = getRuntimeConfig(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = resolveUserAgentConfig(_config_1); const _config_3 = resolveRetryConfig(_config_2); const _config_4 = resolveRegionConfig(_config_3); const _config_5 = resolveHostHeaderConfig(_config_4); const _config_6 = resolveEndpointConfig(_config_5); const _config_7 = resolveHttpAuthSchemeConfig(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use(getSchemaSerdePlugin(this.config)); this.middlewareStack.use(getUserAgentPlugin(this.config)); this.middlewareStack.use(getRetryPlugin(this.config)); this.middlewareStack.use(getContentLengthPlugin(this.config)); this.middlewareStack.use(getHostHeaderPlugin(this.config)); this.middlewareStack.use(getLoggerPlugin(this.config)); this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, { httpAuthSchemeParametersProvider: defaultDSQLHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, }), })); this.middlewareStack.use(getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); }} const command = makeBuilder(commonParams, "DSQL", "DSQLClient", getEndpointPlugin);const _ep0 = {};const _mw0 = (Command, cs, config, o) => []; class CreateClusterCommand extends command(_ep0, _mw0, "CreateCluster", CreateCluster$) {} class CreateStreamCommand extends command(_ep0, _mw0, "CreateStream", CreateStream$) {} class DeleteClusterCommand extends command(_ep0, _mw0, "DeleteCluster", DeleteCluster$) {} class DeleteClusterPolicyCommand extends command(_ep0, _mw0, "DeleteClusterPolicy", DeleteClusterPolicy$) {} class DeleteStreamCommand extends command(_ep0, _mw0, "DeleteStream", DeleteStream$) {} class GetClusterCommand extends command(_ep0, _mw0, "GetCluster", GetCluster$) {} class GetClusterPolicyCommand extends command(_ep0, _mw0, "GetClusterPolicy", GetClusterPolicy$) {} class GetStreamCommand extends command(_ep0, _mw0, "GetStream", GetStream$) {} class GetVpcEndpointServiceNameCommand extends command(_ep0, _mw0, "GetVpcEndpointServiceName", GetVpcEndpointServiceName$) {} class ListClustersCommand extends command(_ep0, _mw0, "ListClusters", ListClusters$) {} class ListStreamsCommand extends command(_ep0, _mw0, "ListStreams", ListStreams$) {} class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {} class PutClusterPolicyCommand extends command(_ep0, _mw0, "PutClusterPolicy", PutClusterPolicy$) {} class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {} class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {} class UpdateClusterCommand extends command(_ep0, _mw0, "UpdateCluster", UpdateCluster$) {} const paginateListClusters = createPaginator(DSQLClient, ListClustersCommand, "nextToken", "nextToken", "maxResults"); const paginateListStreams = createPaginator(DSQLClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults"); const checkState$3 = async (client, input) => { let reason; try { let result = await client.send(new GetClusterCommand(input)); reason = result; try { const returnComparator = () => { return result.status; }; if (returnComparator() === "ACTIVE") { return { state: WaiterState.SUCCESS, reason }; } } catch (e) { } } catch (exception) { reason = exception; } return { state: WaiterState.RETRY, reason };};const waitForClusterActive = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);};const waitUntilClusterActive = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$3); return checkExceptions(result);}; const checkState$2 = async (client, input) => { let reason; try { let result = await client.send(new GetClusterCommand(input)); reason = result; } catch (exception) { reason = exception; if (exception.name === "ResourceNotFoundException") { return { state: WaiterState.SUCCESS, reason }; } } return { state: WaiterState.RETRY, reason };};const waitForClusterNotExists = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);};const waitUntilClusterNotExists = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$2); return checkExceptions(result);}; const checkState$1 = async (client, input) => { let reason; try { let result = await client.send(new GetStreamCommand(input)); reason = result; try { const returnComparator = () => { return result.status; }; if (returnComparator() === "ACTIVE") { return { state: WaiterState.SUCCESS, reason }; } } catch (e) { } } catch (exception) { reason = exception; } return { state: WaiterState.RETRY, reason };};const waitForStreamActive = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);};const waitUntilStreamActive = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1); return checkExceptions(result);}; const checkState = async (client, input) => { let reason; try { let result = await client.send(new GetStreamCommand(input)); reason = result; } catch (exception) { reason = exception; if (exception.name === "ResourceNotFoundException") { return { state: WaiterState.SUCCESS, reason }; } } return { state: WaiterState.RETRY, reason };};const waitForStreamNotExists = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return createWaiter({ ...serviceDefaults, ...params }, input, checkState);};const waitUntilStreamNotExists = async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState); return checkExceptions(result);}; const commands = { CreateClusterCommand, CreateStreamCommand, DeleteClusterCommand, DeleteClusterPolicyCommand, DeleteStreamCommand, GetClusterCommand, GetClusterPolicyCommand, GetStreamCommand, GetVpcEndpointServiceNameCommand, ListClustersCommand, ListStreamsCommand, ListTagsForResourceCommand, PutClusterPolicyCommand, TagResourceCommand, UntagResourceCommand, UpdateClusterCommand,};const paginators = { paginateListClusters, paginateListStreams,};const waiters = { waitUntilClusterActive, waitUntilClusterNotExists, waitUntilStreamActive, waitUntilStreamNotExists,};class DSQL extends DSQLClient {}createAggregatedClient(commands, DSQL, { paginators, waiters }); const ClusterStatus = { ACTIVE: "ACTIVE", CREATING: "CREATING", DELETED: "DELETED", DELETING: "DELETING", FAILED: "FAILED", IDLE: "IDLE", INACTIVE: "INACTIVE", PENDING_DELETE: "PENDING_DELETE", PENDING_SETUP: "PENDING_SETUP", UPDATING: "UPDATING",};const EncryptionStatus = { ENABLED: "ENABLED", ENABLING: "ENABLING", KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE", UPDATING: "UPDATING",};const EncryptionType = { AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY", CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",};const ValidationExceptionReason = { CANNOT_PARSE: "cannotParse", DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled", FIELD_VALIDATION_FAILED: "fieldValidationFailed", OTHER: "other", UNKNOWN_OPERATION: "unknownOperation",};const StreamFormat = { JSON: "JSON",};const StreamOrdering = { UNORDERED: "UNORDERED",};const StreamStatus = { ACTIVE: "ACTIVE", CREATING: "CREATING", DELETED: "DELETED", DELETING: "DELETING", FAILED: "FAILED", IMPAIRED: "IMPAIRED",};const StreamFailureErrorCode = { CLUSTER_CMK_INACCESSIBLE: "CLUSTER_CMK_INACCESSIBLE", INTERNAL_ERROR: "INTERNAL_ERROR", KINESIS_ACCESS_DENIED: "KINESIS_ACCESS_DENIED", KINESIS_KMS_ACCESS_DENIED: "KINESIS_KMS_ACCESS_DENIED", KINESIS_OVERSIZE_RECORD: "KINESIS_OVERSIZE_RECORD", KINESIS_STREAM_NOT_FOUND: "KINESIS_STREAM_NOT_FOUND", KINESIS_THROUGHPUT_EXCEEDED: "KINESIS_THROUGHPUT_EXCEEDED", ROLE_ACCESS_DENIED: "ROLE_ACCESS_DENIED",}; exports.AccessDeniedException = AccessDeniedException;exports.AccessDeniedException$ = AccessDeniedException$;exports.ClusterStatus = ClusterStatus;exports.ClusterSummary$ = ClusterSummary$;exports.ConflictException = ConflictException;exports.ConflictException$ = ConflictException$;exports.CreateCluster$ = CreateCluster$;exports.CreateClusterCommand = CreateClusterCommand;exports.CreateClusterInput$ = CreateClusterInput$;exports.CreateClusterOutput$ = CreateClusterOutput$;exports.CreateStream$ = CreateStream$;exports.CreateStreamCommand = CreateStreamCommand;exports.CreateStreamInput$ = CreateStreamInput$;exports.CreateStreamOutput$ = CreateStreamOutput$;exports.DSQL = DSQL;exports.DSQLClient = DSQLClient;exports.DSQLServiceException = DSQLServiceException;exports.DSQLServiceException$ = DSQLServiceException$;exports.DeleteCluster$ = DeleteCluster$;exports.DeleteClusterCommand = DeleteClusterCommand;exports.DeleteClusterInput$ = DeleteClusterInput$;exports.DeleteClusterOutput$ = DeleteClusterOutput$;exports.DeleteClusterPolicy$ = DeleteClusterPolicy$;exports.DeleteClusterPolicyCommand = DeleteClusterPolicyCommand;exports.DeleteClusterPolicyInput$ = DeleteClusterPolicyInput$;exports.DeleteClusterPolicyOutput$ = DeleteClusterPolicyOutput$;exports.DeleteStream$ = DeleteStream$;exports.DeleteStreamCommand = DeleteStreamCommand;exports.DeleteStreamInput$ = DeleteStreamInput$;exports.DeleteStreamOutput$ = DeleteStreamOutput$;exports.EncryptionDetails$ = EncryptionDetails$;exports.EncryptionStatus = EncryptionStatus;exports.EncryptionType = EncryptionType;exports.GetCluster$ = GetCluster$;exports.GetClusterCommand = GetClusterCommand;exports.GetClusterInput$ = GetClusterInput$;exports.GetClusterOutput$ = GetClusterOutput$;exports.GetClusterPolicy$ = GetClusterPolicy$;exports.GetClusterPolicyCommand = GetClusterPolicyCommand;exports.GetClusterPolicyInput$ = GetClusterPolicyInput$;exports.GetClusterPolicyOutput$ = GetClusterPolicyOutput$;exports.GetStream$ = GetStream$;exports.GetStreamCommand = GetStreamCommand;exports.GetStreamInput$ = GetStreamInput$;exports.GetStreamOutput$ = GetStreamOutput$;exports.GetVpcEndpointServiceName$ = GetVpcEndpointServiceName$;exports.GetVpcEndpointServiceNameCommand = GetVpcEndpointServiceNameCommand;exports.GetVpcEndpointServiceNameInput$ = GetVpcEndpointServiceNameInput$;exports.GetVpcEndpointServiceNameOutput$ = GetVpcEndpointServiceNameOutput$;exports.InternalServerException = InternalServerException;exports.InternalServerException$ = InternalServerException$;exports.KinesisTargetDefinition$ = KinesisTargetDefinition$;exports.ListClusters$ = ListClusters$;exports.ListClustersCommand = ListClustersCommand;exports.ListClustersInput$ = ListClustersInput$;exports.ListClustersOutput$ = ListClustersOutput$;exports.ListStreams$ = ListStreams$;exports.ListStreamsCommand = ListStreamsCommand;exports.ListStreamsInput$ = ListStreamsInput$;exports.ListStreamsOutput$ = ListStreamsOutput$;exports.ListTagsForResource$ = ListTagsForResource$;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;exports.MultiRegionProperties$ = MultiRegionProperties$;exports.PutClusterPolicy$ = PutClusterPolicy$;exports.PutClusterPolicyCommand = PutClusterPolicyCommand;exports.PutClusterPolicyInput$ = PutClusterPolicyInput$;exports.PutClusterPolicyOutput$ = PutClusterPolicyOutput$;exports.ResourceNotFoundException = ResourceNotFoundException;exports.ResourceNotFoundException$ = ResourceNotFoundException$;exports.ServiceQuotaExceededException = ServiceQuotaExceededException;exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;exports.StatusReason$ = StatusReason$;exports.StreamFailureErrorCode = StreamFailureErrorCode;exports.StreamFormat = StreamFormat;exports.StreamOrdering = StreamOrdering;exports.StreamStatus = StreamStatus;exports.StreamSummary$ = StreamSummary$;exports.TagResource$ = TagResource$;exports.TagResourceCommand = TagResourceCommand;exports.TagResourceInput$ = TagResourceInput$;exports.TargetDefinition$ = TargetDefinition$;exports.ThrottlingException = ThrottlingException;exports.ThrottlingException$ = ThrottlingException$;exports.UntagResource$ = UntagResource$;exports.UntagResourceCommand = UntagResourceCommand;exports.UntagResourceInput$ = UntagResourceInput$;exports.UpdateCluster$ = UpdateCluster$;exports.UpdateClusterCommand = UpdateClusterCommand;exports.UpdateClusterInput$ = UpdateClusterInput$;exports.UpdateClusterOutput$ = UpdateClusterOutput$;exports.ValidationException = ValidationException;exports.ValidationException$ = ValidationException$;exports.ValidationExceptionField$ = ValidationExceptionField$;exports.ValidationExceptionReason = ValidationExceptionReason;exports.errorTypeRegistries = errorTypeRegistries;exports.paginateListClusters = paginateListClusters;exports.paginateListStreams = paginateListStreams;exports.waitForClusterActive = waitForClusterActive;exports.waitForClusterNotExists = waitForClusterNotExists;exports.waitForStreamActive = waitForStreamActive;exports.waitForStreamNotExists = waitForStreamNotExists;exports.waitUntilClusterActive = waitUntilClusterActive;exports.waitUntilClusterNotExists = waitUntilClusterNotExists;exports.waitUntilStreamActive = waitUntilStreamActive;exports.waitUntilStreamNotExists = waitUntilStreamNotExists;