@aws-sdk/client-redshift-data 3.33.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.
- package/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/RedshiftData.js +1 -9
- package/{dist/cjs → dist-cjs}/RedshiftDataClient.js +8 -21
- package/dist-cjs/commands/BatchExecuteStatementCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/CancelStatementCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeStatementCommand.js +2 -29
- package/dist-cjs/commands/DescribeTableCommand.js +36 -0
- package/dist-cjs/commands/ExecuteStatementCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/GetStatementResultCommand.js +2 -28
- package/dist-cjs/commands/ListDatabasesCommand.js +36 -0
- package/dist-cjs/commands/ListSchemasCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/ListStatementsCommand.js +2 -28
- package/dist-cjs/commands/ListTablesCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -97
- package/{dist/cjs → dist-cjs}/pagination/DescribeTablePaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetStatementResultPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListDatabasesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListSchemasPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListStatementsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListTablesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/RedshiftData.js +2 -10
- package/{dist/es → dist-es}/RedshiftDataClient.js +2 -15
- package/dist-es/commands/BatchExecuteStatementCommand.js +39 -0
- package/{dist/es → dist-es}/commands/CancelStatementCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DescribeStatementCommand.js +4 -32
- package/dist-es/commands/DescribeTableCommand.js +39 -0
- package/dist-es/commands/ExecuteStatementCommand.js +39 -0
- package/{dist/es → dist-es}/commands/GetStatementResultCommand.js +4 -31
- package/dist-es/commands/ListDatabasesCommand.js +39 -0
- package/dist-es/commands/ListSchemasCommand.js +39 -0
- package/{dist/es → dist-es}/commands/ListStatementsCommand.js +4 -31
- package/dist-es/commands/ListTablesCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -97
- package/{dist/es → dist-es}/pagination/DescribeTablePaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/GetStatementResultPaginator.js +17 -30
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListDatabasesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListSchemasPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListStatementsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListTablesPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +178 -184
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/RedshiftData.d.ts +2 -2
- package/{dist/types → dist-types}/RedshiftDataClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/BatchExecuteStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CancelStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeTableCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ExecuteStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetStatementResultCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListDatabasesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListSchemasCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListStatementsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListTablesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeTablePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetStatementResultPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListDatabasesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListSchemasPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListStatementsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTablesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/RedshiftData.d.ts +55 -0
- package/{dist/types → dist-types}/ts3.4/RedshiftDataClient.d.ts +32 -101
- package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CancelStatementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeStatementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetStatementResultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListStatementsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +613 -0
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeTablePaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetStatementResultPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListDatabasesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListSchemasPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListStatementsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTablesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/RedshiftData.ts +0 -451
- package/RedshiftDataClient.ts +0 -272
- package/commands/BatchExecuteStatementCommand.ts +0 -108
- package/commands/CancelStatementCommand.ts +0 -94
- package/commands/DescribeStatementCommand.ts +0 -96
- package/commands/DescribeTableCommand.ts +0 -109
- package/commands/ExecuteStatementCommand.ts +0 -108
- package/commands/GetStatementResultCommand.ts +0 -95
- package/commands/ListDatabasesCommand.ts +0 -108
- package/commands/ListSchemasCommand.ts +0 -108
- package/commands/ListStatementsCommand.ts +0 -95
- package/commands/ListTablesCommand.ts +0 -109
- package/dist/cjs/RedshiftData.js.map +0 -1
- package/dist/cjs/RedshiftDataClient.js.map +0 -1
- package/dist/cjs/commands/BatchExecuteStatementCommand.js +0 -75
- 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 +0 -76
- package/dist/cjs/commands/DescribeTableCommand.js.map +0 -1
- package/dist/cjs/commands/ExecuteStatementCommand.js +0 -75
- package/dist/cjs/commands/ExecuteStatementCommand.js.map +0 -1
- package/dist/cjs/commands/GetStatementResultCommand.js.map +0 -1
- package/dist/cjs/commands/ListDatabasesCommand.js +0 -75
- package/dist/cjs/commands/ListDatabasesCommand.js.map +0 -1
- package/dist/cjs/commands/ListSchemasCommand.js +0 -75
- package/dist/cjs/commands/ListSchemasCommand.js.map +0 -1
- package/dist/cjs/commands/ListStatementsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTablesCommand.js +0 -76
- 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/package.json +0 -91
- 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 +0 -79
- 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 +0 -80
- package/dist/es/commands/DescribeTableCommand.js.map +0 -1
- package/dist/es/commands/ExecuteStatementCommand.js +0 -79
- package/dist/es/commands/ExecuteStatementCommand.js.map +0 -1
- package/dist/es/commands/GetStatementResultCommand.js.map +0 -1
- package/dist/es/commands/ListDatabasesCommand.js +0 -79
- package/dist/es/commands/ListDatabasesCommand.js.map +0 -1
- package/dist/es/commands/ListSchemasCommand.js +0 -79
- package/dist/es/commands/ListSchemasCommand.js.map +0 -1
- package/dist/es/commands/ListStatementsCommand.js.map +0 -1
- package/dist/es/commands/ListTablesCommand.js +0 -80
- package/dist/es/commands/ListTablesCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -21
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/DescribeTablePaginator.js.map +0 -1
- package/dist/es/pagination/GetStatementResultPaginator.js.map +0 -1
- package/dist/es/pagination/Interfaces.js +0 -2
- 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/dist/types/ts3.4/RedshiftData.d.ts +0 -171
- package/dist/types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +0 -49
- package/dist/types/ts3.4/commands/CancelStatementCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeStatementCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeTableCommand.d.ts +0 -50
- package/dist/types/ts3.4/commands/ExecuteStatementCommand.d.ts +0 -49
- package/dist/types/ts3.4/commands/GetStatementResultCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListDatabasesCommand.d.ts +0 -49
- package/dist/types/ts3.4/commands/ListSchemasCommand.d.ts +0 -49
- package/dist/types/ts3.4/commands/ListStatementsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/ListTablesCommand.d.ts +0 -50
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1103
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1379
- package/pagination/DescribeTablePaginator.ts +0 -58
- package/pagination/GetStatementResultPaginator.ts +0 -57
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListDatabasesPaginator.ts +0 -58
- package/pagination/ListSchemasPaginator.ts +0 -54
- package/pagination/ListStatementsPaginator.ts +0 -58
- package/pagination/ListTablesPaginator.ts +0 -54
- package/protocols/Aws_json1_1.ts +0 -1614
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -1,86 +1,50 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
export var ActiveStatementsExceededException;
|
|
3
3
|
(function (ActiveStatementsExceededException) {
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
4
|
ActiveStatementsExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
8
5
|
})(ActiveStatementsExceededException || (ActiveStatementsExceededException = {}));
|
|
9
6
|
export var BatchExecuteStatementException;
|
|
10
7
|
(function (BatchExecuteStatementException) {
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
8
|
BatchExecuteStatementException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
15
9
|
})(BatchExecuteStatementException || (BatchExecuteStatementException = {}));
|
|
16
10
|
export var BatchExecuteStatementInput;
|
|
17
11
|
(function (BatchExecuteStatementInput) {
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
12
|
BatchExecuteStatementInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
13
|
})(BatchExecuteStatementInput || (BatchExecuteStatementInput = {}));
|
|
23
14
|
export var BatchExecuteStatementOutput;
|
|
24
15
|
(function (BatchExecuteStatementOutput) {
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
16
|
BatchExecuteStatementOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
17
|
})(BatchExecuteStatementOutput || (BatchExecuteStatementOutput = {}));
|
|
30
18
|
export var ValidationException;
|
|
31
19
|
(function (ValidationException) {
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
20
|
ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
36
21
|
})(ValidationException || (ValidationException = {}));
|
|
37
22
|
export var CancelStatementRequest;
|
|
38
23
|
(function (CancelStatementRequest) {
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
24
|
CancelStatementRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
43
25
|
})(CancelStatementRequest || (CancelStatementRequest = {}));
|
|
44
26
|
export var CancelStatementResponse;
|
|
45
27
|
(function (CancelStatementResponse) {
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
28
|
CancelStatementResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
50
29
|
})(CancelStatementResponse || (CancelStatementResponse = {}));
|
|
51
30
|
export var InternalServerException;
|
|
52
31
|
(function (InternalServerException) {
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
32
|
InternalServerException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
33
|
})(InternalServerException || (InternalServerException = {}));
|
|
58
34
|
export var ResourceNotFoundException;
|
|
59
35
|
(function (ResourceNotFoundException) {
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
36
|
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
37
|
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
65
38
|
export var ColumnMetadata;
|
|
66
39
|
(function (ColumnMetadata) {
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
40
|
ColumnMetadata.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
71
41
|
})(ColumnMetadata || (ColumnMetadata = {}));
|
|
72
42
|
export var DescribeStatementRequest;
|
|
73
43
|
(function (DescribeStatementRequest) {
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
77
44
|
DescribeStatementRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
78
45
|
})(DescribeStatementRequest || (DescribeStatementRequest = {}));
|
|
79
46
|
export var SqlParameter;
|
|
80
47
|
(function (SqlParameter) {
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
48
|
SqlParameter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
85
49
|
})(SqlParameter || (SqlParameter = {}));
|
|
86
50
|
export var StatusString;
|
|
@@ -104,51 +68,30 @@ export var StatementStatusString;
|
|
|
104
68
|
})(StatementStatusString || (StatementStatusString = {}));
|
|
105
69
|
export var SubStatementData;
|
|
106
70
|
(function (SubStatementData) {
|
|
107
|
-
/**
|
|
108
|
-
* @internal
|
|
109
|
-
*/
|
|
110
71
|
SubStatementData.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
111
72
|
})(SubStatementData || (SubStatementData = {}));
|
|
112
73
|
export var DescribeStatementResponse;
|
|
113
74
|
(function (DescribeStatementResponse) {
|
|
114
|
-
/**
|
|
115
|
-
* @internal
|
|
116
|
-
*/
|
|
117
75
|
DescribeStatementResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
118
76
|
})(DescribeStatementResponse || (DescribeStatementResponse = {}));
|
|
119
77
|
export var DescribeTableRequest;
|
|
120
78
|
(function (DescribeTableRequest) {
|
|
121
|
-
/**
|
|
122
|
-
* @internal
|
|
123
|
-
*/
|
|
124
79
|
DescribeTableRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
125
80
|
})(DescribeTableRequest || (DescribeTableRequest = {}));
|
|
126
81
|
export var DescribeTableResponse;
|
|
127
82
|
(function (DescribeTableResponse) {
|
|
128
|
-
/**
|
|
129
|
-
* @internal
|
|
130
|
-
*/
|
|
131
83
|
DescribeTableResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
132
84
|
})(DescribeTableResponse || (DescribeTableResponse = {}));
|
|
133
85
|
export var ExecuteStatementException;
|
|
134
86
|
(function (ExecuteStatementException) {
|
|
135
|
-
/**
|
|
136
|
-
* @internal
|
|
137
|
-
*/
|
|
138
87
|
ExecuteStatementException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
139
88
|
})(ExecuteStatementException || (ExecuteStatementException = {}));
|
|
140
89
|
export var ExecuteStatementInput;
|
|
141
90
|
(function (ExecuteStatementInput) {
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
*/
|
|
145
91
|
ExecuteStatementInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
146
92
|
})(ExecuteStatementInput || (ExecuteStatementInput = {}));
|
|
147
93
|
export var ExecuteStatementOutput;
|
|
148
94
|
(function (ExecuteStatementOutput) {
|
|
149
|
-
/**
|
|
150
|
-
* @internal
|
|
151
|
-
*/
|
|
152
95
|
ExecuteStatementOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
153
96
|
})(ExecuteStatementOutput || (ExecuteStatementOutput = {}));
|
|
154
97
|
export var Field;
|
|
@@ -168,9 +111,6 @@ export var Field;
|
|
|
168
111
|
return visitor.blobValue(value.blobValue);
|
|
169
112
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
170
113
|
};
|
|
171
|
-
/**
|
|
172
|
-
* @internal
|
|
173
|
-
*/
|
|
174
114
|
Field.filterSensitiveLog = function (obj) {
|
|
175
115
|
var _a;
|
|
176
116
|
if (obj.isNull !== undefined)
|
|
@@ -191,86 +131,49 @@ export var Field;
|
|
|
191
131
|
})(Field || (Field = {}));
|
|
192
132
|
export var GetStatementResultRequest;
|
|
193
133
|
(function (GetStatementResultRequest) {
|
|
194
|
-
/**
|
|
195
|
-
* @internal
|
|
196
|
-
*/
|
|
197
134
|
GetStatementResultRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
198
135
|
})(GetStatementResultRequest || (GetStatementResultRequest = {}));
|
|
199
136
|
export var GetStatementResultResponse;
|
|
200
137
|
(function (GetStatementResultResponse) {
|
|
201
|
-
/**
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
138
|
GetStatementResultResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Records && { Records: obj.Records.map(function (item) { return item.map(function (item) { return Field.filterSensitiveLog(item); }); }) }))); };
|
|
205
139
|
})(GetStatementResultResponse || (GetStatementResultResponse = {}));
|
|
206
140
|
export var ListDatabasesRequest;
|
|
207
141
|
(function (ListDatabasesRequest) {
|
|
208
|
-
/**
|
|
209
|
-
* @internal
|
|
210
|
-
*/
|
|
211
142
|
ListDatabasesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
212
143
|
})(ListDatabasesRequest || (ListDatabasesRequest = {}));
|
|
213
144
|
export var ListDatabasesResponse;
|
|
214
145
|
(function (ListDatabasesResponse) {
|
|
215
|
-
/**
|
|
216
|
-
* @internal
|
|
217
|
-
*/
|
|
218
146
|
ListDatabasesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
219
147
|
})(ListDatabasesResponse || (ListDatabasesResponse = {}));
|
|
220
148
|
export var ListSchemasRequest;
|
|
221
149
|
(function (ListSchemasRequest) {
|
|
222
|
-
/**
|
|
223
|
-
* @internal
|
|
224
|
-
*/
|
|
225
150
|
ListSchemasRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
226
151
|
})(ListSchemasRequest || (ListSchemasRequest = {}));
|
|
227
152
|
export var ListSchemasResponse;
|
|
228
153
|
(function (ListSchemasResponse) {
|
|
229
|
-
/**
|
|
230
|
-
* @internal
|
|
231
|
-
*/
|
|
232
154
|
ListSchemasResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
233
155
|
})(ListSchemasResponse || (ListSchemasResponse = {}));
|
|
234
156
|
export var ListStatementsRequest;
|
|
235
157
|
(function (ListStatementsRequest) {
|
|
236
|
-
/**
|
|
237
|
-
* @internal
|
|
238
|
-
*/
|
|
239
158
|
ListStatementsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
240
159
|
})(ListStatementsRequest || (ListStatementsRequest = {}));
|
|
241
160
|
export var StatementData;
|
|
242
161
|
(function (StatementData) {
|
|
243
|
-
/**
|
|
244
|
-
* @internal
|
|
245
|
-
*/
|
|
246
162
|
StatementData.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
247
163
|
})(StatementData || (StatementData = {}));
|
|
248
164
|
export var ListStatementsResponse;
|
|
249
165
|
(function (ListStatementsResponse) {
|
|
250
|
-
/**
|
|
251
|
-
* @internal
|
|
252
|
-
*/
|
|
253
166
|
ListStatementsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
254
167
|
})(ListStatementsResponse || (ListStatementsResponse = {}));
|
|
255
168
|
export var ListTablesRequest;
|
|
256
169
|
(function (ListTablesRequest) {
|
|
257
|
-
/**
|
|
258
|
-
* @internal
|
|
259
|
-
*/
|
|
260
170
|
ListTablesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
261
171
|
})(ListTablesRequest || (ListTablesRequest = {}));
|
|
262
172
|
export var TableMember;
|
|
263
173
|
(function (TableMember) {
|
|
264
|
-
/**
|
|
265
|
-
* @internal
|
|
266
|
-
*/
|
|
267
174
|
TableMember.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
268
175
|
})(TableMember || (TableMember = {}));
|
|
269
176
|
export var ListTablesResponse;
|
|
270
177
|
(function (ListTablesResponse) {
|
|
271
|
-
/**
|
|
272
|
-
* @internal
|
|
273
|
-
*/
|
|
274
178
|
ListTablesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
275
179
|
})(ListTablesResponse || (ListTablesResponse = {}));
|
|
276
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { DescribeTableCommand, } from "../commands/DescribeTableCommand";
|
|
2
3
|
import { RedshiftData } from "../RedshiftData";
|
|
3
4
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
4
|
-
import { DescribeTableCommand, } from "../commands/DescribeTableCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeTableCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.describeTable.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateDescribeTable(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof RedshiftData)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof RedshiftData)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof RedshiftDataClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof RedshiftDataClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.NextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=DescribeTablePaginator.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { GetStatementResultCommand, } from "../commands/GetStatementResultCommand";
|
|
2
3
|
import { RedshiftData } from "../RedshiftData";
|
|
3
4
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
4
|
-
import { GetStatementResultCommand, } from "../commands/GetStatementResultCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetStatementResultCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.getStatementResult.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,33 +44,30 @@ export function paginateGetStatementResult(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
|
-
if (!(config.client instanceof RedshiftData)) return [3
|
|
60
|
-
return [4
|
|
49
|
+
if (!(config.client instanceof RedshiftData)) return [3, 3];
|
|
50
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
61
51
|
case 2:
|
|
62
52
|
page = _a.sent();
|
|
63
|
-
return [3
|
|
53
|
+
return [3, 6];
|
|
64
54
|
case 3:
|
|
65
|
-
if (!(config.client instanceof RedshiftDataClient)) return [3
|
|
66
|
-
return [4
|
|
55
|
+
if (!(config.client instanceof RedshiftDataClient)) return [3, 5];
|
|
56
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
67
57
|
case 4:
|
|
68
58
|
page = _a.sent();
|
|
69
|
-
return [3
|
|
59
|
+
return [3, 6];
|
|
70
60
|
case 5: throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
71
|
-
case 6: return [4
|
|
72
|
-
case 7: return [4
|
|
61
|
+
case 6: return [4, __await(page)];
|
|
62
|
+
case 7: return [4, _a.sent()];
|
|
73
63
|
case 8:
|
|
74
64
|
_a.sent();
|
|
75
65
|
token = page.NextToken;
|
|
76
66
|
hasNext = !!token;
|
|
77
|
-
return [3
|
|
78
|
-
case 9: return [4
|
|
79
|
-
case 10:
|
|
80
|
-
// @ts-ignore
|
|
81
|
-
return [2 /*return*/, _a.sent()];
|
|
67
|
+
return [3, 1];
|
|
68
|
+
case 9: return [4, __await(undefined)];
|
|
69
|
+
case 10: return [2, _a.sent()];
|
|
82
70
|
}
|
|
83
71
|
});
|
|
84
72
|
});
|
|
85
73
|
}
|
|
86
|
-
//# sourceMappingURL=GetStatementResultPaginator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListDatabasesCommand, } from "../commands/ListDatabasesCommand";
|
|
2
3
|
import { RedshiftData } from "../RedshiftData";
|
|
3
4
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
4
|
-
import { ListDatabasesCommand, } from "../commands/ListDatabasesCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListDatabasesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.listDatabases.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateListDatabases(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof RedshiftData)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof RedshiftData)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof RedshiftDataClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof RedshiftDataClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.NextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=ListDatabasesPaginator.js.map
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListSchemasCommand } from "../commands/ListSchemasCommand";
|
|
2
3
|
import { RedshiftData } from "../RedshiftData";
|
|
3
4
|
import { RedshiftDataClient } from "../RedshiftDataClient";
|
|
4
|
-
import { ListSchemasCommand } from "../commands/ListSchemasCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListSchemasCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.listSchemas.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,34 +44,31 @@ export function paginateListSchemas(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof RedshiftData)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof RedshiftData)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof RedshiftDataClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof RedshiftDataClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected RedshiftData | RedshiftDataClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.NextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
86
74
|
}
|
|
87
|
-
//# sourceMappingURL=ListSchemasPaginator.js.map
|