/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@aws-sdk/client-redshift-data@3.1029.0/dist-cjs/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";var middlewareHostHeader=require("@aws-sdk/middleware-host-header"),middlewareLogger=require("@aws-sdk/middleware-logger"),middlewareRecursionDetection=require("@aws-sdk/middleware-recursion-detection"),middlewareUserAgent=require("@aws-sdk/middleware-user-agent"),configResolver=require("@smithy/config-resolver"),core=require("@smithy/core"),schema=require("@smithy/core/schema"),middlewareContentLength=require("@smithy/middleware-content-length"),middlewareEndpoint=require("@smithy/middleware-endpoint"),middlewareRetry=require("@smithy/middleware-retry"),smithyClient=require("@smithy/smithy-client"),httpAuthSchemeProvider=require("./auth/httpAuthSchemeProvider"),runtimeConfig=require("./runtimeConfig"),regionConfigResolver=require("@aws-sdk/region-config-resolver"),protocolHttp=require("@smithy/protocol-http"),schemas_0=require("./schemas/schemas_0"),errors=require("./models/errors"),RedshiftDataServiceException=require("./models/RedshiftDataServiceException");const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"redshift-data"}),commonParams={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let a=e.httpAuthSchemeProvider,n=e.credentials;return{setHttpAuthScheme(e){const a=t.findIndex((t=>t.schemeId===e.schemeId));-1===a?t.push(e):t.splice(a,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){a=e},httpAuthSchemeProvider:()=>a,setCredentials(e){n=e},credentials:()=>n}},resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),resolveRuntimeExtensions=(e,t)=>{const a=Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(e),smithyClient.getDefaultExtensionConfiguration(e),protocolHttp.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));return t.forEach((e=>e.configure(a))),Object.assign(e,regionConfigResolver.resolveAwsRegionExtensionConfiguration(a),smithyClient.resolveDefaultRuntimeConfig(a),protocolHttp.resolveHttpHandlerRuntimeConfig(a),resolveHttpAuthRuntimeConfig(a))};class RedshiftDataClient extends smithyClient.Client{config;constructor(...[e]){const t=runtimeConfig.getRuntimeConfig(e||{});super(t),this.initConfig=t;const a=resolveClientEndpointParameters(t),n=middlewareUserAgent.resolveUserAgentConfig(a),s=middlewareRetry.resolveRetryConfig(n),i=configResolver.resolveRegionConfig(s),m=middlewareHostHeader.resolveHostHeaderConfig(i),o=middlewareEndpoint.resolveEndpointConfig(m),r=httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(o),d=resolveRuntimeExtensions(r,e?.extensions||[]);this.config=d,this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config)),this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config)),this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config)),this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config)),this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config)),this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:httpAuthSchemeProvider.defaultRedshiftDataHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new core.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(core.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class BatchExecuteStatementCommand extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","BatchExecuteStatement",{}).n("RedshiftDataClient","BatchExecuteStatementCommand").sc(schemas_0.BatchExecuteStatement$).build()){}class CancelStatementCommand extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","CancelStatement",{}).n("RedshiftDataClient","CancelStatementCommand").sc(schemas_0.CancelStatement$).build()){}class DescribeStatementCommand extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","DescribeStatement",{}).n("RedshiftDataClient","DescribeStatementCommand").sc(schemas_0.DescribeStatement$).build()){}class DescribeTableCommand extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","DescribeTable",{}).n("RedshiftDataClient","DescribeTableCommand").sc(schemas_0.DescribeTable$).build()){}class ExecuteStatementCommand extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","ExecuteStatement",{}).n("RedshiftDataClient","ExecuteStatementCommand").sc(schemas_0.ExecuteStatement$).build()){}class GetStatementResultCommand extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","GetStatementResult",{}).n("RedshiftDataClient","GetStatementResultCommand").sc(schemas_0.GetStatementResult$).build()){}class GetStatementResultV2Command extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","GetStatementResultV2",{}).n("RedshiftDataClient","GetStatementResultV2Command").sc(schemas_0.GetStatementResultV2$).build()){}class ListDatabasesCommand extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","ListDatabases",{}).n("RedshiftDataClient","ListDatabasesCommand").sc(schemas_0.ListDatabases$).build()){}class ListSchemasCommand extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","ListSchemas",{}).n("RedshiftDataClient","ListSchemasCommand").sc(schemas_0.ListSchemas$).build()){}class ListStatementsCommand extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","ListStatements",{}).n("RedshiftDataClient","ListStatementsCommand").sc(schemas_0.ListStatements$).build()){}class ListTablesCommand extends(smithyClient.Command.classBuilder().ep(commonParams).m((function(e,t,a,n){return[middlewareEndpoint.getEndpointPlugin(a,e.getEndpointParameterInstructions())]})).s("RedshiftData","ListTables",{}).n("RedshiftDataClient","ListTablesCommand").sc(schemas_0.ListTables$).build()){}const paginateDescribeTable=core.createPaginator(RedshiftDataClient,DescribeTableCommand,"NextToken","NextToken","MaxResults"),paginateGetStatementResult=core.createPaginator(RedshiftDataClient,GetStatementResultCommand,"NextToken","NextToken",""),paginateGetStatementResultV2=core.createPaginator(RedshiftDataClient,GetStatementResultV2Command,"NextToken","NextToken",""),paginateListDatabases=core.createPaginator(RedshiftDataClient,ListDatabasesCommand,"NextToken","NextToken","MaxResults"),paginateListSchemas=core.createPaginator(RedshiftDataClient,ListSchemasCommand,"NextToken","NextToken","MaxResults"),paginateListStatements=core.createPaginator(RedshiftDataClient,ListStatementsCommand,"NextToken","NextToken","MaxResults"),paginateListTables=core.createPaginator(RedshiftDataClient,ListTablesCommand,"NextToken","NextToken","MaxResults"),commands={BatchExecuteStatementCommand:BatchExecuteStatementCommand,CancelStatementCommand:CancelStatementCommand,DescribeStatementCommand:DescribeStatementCommand,DescribeTableCommand:DescribeTableCommand,ExecuteStatementCommand:ExecuteStatementCommand,GetStatementResultCommand:GetStatementResultCommand,GetStatementResultV2Command:GetStatementResultV2Command,ListDatabasesCommand:ListDatabasesCommand,ListSchemasCommand:ListSchemasCommand,ListStatementsCommand:ListStatementsCommand,ListTablesCommand:ListTablesCommand},paginators={paginateDescribeTable:paginateDescribeTable,paginateGetStatementResult:paginateGetStatementResult,paginateGetStatementResultV2:paginateGetStatementResultV2,paginateListDatabases:paginateListDatabases,paginateListSchemas:paginateListSchemas,paginateListStatements:paginateListStatements,paginateListTables:paginateListTables};class RedshiftData extends RedshiftDataClient{}smithyClient.createAggregatedClient(commands,RedshiftData,{paginators:paginators});const ResultFormatString={CSV:"CSV",JSON:"JSON"},StatusString={ABORTED:"ABORTED",ALL:"ALL",FAILED:"FAILED",FINISHED:"FINISHED",PICKED:"PICKED",STARTED:"STARTED",SUBMITTED:"SUBMITTED"},StatementStatusString={ABORTED:"ABORTED",FAILED:"FAILED",FINISHED:"FINISHED",PICKED:"PICKED",STARTED:"STARTED",SUBMITTED:"SUBMITTED"};exports.$Command=smithyClient.Command,exports.__Client=smithyClient.Client,exports.RedshiftDataServiceException=RedshiftDataServiceException.RedshiftDataServiceException,exports.BatchExecuteStatementCommand=BatchExecuteStatementCommand,exports.CancelStatementCommand=CancelStatementCommand,exports.DescribeStatementCommand=DescribeStatementCommand,exports.DescribeTableCommand=DescribeTableCommand,exports.ExecuteStatementCommand=ExecuteStatementCommand,exports.GetStatementResultCommand=GetStatementResultCommand,exports.GetStatementResultV2Command=GetStatementResultV2Command,exports.ListDatabasesCommand=ListDatabasesCommand,exports.ListSchemasCommand=ListSchemasCommand,exports.ListStatementsCommand=ListStatementsCommand,exports.ListTablesCommand=ListTablesCommand,exports.RedshiftData=RedshiftData,exports.RedshiftDataClient=RedshiftDataClient,exports.ResultFormatString=ResultFormatString,exports.StatementStatusString=StatementStatusString,exports.StatusString=StatusString,exports.paginateDescribeTable=paginateDescribeTable,exports.paginateGetStatementResult=paginateGetStatementResult,exports.paginateGetStatementResultV2=paginateGetStatementResultV2,exports.paginateListDatabases=paginateListDatabases,exports.paginateListSchemas=paginateListSchemas,exports.paginateListStatements=paginateListStatements,exports.paginateListTables=paginateListTables,Object.prototype.hasOwnProperty.call(schemas_0,"__proto__")&&!Object.prototype.hasOwnProperty.call(exports,"__proto__")&&Object.defineProperty(exports,"__proto__",{enumerable:!0,value:schemas_0.__proto__}),Object.keys(schemas_0).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||(exports[e]=schemas_0[e])})),Object.prototype.hasOwnProperty.call(errors,"__proto__")&&!Object.prototype.hasOwnProperty.call(exports,"__proto__")&&Object.defineProperty(exports,"__proto__",{enumerable:!0,value:errors.__proto__}),Object.keys(errors).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||(exports[e]=errors[e])}));
//# sourceMappingURL=/sm/e4b00e50e5093baa45410a38c9df429c72bb16b84974f091bd6a62c0742b4b4d.map