/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 /.
"use strict";var __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, { AccessDeniedException: () => AccessDeniedException, ClusterStatus: () => ClusterStatus, ConflictException: () => ConflictException, CreateClusterCommand: () => CreateClusterCommand, DSQL: () => DSQL, DSQLClient: () => DSQLClient, DSQLServiceException: () => DSQLServiceException, DeleteClusterCommand: () => DeleteClusterCommand, EncryptionStatus: () => EncryptionStatus, EncryptionType: () => EncryptionType, GetClusterCommand: () => GetClusterCommand, GetVpcEndpointServiceNameCommand: () => GetVpcEndpointServiceNameCommand, InternalServerException: () => InternalServerException, ListClustersCommand: () => ListClustersCommand, ListTagsForResourceCommand: () => ListTagsForResourceCommand, ResourceNotFoundException: () => ResourceNotFoundException, ServiceQuotaExceededException: () => ServiceQuotaExceededException, TagResourceCommand: () => TagResourceCommand, ThrottlingException: () => ThrottlingException, UntagResourceCommand: () => UntagResourceCommand, UpdateClusterCommand: () => UpdateClusterCommand, ValidationException: () => ValidationException, ValidationExceptionReason: () => ValidationExceptionReason, __Client: () => import_smithy_client.Client, paginateListClusters: () => paginateListClusters, waitForClusterActive: () => waitForClusterActive, waitForClusterNotExists: () => waitForClusterNotExists, waitUntilClusterActive: () => waitUntilClusterActive, waitUntilClusterNotExists: () => waitUntilClusterNotExists});module.exports = __toCommonJS(index_exports); // src/DSQLClient.tsvar import_middleware_host_header = require("@aws-sdk/middleware-host-header");var import_middleware_logger = require("@aws-sdk/middleware-logger");var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");var import_config_resolver = require("@smithy/config-resolver");var import_core = require("@smithy/core");var import_middleware_content_length = require("@smithy/middleware-content-length");var import_middleware_endpoint = require("@smithy/middleware-endpoint");var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "dsql" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }}; // src/DSQLClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar import_region_config_resolver = require("@aws-sdk/region-config-resolver");var import_protocol_http = require("@smithy/protocol-http");var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.tsvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((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; } };}, "getHttpAuthExtensionConfiguration");var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() };}, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign( (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig) ); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign( runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration) );}, "resolveRuntimeExtensions"); // src/DSQLClient.tsvar DSQLClient = class extends import_smithy_client.Client { static { __name(this, "DSQLClient"); } /** * The resolved configuration of DSQLClient class. This is resolved and normalized from the {@link DSQLClientConfig | constructor configuration interface}. */ config; constructor(...[configuration]) { const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultDSQLHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }), "identityProviderConfigProvider") }) ); this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. * Otherwise, sockets might stay open for quite a long time before the server terminates them. */ destroy() { super.destroy(); }}; // src/DSQL.ts // src/commands/CreateClusterCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core"); var import_uuid = require("uuid"); // src/models/DSQLServiceException.ts var DSQLServiceException = class _DSQLServiceException extends import_smithy_client.ServiceException { static { __name(this, "DSQLServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _DSQLServiceException.prototype); }}; // src/models/models_0.tsvar AccessDeniedException = class _AccessDeniedException extends DSQLServiceException { static { __name(this, "AccessDeniedException"); } name = "AccessDeniedException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedException.prototype); }};var 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"};var ConflictException = class _ConflictException extends DSQLServiceException { static { __name(this, "ConflictException"); } name = "ConflictException"; $fault = "client"; /** * <p>Resource Id</p> * @public */ resourceId; /** * <p>Resource Type</p> * @public */ resourceType; /** * @internal */ constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ConflictException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; }};var EncryptionStatus = { ENABLED: "ENABLED", ENABLING: "ENABLING", KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE", UPDATING: "UPDATING"};var EncryptionType = { AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY", CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY"};var InternalServerException = class _InternalServerException extends DSQLServiceException { static { __name(this, "InternalServerException"); } name = "InternalServerException"; $fault = "server"; $retryable = {}; /** * <p>Retry after seconds.</p> * @public */ retryAfterSeconds; /** * @internal */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); this.retryAfterSeconds = opts.retryAfterSeconds; }};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends DSQLServiceException { static { __name(this, "ServiceQuotaExceededException"); } name = "ServiceQuotaExceededException"; $fault = "client"; /** * <p>The resource ID exceeds a quota.</p> * @public */ resourceId; /** * <p>The resource type exceeds a quota.</p> * @public */ resourceType; /** * <p>The request exceeds a service quota.</p> * @public */ serviceCode; /** * <p>The service exceeds a quota.</p> * @public */ quotaCode; /** * @internal */ 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; }};var ThrottlingException = class _ThrottlingException extends DSQLServiceException { static { __name(this, "ThrottlingException"); } name = "ThrottlingException"; $fault = "client"; $retryable = { throttling: true }; /** * <p>The request exceeds a service quota.</p> * @public */ serviceCode; /** * <p>The request exceeds a request rate quota.</p> * @public */ quotaCode; /** * <p>The request exceeds a request rate quota. Retry after seconds.</p> * @public */ retryAfterSeconds; /** * @internal */ 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; }};var ValidationExceptionReason = { CANNOT_PARSE: "cannotParse", DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled", FIELD_VALIDATION_FAILED: "fieldValidationFailed", OTHER: "other", UNKNOWN_OPERATION: "unknownOperation"};var ValidationException = class _ValidationException extends DSQLServiceException { static { __name(this, "ValidationException"); } name = "ValidationException"; $fault = "client"; /** * <p>The reason for the validation exception.</p> * @public */ reason; /** * <p>A list of fields that didn't validate.</p> * @public */ fieldList; /** * @internal */ constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ValidationException.prototype); this.reason = opts.reason; this.fieldList = opts.fieldList; }};var ResourceNotFoundException = class _ResourceNotFoundException extends DSQLServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; /** * <p>The resource ID could not be found.</p> * @public */ resourceId; /** * <p>The resource type could not be found.</p> * @public */ resourceType; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; }}; // src/protocols/Aws_restJson1.tsvar se_CreateClusterCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/cluster"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], deletionProtectionEnabled: [], kmsEncryptionKey: [], multiRegionProperties: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "multiRegionProperties"), tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CreateClusterCommand");var se_DeleteClusterCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/cluster/{identifier}"); b.p("identifier", () => input.identifier, "{identifier}", false); const query = (0, import_smithy_client.map)({ [_ct]: [, input[_cT] ?? (0, import_uuid.v4)()] }); let body; b.m("DELETE").h(headers).q(query).b(body); return b.build();}, "se_DeleteClusterCommand");var se_GetClusterCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/cluster/{identifier}"); b.p("identifier", () => input.identifier, "{identifier}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_GetClusterCommand");var se_GetVpcEndpointServiceNameCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/clusters/{identifier}/vpc-endpoint-service-name"); b.p("identifier", () => input.identifier, "{identifier}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_GetVpcEndpointServiceNameCommand");var se_ListClustersCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/cluster"); const query = (0, import_smithy_client.map)({ [_mr]: [() => input.maxResults !== void 0, () => input[_mR].toString()], [_nt]: [, input[_nT]] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_ListClustersCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/tags/{resourceArn}"); b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_ListTagsForResourceCommand");var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/tags/{resourceArn}"); b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_TagResourceCommand");var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/tags/{resourceArn}"); b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false); const query = (0, import_smithy_client.map)({ [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []] }); let body; b.m("DELETE").h(headers).q(query).b(body); return b.build();}, "se_UntagResourceCommand");var se_UpdateClusterCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/cluster/{identifier}"); b.p("identifier", () => input.identifier, "{identifier}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], deletionProtectionEnabled: [], kmsEncryptionKey: [], multiRegionProperties: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "multiRegionProperties") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_UpdateClusterCommand");var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { arn: import_smithy_client.expectString, creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"), deletionProtectionEnabled: import_smithy_client.expectBoolean, encryptionDetails: import_smithy_client._json, identifier: import_smithy_client.expectString, multiRegionProperties: import_smithy_client._json, status: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_CreateClusterCommand");var de_DeleteClusterCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { arn: import_smithy_client.expectString, creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"), identifier: import_smithy_client.expectString, status: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_DeleteClusterCommand");var de_GetClusterCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { arn: import_smithy_client.expectString, creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"), deletionProtectionEnabled: import_smithy_client.expectBoolean, encryptionDetails: import_smithy_client._json, identifier: import_smithy_client.expectString, multiRegionProperties: import_smithy_client._json, status: import_smithy_client.expectString, tags: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_GetClusterCommand");var de_GetVpcEndpointServiceNameCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { serviceName: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_GetVpcEndpointServiceNameCommand");var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { clusters: import_smithy_client._json, nextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_ListClustersCommand");var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { tags: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_ListTagsForResourceCommand");var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_TagResourceCommand");var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_UntagResourceCommand");var de_UpdateClusterCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { arn: import_smithy_client.expectString, creationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "creationTime"), identifier: import_smithy_client.expectString, status: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_UpdateClusterCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core2.parseJsonErrorBody)(output.body, context) }; const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "AccessDeniedException": case "com.amazonaws.dsql#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.dsql#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.dsql#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ServiceQuotaExceededException": case "com.amazonaws.dsql#ServiceQuotaExceededException": throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.dsql#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); case "ValidationException": case "com.amazonaws.dsql#ValidationException": throw await de_ValidationExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.dsql#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(DSQLServiceException);var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_AccessDeniedExceptionRes");var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, resourceId: import_smithy_client.expectString, resourceType: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ConflictException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ConflictExceptionRes");var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new InternalServerException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalServerExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, resourceId: import_smithy_client.expectString, resourceType: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ResourceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ResourceNotFoundExceptionRes");var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, quotaCode: import_smithy_client.expectString, resourceId: import_smithy_client.expectString, resourceType: import_smithy_client.expectString, serviceCode: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ServiceQuotaExceededException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ServiceQuotaExceededExceptionRes");var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, quotaCode: import_smithy_client.expectString, serviceCode: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ThrottlingException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ThrottlingExceptionRes");var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { fieldList: import_smithy_client._json, message: import_smithy_client.expectString, reason: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ValidationException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ValidationExceptionRes");var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"]}), "deserializeMetadata");var _cT = "clientToken";var _ct = "client-token";var _mR = "maxResults";var _mr = "max-results";var _nT = "nextToken";var _nt = "next-token";var _rAS = "retryAfterSeconds";var _ra = "retry-after";var _tK = "tagKeys"; // src/commands/CreateClusterCommand.tsvar CreateClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("DSQL", "CreateCluster", {}).n("DSQLClient", "CreateClusterCommand").f(void 0, void 0).ser(se_CreateClusterCommand).de(de_CreateClusterCommand).build() { static { __name(this, "CreateClusterCommand"); }}; // src/commands/DeleteClusterCommand.ts var DeleteClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("DSQL", "DeleteCluster", {}).n("DSQLClient", "DeleteClusterCommand").f(void 0, void 0).ser(se_DeleteClusterCommand).de(de_DeleteClusterCommand).build() { static { __name(this, "DeleteClusterCommand"); }}; // src/commands/GetClusterCommand.ts var GetClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("DSQL", "GetCluster", {}).n("DSQLClient", "GetClusterCommand").f(void 0, void 0).ser(se_GetClusterCommand).de(de_GetClusterCommand).build() { static { __name(this, "GetClusterCommand"); }}; // src/commands/GetVpcEndpointServiceNameCommand.ts var GetVpcEndpointServiceNameCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("DSQL", "GetVpcEndpointServiceName", {}).n("DSQLClient", "GetVpcEndpointServiceNameCommand").f(void 0, void 0).ser(se_GetVpcEndpointServiceNameCommand).de(de_GetVpcEndpointServiceNameCommand).build() { static { __name(this, "GetVpcEndpointServiceNameCommand"); }}; // src/commands/ListClustersCommand.ts var ListClustersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("DSQL", "ListClusters", {}).n("DSQLClient", "ListClustersCommand").f(void 0, void 0).ser(se_ListClustersCommand).de(de_ListClustersCommand).build() { static { __name(this, "ListClustersCommand"); }}; // src/commands/ListTagsForResourceCommand.ts var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("DSQL", "ListTagsForResource", {}).n("DSQLClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() { static { __name(this, "ListTagsForResourceCommand"); }}; // src/commands/TagResourceCommand.ts var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("DSQL", "TagResource", {}).n("DSQLClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() { static { __name(this, "TagResourceCommand"); }}; // src/commands/UntagResourceCommand.ts var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("DSQL", "UntagResource", {}).n("DSQLClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/commands/UpdateClusterCommand.ts var UpdateClusterCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("DSQL", "UpdateCluster", {}).n("DSQLClient", "UpdateClusterCommand").f(void 0, void 0).ser(se_UpdateClusterCommand).de(de_UpdateClusterCommand).build() { static { __name(this, "UpdateClusterCommand"); }}; // src/DSQL.tsvar commands = { CreateClusterCommand, DeleteClusterCommand, GetClusterCommand, GetVpcEndpointServiceNameCommand, ListClustersCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateClusterCommand};var DSQL = class extends DSQLClient { static { __name(this, "DSQL"); }};(0, import_smithy_client.createAggregatedClient)(commands, DSQL); // src/pagination/ListClustersPaginator.ts var paginateListClusters = (0, import_core.createPaginator)(DSQLClient, ListClustersCommand, "nextToken", "nextToken", "maxResults"); // src/waiters/waitForClusterActive.tsvar import_util_waiter = require("@smithy/util-waiter");var checkState = /* @__PURE__ */ __name(async (client, input) => { let reason; try { const result = await client.send(new GetClusterCommand(input)); reason = result; try { const returnComparator = /* @__PURE__ */ __name(() => { return result.status; }, "returnComparator"); if (returnComparator() === "ACTIVE") { return { state: import_util_waiter.WaiterState.SUCCESS, reason }; } } catch (e) { } } catch (exception) { reason = exception; } return { state: import_util_waiter.WaiterState.RETRY, reason };}, "checkState");var waitForClusterActive = /* @__PURE__ */ __name(async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);}, "waitForClusterActive");var waitUntilClusterActive = /* @__PURE__ */ __name(async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); return (0, import_util_waiter.checkExceptions)(result);}, "waitUntilClusterActive"); // src/waiters/waitForClusterNotExists.ts var checkState2 = /* @__PURE__ */ __name(async (client, input) => { let reason; try { const result = await client.send(new GetClusterCommand(input)); reason = result; } catch (exception) { reason = exception; if (exception.name && exception.name == "ResourceNotFoundException") { return { state: import_util_waiter.WaiterState.SUCCESS, reason }; } } return { state: import_util_waiter.WaiterState.RETRY, reason };}, "checkState");var waitForClusterNotExists = /* @__PURE__ */ __name(async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);}, "waitForClusterNotExists");var waitUntilClusterNotExists = /* @__PURE__ */ __name(async (params, input) => { const serviceDefaults = { minDelay: 2, maxDelay: 120 }; const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2); return (0, import_util_waiter.checkExceptions)(result);}, "waitUntilClusterNotExists");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { DSQLServiceException, __Client, DSQLClient, DSQL, $Command, CreateClusterCommand, DeleteClusterCommand, GetClusterCommand, GetVpcEndpointServiceNameCommand, ListClustersCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateClusterCommand, paginateListClusters, waitForClusterActive, waitUntilClusterActive, waitForClusterNotExists, waitUntilClusterNotExists, AccessDeniedException, ClusterStatus, ConflictException, EncryptionStatus, EncryptionType, InternalServerException, ServiceQuotaExceededException, ThrottlingException, ValidationExceptionReason, ValidationException, ResourceNotFoundException});