@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.
- package/CHANGELOG.md +13 -0
- package/dist-cjs/RedshiftData.js +0 -1
- package/dist-cjs/RedshiftDataClient.js +0 -1
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +0 -1
- package/dist-cjs/commands/CancelStatementCommand.js +0 -1
- package/dist-cjs/commands/DescribeStatementCommand.js +0 -1
- package/dist-cjs/commands/DescribeTableCommand.js +0 -1
- package/dist-cjs/commands/ExecuteStatementCommand.js +0 -1
- package/dist-cjs/commands/GetStatementResultCommand.js +0 -1
- package/dist-cjs/commands/ListDatabasesCommand.js +0 -1
- package/dist-cjs/commands/ListSchemasCommand.js +0 -1
- package/dist-cjs/commands/ListStatementsCommand.js +0 -1
- package/dist-cjs/commands/ListTablesCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/DescribeTablePaginator.js +0 -1
- package/dist-cjs/pagination/GetStatementResultPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -1
- package/dist-cjs/pagination/ListSchemasPaginator.js +0 -1
- package/dist-cjs/pagination/ListStatementsPaginator.js +0 -1
- package/dist-cjs/pagination/ListTablesPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/RedshiftData.js +0 -1
- package/dist-es/RedshiftDataClient.js +0 -1
- package/dist-es/commands/BatchExecuteStatementCommand.js +0 -1
- package/dist-es/commands/CancelStatementCommand.js +0 -1
- package/dist-es/commands/DescribeStatementCommand.js +0 -1
- package/dist-es/commands/DescribeTableCommand.js +0 -1
- package/dist-es/commands/ExecuteStatementCommand.js +0 -1
- package/dist-es/commands/GetStatementResultCommand.js +0 -1
- package/dist-es/commands/ListDatabasesCommand.js +0 -1
- package/dist-es/commands/ListSchemasCommand.js +0 -1
- package/dist-es/commands/ListStatementsCommand.js +0 -1
- package/dist-es/commands/ListTablesCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeTablePaginator.js +0 -1
- package/dist-es/pagination/GetStatementResultPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListDatabasesPaginator.js +0 -1
- package/dist-es/pagination/ListSchemasPaginator.js +0 -1
- package/dist-es/pagination/ListStatementsPaginator.js +0 -1
- package/dist-es/pagination/ListTablesPaginator.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/package.json +33 -30
- package/dist-cjs/RedshiftData.js.map +0 -1
- package/dist-cjs/RedshiftDataClient.js.map +0 -1
- package/dist-cjs/commands/BatchExecuteStatementCommand.js.map +0 -1
- package/dist-cjs/commands/CancelStatementCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeStatementCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeTableCommand.js.map +0 -1
- package/dist-cjs/commands/ExecuteStatementCommand.js.map +0 -1
- package/dist-cjs/commands/GetStatementResultCommand.js.map +0 -1
- package/dist-cjs/commands/ListDatabasesCommand.js.map +0 -1
- package/dist-cjs/commands/ListSchemasCommand.js.map +0 -1
- package/dist-cjs/commands/ListStatementsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTablesCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeTablePaginator.js.map +0 -1
- package/dist-cjs/pagination/GetStatementResultPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListDatabasesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSchemasPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListStatementsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListTablesPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/RedshiftData.js.map +0 -1
- package/dist-es/RedshiftDataClient.js.map +0 -1
- package/dist-es/commands/BatchExecuteStatementCommand.js.map +0 -1
- package/dist-es/commands/CancelStatementCommand.js.map +0 -1
- package/dist-es/commands/DescribeStatementCommand.js.map +0 -1
- package/dist-es/commands/DescribeTableCommand.js.map +0 -1
- package/dist-es/commands/ExecuteStatementCommand.js.map +0 -1
- package/dist-es/commands/GetStatementResultCommand.js.map +0 -1
- package/dist-es/commands/ListDatabasesCommand.js.map +0 -1
- package/dist-es/commands/ListSchemasCommand.js.map +0 -1
- package/dist-es/commands/ListStatementsCommand.js.map +0 -1
- package/dist-es/commands/ListTablesCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeTablePaginator.js.map +0 -1
- package/dist-es/pagination/GetStatementResultPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListDatabasesPaginator.js.map +0 -1
- package/dist-es/pagination/ListSchemasPaginator.js.map +0 -1
- package/dist-es/pagination/ListStatementsPaginator.js.map +0 -1
- package/dist-es/pagination/ListTablesPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/RedshiftData.ts +0 -452
- package/src/RedshiftDataClient.ts +0 -273
- package/src/commands/BatchExecuteStatementCommand.ts +0 -109
- package/src/commands/CancelStatementCommand.ts +0 -95
- package/src/commands/DescribeStatementCommand.ts +0 -97
- package/src/commands/DescribeTableCommand.ts +0 -110
- package/src/commands/ExecuteStatementCommand.ts +0 -109
- package/src/commands/GetStatementResultCommand.ts +0 -96
- package/src/commands/ListDatabasesCommand.ts +0 -109
- package/src/commands/ListSchemasCommand.ts +0 -109
- package/src/commands/ListStatementsCommand.ts +0 -96
- package/src/commands/ListTablesCommand.ts +0 -110
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -20
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1379
- package/src/pagination/DescribeTablePaginator.ts +0 -59
- package/src/pagination/GetStatementResultPaginator.ts +0 -58
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListDatabasesPaginator.ts +0 -59
- package/src/pagination/ListSchemasPaginator.ts +0 -55
- package/src/pagination/ListStatementsPaginator.ts +0 -59
- package/src/pagination/ListTablesPaginator.ts +0 -55
- package/src/protocols/Aws_json1_1.ts +0 -1615
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ExecuteStatementInput, ExecuteStatementOutput } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1ExecuteStatementCommand,
|
|
17
|
-
serializeAws_json1_1ExecuteStatementCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
|
|
20
|
-
|
|
21
|
-
export interface ExecuteStatementCommandInput extends ExecuteStatementInput {}
|
|
22
|
-
export interface ExecuteStatementCommandOutput extends ExecuteStatementOutput, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Runs an SQL statement, which can be data manipulation language (DML) or data definition
|
|
26
|
-
* language (DDL). This statement must be a single SQL statement.
|
|
27
|
-
* Depending on the authorization
|
|
28
|
-
* method, use one of the following combinations of request parameters: </p>
|
|
29
|
-
* <ul>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
32
|
-
* cluster identifier that matches the cluster in the secret. </p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
36
|
-
* database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
|
|
37
|
-
* operation is required to use this method. </p>
|
|
38
|
-
* </li>
|
|
39
|
-
* </ul>
|
|
40
|
-
* @example
|
|
41
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
42
|
-
* ```javascript
|
|
43
|
-
* import { RedshiftDataClient, ExecuteStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
|
|
44
|
-
* // const { RedshiftDataClient, ExecuteStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
|
|
45
|
-
* const client = new RedshiftDataClient(config);
|
|
46
|
-
* const command = new ExecuteStatementCommand(input);
|
|
47
|
-
* const response = await client.send(command);
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @see {@link ExecuteStatementCommandInput} for command's `input` shape.
|
|
51
|
-
* @see {@link ExecuteStatementCommandOutput} for command's `response` shape.
|
|
52
|
-
* @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
export class ExecuteStatementCommand extends $Command<
|
|
56
|
-
ExecuteStatementCommandInput,
|
|
57
|
-
ExecuteStatementCommandOutput,
|
|
58
|
-
RedshiftDataClientResolvedConfig
|
|
59
|
-
> {
|
|
60
|
-
// Start section: command_properties
|
|
61
|
-
// End section: command_properties
|
|
62
|
-
|
|
63
|
-
constructor(readonly input: ExecuteStatementCommandInput) {
|
|
64
|
-
// Start section: command_constructor
|
|
65
|
-
super();
|
|
66
|
-
// End section: command_constructor
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
|
-
resolveMiddleware(
|
|
73
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
74
|
-
configuration: RedshiftDataClientResolvedConfig,
|
|
75
|
-
options?: __HttpHandlerOptions
|
|
76
|
-
): Handler<ExecuteStatementCommandInput, ExecuteStatementCommandOutput> {
|
|
77
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
78
|
-
|
|
79
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
80
|
-
|
|
81
|
-
const { logger } = configuration;
|
|
82
|
-
const clientName = "RedshiftDataClient";
|
|
83
|
-
const commandName = "ExecuteStatementCommand";
|
|
84
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
85
|
-
logger,
|
|
86
|
-
clientName,
|
|
87
|
-
commandName,
|
|
88
|
-
inputFilterSensitiveLog: ExecuteStatementInput.filterSensitiveLog,
|
|
89
|
-
outputFilterSensitiveLog: ExecuteStatementOutput.filterSensitiveLog,
|
|
90
|
-
};
|
|
91
|
-
const { requestHandler } = configuration;
|
|
92
|
-
return stack.resolve(
|
|
93
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
94
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
95
|
-
handlerExecutionContext
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
private serialize(input: ExecuteStatementCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
100
|
-
return serializeAws_json1_1ExecuteStatementCommand(input, context);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ExecuteStatementCommandOutput> {
|
|
104
|
-
return deserializeAws_json1_1ExecuteStatementCommand(output, context);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Start section: command_body_extra
|
|
108
|
-
// End section: command_body_extra
|
|
109
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { GetStatementResultRequest, GetStatementResultResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1GetStatementResultCommand,
|
|
17
|
-
serializeAws_json1_1GetStatementResultCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
|
|
20
|
-
|
|
21
|
-
export interface GetStatementResultCommandInput extends GetStatementResultRequest {}
|
|
22
|
-
export interface GetStatementResultCommandOutput extends GetStatementResultResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Fetches the temporarily cached result of an SQL statement.
|
|
26
|
-
* A token is returned to page through the statement results. </p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { RedshiftDataClient, GetStatementResultCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
|
|
31
|
-
* // const { RedshiftDataClient, GetStatementResultCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
|
|
32
|
-
* const client = new RedshiftDataClient(config);
|
|
33
|
-
* const command = new GetStatementResultCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link GetStatementResultCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link GetStatementResultCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class GetStatementResultCommand extends $Command<
|
|
43
|
-
GetStatementResultCommandInput,
|
|
44
|
-
GetStatementResultCommandOutput,
|
|
45
|
-
RedshiftDataClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: GetStatementResultCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: RedshiftDataClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<GetStatementResultCommandInput, GetStatementResultCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "RedshiftDataClient";
|
|
70
|
-
const commandName = "GetStatementResultCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: GetStatementResultRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: GetStatementResultResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: GetStatementResultCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1GetStatementResultCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetStatementResultCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1GetStatementResultCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ListDatabasesRequest, ListDatabasesResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1ListDatabasesCommand,
|
|
17
|
-
serializeAws_json1_1ListDatabasesCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
|
|
20
|
-
|
|
21
|
-
export interface ListDatabasesCommandInput extends ListDatabasesRequest {}
|
|
22
|
-
export interface ListDatabasesCommandOutput extends ListDatabasesResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>List the databases in a cluster.
|
|
26
|
-
* A token is returned to page through the database list.
|
|
27
|
-
* Depending on the authorization method, use one of the
|
|
28
|
-
* following combinations of request parameters: </p>
|
|
29
|
-
* <ul>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
32
|
-
* cluster identifier that matches the cluster in the secret. </p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
36
|
-
* database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
|
|
37
|
-
* operation is required to use this method. </p>
|
|
38
|
-
* </li>
|
|
39
|
-
* </ul>
|
|
40
|
-
* @example
|
|
41
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
42
|
-
* ```javascript
|
|
43
|
-
* import { RedshiftDataClient, ListDatabasesCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
|
|
44
|
-
* // const { RedshiftDataClient, ListDatabasesCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
|
|
45
|
-
* const client = new RedshiftDataClient(config);
|
|
46
|
-
* const command = new ListDatabasesCommand(input);
|
|
47
|
-
* const response = await client.send(command);
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @see {@link ListDatabasesCommandInput} for command's `input` shape.
|
|
51
|
-
* @see {@link ListDatabasesCommandOutput} for command's `response` shape.
|
|
52
|
-
* @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
export class ListDatabasesCommand extends $Command<
|
|
56
|
-
ListDatabasesCommandInput,
|
|
57
|
-
ListDatabasesCommandOutput,
|
|
58
|
-
RedshiftDataClientResolvedConfig
|
|
59
|
-
> {
|
|
60
|
-
// Start section: command_properties
|
|
61
|
-
// End section: command_properties
|
|
62
|
-
|
|
63
|
-
constructor(readonly input: ListDatabasesCommandInput) {
|
|
64
|
-
// Start section: command_constructor
|
|
65
|
-
super();
|
|
66
|
-
// End section: command_constructor
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
|
-
resolveMiddleware(
|
|
73
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
74
|
-
configuration: RedshiftDataClientResolvedConfig,
|
|
75
|
-
options?: __HttpHandlerOptions
|
|
76
|
-
): Handler<ListDatabasesCommandInput, ListDatabasesCommandOutput> {
|
|
77
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
78
|
-
|
|
79
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
80
|
-
|
|
81
|
-
const { logger } = configuration;
|
|
82
|
-
const clientName = "RedshiftDataClient";
|
|
83
|
-
const commandName = "ListDatabasesCommand";
|
|
84
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
85
|
-
logger,
|
|
86
|
-
clientName,
|
|
87
|
-
commandName,
|
|
88
|
-
inputFilterSensitiveLog: ListDatabasesRequest.filterSensitiveLog,
|
|
89
|
-
outputFilterSensitiveLog: ListDatabasesResponse.filterSensitiveLog,
|
|
90
|
-
};
|
|
91
|
-
const { requestHandler } = configuration;
|
|
92
|
-
return stack.resolve(
|
|
93
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
94
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
95
|
-
handlerExecutionContext
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
private serialize(input: ListDatabasesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
100
|
-
return serializeAws_json1_1ListDatabasesCommand(input, context);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListDatabasesCommandOutput> {
|
|
104
|
-
return deserializeAws_json1_1ListDatabasesCommand(output, context);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Start section: command_body_extra
|
|
108
|
-
// End section: command_body_extra
|
|
109
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ListSchemasRequest, ListSchemasResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1ListSchemasCommand,
|
|
17
|
-
serializeAws_json1_1ListSchemasCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
|
|
20
|
-
|
|
21
|
-
export interface ListSchemasCommandInput extends ListSchemasRequest {}
|
|
22
|
-
export interface ListSchemasCommandOutput extends ListSchemasResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Lists the schemas in a database.
|
|
26
|
-
* A token is returned to page through the schema list.
|
|
27
|
-
* Depending on the authorization method, use one of the
|
|
28
|
-
* following combinations of request parameters: </p>
|
|
29
|
-
* <ul>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
32
|
-
* cluster identifier that matches the cluster in the secret. </p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
36
|
-
* database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
|
|
37
|
-
* operation is required to use this method. </p>
|
|
38
|
-
* </li>
|
|
39
|
-
* </ul>
|
|
40
|
-
* @example
|
|
41
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
42
|
-
* ```javascript
|
|
43
|
-
* import { RedshiftDataClient, ListSchemasCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
|
|
44
|
-
* // const { RedshiftDataClient, ListSchemasCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
|
|
45
|
-
* const client = new RedshiftDataClient(config);
|
|
46
|
-
* const command = new ListSchemasCommand(input);
|
|
47
|
-
* const response = await client.send(command);
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @see {@link ListSchemasCommandInput} for command's `input` shape.
|
|
51
|
-
* @see {@link ListSchemasCommandOutput} for command's `response` shape.
|
|
52
|
-
* @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
export class ListSchemasCommand extends $Command<
|
|
56
|
-
ListSchemasCommandInput,
|
|
57
|
-
ListSchemasCommandOutput,
|
|
58
|
-
RedshiftDataClientResolvedConfig
|
|
59
|
-
> {
|
|
60
|
-
// Start section: command_properties
|
|
61
|
-
// End section: command_properties
|
|
62
|
-
|
|
63
|
-
constructor(readonly input: ListSchemasCommandInput) {
|
|
64
|
-
// Start section: command_constructor
|
|
65
|
-
super();
|
|
66
|
-
// End section: command_constructor
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
|
-
resolveMiddleware(
|
|
73
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
74
|
-
configuration: RedshiftDataClientResolvedConfig,
|
|
75
|
-
options?: __HttpHandlerOptions
|
|
76
|
-
): Handler<ListSchemasCommandInput, ListSchemasCommandOutput> {
|
|
77
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
78
|
-
|
|
79
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
80
|
-
|
|
81
|
-
const { logger } = configuration;
|
|
82
|
-
const clientName = "RedshiftDataClient";
|
|
83
|
-
const commandName = "ListSchemasCommand";
|
|
84
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
85
|
-
logger,
|
|
86
|
-
clientName,
|
|
87
|
-
commandName,
|
|
88
|
-
inputFilterSensitiveLog: ListSchemasRequest.filterSensitiveLog,
|
|
89
|
-
outputFilterSensitiveLog: ListSchemasResponse.filterSensitiveLog,
|
|
90
|
-
};
|
|
91
|
-
const { requestHandler } = configuration;
|
|
92
|
-
return stack.resolve(
|
|
93
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
94
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
95
|
-
handlerExecutionContext
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
private serialize(input: ListSchemasCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
100
|
-
return serializeAws_json1_1ListSchemasCommand(input, context);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListSchemasCommandOutput> {
|
|
104
|
-
return deserializeAws_json1_1ListSchemasCommand(output, context);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Start section: command_body_extra
|
|
108
|
-
// End section: command_body_extra
|
|
109
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ListStatementsRequest, ListStatementsResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1ListStatementsCommand,
|
|
17
|
-
serializeAws_json1_1ListStatementsCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
|
|
20
|
-
|
|
21
|
-
export interface ListStatementsCommandInput extends ListStatementsRequest {}
|
|
22
|
-
export interface ListStatementsCommandOutput extends ListStatementsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>List of SQL statements. By default, only finished statements are shown.
|
|
26
|
-
* A token is returned to page through the statement list. </p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { RedshiftDataClient, ListStatementsCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
|
|
31
|
-
* // const { RedshiftDataClient, ListStatementsCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
|
|
32
|
-
* const client = new RedshiftDataClient(config);
|
|
33
|
-
* const command = new ListStatementsCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link ListStatementsCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link ListStatementsCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class ListStatementsCommand extends $Command<
|
|
43
|
-
ListStatementsCommandInput,
|
|
44
|
-
ListStatementsCommandOutput,
|
|
45
|
-
RedshiftDataClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: ListStatementsCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: RedshiftDataClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<ListStatementsCommandInput, ListStatementsCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "RedshiftDataClient";
|
|
70
|
-
const commandName = "ListStatementsCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: ListStatementsRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: ListStatementsResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: ListStatementsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1ListStatementsCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListStatementsCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1ListStatementsCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ListTablesRequest, ListTablesResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_json1_1ListTablesCommand,
|
|
17
|
-
serializeAws_json1_1ListTablesCommand,
|
|
18
|
-
} from "../protocols/Aws_json1_1";
|
|
19
|
-
import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
|
|
20
|
-
|
|
21
|
-
export interface ListTablesCommandInput extends ListTablesRequest {}
|
|
22
|
-
export interface ListTablesCommandOutput extends ListTablesResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>List the tables in a database. If neither <code>SchemaPattern</code> nor <code>TablePattern</code> are specified, then
|
|
26
|
-
* all tables in the database are returned.
|
|
27
|
-
* A token is returned to page through the table list.
|
|
28
|
-
* Depending on the authorization method, use one of the
|
|
29
|
-
* following combinations of request parameters: </p>
|
|
30
|
-
* <ul>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
|
|
33
|
-
* cluster identifier that matches the cluster in the secret. </p>
|
|
34
|
-
* </li>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>Temporary credentials - specify the cluster identifier, the database name, and the
|
|
37
|
-
* database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
|
|
38
|
-
* operation is required to use this method. </p>
|
|
39
|
-
* </li>
|
|
40
|
-
* </ul>
|
|
41
|
-
* @example
|
|
42
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
43
|
-
* ```javascript
|
|
44
|
-
* import { RedshiftDataClient, ListTablesCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
|
|
45
|
-
* // const { RedshiftDataClient, ListTablesCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
|
|
46
|
-
* const client = new RedshiftDataClient(config);
|
|
47
|
-
* const command = new ListTablesCommand(input);
|
|
48
|
-
* const response = await client.send(command);
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @see {@link ListTablesCommandInput} for command's `input` shape.
|
|
52
|
-
* @see {@link ListTablesCommandOutput} for command's `response` shape.
|
|
53
|
-
* @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
export class ListTablesCommand extends $Command<
|
|
57
|
-
ListTablesCommandInput,
|
|
58
|
-
ListTablesCommandOutput,
|
|
59
|
-
RedshiftDataClientResolvedConfig
|
|
60
|
-
> {
|
|
61
|
-
// Start section: command_properties
|
|
62
|
-
// End section: command_properties
|
|
63
|
-
|
|
64
|
-
constructor(readonly input: ListTablesCommandInput) {
|
|
65
|
-
// Start section: command_constructor
|
|
66
|
-
super();
|
|
67
|
-
// End section: command_constructor
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
resolveMiddleware(
|
|
74
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
75
|
-
configuration: RedshiftDataClientResolvedConfig,
|
|
76
|
-
options?: __HttpHandlerOptions
|
|
77
|
-
): Handler<ListTablesCommandInput, ListTablesCommandOutput> {
|
|
78
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
79
|
-
|
|
80
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
81
|
-
|
|
82
|
-
const { logger } = configuration;
|
|
83
|
-
const clientName = "RedshiftDataClient";
|
|
84
|
-
const commandName = "ListTablesCommand";
|
|
85
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
86
|
-
logger,
|
|
87
|
-
clientName,
|
|
88
|
-
commandName,
|
|
89
|
-
inputFilterSensitiveLog: ListTablesRequest.filterSensitiveLog,
|
|
90
|
-
outputFilterSensitiveLog: ListTablesResponse.filterSensitiveLog,
|
|
91
|
-
};
|
|
92
|
-
const { requestHandler } = configuration;
|
|
93
|
-
return stack.resolve(
|
|
94
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
95
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
96
|
-
handlerExecutionContext
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private serialize(input: ListTablesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
101
|
-
return serializeAws_json1_1ListTablesCommand(input, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTablesCommandOutput> {
|
|
105
|
-
return deserializeAws_json1_1ListTablesCommand(output, context);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// Start section: command_body_extra
|
|
109
|
-
// End section: command_body_extra
|
|
110
|
-
}
|
package/src/endpoints.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
|
|
2
|
-
import { RegionInfoProvider } from "@aws-sdk/types";
|
|
3
|
-
|
|
4
|
-
const regionHash: RegionHash = {};
|
|
5
|
-
|
|
6
|
-
const partitionHash: PartitionHash = {
|
|
7
|
-
aws: {
|
|
8
|
-
regions: [
|
|
9
|
-
"af-south-1",
|
|
10
|
-
"ap-east-1",
|
|
11
|
-
"ap-northeast-1",
|
|
12
|
-
"ap-northeast-2",
|
|
13
|
-
"ap-northeast-3",
|
|
14
|
-
"ap-south-1",
|
|
15
|
-
"ap-southeast-1",
|
|
16
|
-
"ap-southeast-2",
|
|
17
|
-
"ca-central-1",
|
|
18
|
-
"eu-central-1",
|
|
19
|
-
"eu-north-1",
|
|
20
|
-
"eu-south-1",
|
|
21
|
-
"eu-west-1",
|
|
22
|
-
"eu-west-2",
|
|
23
|
-
"eu-west-3",
|
|
24
|
-
"me-south-1",
|
|
25
|
-
"sa-east-1",
|
|
26
|
-
"us-east-1",
|
|
27
|
-
"us-east-2",
|
|
28
|
-
"us-west-1",
|
|
29
|
-
"us-west-2",
|
|
30
|
-
],
|
|
31
|
-
hostname: "redshift-data.{region}.amazonaws.com",
|
|
32
|
-
},
|
|
33
|
-
"aws-cn": {
|
|
34
|
-
regions: ["cn-north-1", "cn-northwest-1"],
|
|
35
|
-
hostname: "redshift-data.{region}.amazonaws.com.cn",
|
|
36
|
-
},
|
|
37
|
-
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
39
|
-
hostname: "redshift-data.{region}.c2s.ic.gov",
|
|
40
|
-
},
|
|
41
|
-
"aws-iso-b": {
|
|
42
|
-
regions: ["us-isob-east-1"],
|
|
43
|
-
hostname: "redshift-data.{region}.sc2s.sgov.gov",
|
|
44
|
-
},
|
|
45
|
-
"aws-us-gov": {
|
|
46
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
47
|
-
hostname: "redshift-data.{region}.amazonaws.com",
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
|
|
52
|
-
getRegionInfo(region, {
|
|
53
|
-
...options,
|
|
54
|
-
signingService: "redshift-data",
|
|
55
|
-
regionHash,
|
|
56
|
-
partitionHash,
|
|
57
|
-
});
|