@aws-sdk/client-redshift-data 3.1077.0 → 3.1079.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist-cjs/index.js +19 -113
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/BatchExecuteStatementCommand.js +2 -14
  4. package/dist-es/commands/CancelStatementCommand.js +2 -14
  5. package/dist-es/commands/DescribeStatementCommand.js +2 -14
  6. package/dist-es/commands/DescribeTableCommand.js +2 -14
  7. package/dist-es/commands/ExecuteStatementCommand.js +2 -14
  8. package/dist-es/commands/GetStatementResultCommand.js +2 -14
  9. package/dist-es/commands/GetStatementResultV2Command.js +2 -14
  10. package/dist-es/commands/ListDatabasesCommand.js +2 -14
  11. package/dist-es/commands/ListSchemasCommand.js +2 -14
  12. package/dist-es/commands/ListStatementsCommand.js +2 -14
  13. package/dist-es/commands/ListTablesCommand.js +2 -14
  14. package/dist-es/index.js +1 -0
  15. package/dist-types/commandBuilder.d.ts +18 -0
  16. package/dist-types/commands/BatchExecuteStatementCommand.d.ts +3 -8
  17. package/dist-types/commands/CancelStatementCommand.d.ts +3 -8
  18. package/dist-types/commands/DescribeStatementCommand.d.ts +3 -8
  19. package/dist-types/commands/DescribeTableCommand.d.ts +3 -8
  20. package/dist-types/commands/ExecuteStatementCommand.d.ts +3 -8
  21. package/dist-types/commands/GetStatementResultCommand.d.ts +3 -8
  22. package/dist-types/commands/GetStatementResultV2Command.d.ts +3 -8
  23. package/dist-types/commands/ListDatabasesCommand.d.ts +3 -8
  24. package/dist-types/commands/ListSchemasCommand.d.ts +3 -8
  25. package/dist-types/commands/ListStatementsCommand.d.ts +3 -8
  26. package/dist-types/commands/ListTablesCommand.d.ts +3 -8
  27. package/dist-types/index.d.ts +1 -0
  28. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  29. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +7 -16
  30. package/dist-types/ts3.4/commands/CancelStatementCommand.d.ts +7 -16
  31. package/dist-types/ts3.4/commands/DescribeStatementCommand.d.ts +7 -16
  32. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +7 -16
  33. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +7 -16
  34. package/dist-types/ts3.4/commands/GetStatementResultCommand.d.ts +7 -16
  35. package/dist-types/ts3.4/commands/GetStatementResultV2Command.d.ts +7 -16
  36. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +7 -16
  37. package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +7 -16
  38. package/dist-types/ts3.4/commands/ListStatementsCommand.d.ts +7 -16
  39. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +7 -16
  40. package/dist-types/ts3.4/index.d.ts +1 -0
  41. package/package.json +8 -8
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  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");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -68,7 +69,7 @@ const commonParams = {
68
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
69
70
  };
70
71
 
71
- var version = "3.1076.0";
72
+ var version = "3.1078.0";
72
73
  var packageInfo = {
73
74
  version: version};
74
75
 
@@ -820,136 +821,41 @@ class RedshiftDataClient extends Client {
820
821
  }
821
822
  }
822
823
 
