@aws-sdk/client-redshift-data 3.36.0 → 3.36.1

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 (43) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/RedshiftData.js +0 -7
  3. package/dist-cjs/RedshiftDataClient.js +0 -12
  4. package/dist-cjs/commands/BatchExecuteStatementCommand.js +0 -38
  5. package/dist-cjs/commands/CancelStatementCommand.js +0 -24
  6. package/dist-cjs/commands/DescribeStatementCommand.js +0 -26
  7. package/dist-cjs/commands/DescribeTableCommand.js +0 -39
  8. package/dist-cjs/commands/ExecuteStatementCommand.js +0 -38
  9. package/dist-cjs/commands/GetStatementResultCommand.js +0 -25
  10. package/dist-cjs/commands/ListDatabasesCommand.js +0 -38
  11. package/dist-cjs/commands/ListSchemasCommand.js +0 -38
  12. package/dist-cjs/commands/ListStatementsCommand.js +0 -25
  13. package/dist-cjs/commands/ListTablesCommand.js +0 -39
  14. package/dist-cjs/models/models_0.js +0 -96
  15. package/dist-cjs/pagination/DescribeTablePaginator.js +0 -10
  16. package/dist-cjs/pagination/GetStatementResultPaginator.js +0 -10
  17. package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -10
  18. package/dist-cjs/pagination/ListSchemasPaginator.js +0 -10
  19. package/dist-cjs/pagination/ListStatementsPaginator.js +0 -10
  20. package/dist-cjs/pagination/ListTablesPaginator.js +0 -10
  21. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  22. package/dist-cjs/runtimeConfig.browser.js +1 -5
  23. package/dist-cjs/runtimeConfig.js +1 -5
  24. package/dist-cjs/runtimeConfig.native.js +0 -3
  25. package/dist-cjs/runtimeConfig.shared.js +0 -3
  26. package/dist-types/ts3.4/RedshiftData.d.ts +11 -127
  27. package/dist-types/ts3.4/RedshiftDataClient.d.ts +24 -93
  28. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +2 -34
  29. package/dist-types/ts3.4/commands/CancelStatementCommand.d.ts +2 -20
  30. package/dist-types/ts3.4/commands/DescribeStatementCommand.d.ts +2 -22
  31. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +2 -35
  32. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +2 -34
  33. package/dist-types/ts3.4/commands/GetStatementResultCommand.d.ts +2 -21
  34. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +2 -34
  35. package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +2 -34
  36. package/dist-types/ts3.4/commands/ListStatementsCommand.d.ts +2 -21
  37. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +2 -35
  38. package/dist-types/ts3.4/models/models_0.d.ts +198 -688
  39. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  40. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  41. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  42. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  43. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
18
 
8
19
 
@@ -12,13 +12,6 @@ const ListSchemasCommand_1 = require("./commands/ListSchemasCommand");
12
12
  const ListStatementsCommand_1 = require("./commands/ListStatementsCommand");
13
13
  const ListTablesCommand_1 = require("./commands/ListTablesCommand");
14
14
  const RedshiftDataClient_1 = require("./RedshiftDataClient");
