@aws-sdk/client-redshift-data 3.35.0 → 3.36.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 (146) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/RedshiftData.js +0 -1
  3. package/dist-cjs/RedshiftDataClient.js +0 -1
  4. package/dist-cjs/commands/BatchExecuteStatementCommand.js +0 -1
  5. package/dist-cjs/commands/CancelStatementCommand.js +0 -1
  6. package/dist-cjs/commands/DescribeStatementCommand.js +0 -1
  7. package/dist-cjs/commands/DescribeTableCommand.js +0 -1
  8. package/dist-cjs/commands/ExecuteStatementCommand.js +0 -1
  9. package/dist-cjs/commands/GetStatementResultCommand.js +0 -1
  10. package/dist-cjs/commands/ListDatabasesCommand.js +0 -1
  11. package/dist-cjs/commands/ListSchemasCommand.js +0 -1
  12. package/dist-cjs/commands/ListStatementsCommand.js +0 -1
  13. package/dist-cjs/commands/ListTablesCommand.js +0 -1
  14. package/dist-cjs/endpoints.js +0 -1
  15. package/dist-cjs/index.js +0 -1
  16. package/dist-cjs/models/index.js +0 -1
  17. package/dist-cjs/models/models_0.js +0 -1
  18. package/dist-cjs/pagination/DescribeTablePaginator.js +0 -1
  19. package/dist-cjs/pagination/GetStatementResultPaginator.js +0 -1
  20. package/dist-cjs/pagination/Interfaces.js +0 -1
  21. package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -1
  22. package/dist-cjs/pagination/ListSchemasPaginator.js +0 -1
  23. package/dist-cjs/pagination/ListStatementsPaginator.js +0 -1
  24. package/dist-cjs/pagination/ListTablesPaginator.js +0 -1
  25. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  26. package/dist-cjs/runtimeConfig.browser.js +2 -3
  27. package/dist-cjs/runtimeConfig.js +3 -4
  28. package/dist-cjs/runtimeConfig.native.js +0 -1
  29. package/dist-cjs/runtimeConfig.shared.js +0 -1
  30. package/dist-es/RedshiftData.js +0 -1
  31. package/dist-es/RedshiftDataClient.js +0 -1
  32. package/dist-es/commands/BatchExecuteStatementCommand.js +0 -1
  33. package/dist-es/commands/CancelStatementCommand.js +0 -1
  34. package/dist-es/commands/DescribeStatementCommand.js +0 -1
  35. package/dist-es/commands/DescribeTableCommand.js +0 -1
  36. package/dist-es/commands/ExecuteStatementCommand.js +0 -1
  37. package/dist-es/commands/GetStatementResultCommand.js +0 -1
  38. package/dist-es/commands/ListDatabasesCommand.js +0 -1
  39. package/dist-es/commands/ListSchemasCommand.js +0 -1
  40. package/dist-es/commands/ListStatementsCommand.js +0 -1
  41. package/dist-es/commands/ListTablesCommand.js +0 -1
  42. package/dist-es/endpoints.js +0 -1
  43. package/dist-es/index.js +0 -1
  44. package/dist-es/models/index.js +0 -1
  45. package/dist-es/models/models_0.js +0 -1
  46. package/dist-es/pagination/DescribeTablePaginator.js +0 -1
  47. package/dist-es/pagination/GetStatementResultPaginator.js +0 -1
  48. package/dist-es/pagination/Interfaces.js +0 -1
  49. package/dist-es/pagination/ListDatabasesPaginator.js +0 -1
  50. package/dist-es/pagination/ListSchemasPaginator.js +0 -1
  51. package/dist-es/pagination/ListStatementsPaginator.js +0 -1
  52. package/dist-es/pagination/ListTablesPaginator.js +0 -1
  53. package/dist-es/protocols/Aws_json1_1.js +0 -1
  54. package/dist-es/runtimeConfig.browser.js +1 -2
  55. package/dist-es/runtimeConfig.js +2 -3
  56. package/dist-es/runtimeConfig.native.js +0 -1
  57. package/dist-es/runtimeConfig.shared.js +0 -1
  58. package/package.json +33 -30
  59. package/dist-cjs/RedshiftData.js.map +0 -1
  60. package/dist-cjs/RedshiftDataClient.js.map +0 -1
  61. package/dist-cjs/commands/BatchExecuteStatementCommand.js.map +0 -1
  62. package/dist-cjs/commands/CancelStatementCommand.js.map +0 -1
  63. package/dist-cjs/commands/DescribeStatementCommand.js.map +0 -1
  64. package/dist-cjs/commands/DescribeTableCommand.js.map +0 -1
  65. package/dist-cjs/commands/ExecuteStatementCommand.js.map +0 -1
  66. package/dist-cjs/commands/GetStatementResultCommand.js.map +0 -1
  67. package/dist-cjs/commands/ListDatabasesCommand.js.map +0 -1
  68. package/dist-cjs/commands/ListSchemasCommand.js.map +0 -1
  69. package/dist-cjs/commands/ListStatementsCommand.js.map +0 -1
  70. package/dist-cjs/commands/ListTablesCommand.js.map +0 -1
  71. package/dist-cjs/endpoints.js.map +0 -1
  72. package/dist-cjs/index.js.map +0 -1
  73. package/dist-cjs/models/index.js.map +0 -1
  74. package/dist-cjs/models/models_0.js.map +0 -1
  75. package/dist-cjs/pagination/DescribeTablePaginator.js.map +0 -1
  76. package/dist-cjs/pagination/GetStatementResultPaginator.js.map +0 -1
  77. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  78. package/dist-cjs/pagination/ListDatabasesPaginator.js.map +0 -1
  79. package/dist-cjs/pagination/ListSchemasPaginator.js.map +0 -1
  80. package/dist-cjs/pagination/ListStatementsPaginator.js.map +0 -1
  81. package/dist-cjs/pagination/ListTablesPaginator.js.map +0 -1
  82. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  83. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  84. package/dist-cjs/runtimeConfig.js.map +0 -1
  85. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  86. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  87. package/dist-es/RedshiftData.js.map +0 -1
  88. package/dist-es/RedshiftDataClient.js.map +0 -1
  89. package/dist-es/commands/BatchExecuteStatementCommand.js.map +0 -1
  90. package/dist-es/commands/CancelStatementCommand.js.map +0 -1
  91. package/dist-es/commands/DescribeStatementCommand.js.map +0 -1
  92. package/dist-es/commands/DescribeTableCommand.js.map +0 -1
  93. package/dist-es/commands/ExecuteStatementCommand.js.map +0 -1
  94. package/dist-es/commands/GetStatementResultCommand.js.map +0 -1
  95. package/dist-es/commands/ListDatabasesCommand.js.map +0 -1
  96. package/dist-es/commands/ListSchemasCommand.js.map +0 -1
  97. package/dist-es/commands/ListStatementsCommand.js.map +0 -1
  98. package/dist-es/commands/ListTablesCommand.js.map +0 -1
  99. package/dist-es/endpoints.js.map +0 -1
  100. package/dist-es/index.js.map +0 -1
  101. package/dist-es/models/index.js.map +0 -1
  102. package/dist-es/models/models_0.js.map +0 -1
  103. package/dist-es/pagination/DescribeTablePaginator.js.map +0 -1
  104. package/dist-es/pagination/GetStatementResultPaginator.js.map +0 -1
  105. package/dist-es/pagination/Interfaces.js.map +0 -1
  106. package/dist-es/pagination/ListDatabasesPaginator.js.map +0 -1
  107. package/dist-es/pagination/ListSchemasPaginator.js.map +0 -1
  108. package/dist-es/pagination/ListStatementsPaginator.js.map +0 -1
  109. package/dist-es/pagination/ListTablesPaginator.js.map +0 -1
  110. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  111. package/dist-es/runtimeConfig.browser.js.map +0 -1
  112. package/dist-es/runtimeConfig.js.map +0 -1
  113. package/dist-es/runtimeConfig.native.js.map +0 -1
  114. package/dist-es/runtimeConfig.shared.js.map +0 -1
  115. package/jest.config.js +0 -4
  116. package/src/RedshiftData.ts +0 -452
  117. package/src/RedshiftDataClient.ts +0 -273
  118. package/src/commands/BatchExecuteStatementCommand.ts +0 -109
  119. package/src/commands/CancelStatementCommand.ts +0 -95
  120. package/src/commands/DescribeStatementCommand.ts +0 -97
  121. package/src/commands/DescribeTableCommand.ts +0 -110
  122. package/src/commands/ExecuteStatementCommand.ts +0 -109
  123. package/src/commands/GetStatementResultCommand.ts +0 -96
  124. package/src/commands/ListDatabasesCommand.ts +0 -109
  125. package/src/commands/ListSchemasCommand.ts +0 -109
  126. package/src/commands/ListStatementsCommand.ts +0 -96
  127. package/src/commands/ListTablesCommand.ts +0 -110
  128. package/src/endpoints.ts +0 -57
  129. package/src/index.ts +0 -20
  130. package/src/models/index.ts +0 -1
  131. package/src/models/models_0.ts +0 -1379
  132. package/src/pagination/DescribeTablePaginator.ts +0 -59
  133. package/src/pagination/GetStatementResultPaginator.ts +0 -58
  134. package/src/pagination/Interfaces.ts +0 -8
  135. package/src/pagination/ListDatabasesPaginator.ts +0 -59
  136. package/src/pagination/ListSchemasPaginator.ts +0 -55
  137. package/src/pagination/ListStatementsPaginator.ts +0 -59
  138. package/src/pagination/ListTablesPaginator.ts +0 -55
  139. package/src/protocols/Aws_json1_1.ts +0 -1615
  140. package/src/runtimeConfig.browser.ts +0 -41
  141. package/src/runtimeConfig.native.ts +0 -17
  142. package/src/runtimeConfig.shared.ts +0 -17
  143. package/src/runtimeConfig.ts +0 -46
  144. package/tsconfig.es.json +0 -10
  145. package/tsconfig.json +0 -33
  146. package/tsconfig.types.json +0 -9
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- DescribeTableCommand,
5
- DescribeTableCommandInput,
6
- DescribeTableCommandOutput,
7
- } from "../commands/DescribeTableCommand";
8
- import { RedshiftData } from "../RedshiftData";
9
- import { RedshiftDataClient } from "../RedshiftDataClient";
10
- import { RedshiftDataPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: RedshiftDataClient,
17
- input: DescribeTableCommandInput,
18
- ...args: any
19
- ): Promise<DescribeTableCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new DescribeTableCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: RedshiftData,
28
- input: DescribeTableCommandInput,
29
- ...args: any
30
- ): Promise<DescribeTableCommandOutput> => {
31
- // @ts-ignore
32
- return await client.describeTable(input, ...args);
33
- };
34
- export async function* paginateDescribeTable(
35
- config: RedshiftDataPaginationConfiguration,
36
- input: DescribeTableCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<DescribeTableCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: DescribeTableCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof RedshiftData) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof RedshiftDataClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,58 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- GetStatementResultCommand,
5
- GetStatementResultCommandInput,
6
- GetStatementResultCommandOutput,
7
- } from "../commands/GetStatementResultCommand";
8
- import { RedshiftData } from "../RedshiftData";
9
- import { RedshiftDataClient } from "../RedshiftDataClient";
10
- import { RedshiftDataPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: RedshiftDataClient,
17
- input: GetStatementResultCommandInput,
18
- ...args: any
19
- ): Promise<GetStatementResultCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new GetStatementResultCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: RedshiftData,
28
- input: GetStatementResultCommandInput,
29
- ...args: any
30
- ): Promise<GetStatementResultCommandOutput> => {
31
- // @ts-ignore
32
- return await client.getStatementResult(input, ...args);
33
- };
34
- export async function* paginateGetStatementResult(
35
- config: RedshiftDataPaginationConfiguration,
36
- input: GetStatementResultCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<GetStatementResultCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: GetStatementResultCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- if (config.client instanceof RedshiftData) {
46
- page = await makePagedRequest(config.client, input, ...additionalArguments);
47
- } else if (config.client instanceof RedshiftDataClient) {
48
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
49
- } else {
50
- throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
51
- }
52
- yield page;
53
- token = page.NextToken;
54
- hasNext = !!token;
55
- }
56
- // @ts-ignore
57
- return undefined;
58
- }
@@ -1,8 +0,0 @@
1
- import { PaginationConfiguration } from "@aws-sdk/types";
2
-
3
- import { RedshiftData } from "../RedshiftData";
4
- import { RedshiftDataClient } from "../RedshiftDataClient";
5
-
6
- export interface RedshiftDataPaginationConfiguration extends PaginationConfiguration {
7
- client: RedshiftData | RedshiftDataClient;
8
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListDatabasesCommand,
5
- ListDatabasesCommandInput,
6
- ListDatabasesCommandOutput,
7
- } from "../commands/ListDatabasesCommand";
8
- import { RedshiftData } from "../RedshiftData";
9
- import { RedshiftDataClient } from "../RedshiftDataClient";
10
- import { RedshiftDataPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: RedshiftDataClient,
17
- input: ListDatabasesCommandInput,
18
- ...args: any
19
- ): Promise<ListDatabasesCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListDatabasesCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: RedshiftData,
28
- input: ListDatabasesCommandInput,
29
- ...args: any
30
- ): Promise<ListDatabasesCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listDatabases(input, ...args);
33
- };
34
- export async function* paginateListDatabases(
35
- config: RedshiftDataPaginationConfiguration,
36
- input: ListDatabasesCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListDatabasesCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListDatabasesCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof RedshiftData) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof RedshiftDataClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,55 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import { ListSchemasCommand, ListSchemasCommandInput, ListSchemasCommandOutput } from "../commands/ListSchemasCommand";
4
- import { RedshiftData } from "../RedshiftData";
5
- import { RedshiftDataClient } from "../RedshiftDataClient";
6
- import { RedshiftDataPaginationConfiguration } from "./Interfaces";
7
-
8
- /**
9
- * @private
10
- */
11
- const makePagedClientRequest = async (
12
- client: RedshiftDataClient,
13
- input: ListSchemasCommandInput,
14
- ...args: any
15
- ): Promise<ListSchemasCommandOutput> => {
16
- // @ts-ignore
17
- return await client.send(new ListSchemasCommand(input), ...args);
18
- };
19
- /**
20
- * @private
21
- */
22
- const makePagedRequest = async (
23
- client: RedshiftData,
24
- input: ListSchemasCommandInput,
25
- ...args: any
26
- ): Promise<ListSchemasCommandOutput> => {
27
- // @ts-ignore
28
- return await client.listSchemas(input, ...args);
29
- };
30
- export async function* paginateListSchemas(
31
- config: RedshiftDataPaginationConfiguration,
32
- input: ListSchemasCommandInput,
33
- ...additionalArguments: any
34
- ): Paginator<ListSchemasCommandOutput> {
35
- // ToDo: replace with actual type instead of typeof input.NextToken
36
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
37
- let hasNext = true;
38
- let page: ListSchemasCommandOutput;
39
- while (hasNext) {
40
- input.NextToken = token;
41
- input["MaxResults"] = config.pageSize;
42
- if (config.client instanceof RedshiftData) {
43
- page = await makePagedRequest(config.client, input, ...additionalArguments);
44
- } else if (config.client instanceof RedshiftDataClient) {
45
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
46
- } else {
47
- throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
48
- }
49
- yield page;
50
- token = page.NextToken;
51
- hasNext = !!token;
52
- }
53
- // @ts-ignore
54
- return undefined;
55
- }
@@ -1,59 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import {
4
- ListStatementsCommand,
5
- ListStatementsCommandInput,
6
- ListStatementsCommandOutput,
7
- } from "../commands/ListStatementsCommand";
8
- import { RedshiftData } from "../RedshiftData";
9
- import { RedshiftDataClient } from "../RedshiftDataClient";
10
- import { RedshiftDataPaginationConfiguration } from "./Interfaces";
11
-
12
- /**
13
- * @private
14
- */
15
- const makePagedClientRequest = async (
16
- client: RedshiftDataClient,
17
- input: ListStatementsCommandInput,
18
- ...args: any
19
- ): Promise<ListStatementsCommandOutput> => {
20
- // @ts-ignore
21
- return await client.send(new ListStatementsCommand(input), ...args);
22
- };
23
- /**
24
- * @private
25
- */
26
- const makePagedRequest = async (
27
- client: RedshiftData,
28
- input: ListStatementsCommandInput,
29
- ...args: any
30
- ): Promise<ListStatementsCommandOutput> => {
31
- // @ts-ignore
32
- return await client.listStatements(input, ...args);
33
- };
34
- export async function* paginateListStatements(
35
- config: RedshiftDataPaginationConfiguration,
36
- input: ListStatementsCommandInput,
37
- ...additionalArguments: any
38
- ): Paginator<ListStatementsCommandOutput> {
39
- // ToDo: replace with actual type instead of typeof input.NextToken
40
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
41
- let hasNext = true;
42
- let page: ListStatementsCommandOutput;
43
- while (hasNext) {
44
- input.NextToken = token;
45
- input["MaxResults"] = config.pageSize;
46
- if (config.client instanceof RedshiftData) {
47
- page = await makePagedRequest(config.client, input, ...additionalArguments);
48
- } else if (config.client instanceof RedshiftDataClient) {
49
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
50
- } else {
51
- throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
52
- }
53
- yield page;
54
- token = page.NextToken;
55
- hasNext = !!token;
56
- }
57
- // @ts-ignore
58
- return undefined;
59
- }
@@ -1,55 +0,0 @@
1
- import { Paginator } from "@aws-sdk/types";
2
-
3
- import { ListTablesCommand, ListTablesCommandInput, ListTablesCommandOutput } from "../commands/ListTablesCommand";
4
- import { RedshiftData } from "../RedshiftData";
5
- import { RedshiftDataClient } from "../RedshiftDataClient";
6
- import { RedshiftDataPaginationConfiguration } from "./Interfaces";
7
-
8
- /**
9
- * @private
10
- */
11
- const makePagedClientRequest = async (
12
- client: RedshiftDataClient,
13
- input: ListTablesCommandInput,
14
- ...args: any
15
- ): Promise<ListTablesCommandOutput> => {
16
- // @ts-ignore
17
- return await client.send(new ListTablesCommand(input), ...args);
18
- };
19
- /**
20
- * @private
21
- */
22
- const makePagedRequest = async (
23
- client: RedshiftData,
24
- input: ListTablesCommandInput,
25
- ...args: any
26
- ): Promise<ListTablesCommandOutput> => {
27
- // @ts-ignore
28
- return await client.listTables(input, ...args);
29
- };
30
- export async function* paginateListTables(
31
- config: RedshiftDataPaginationConfiguration,
32
- input: ListTablesCommandInput,
33
- ...additionalArguments: any
34
- ): Paginator<ListTablesCommandOutput> {
35
- // ToDo: replace with actual type instead of typeof input.NextToken
36
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
37
- let hasNext = true;
38
- let page: ListTablesCommandOutput;
39
- while (hasNext) {
40
- input.NextToken = token;
41
- input["MaxResults"] = config.pageSize;
42
- if (config.client instanceof RedshiftData) {
43
- page = await makePagedRequest(config.client, input, ...additionalArguments);
44
- } else if (config.client instanceof RedshiftDataClient) {
45
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
46
- } else {
47
- throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
48
- }
49
- yield page;
50
- token = page.NextToken;
51
- hasNext = !!token;
52
- }
53
- // @ts-ignore
54
- return undefined;
55
- }