823
- class BatchExecuteStatementCommand extends Command
824
- .classBuilder()
825
- .ep(commonParams)
826
- .m(function (Command, cs, config, o) {
827
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
828
- })
829
- .s("RedshiftData", "BatchExecuteStatement", {})
830
- .n("RedshiftDataClient", "BatchExecuteStatementCommand")
831
- .sc(BatchExecuteStatement$)
832
- .build() {
824
+ const command = makeBuilder(commonParams, "RedshiftData", "RedshiftDataClient", getEndpointPlugin);
825
+ const _ep0 = {};
826
+ const _mw0 = (Command, cs, config, o) => [];
827
+
828
+ class BatchExecuteStatementCommand extends command(_ep0, _mw0, "BatchExecuteStatement", BatchExecuteStatement$) {
833
829
  }
834
830
 
835
- class CancelStatementCommand extends Command
836
- .classBuilder()
837
- .ep(commonParams)
838
- .m(function (Command, cs, config, o) {
839
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
840
- })
841
- .s("RedshiftData", "CancelStatement", {})
842
- .n("RedshiftDataClient", "CancelStatementCommand")
843
- .sc(CancelStatement$)
844
- .build() {
831
+ class CancelStatementCommand extends command(_ep0, _mw0, "CancelStatement", CancelStatement$) {
845
832
  }
846
833
 
847
- class DescribeStatementCommand extends Command
848
- .classBuilder()
849
- .ep(commonParams)
850
- .m(function (Command, cs, config, o) {
851
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
852
- })
853
- .s("RedshiftData", "DescribeStatement", {})
854
- .n("RedshiftDataClient", "DescribeStatementCommand")
855
- .sc(DescribeStatement$)
856
- .build() {
834
+ class DescribeStatementCommand extends command(_ep0, _mw0, "DescribeStatement", DescribeStatement$) {
857
835
  }
858
836
 
859
- class DescribeTableCommand extends Command
860
- .classBuilder()
861
- .ep(commonParams)
862
- .m(function (Command, cs, config, o) {
863
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
864
- })
865
- .s("RedshiftData", "DescribeTable", {})
866
- .n("RedshiftDataClient", "DescribeTableCommand")
867
- .sc(DescribeTable$)
868
- .build() {
837
+ class DescribeTableCommand extends command(_ep0, _mw0, "DescribeTable", DescribeTable$) {
869
838
  }
870
839
 
871
- class ExecuteStatementCommand extends Command
872
- .classBuilder()
873
- .ep(commonParams)
874
- .m(function (Command, cs, config, o) {
875
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
876
- })
877
- .s("RedshiftData", "ExecuteStatement", {})
878
- .n("RedshiftDataClient", "ExecuteStatementCommand")
879
- .sc(ExecuteStatement$)
880
- .build() {
840
+ class ExecuteStatementCommand extends command(_ep0, _mw0, "ExecuteStatement", ExecuteStatement$) {
881
841
  }
882
842
 
883
- class GetStatementResultCommand extends Command
884
- .classBuilder()
885
- .ep(commonParams)
886
- .m(function (Command, cs, config, o) {
887
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
888
- })
889
- .s("RedshiftData", "GetStatementResult", {})
890
- .n("RedshiftDataClient", "GetStatementResultCommand")
891
- .sc(GetStatementResult$)
892
- .build() {
843
+ class GetStatementResultCommand extends command(_ep0, _mw0, "GetStatementResult", GetStatementResult$) {
893
844
  }
894
845
 
895
- class GetStatementResultV2Command extends Command
896
- .classBuilder()
897
- .ep(commonParams)
898
- .m(function (Command, cs, config, o) {
899
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
900
- })
901
- .s("RedshiftData", "GetStatementResultV2", {})
902
- .n("RedshiftDataClient", "GetStatementResultV2Command")
903
- .sc(GetStatementResultV2$)
904
- .build() {
846
+ class GetStatementResultV2Command extends command(_ep0, _mw0, "GetStatementResultV2", GetStatementResultV2$) {
905
847
  }
906
848
 
907
- class ListDatabasesCommand extends Command
908
- .classBuilder()
909
- .ep(commonParams)
910
- .m(function (Command, cs, config, o) {
911
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
912
- })
913
- .s("RedshiftData", "ListDatabases", {})
914
- .n("RedshiftDataClient", "ListDatabasesCommand")
915
- .sc(ListDatabases$)
916
- .build() {
849
+ class ListDatabasesCommand extends command(_ep0, _mw0, "ListDatabases", ListDatabases$) {
917
850
  }
918
851
 
919
- class ListSchemasCommand extends Command
920
- .classBuilder()
921
- .ep(commonParams)
922
- .m(function (Command, cs, config, o) {
923
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
924
- })
925
- .s("RedshiftData", "ListSchemas", {})
926
- .n("RedshiftDataClient", "ListSchemasCommand")
927
- .sc(ListSchemas$)
928
- .build() {
852
+ class ListSchemasCommand extends command(_ep0, _mw0, "ListSchemas", ListSchemas$) {
929
853
  }
930
854
 
931
- class ListStatementsCommand extends Command
932
- .classBuilder()
933
- .ep(commonParams)
934
- .m(function (Command, cs, config, o) {
935
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
936
- })
937
- .s("RedshiftData", "ListStatements", {})
938
- .n("RedshiftDataClient", "ListStatementsCommand")
939
- .sc(ListStatements$)
940
- .build() {
855
+ class ListStatementsCommand extends command(_ep0, _mw0, "ListStatements", ListStatements$) {
941
856
  }
942
857
 
943
- class ListTablesCommand extends Command
944
- .classBuilder()
945
- .ep(commonParams)
946
- .m(function (Command, cs, config, o) {
947
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
948
- })
949
- .s("RedshiftData", "ListTables", {})
950
- .n("RedshiftDataClient", "ListTablesCommand")
951
- .sc(ListTables$)
952
- .build() {
858
+ class ListTablesCommand extends command(_ep0, _mw0, "ListTables", ListTables$) {
953
859
  }
954
860
 
955
861
  const paginateDescribeTable = createPaginator(RedshiftDataClient, DescribeTableCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "RedshiftData", "RedshiftDataClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { BatchExecuteStatement$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BatchExecuteStatementCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "BatchExecuteStatement", {})
13
- .n("RedshiftDataClient", "BatchExecuteStatementCommand")
14
- .sc(BatchExecuteStatement$)
15
- .build() {
3
+ export class BatchExecuteStatementCommand extends command(_ep0, _mw0, "BatchExecuteStatement", BatchExecuteStatement$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CancelStatement$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CancelStatementCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "CancelStatement", {})
13
- .n("RedshiftDataClient", "CancelStatementCommand")
14
- .sc(CancelStatement$)
15
- .build() {
3
+ export class CancelStatementCommand extends command(_ep0, _mw0, "CancelStatement", CancelStatement$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeStatement$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeStatementCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "DescribeStatement", {})
13
- .n("RedshiftDataClient", "DescribeStatementCommand")
14
- .sc(DescribeStatement$)
15
- .build() {
3
+ export class DescribeStatementCommand extends command(_ep0, _mw0, "DescribeStatement", DescribeStatement$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeTable$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeTableCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "DescribeTable", {})
13
- .n("RedshiftDataClient", "DescribeTableCommand")
14
- .sc(DescribeTable$)
15
- .build() {
3
+ export class DescribeTableCommand extends command(_ep0, _mw0, "DescribeTable", DescribeTable$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ExecuteStatement$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ExecuteStatementCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "ExecuteStatement", {})
13
- .n("RedshiftDataClient", "ExecuteStatementCommand")
14
- .sc(ExecuteStatement$)
15
- .build() {
3
+ export class ExecuteStatementCommand extends command(_ep0, _mw0, "ExecuteStatement", ExecuteStatement$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetStatementResult$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetStatementResultCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "GetStatementResult", {})
13
- .n("RedshiftDataClient", "GetStatementResultCommand")
14
- .sc(GetStatementResult$)
15
- .build() {
3
+ export class GetStatementResultCommand extends command(_ep0, _mw0, "GetStatementResult", GetStatementResult$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetStatementResultV2$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetStatementResultV2Command extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "GetStatementResultV2", {})
13
- .n("RedshiftDataClient", "GetStatementResultV2Command")
14
- .sc(GetStatementResultV2$)
15
- .build() {
3
+ export class GetStatementResultV2Command extends command(_ep0, _mw0, "GetStatementResultV2", GetStatementResultV2$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListDatabases$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDatabasesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "ListDatabases", {})
13
- .n("RedshiftDataClient", "ListDatabasesCommand")
14
- .sc(ListDatabases$)
15
- .build() {
3
+ export class ListDatabasesCommand extends command(_ep0, _mw0, "ListDatabases", ListDatabases$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListSchemas$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSchemasCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "ListSchemas", {})
13
- .n("RedshiftDataClient", "ListSchemasCommand")
14
- .sc(ListSchemas$)
15
- .build() {
3
+ export class ListSchemasCommand extends command(_ep0, _mw0, "ListSchemas", ListSchemas$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListStatements$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListStatementsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "ListStatements", {})
13
- .n("RedshiftDataClient", "ListStatementsCommand")
14
- .sc(ListStatements$)
15
- .build() {
3
+ export class ListStatementsCommand extends command(_ep0, _mw0, "ListStatements", ListStatements$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTables$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTablesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RedshiftData", "ListTables", {})
13
- .n("RedshiftDataClient", "ListTablesCommand")
14
- .sc(ListTables$)
15
- .build() {
3
+ export class ListTablesCommand extends command(_ep0, _mw0, "ListTables", ListTables$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./RedshiftDataClient";
2
2
  export * from "./RedshiftData";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./RedshiftDataClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { BatchExecuteStatementInput, BatchExecuteStatementOutput } from "../models/models_0";
4
- import type { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface BatchExecuteStatementCommandInput extends BatchExecuteStatement
22
19
  export interface BatchExecuteStatementCommandOutput extends BatchExecuteStatementOutput, __MetadataBearer {
23
20
  }
24
21
  declare const BatchExecuteStatementCommand_base: {
25
- new (input: BatchExecuteStatementCommandInput): import("@smithy/core/client").CommandImpl<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: BatchExecuteStatementCommandInput): import("@smithy/core/client").CommandImpl<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: BatchExecuteStatementCommandInput): import("@smithy/core/client").CommandImpl<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: BatchExecuteStatementCommandInput): import("@smithy/core/client").CommandImpl<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Runs one or more SQL statements, which can be data manipulation language (DML) or data definition language (DDL). Depending on the authorization method, use one of the following combinations of request parameters: </p> <ul> <li> <p>Secrets Manager - when connecting to a cluster, provide the <code>secret-arn</code> of a secret stored in Secrets Manager which has <code>username</code> and <code>password</code>. The specified secret contains credentials to connect to the <code>database</code> you specify. When you are connecting to a cluster, you also supply the database name, If you provide a cluster identifier (<code>dbClusterIdentifier</code>), it must match the cluster identifier stored in the secret. When you are connecting to a serverless workgroup, you also supply the database name.</p> </li> <li> <p>Temporary credentials - when connecting to your data warehouse, choose one of the following options:</p> <ul> <li> <p>When connecting to a serverless workgroup, specify the workgroup name and database name. The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required.</p> </li> <li> <p>When connecting to a cluster as an IAM identity, specify the cluster identifier and the database name. The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>. Also, permission to call the <code>redshift:GetClusterCredentialsWithIAM</code> operation is required.</p> </li> <li> <p>When connecting to a cluster as a database user, specify the cluster identifier, the database name, and the database user name. Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.</p> </li> </ul> </li> </ul> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CancelStatementRequest, CancelStatementResponse } from "../models/models_0";
4
- import type { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CancelStatementCommandInput extends CancelStatementRequest {
22
19
  export interface CancelStatementCommandOutput extends CancelStatementResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CancelStatementCommand_base: {
25
- new (input: CancelStatementCommandInput): import("@smithy/core/client").CommandImpl<CancelStatementCommandInput, CancelStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CancelStatementCommandInput): import("@smithy/core/client").CommandImpl<CancelStatementCommandInput, CancelStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CancelStatementCommandInput): import("@smithy/core/client").CommandImpl<CancelStatementCommandInput, CancelStatementCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CancelStatementCommandInput): import("@smithy/core/client").CommandImpl<CancelStatementCommandInput, CancelStatementCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Cancels a running query. To be canceled, a query must be running. </p> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DescribeStatementRequest, DescribeStatementResponse } from "../models/models_0";
4
- import type { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DescribeStatementCommandInput extends DescribeStatementRequest
22
19
  export interface DescribeStatementCommandOutput extends DescribeStatementResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeStatementCommand_base: {
25
- new (input: DescribeStatementCommandInput): import("@smithy/core/client").CommandImpl<DescribeStatementCommandInput, DescribeStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DescribeStatementCommandInput): import("@smithy/core/client").CommandImpl<DescribeStatementCommandInput, DescribeStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeStatementCommandInput): import("@smithy/core/client").CommandImpl<DescribeStatementCommandInput, DescribeStatementCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribeStatementCommandInput): import("@smithy/core/client").CommandImpl<DescribeStatementCommandInput, DescribeStatementCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information includes when the query started, when it finished, the query status, the number of rows returned, and the SQL statement. </p> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { DescribeTableRequest, DescribeTableResponse } from "../models/models_0";
4
- import type { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface DescribeTableCommandInput extends DescribeTableRequest {
22
19
  export interface DescribeTableCommandOutput extends DescribeTableResponse, __MetadataBearer {
23
20
  }
24
21
  declare const DescribeTableCommand_base: {
25
- new (input: DescribeTableCommandInput): import("@smithy/core/client").CommandImpl<DescribeTableCommandInput, DescribeTableCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DescribeTableCommandInput): import("@smithy/core/client").CommandImpl<DescribeTableCommandInput, DescribeTableCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: DescribeTableCommandInput): import("@smithy/core/client").CommandImpl<DescribeTableCommandInput, DescribeTableCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: DescribeTableCommandInput): import("@smithy/core/client").CommandImpl<DescribeTableCommandInput, DescribeTableCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Describes the detailed information about a table from metadata in the cluster. The information includes its columns. A token is returned to page through the column list. Depending on the authorization method, use one of the following combinations of request parameters: </p> <ul> <li> <p>Secrets Manager - when connecting to a cluster, provide the <code>secret-arn</code> of a secret stored in Secrets Manager which has <code>username</code> and <code>password</code>. The specified secret contains credentials to connect to the <code>database</code> you specify. When you are connecting to a cluster, you also supply the database name, If you provide a cluster identifier (<code>dbClusterIdentifier</code>), it must match the cluster identifier stored in the secret. When you are connecting to a serverless workgroup, you also supply the database name.</p> </li> <li> <p>Temporary credentials - when connecting to your data warehouse, choose one of the following options:</p> <ul> <li> <p>When connecting to a serverless workgroup, specify the workgroup name and database name. The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required.</p> </li> <li> <p>When connecting to a cluster as an IAM identity, specify the cluster identifier and the database name. The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>. Also, permission to call the <code>redshift:GetClusterCredentialsWithIAM</code> operation is required.</p> </li> <li> <p>When connecting to a cluster as a database user, specify the cluster identifier, the database name, and the database user name. Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.</p> </li> </ul> </li> </ul> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { ExecuteStatementInput, ExecuteStatementOutput } from "../models/models_0";
4
- import type { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface ExecuteStatementCommandInput extends ExecuteStatementInput {
22
19
  export interface ExecuteStatementCommandOutput extends ExecuteStatementOutput, __MetadataBearer {
23
20
  }
24
21
  declare const ExecuteStatementCommand_base: {
25
- new (input: ExecuteStatementCommandInput): import("@smithy/core/client").CommandImpl<ExecuteStatementCommandInput, ExecuteStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ExecuteStatementCommandInput): import("@smithy/core/client").CommandImpl<ExecuteStatementCommandInput, ExecuteStatementCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: ExecuteStatementCommandInput): import("@smithy/core/client").CommandImpl<ExecuteStatementCommandInput, ExecuteStatementCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ExecuteStatementCommandInput): import("@smithy/core/client").CommandImpl<ExecuteStatementCommandInput, ExecuteStatementCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Runs an SQL statement, which can be data manipulation language (DML) or data definition language (DDL). This statement must be a single SQL statement. Depending on the authorization method, use one of the following combinations of request parameters: </p> <ul> <li> <p>Secrets Manager - when connecting to a cluster, provide the <code>secret-arn</code> of a secret stored in Secrets Manager which has <code>username</code> and <code>password</code>. The specified secret contains credentials to connect to the <code>database</code> you specify. When you are connecting to a cluster, you also supply the database name, If you provide a cluster identifier (<code>dbClusterIdentifier</code>), it must match the cluster identifier stored in the secret. When you are connecting to a serverless workgroup, you also supply the database name.</p> </li> <li> <p>Temporary credentials - when connecting to your data warehouse, choose one of the following options:</p> <ul> <li> <p>When connecting to a serverless workgroup, specify the workgroup name and database name. The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>. Also, permission to call the <code>redshift-serverless:GetCredentials</code> operation is required.</p> </li> <li> <p>When connecting to a cluster as an IAM identity, specify the cluster identifier and the database name. The database user name is derived from the IAM identity. For example, <code>arn:iam::123456789012:user:foo</code> has the database user name <code>IAM:foo</code>. Also, permission to call the <code>redshift:GetClusterCredentialsWithIAM</code> operation is required.</p> </li> <li> <p>When connecting to a cluster as a database user, specify the cluster identifier, the database name, and the database user name. Also, permission to call the <code>redshift:GetClusterCredentials</code> operation is required.</p> </li> </ul> </li> </ul> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { GetStatementResultRequest, GetStatementResultResponse } from "../models/models_0";
4
- import type { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface GetStatementResultCommandInput extends GetStatementResultReques
22
19
  export interface GetStatementResultCommandOutput extends GetStatementResultResponse, __MetadataBearer {
23
20
  }
24
21
  declare const GetStatementResultCommand_base: {
25
- new (input: GetStatementResultCommandInput): import("@smithy/core/client").CommandImpl<GetStatementResultCommandInput, GetStatementResultCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: GetStatementResultCommandInput): import("@smithy/core/client").CommandImpl<GetStatementResultCommandInput, GetStatementResultCommandOutput, RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: GetStatementResultCommandInput): import("@smithy/core/client").CommandImpl<GetStatementResultCommandInput, GetStatementResultCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: GetStatementResultCommandInput): import("@smithy/core/client").CommandImpl<GetStatementResultCommandInput, GetStatementResultCommandOutput, import("..").RedshiftDataClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Fetches the temporarily cached result of an SQL statement in JSON format. The <code>ExecuteStatement</code> or <code>BatchExecuteStatement</code> operation that ran the SQL statement must have specified <code>ResultFormat</code> as <code>JSON</code> , or let the format default to JSON. A token is returned to page through the statement results.</p> <p>For more information about the Amazon Redshift Data API and CLI usage examples, see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the <i>Amazon Redshift Management Guide</i>. </p>