15
- /**
16
- * <p>You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You
17
- * can run SQL statements, which are committed if the statement succeeds. </p>
18
- * <p>For more information about the Amazon Redshift Data API, see
19
- * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
20
- * <i>Amazon Redshift Cluster Management Guide</i>. </p>
21
- */
22
15
  class RedshiftData extends RedshiftDataClient_1.RedshiftDataClient {
23
16
  batchExecuteStatement(args, optionsOrCb, cb) {
24
17
  const command = new BatchExecuteStatementCommand_1.BatchExecuteStatementCommand(args);
@@ -10,13 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <p>You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You
15
- * can run SQL statements, which are committed if the statement succeeds. </p>
16
- * <p>For more information about the Amazon Redshift Data API, see
17
- * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
18
- * <i>Amazon Redshift Cluster Management Guide</i>. </p>
19
- */
20
13
  class RedshiftDataClient extends smithy_client_1.Client {
21
14
  constructor(configuration) {
22
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -35,11 +28,6 @@ class RedshiftDataClient extends smithy_client_1.Client {
35
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
36
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
37
30
  }
38
- /**
39
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
40
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
41
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
42
- */
43
31
  destroy() {
44
32
  super.destroy();
45
33
  }
@@ -5,49 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Runs one or more SQL statements, which can be data manipulation language (DML) or data definition
10
- * language (DDL).
11
- * Depending on the authorization
12
- * method, use one of the following combinations of request parameters: </p>
13
- * <ul>
14
- * <li>
15
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
16
- * cluster identifier that matches the cluster in the secret. </p>
17
- * </li>
18
- * <li>
19
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
20
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
21
- * operation is required to use this method. </p>
22
- * </li>
23
- * </ul>
24
- * @example
25
- * Use a bare-bones client and the command you need to make an API call.
26
- * ```javascript
27
- * import { RedshiftDataClient, BatchExecuteStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
28
- * // const { RedshiftDataClient, BatchExecuteStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
29
- * const client = new RedshiftDataClient(config);
30
- * const command = new BatchExecuteStatementCommand(input);
31
- * const response = await client.send(command);
32
- * ```
33
- *
34
- * @see {@link BatchExecuteStatementCommandInput} for command's `input` shape.
35
- * @see {@link BatchExecuteStatementCommandOutput} for command's `response` shape.
36
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
37
- *
38
- */
39
8
  class BatchExecuteStatementCommand extends smithy_client_1.Command {
40
- // Start section: command_properties
41
- // End section: command_properties
42
9
  constructor(input) {
43
- // Start section: command_constructor
44
10
  super();
45
11
  this.input = input;
46
- // End section: command_constructor
47
12
  }
48
- /**
49
- * @internal
50
- */
51
13
  resolveMiddleware(clientStack, configuration, options) {
52
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
53
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Cancels a running query. To be canceled, a query must be running. </p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { RedshiftDataClient, CancelStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
14
- * // const { RedshiftDataClient, CancelStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
15
- * const client = new RedshiftDataClient(config);
16
- * const command = new CancelStatementCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link CancelStatementCommandInput} for command's `input` shape.
21
- * @see {@link CancelStatementCommandOutput} for command's `response` shape.
22
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class CancelStatementCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information
10
- * includes when the query started, when it finished, the query status, the number of rows returned, and the SQL
11
- * statement. </p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { RedshiftDataClient, DescribeStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
16
- * // const { RedshiftDataClient, DescribeStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
17
- * const client = new RedshiftDataClient(config);
18
- * const command = new DescribeStatementCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link DescribeStatementCommandInput} for command's `input` shape.
23
- * @see {@link DescribeStatementCommandOutput} for command's `response` shape.
24
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class DescribeStatementCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,50 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Describes the detailed information about a table from metadata in the cluster. The
10
- * information includes its columns.
11
- * A token is returned to page through the column list.
12
- * Depending on the authorization method, use one of the
13
- * following combinations of request parameters: </p>
14
- * <ul>
15
- * <li>
16
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
17
- * cluster identifier that matches the cluster in the secret. </p>
18
- * </li>
19
- * <li>
20
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the database
21
- * user name. Permission to call the <code>redshift:GetClusterCredentials</code> operation is
22
- * required to use this method. </p>
23
- * </li>
24
- * </ul>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { RedshiftDataClient, DescribeTableCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
29
- * // const { RedshiftDataClient, DescribeTableCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
30
- * const client = new RedshiftDataClient(config);
31
- * const command = new DescribeTableCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link DescribeTableCommandInput} for command's `input` shape.
36
- * @see {@link DescribeTableCommandOutput} for command's `response` shape.
37
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
8
  class DescribeTableCommand extends smithy_client_1.Command {
41
- // Start section: command_properties
42
- // End section: command_properties
43
9
  constructor(input) {
44
- // Start section: command_constructor
45
10
  super();
46
11
  this.input = input;
47
- // End section: command_constructor
48
12
  }
49
- /**
50
- * @internal
51
- */
52
13
  resolveMiddleware(clientStack, configuration, options) {
53
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
54
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,49 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Runs an SQL statement, which can be data manipulation language (DML) or data definition
10
- * language (DDL). This statement must be a single SQL statement.
11
- * Depending on the authorization
12
- * method, use one of the following combinations of request parameters: </p>
13
- * <ul>
14
- * <li>
15
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
16
- * cluster identifier that matches the cluster in the secret. </p>
17
- * </li>
18
- * <li>
19
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
20
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
21
- * operation is required to use this method. </p>
22
- * </li>
23
- * </ul>
24
- * @example
25
- * Use a bare-bones client and the command you need to make an API call.
26
- * ```javascript
27
- * import { RedshiftDataClient, ExecuteStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
28
- * // const { RedshiftDataClient, ExecuteStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
29
- * const client = new RedshiftDataClient(config);
30
- * const command = new ExecuteStatementCommand(input);
31
- * const response = await client.send(command);
32
- * ```
33
- *
34
- * @see {@link ExecuteStatementCommandInput} for command's `input` shape.
35
- * @see {@link ExecuteStatementCommandOutput} for command's `response` shape.
36
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
37
- *
38
- */
39
8
  class ExecuteStatementCommand extends smithy_client_1.Command {
40
- // Start section: command_properties
41
- // End section: command_properties
42
9
  constructor(input) {
43
- // Start section: command_constructor
44
10
  super();
45
11
  this.input = input;
46
- // End section: command_constructor
47
12
  }
48
- /**
49
- * @internal
50
- */
51
13
  resolveMiddleware(clientStack, configuration, options) {
52
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
53
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Fetches the temporarily cached result of an SQL statement.
10
- * A token is returned to page through the statement results. </p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { RedshiftDataClient, GetStatementResultCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
15
- * // const { RedshiftDataClient, GetStatementResultCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
16
- * const client = new RedshiftDataClient(config);
17
- * const command = new GetStatementResultCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetStatementResultCommandInput} for command's `input` shape.
22
- * @see {@link GetStatementResultCommandOutput} for command's `response` shape.
23
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class GetStatementResultCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,49 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>List the databases in a cluster.
10
- * A token is returned to page through the database list.
11
- * Depending on the authorization method, use one of the
12
- * following combinations of request parameters: </p>
13
- * <ul>
14
- * <li>
15
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
16
- * cluster identifier that matches the cluster in the secret. </p>
17
- * </li>
18
- * <li>
19
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
20
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
21
- * operation is required to use this method. </p>
22
- * </li>
23
- * </ul>
24
- * @example
25
- * Use a bare-bones client and the command you need to make an API call.
26
- * ```javascript
27
- * import { RedshiftDataClient, ListDatabasesCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
28
- * // const { RedshiftDataClient, ListDatabasesCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
29
- * const client = new RedshiftDataClient(config);
30
- * const command = new ListDatabasesCommand(input);
31
- * const response = await client.send(command);
32
- * ```
33
- *
34
- * @see {@link ListDatabasesCommandInput} for command's `input` shape.
35
- * @see {@link ListDatabasesCommandOutput} for command's `response` shape.
36
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
37
- *
38
- */
39
8
  class ListDatabasesCommand extends smithy_client_1.Command {
40
- // Start section: command_properties
41
- // End section: command_properties
42
9
  constructor(input) {
43
- // Start section: command_constructor
44
10
  super();
45
11
  this.input = input;
46
- // End section: command_constructor
47
12
  }
48
- /**
49
- * @internal
50
- */
51
13
  resolveMiddleware(clientStack, configuration, options) {
52
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
53
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,49 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Lists the schemas in a database.
10
- * A token is returned to page through the schema list.
11
- * Depending on the authorization method, use one of the
12
- * following combinations of request parameters: </p>
13
- * <ul>
14
- * <li>
15
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
16
- * cluster identifier that matches the cluster in the secret. </p>
17
- * </li>
18
- * <li>
19
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
20
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
21
- * operation is required to use this method. </p>
22
- * </li>
23
- * </ul>
24
- * @example
25
- * Use a bare-bones client and the command you need to make an API call.
26
- * ```javascript
27
- * import { RedshiftDataClient, ListSchemasCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
28
- * // const { RedshiftDataClient, ListSchemasCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
29
- * const client = new RedshiftDataClient(config);
30
- * const command = new ListSchemasCommand(input);
31
- * const response = await client.send(command);
32
- * ```
33
- *
34
- * @see {@link ListSchemasCommandInput} for command's `input` shape.
35
- * @see {@link ListSchemasCommandOutput} for command's `response` shape.
36
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
37
- *
38
- */
39
8
  class ListSchemasCommand extends smithy_client_1.Command {
40
- // Start section: command_properties
41
- // End section: command_properties
42
9
  constructor(input) {
43
- // Start section: command_constructor
44
10
  super();
45
11
  this.input = input;
46
- // End section: command_constructor
47
12
  }
48
- /**
49
- * @internal
50
- */
51
13
  resolveMiddleware(clientStack, configuration, options) {
52
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
53
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>List of SQL statements. By default, only finished statements are shown.
10
- * A token is returned to page through the statement list. </p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { RedshiftDataClient, ListStatementsCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
15
- * // const { RedshiftDataClient, ListStatementsCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
16
- * const client = new RedshiftDataClient(config);
17
- * const command = new ListStatementsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListStatementsCommandInput} for command's `input` shape.
22
- * @see {@link ListStatementsCommandOutput} for command's `response` shape.
23
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class ListStatementsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,50 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>List the tables in a database. If neither <code>SchemaPattern</code> nor <code>TablePattern</code> are specified, then
10
- * all tables in the database are returned.
11
- * A token is returned to page through the table list.
12
- * Depending on the authorization method, use one of the
13
- * following combinations of request parameters: </p>
14
- * <ul>
15
- * <li>
16
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
17
- * cluster identifier that matches the cluster in the secret. </p>
18
- * </li>
19
- * <li>
20
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
21
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
22
- * operation is required to use this method. </p>
23
- * </li>
24
- * </ul>
25
- * @example
26
- * Use a bare-bones client and the command you need to make an API call.
27
- * ```javascript
28
- * import { RedshiftDataClient, ListTablesCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
29
- * // const { RedshiftDataClient, ListTablesCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
30
- * const client = new RedshiftDataClient(config);
31
- * const command = new ListTablesCommand(input);
32
- * const response = await client.send(command);
33
- * ```
34
- *
35
- * @see {@link ListTablesCommandInput} for command's `input` shape.
36
- * @see {@link ListTablesCommandOutput} for command's `response` shape.
37
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
38
- *
39
- */
40
8
  class ListTablesCommand extends smithy_client_1.Command {
41
- // Start section: command_properties
42
- // End section: command_properties
43
9
  constructor(input) {
44
- // Start section: command_constructor
45
10
  super();
46
11
  this.input = input;
47
- // End section: command_constructor
48
12
  }
49
- /**
50
- * @internal
51
- */
52
13
  resolveMiddleware(clientStack, configuration, options) {
53
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
54
15
  const stack = clientStack.concat(this.middlewareStack);