@aws-sdk/client-redshift-data 3.282.0 → 3.288.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://redshift-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ endpoint: { url: "https://redshift-data-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://redshift-data.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://redshift-data.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const q = "required", r = "fn", s = "argv", t = "ref";
5
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift-data-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift-data.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://redshift-data.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
7
7
  exports.ruleSet = _data;
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeTable = void 0;
4
4
  const DescribeTableCommand_1 = require("../commands/DescribeTableCommand");
5
- const RedshiftData_1 = require("../RedshiftData");
6
5
  const RedshiftDataClient_1 = require("../RedshiftDataClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new DescribeTableCommand_1.DescribeTableCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.describeTable(input, ...args);
12
- };
13
9
  async function* paginateDescribeTable(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateDescribeTable(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof RedshiftData_1.RedshiftData) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
16
+ if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,24 +2,17 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetStatementResult = void 0;
4
4
  const GetStatementResultCommand_1 = require("../commands/GetStatementResultCommand");
5
- const RedshiftData_1 = require("../RedshiftData");
6
5
  const RedshiftDataClient_1 = require("../RedshiftDataClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new GetStatementResultCommand_1.GetStatementResultCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.getStatementResult(input, ...args);
12
- };
13
9
  async function* paginateGetStatementResult(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
16
12
  let page;
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
- if (config.client instanceof RedshiftData_1.RedshiftData) {
20
- page = await makePagedRequest(config.client, input, ...additionalArguments);
21
- }
22
- else if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
15
+ if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
23
16
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
24
17
  }
25
18
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDatabases = void 0;
4
4
  const ListDatabasesCommand_1 = require("../commands/ListDatabasesCommand");
5
- const RedshiftData_1 = require("../RedshiftData");
6
5
  const RedshiftDataClient_1 = require("../RedshiftDataClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListDatabasesCommand_1.ListDatabasesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listDatabases(input, ...args);
12
- };
13
9
  async function* paginateListDatabases(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListDatabases(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof RedshiftData_1.RedshiftData) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
16
+ if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSchemas = void 0;
4
4
  const ListSchemasCommand_1 = require("../commands/ListSchemasCommand");
5
- const RedshiftData_1 = require("../RedshiftData");
6
5
  const RedshiftDataClient_1 = require("../RedshiftDataClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListSchemasCommand_1.ListSchemasCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listSchemas(input, ...args);
12
- };
13
9
  async function* paginateListSchemas(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListSchemas(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof RedshiftData_1.RedshiftData) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
16
+ if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListStatements = void 0;
4
4
  const ListStatementsCommand_1 = require("../commands/ListStatementsCommand");
5
- const RedshiftData_1 = require("../RedshiftData");
6
5
  const RedshiftDataClient_1 = require("../RedshiftDataClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListStatementsCommand_1.ListStatementsCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listStatements(input, ...args);
12
- };
13
9
  async function* paginateListStatements(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListStatements(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof RedshiftData_1.RedshiftData) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
16
+ if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -2,14 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListTables = void 0;
4
4
  const ListTablesCommand_1 = require("../commands/ListTablesCommand");
5
- const RedshiftData_1 = require("../RedshiftData");
6
5
  const RedshiftDataClient_1 = require("../RedshiftDataClient");
7
6
  const makePagedClientRequest = async (client, input, ...args) => {
8
7
  return await client.send(new ListTablesCommand_1.ListTablesCommand(input), ...args);
9
8
  };
10
- const makePagedRequest = async (client, input, ...args) => {
11
- return await client.listTables(input, ...args);
12
- };
13
9
  async function* paginateListTables(config, input, ...additionalArguments) {
14
10
  let token = config.startingToken || undefined;
15
11
  let hasNext = true;
@@ -17,10 +13,7 @@ async function* paginateListTables(config, input, ...additionalArguments) {
17
13
  while (hasNext) {
18
14
  input.NextToken = token;
19
15
  input["MaxResults"] = config.pageSize;
20
- if (config.client instanceof RedshiftData_1.RedshiftData) {
21
- page = await makePagedRequest(config.client, input, ...additionalArguments);
22
- }
23
- else if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
16
+ if (config.client instanceof RedshiftDataClient_1.RedshiftDataClient) {
24
17
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
25
18
  }
26
19
  else {
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://redshift-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ endpoint: { url: "https://redshift-data-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://redshift-data.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://redshift-data.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift-data-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift-data-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift-data.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://redshift-data.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -1,12 +1,8 @@
1
1
  import { DescribeTableCommand, } from "../commands/DescribeTableCommand";
2
- import { RedshiftData } from "../RedshiftData";
3
2
  import { RedshiftDataClient } from "../RedshiftDataClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new DescribeTableCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.describeTable(input, ...args);
9
- };
10
6
  export async function* paginateDescribeTable(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateDescribeTable(config, input, ...additionalArgumen
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof RedshiftData) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof RedshiftDataClient) {
13
+ if (config.client instanceof RedshiftDataClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,22 +1,15 @@
1
1
  import { GetStatementResultCommand, } from "../commands/GetStatementResultCommand";
2
- import { RedshiftData } from "../RedshiftData";
3
2
  import { RedshiftDataClient } from "../RedshiftDataClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new GetStatementResultCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.getStatementResult(input, ...args);
9
- };
10
6
  export async function* paginateGetStatementResult(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
13
9
  let page;
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
- if (config.client instanceof RedshiftData) {
17
- page = await makePagedRequest(config.client, input, ...additionalArguments);
18
- }
19
- else if (config.client instanceof RedshiftDataClient) {
12
+ if (config.client instanceof RedshiftDataClient) {
20
13
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
21
14
  }
22
15
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListDatabasesCommand, } from "../commands/ListDatabasesCommand";
2
- import { RedshiftData } from "../RedshiftData";
3
2
  import { RedshiftDataClient } from "../RedshiftDataClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListDatabasesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listDatabases(input, ...args);
9
- };
10
6
  export async function* paginateListDatabases(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListDatabases(config, input, ...additionalArgumen
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof RedshiftData) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof RedshiftDataClient) {
13
+ if (config.client instanceof RedshiftDataClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListSchemasCommand } from "../commands/ListSchemasCommand";
2
- import { RedshiftData } from "../RedshiftData";
3
2
  import { RedshiftDataClient } from "../RedshiftDataClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListSchemasCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listSchemas(input, ...args);
9
- };
10
6
  export async function* paginateListSchemas(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListSchemas(config, input, ...additionalArguments
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof RedshiftData) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof RedshiftDataClient) {
13
+ if (config.client instanceof RedshiftDataClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListStatementsCommand, } from "../commands/ListStatementsCommand";
2
- import { RedshiftData } from "../RedshiftData";
3
2
  import { RedshiftDataClient } from "../RedshiftDataClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListStatementsCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listStatements(input, ...args);
9
- };
10
6
  export async function* paginateListStatements(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListStatements(config, input, ...additionalArgume
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof RedshiftData) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof RedshiftDataClient) {
13
+ if (config.client instanceof RedshiftDataClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -1,12 +1,8 @@
1
1
  import { ListTablesCommand } from "../commands/ListTablesCommand";
2
- import { RedshiftData } from "../RedshiftData";
3
2
  import { RedshiftDataClient } from "../RedshiftDataClient";
4
3
  const makePagedClientRequest = async (client, input, ...args) => {
5
4
  return await client.send(new ListTablesCommand(input), ...args);
6
5
  };
7
- const makePagedRequest = async (client, input, ...args) => {
8
- return await client.listTables(input, ...args);
9
- };
10
6
  export async function* paginateListTables(config, input, ...additionalArguments) {
11
7
  let token = config.startingToken || undefined;
12
8
  let hasNext = true;
@@ -14,10 +10,7 @@ export async function* paginateListTables(config, input, ...additionalArguments)
14
10
  while (hasNext) {
15
11
  input.NextToken = token;
16
12
  input["MaxResults"] = config.pageSize;
17
- if (config.client instanceof RedshiftData) {
18
- page = await makePagedRequest(config.client, input, ...additionalArguments);
19
- }
20
- else if (config.client instanceof RedshiftDataClient) {
13
+ if (config.client instanceof RedshiftDataClient) {
21
14
  page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
15
  }
23
16
  else {
@@ -62,7 +62,7 @@ export interface BatchExecuteStatementInput {
62
62
  */
63
63
  StatementName?: string;
64
64
  /**
65
- * <p>The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
65
+ * <p>The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
66
66
  */
67
67
  WorkgroupName?: string;
68
68
  /**
@@ -97,7 +97,7 @@ export interface BatchExecuteStatementOutput {
97
97
  */
98
98
  SecretArn?: string;
99
99
  /**
100
- * <p>The serverless workgroup name. This element is not returned when connecting to a provisioned cluster.</p>
100
+ * <p>The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.</p>
101
101
  */
102
102
  WorkgroupName?: string;
103
103
  }
@@ -431,7 +431,7 @@ export interface DescribeStatementResponse {
431
431
  */
432
432
  SubStatements?: SubStatementData[];
433
433
  /**
434
- * <p>The serverless workgroup name.</p>
434
+ * <p>The serverless workgroup name or Amazon Resource Name (ARN).</p>
435
435
  */
436
436
  WorkgroupName?: string;
437
437
  }
@@ -476,7 +476,7 @@ export interface DescribeTableRequest {
476
476
  */
477
477
  MaxResults?: number;
478
478
  /**
479
- * <p>The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
479
+ * <p>The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
480
480
  */
481
481
  WorkgroupName?: string;
482
482
  }
@@ -547,7 +547,7 @@ export interface ExecuteStatementInput {
547
547
  */
548
548
  Parameters?: SqlParameter[];
549
549
  /**
550
- * <p>The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
550
+ * <p>The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
551
551
  */
552
552
  WorkgroupName?: string;
553
553
  /**
@@ -581,7 +581,7 @@ export interface ExecuteStatementOutput {
581
581
  */
582
582
  SecretArn?: string;
583
583
  /**
584
- * <p>The serverless workgroup name. This element is not returned when connecting to a provisioned cluster.</p>
584
+ * <p>The serverless workgroup name or Amazon Resource Name (ARN). This element is not returned when connecting to a provisioned cluster.</p>
585
585
  */
586
586
  WorkgroupName?: string;
587
587
  }
@@ -741,7 +741,7 @@ export interface ListDatabasesRequest {
741
741
  */
742
742
  MaxResults?: number;
743
743
  /**
744
- * <p>The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
744
+ * <p>The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
745
745
  */
746
746
  WorkgroupName?: string;
747
747
  }
@@ -793,7 +793,7 @@ export interface ListSchemasRequest {
793
793
  */
794
794
  MaxResults?: number;
795
795
  /**
796
- * <p>The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
796
+ * <p>The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
797
797
  */
798
798
  WorkgroupName?: string;
799
799
  }
@@ -962,7 +962,7 @@ export interface ListTablesRequest {
962
962
  */
963
963
  MaxResults?: number;
964
964
  /**
965
- * <p>The serverless workgroup name. This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
965
+ * <p>The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.</p>
966
966
  */
967
967
  WorkgroupName?: string;
968
968
  }
@@ -1,6 +1,5 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { RedshiftData } from "../RedshiftData";
3
2
  import { RedshiftDataClient } from "../RedshiftDataClient";
4
3
  export interface RedshiftDataPaginationConfiguration extends PaginationConfiguration {
5
- client: RedshiftData | RedshiftDataClient;
4
+ client: RedshiftDataClient;
6
5
  }
@@ -1,7 +1,6 @@
1
1
  import { PaginationConfiguration } from "@aws-sdk/types";
2
- import { RedshiftData } from "../RedshiftData";
3
2
  import { RedshiftDataClient } from "../RedshiftDataClient";
4
3
  export interface RedshiftDataPaginationConfiguration
5
4
  extends PaginationConfiguration {
6
- client: RedshiftData | RedshiftDataClient;
5
+ client: RedshiftDataClient;
7
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-redshift-data",
3
3
  "description": "AWS SDK for JavaScript Redshift Data Client for Node.js, Browser and React Native",
4
- "version": "3.282.0",
4
+ "version": "3.288.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,23 +20,23 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.282.0",
24
- "@aws-sdk/config-resolver": "3.282.0",
25
- "@aws-sdk/credential-provider-node": "3.282.0",
23
+ "@aws-sdk/client-sts": "3.288.0",
24
+ "@aws-sdk/config-resolver": "3.287.0",
25
+ "@aws-sdk/credential-provider-node": "3.288.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.282.0",
27
27
  "@aws-sdk/hash-node": "3.272.0",
28
28
  "@aws-sdk/invalid-dependency": "3.272.0",
29
29
  "@aws-sdk/middleware-content-length": "3.282.0",
30
30
  "@aws-sdk/middleware-endpoint": "3.282.0",
31
31
  "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.272.0",
32
+ "@aws-sdk/middleware-logger": "3.288.0",
33
33
  "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.282.0",
34
+ "@aws-sdk/middleware-retry": "3.287.0",
35
35
  "@aws-sdk/middleware-serde": "3.272.0",
36
36
  "@aws-sdk/middleware-signing": "3.282.0",
37
37
  "@aws-sdk/middleware-stack": "3.272.0",
38
38
  "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.272.0",
39
+ "@aws-sdk/node-config-provider": "3.287.0",
40
40
  "@aws-sdk/node-http-handler": "3.282.0",
41
41
  "@aws-sdk/protocol-http": "3.282.0",
42
42
  "@aws-sdk/smithy-client": "3.279.0",
@@ -46,11 +46,11 @@
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.282.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
50
  "@aws-sdk/util-endpoints": "3.272.0",
51
51
  "@aws-sdk/util-retry": "3.272.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.282.0",
53
- "@aws-sdk/util-user-agent-node": "3.282.0",
53
+ "@aws-sdk/util-user-agent-node": "3.287.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "tslib": "^2.3.1",
56
56
  "uuid": "^8.3.2"