@aws-sdk/client-redshift-data 3.31.0 → 3.35.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 +39 -0
- package/{dist/cjs → dist-cjs}/RedshiftData.js +1 -1
- package/dist-cjs/RedshiftData.js.map +1 -0
- package/{dist/cjs → dist-cjs}/RedshiftDataClient.js +14 -14
- package/dist-cjs/RedshiftDataClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/BatchExecuteStatementCommand.js +5 -5
- package/dist-cjs/commands/BatchExecuteStatementCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CancelStatementCommand.js +5 -5
- package/dist-cjs/commands/CancelStatementCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeStatementCommand.js +5 -5
- package/dist-cjs/commands/DescribeStatementCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeTableCommand.js +5 -5
- package/dist-cjs/commands/DescribeTableCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ExecuteStatementCommand.js +5 -5
- package/dist-cjs/commands/ExecuteStatementCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetStatementResultCommand.js +5 -5
- package/dist-cjs/commands/GetStatementResultCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListDatabasesCommand.js +5 -5
- package/dist-cjs/commands/ListDatabasesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListSchemasCommand.js +5 -5
- package/dist-cjs/commands/ListSchemasCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListStatementsCommand.js +5 -5
- package/dist-cjs/commands/ListStatementsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListTablesCommand.js +5 -5
- package/dist-cjs/commands/ListTablesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +24 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeTablePaginator.js +1 -1
- package/dist-cjs/pagination/DescribeTablePaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/GetStatementResultPaginator.js +1 -1
- package/dist-cjs/pagination/GetStatementResultPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListDatabasesPaginator.js +1 -1
- package/dist-cjs/pagination/ListDatabasesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListSchemasPaginator.js +1 -1
- package/dist-cjs/pagination/ListSchemasPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListStatementsPaginator.js +1 -1
- package/dist-cjs/pagination/ListStatementsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListTablesPaginator.js +1 -1
- package/dist-cjs/pagination/ListTablesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +97 -97
- package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/RedshiftData.js +2 -9
- package/dist-es/RedshiftData.js.map +1 -0
- package/{dist/es → dist-es}/RedshiftDataClient.js +2 -14
- package/dist-es/RedshiftDataClient.js.map +1 -0
- package/dist-es/commands/BatchExecuteStatementCommand.js +40 -0
- package/dist-es/commands/BatchExecuteStatementCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/CancelStatementCommand.js +4 -29
- package/dist-es/commands/CancelStatementCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeStatementCommand.js +4 -31
- package/dist-es/commands/DescribeStatementCommand.js.map +1 -0
- package/dist-es/commands/DescribeTableCommand.js +40 -0
- package/dist-es/commands/DescribeTableCommand.js.map +1 -0
- package/dist-es/commands/ExecuteStatementCommand.js +40 -0
- package/dist-es/commands/ExecuteStatementCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetStatementResultCommand.js +4 -30
- package/dist-es/commands/GetStatementResultCommand.js.map +1 -0
- package/dist-es/commands/ListDatabasesCommand.js +40 -0
- package/dist-es/commands/ListDatabasesCommand.js.map +1 -0
- package/dist-es/commands/ListSchemasCommand.js +40 -0
- package/dist-es/commands/ListSchemasCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListStatementsCommand.js +4 -30
- package/dist-es/commands/ListStatementsCommand.js.map +1 -0
- package/dist-es/commands/ListTablesCommand.js +40 -0
- package/dist-es/commands/ListTablesCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -96
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeTablePaginator.js +17 -29
- package/dist-es/pagination/DescribeTablePaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/GetStatementResultPaginator.js +17 -29
- package/dist-es/pagination/GetStatementResultPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListDatabasesPaginator.js +17 -29
- package/dist-es/pagination/ListDatabasesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListSchemasPaginator.js +17 -29
- package/dist-es/pagination/ListSchemasPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListStatementsPaginator.js +17 -29
- package/dist-es/pagination/ListStatementsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListTablesPaginator.js +17 -29
- package/dist-es/pagination/ListTablesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +178 -183
- package/dist-es/protocols/Aws_json1_1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- 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/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → 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 +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/RedshiftData.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/RedshiftDataClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/BatchExecuteStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CancelStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DescribeTableCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ExecuteStatementCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetStatementResultCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListDatabasesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListSchemasCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListStatementsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListTablesCommand.d.ts +3 -3
- 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 → dist-types}/ts3.4/models/models_0.d.ts +0 -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 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{RedshiftData.ts → src/RedshiftData.ts} +3 -2
- package/{RedshiftDataClient.ts → src/RedshiftDataClient.ts} +28 -27
- package/{commands → src/commands}/BatchExecuteStatementCommand.ts +8 -7
- package/{commands → src/commands}/CancelStatementCommand.ts +8 -7
- package/{commands → src/commands}/DescribeStatementCommand.ts +8 -7
- package/{commands → src/commands}/DescribeTableCommand.ts +8 -7
- package/{commands → src/commands}/ExecuteStatementCommand.ts +8 -7
- package/{commands → src/commands}/GetStatementResultCommand.ts +8 -7
- package/{commands → src/commands}/ListDatabasesCommand.ts +8 -7
- package/{commands → src/commands}/ListSchemasCommand.ts +8 -7
- package/{commands → src/commands}/ListStatementsCommand.ts +8 -7
- package/{commands → src/commands}/ListTablesCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/DescribeTablePaginator.ts +4 -3
- package/{pagination → src/pagination}/GetStatementResultPaginator.ts +4 -3
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListDatabasesPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListSchemasPaginator.ts +3 -2
- package/{pagination → src/pagination}/ListStatementsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListTablesPaginator.ts +3 -2
- package/{protocols → src/protocols}/Aws_json1_1.ts +31 -30
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- 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 +0 -24
- package/dist/cjs/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/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.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/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/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
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1BatchExecuteStatementCommand = function (input, c
|
|
|
9
9
|
"x-amz-target": "RedshiftData.BatchExecuteStatement",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1BatchExecuteStatementInput(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CancelStatementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CancelStatementCommand = function (input, context
|
|
|
20
20
|
"x-amz-target": "RedshiftData.CancelStatement",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CancelStatementRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1DescribeStatementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1DescribeStatementCommand = function (input, conte
|
|
|
31
31
|
"x-amz-target": "RedshiftData.DescribeStatement",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1DescribeStatementRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1DescribeTableCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1DescribeTableCommand = function (input, context)
|
|
|
42
42
|
"x-amz-target": "RedshiftData.DescribeTable",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1DescribeTableRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1ExecuteStatementCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1ExecuteStatementCommand = function (input, contex
|
|
|
53
53
|
"x-amz-target": "RedshiftData.ExecuteStatement",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1ExecuteStatementInput(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1GetStatementResultCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1GetStatementResultCommand = function (input, cont
|
|
|
64
64
|
"x-amz-target": "RedshiftData.GetStatementResult",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1GetStatementResultRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1ListDatabasesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1ListDatabasesCommand = function (input, context)
|
|
|
75
75
|
"x-amz-target": "RedshiftData.ListDatabases",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1ListDatabasesRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1ListSchemasCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1ListSchemasCommand = function (input, context) {
|
|
|
86
86
|
"x-amz-target": "RedshiftData.ListSchemas",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1ListSchemasRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1ListStatementsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1ListStatementsCommand = function (input, context)
|
|
|
97
97
|
"x-amz-target": "RedshiftData.ListStatements",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1ListStatementsRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1ListTablesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1ListTablesCommand = function (input, context) { r
|
|
|
108
108
|
"x-amz-target": "RedshiftData.ListTables",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1ListTablesRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var deserializeAws_json1_1BatchExecuteStatementCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -117,15 +117,15 @@ export var deserializeAws_json1_1BatchExecuteStatementCommand = function (output
|
|
|
117
117
|
switch (_a.label) {
|
|
118
118
|
case 0:
|
|
119
119
|
if (output.statusCode >= 300) {
|
|
120
|
-
return [2
|
|
120
|
+
return [2, deserializeAws_json1_1BatchExecuteStatementCommandError(output, context)];
|
|
121
121
|
}
|
|
122
|
-
return [4
|
|
122
|
+
return [4, parseBody(output.body, context)];
|
|
123
123
|
case 1:
|
|
124
124
|
data = _a.sent();
|
|
125
125
|
contents = {};
|
|
126
126
|
contents = deserializeAws_json1_1BatchExecuteStatementOutput(data, context);
|
|
127
127
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
128
|
-
return [2
|
|
128
|
+
return [2, Promise.resolve(response)];
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
}); };
|
|
@@ -137,39 +137,39 @@ var deserializeAws_json1_1BatchExecuteStatementCommandError = function (output,
|
|
|
137
137
|
case 0:
|
|
138
138
|
_a = [__assign({}, output)];
|
|
139
139
|
_f = {};
|
|
140
|
-
return [4
|
|
140
|
+
return [4, parseBody(output.body, context)];
|
|
141
141
|
case 1:
|
|
142
142
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
143
143
|
errorCode = "UnknownError";
|
|
144
144
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
145
145
|
_b = errorCode;
|
|
146
146
|
switch (_b) {
|
|
147
|
-
case "ActiveStatementsExceededException": return [3
|
|
148
|
-
case "com.amazonaws.redshiftdata#ActiveStatementsExceededException": return [3
|
|
149
|
-
case "BatchExecuteStatementException": return [3
|
|
150
|
-
case "com.amazonaws.redshiftdata#BatchExecuteStatementException": return [3
|
|
151
|
-
case "ValidationException": return [3
|
|
152
|
-
case "com.amazonaws.redshiftdata#ValidationException": return [3
|
|
147
|
+
case "ActiveStatementsExceededException": return [3, 2];
|
|
148
|
+
case "com.amazonaws.redshiftdata#ActiveStatementsExceededException": return [3, 2];
|
|
149
|
+
case "BatchExecuteStatementException": return [3, 4];
|
|
150
|
+
case "com.amazonaws.redshiftdata#BatchExecuteStatementException": return [3, 4];
|
|
151
|
+
case "ValidationException": return [3, 6];
|
|
152
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 6];
|
|
153
153
|
}
|
|
154
|
-
return [3
|
|
154
|
+
return [3, 8];
|
|
155
155
|
case 2:
|
|
156
156
|
_c = [{}];
|
|
157
|
-
return [4
|
|
157
|
+
return [4, deserializeAws_json1_1ActiveStatementsExceededExceptionResponse(parsedOutput, context)];
|
|
158
158
|
case 3:
|
|
159
159
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
160
|
-
return [3
|
|
160
|
+
return [3, 9];
|
|
161
161
|
case 4:
|
|
162
162
|
_d = [{}];
|
|
163
|
-
return [4
|
|
163
|
+
return [4, deserializeAws_json1_1BatchExecuteStatementExceptionResponse(parsedOutput, context)];
|
|
164
164
|
case 5:
|
|
165
165
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
166
|
-
return [3
|
|
166
|
+
return [3, 9];
|
|
167
167
|
case 6:
|
|
168
168
|
_e = [{}];
|
|
169
|
-
return [4
|
|
169
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
170
170
|
case 7:
|
|
171
171
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
172
|
-
return [3
|
|
172
|
+
return [3, 9];
|
|
173
173
|
case 8:
|
|
174
174
|
parsedBody = parsedOutput.body;
|
|
175
175
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -179,7 +179,7 @@ var deserializeAws_json1_1BatchExecuteStatementCommandError = function (output,
|
|
|
179
179
|
message = response.message || response.Message || errorCode;
|
|
180
180
|
response.message = message;
|
|
181
181
|
delete response.Message;
|
|
182
|
-
return [2
|
|
182
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
}); };
|
|
@@ -189,15 +189,15 @@ export var deserializeAws_json1_1CancelStatementCommand = function (output, cont
|
|
|
189
189
|
switch (_a.label) {
|
|
190
190
|
case 0:
|
|
191
191
|
if (output.statusCode >= 300) {
|
|
192
|
-
return [2
|
|
192
|
+
return [2, deserializeAws_json1_1CancelStatementCommandError(output, context)];
|
|
193
193
|
}
|
|
194
|
-
return [4
|
|
194
|
+
return [4, parseBody(output.body, context)];
|
|
195
195
|
case 1:
|
|
196
196
|
data = _a.sent();
|
|
197
197
|
contents = {};
|
|
198
198
|
contents = deserializeAws_json1_1CancelStatementResponse(data, context);
|
|
199
199
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
200
|
-
return [2
|
|
200
|
+
return [2, Promise.resolve(response)];
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
}); };
|
|
@@ -209,39 +209,39 @@ var deserializeAws_json1_1CancelStatementCommandError = function (output, contex
|
|
|
209
209
|
case 0:
|
|
210
210
|
_a = [__assign({}, output)];
|
|
211
211
|
_f = {};
|
|
212
|
-
return [4
|
|
212
|
+
return [4, parseBody(output.body, context)];
|
|
213
213
|
case 1:
|
|
214
214
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
215
215
|
errorCode = "UnknownError";
|
|
216
216
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
217
217
|
_b = errorCode;
|
|
218
218
|
switch (_b) {
|
|
219
|
-
case "InternalServerException": return [3
|
|
220
|
-
case "com.amazonaws.redshiftdata#InternalServerException": return [3
|
|
221
|
-
case "ResourceNotFoundException": return [3
|
|
222
|
-
case "com.amazonaws.redshiftdata#ResourceNotFoundException": return [3
|
|
223
|
-
case "ValidationException": return [3
|
|
224
|
-
case "com.amazonaws.redshiftdata#ValidationException": return [3
|
|
219
|
+
case "InternalServerException": return [3, 2];
|
|
220
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
|
|
221
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
222
|
+
case "com.amazonaws.redshiftdata#ResourceNotFoundException": return [3, 4];
|
|
223
|
+
case "ValidationException": return [3, 6];
|
|
224
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 6];
|
|
225
225
|
}
|
|
226
|
-
return [3
|
|
226
|
+
return [3, 8];
|
|
227
227
|
case 2:
|
|
228
228
|
_c = [{}];
|
|
229
|
-
return [4
|
|
229
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
230
230
|
case 3:
|
|
231
231
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
232
|
-
return [3
|
|
232
|
+
return [3, 9];
|
|
233
233
|
case 4:
|
|
234
234
|
_d = [{}];
|
|
235
|
-
return [4
|
|
235
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
236
236
|
case 5:
|
|
237
237
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
238
|
-
return [3
|
|
238
|
+
return [3, 9];
|
|
239
239
|
case 6:
|
|
240
240
|
_e = [{}];
|
|
241
|
-
return [4
|
|
241
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
242
242
|
case 7:
|
|
243
243
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
244
|
-
return [3
|
|
244
|
+
return [3, 9];
|
|
245
245
|
case 8:
|
|
246
246
|
parsedBody = parsedOutput.body;
|
|
247
247
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -251,7 +251,7 @@ var deserializeAws_json1_1CancelStatementCommandError = function (output, contex
|
|
|
251
251
|
message = response.message || response.Message || errorCode;
|
|
252
252
|
response.message = message;
|
|
253
253
|
delete response.Message;
|
|
254
|
-
return [2
|
|
254
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
255
255
|
}
|
|
256
256
|
});
|
|
257
257
|
}); };
|
|
@@ -261,15 +261,15 @@ export var deserializeAws_json1_1DescribeStatementCommand = function (output, co
|
|
|
261
261
|
switch (_a.label) {
|
|
262
262
|
case 0:
|
|
263
263
|
if (output.statusCode >= 300) {
|
|
264
|
-
return [2
|
|
264
|
+
return [2, deserializeAws_json1_1DescribeStatementCommandError(output, context)];
|
|
265
265
|
}
|
|
266
|
-
return [4
|
|
266
|
+
return [4, parseBody(output.body, context)];
|
|
267
267
|
case 1:
|
|
268
268
|
data = _a.sent();
|
|
269
269
|
contents = {};
|
|
270
270
|
contents = deserializeAws_json1_1DescribeStatementResponse(data, context);
|
|
271
271
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
272
|
-
return [2
|
|
272
|
+
return [2, Promise.resolve(response)];
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
}); };
|
|
@@ -281,39 +281,39 @@ var deserializeAws_json1_1DescribeStatementCommandError = function (output, cont
|
|
|
281
281
|
case 0:
|
|
282
282
|
_a = [__assign({}, output)];
|
|
283
283
|
_f = {};
|
|
284
|
-
return [4
|
|
284
|
+
return [4, parseBody(output.body, context)];
|
|
285
285
|
case 1:
|
|
286
286
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
287
287
|
errorCode = "UnknownError";
|
|
288
288
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
289
289
|
_b = errorCode;
|
|
290
290
|
switch (_b) {
|
|
291
|
-
case "InternalServerException": return [3
|
|
292
|
-
case "com.amazonaws.redshiftdata#InternalServerException": return [3
|
|
293
|
-
case "ResourceNotFoundException": return [3
|
|
294
|
-
case "com.amazonaws.redshiftdata#ResourceNotFoundException": return [3
|
|
295
|
-
case "ValidationException": return [3
|
|
296
|
-
case "com.amazonaws.redshiftdata#ValidationException": return [3
|
|
291
|
+
case "InternalServerException": return [3, 2];
|
|
292
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
|
|
293
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
294
|
+
case "com.amazonaws.redshiftdata#ResourceNotFoundException": return [3, 4];
|
|
295
|
+
case "ValidationException": return [3, 6];
|
|
296
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 6];
|
|
297
297
|
}
|
|
298
|
-
return [3
|
|
298
|
+
return [3, 8];
|
|
299
299
|
case 2:
|
|
300
300
|
_c = [{}];
|
|
301
|
-
return [4
|
|
301
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
302
302
|
case 3:
|
|
303
303
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
304
|
-
return [3
|
|
304
|
+
return [3, 9];
|
|
305
305
|
case 4:
|
|
306
306
|
_d = [{}];
|
|
307
|
-
return [4
|
|
307
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
308
308
|
case 5:
|
|
309
309
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
310
|
-
return [3
|
|
310
|
+
return [3, 9];
|
|
311
311
|
case 6:
|
|
312
312
|
_e = [{}];
|
|
313
|
-
return [4
|
|
313
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
314
314
|
case 7:
|
|
315
315
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
316
|
-
return [3
|
|
316
|
+
return [3, 9];
|
|
317
317
|
case 8:
|
|
318
318
|
parsedBody = parsedOutput.body;
|
|
319
319
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -323,7 +323,7 @@ var deserializeAws_json1_1DescribeStatementCommandError = function (output, cont
|
|
|
323
323
|
message = response.message || response.Message || errorCode;
|
|
324
324
|
response.message = message;
|
|
325
325
|
delete response.Message;
|
|
326
|
-
return [2
|
|
326
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
}); };
|
|
@@ -333,15 +333,15 @@ export var deserializeAws_json1_1DescribeTableCommand = function (output, contex
|
|
|
333
333
|
switch (_a.label) {
|
|
334
334
|
case 0:
|
|
335
335
|
if (output.statusCode >= 300) {
|
|
336
|
-
return [2
|
|
336
|
+
return [2, deserializeAws_json1_1DescribeTableCommandError(output, context)];
|
|
337
337
|
}
|
|
338
|
-
return [4
|
|
338
|
+
return [4, parseBody(output.body, context)];
|
|
339
339
|
case 1:
|
|
340
340
|
data = _a.sent();
|
|
341
341
|
contents = {};
|
|
342
342
|
contents = deserializeAws_json1_1DescribeTableResponse(data, context);
|
|
343
343
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
344
|
-
return [2
|
|
344
|
+
return [2, Promise.resolve(response)];
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
347
|
}); };
|
|
@@ -353,31 +353,31 @@ var deserializeAws_json1_1DescribeTableCommandError = function (output, context)
|
|
|
353
353
|
case 0:
|
|
354
354
|
_a = [__assign({}, output)];
|
|
355
355
|
_e = {};
|
|
356
|
-
return [4
|
|
356
|
+
return [4, parseBody(output.body, context)];
|
|
357
357
|
case 1:
|
|
358
358
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
359
359
|
errorCode = "UnknownError";
|
|
360
360
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
361
361
|
_b = errorCode;
|
|
362
362
|
switch (_b) {
|
|
363
|
-
case "InternalServerException": return [3
|
|
364
|
-
case "com.amazonaws.redshiftdata#InternalServerException": return [3
|
|
365
|
-
case "ValidationException": return [3
|
|
366
|
-
case "com.amazonaws.redshiftdata#ValidationException": return [3
|
|
363
|
+
case "InternalServerException": return [3, 2];
|
|
364
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
|
|
365
|
+
case "ValidationException": return [3, 4];
|
|
366
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 4];
|
|
367
367
|
}
|
|
368
|
-
return [3
|
|
368
|
+
return [3, 6];
|
|
369
369
|
case 2:
|
|
370
370
|
_c = [{}];
|
|
371
|
-
return [4
|
|
371
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
372
372
|
case 3:
|
|
373
373
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
374
|
-
return [3
|
|
374
|
+
return [3, 7];
|
|
375
375
|
case 4:
|
|
376
376
|
_d = [{}];
|
|
377
|
-
return [4
|
|
377
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
378
378
|
case 5:
|
|
379
379
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
380
|
-
return [3
|
|
380
|
+
return [3, 7];
|
|
381
381
|
case 6:
|
|
382
382
|
parsedBody = parsedOutput.body;
|
|
383
383
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -387,7 +387,7 @@ var deserializeAws_json1_1DescribeTableCommandError = function (output, context)
|
|
|
387
387
|
message = response.message || response.Message || errorCode;
|
|
388
388
|
response.message = message;
|
|
389
389
|
delete response.Message;
|
|
390
|
-
return [2
|
|
390
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
393
|
}); };
|
|
@@ -397,15 +397,15 @@ export var deserializeAws_json1_1ExecuteStatementCommand = function (output, con
|
|
|
397
397
|
switch (_a.label) {
|
|
398
398
|
case 0:
|
|
399
399
|
if (output.statusCode >= 300) {
|
|
400
|
-
return [2
|
|
400
|
+
return [2, deserializeAws_json1_1ExecuteStatementCommandError(output, context)];
|
|
401
401
|
}
|
|
402
|
-
return [4
|
|
402
|
+
return [4, parseBody(output.body, context)];
|
|
403
403
|
case 1:
|
|
404
404
|
data = _a.sent();
|
|
405
405
|
contents = {};
|
|
406
406
|
contents = deserializeAws_json1_1ExecuteStatementOutput(data, context);
|
|
407
407
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
408
|
-
return [2
|
|
408
|
+
return [2, Promise.resolve(response)];
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
}); };
|
|
@@ -417,39 +417,39 @@ var deserializeAws_json1_1ExecuteStatementCommandError = function (output, conte
|
|
|
417
417
|
case 0:
|
|
418
418
|
_a = [__assign({}, output)];
|
|
419
419
|
_f = {};
|
|
420
|
-
return [4
|
|
420
|
+
return [4, parseBody(output.body, context)];
|
|
421
421
|
case 1:
|
|
422
422
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
423
423
|
errorCode = "UnknownError";
|
|
424
424
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
425
425
|
_b = errorCode;
|
|
426
426
|
switch (_b) {
|
|
427
|
-
case "ActiveStatementsExceededException": return [3
|
|
428
|
-
case "com.amazonaws.redshiftdata#ActiveStatementsExceededException": return [3
|
|
429
|
-
case "ExecuteStatementException": return [3
|
|
430
|
-
case "com.amazonaws.redshiftdata#ExecuteStatementException": return [3
|
|
431
|
-
case "ValidationException": return [3
|
|
432
|
-
case "com.amazonaws.redshiftdata#ValidationException": return [3
|
|
427
|
+
case "ActiveStatementsExceededException": return [3, 2];
|
|
428
|
+
case "com.amazonaws.redshiftdata#ActiveStatementsExceededException": return [3, 2];
|
|
429
|
+
case "ExecuteStatementException": return [3, 4];
|
|
430
|
+
case "com.amazonaws.redshiftdata#ExecuteStatementException": return [3, 4];
|
|
431
|
+
case "ValidationException": return [3, 6];
|
|
432
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 6];
|
|
433
433
|
}
|
|
434
|
-
return [3
|
|
434
|
+
return [3, 8];
|
|
435
435
|
case 2:
|
|
436
436
|
_c = [{}];
|
|
437
|
-
return [4
|
|
437
|
+
return [4, deserializeAws_json1_1ActiveStatementsExceededExceptionResponse(parsedOutput, context)];
|
|
438
438
|
case 3:
|
|
439
439
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
440
|
-
return [3
|
|
440
|
+
return [3, 9];
|
|
441
441
|
case 4:
|
|
442
442
|
_d = [{}];
|
|
443
|
-
return [4
|
|
443
|
+
return [4, deserializeAws_json1_1ExecuteStatementExceptionResponse(parsedOutput, context)];
|
|
444
444
|
case 5:
|
|
445
445
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
446
|
-
return [3
|
|
446
|
+
return [3, 9];
|
|
447
447
|
case 6:
|
|
448
448
|
_e = [{}];
|
|
449
|
-
return [4
|
|
449
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
450
450
|
case 7:
|
|
451
451
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
452
|
-
return [3
|
|
452
|
+
return [3, 9];
|
|
453
453
|
case 8:
|
|
454
454
|
parsedBody = parsedOutput.body;
|
|
455
455
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -459,7 +459,7 @@ var deserializeAws_json1_1ExecuteStatementCommandError = function (output, conte
|
|
|
459
459
|
message = response.message || response.Message || errorCode;
|
|
460
460
|
response.message = message;
|
|
461
461
|
delete response.Message;
|
|
462
|
-
return [2
|
|
462
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
463
463
|
}
|
|
464
464
|
});
|
|
465
465
|
}); };
|
|
@@ -469,15 +469,15 @@ export var deserializeAws_json1_1GetStatementResultCommand = function (output, c
|
|
|
469
469
|
switch (_a.label) {
|
|
470
470
|
case 0:
|
|
471
471
|
if (output.statusCode >= 300) {
|
|
472
|
-
return [2
|
|
472
|
+
return [2, deserializeAws_json1_1GetStatementResultCommandError(output, context)];
|
|
473
473
|
}
|
|
474
|
-
return [4
|
|
474
|
+
return [4, parseBody(output.body, context)];
|
|
475
475
|
case 1:
|
|
476
476
|
data = _a.sent();
|
|
477
477
|
contents = {};
|
|
478
478
|
contents = deserializeAws_json1_1GetStatementResultResponse(data, context);
|
|
479
479
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
480
|
-
return [2
|
|
480
|
+
return [2, Promise.resolve(response)];
|
|
481
481
|
}
|
|
482
482
|
});
|
|
483
483
|
}); };
|
|
@@ -489,39 +489,39 @@ var deserializeAws_json1_1GetStatementResultCommandError = function (output, con
|
|
|
489
489
|
case 0:
|
|
490
490
|
_a = [__assign({}, output)];
|
|
491
491
|
_f = {};
|
|
492
|
-
return [4
|
|
492
|
+
return [4, parseBody(output.body, context)];
|
|
493
493
|
case 1:
|
|
494
494
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
495
495
|
errorCode = "UnknownError";
|
|
496
496
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
497
497
|
_b = errorCode;
|
|
498
498
|
switch (_b) {
|
|
499
|
-
case "InternalServerException": return [3
|
|
500
|
-
case "com.amazonaws.redshiftdata#InternalServerException": return [3
|
|
501
|
-
case "ResourceNotFoundException": return [3
|
|
502
|
-
case "com.amazonaws.redshiftdata#ResourceNotFoundException": return [3
|
|
503
|
-
case "ValidationException": return [3
|
|
504
|
-
case "com.amazonaws.redshiftdata#ValidationException": return [3
|
|
499
|
+
case "InternalServerException": return [3, 2];
|
|
500
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
|
|
501
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
502
|
+
case "com.amazonaws.redshiftdata#ResourceNotFoundException": return [3, 4];
|
|
503
|
+
case "ValidationException": return [3, 6];
|
|
504
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 6];
|
|
505
505
|
}
|
|
506
|
-
return [3
|
|
506
|
+
return [3, 8];
|
|
507
507
|
case 2:
|
|
508
508
|
_c = [{}];
|
|
509
|
-
return [4
|
|
509
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
510
510
|
case 3:
|
|
511
511
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
512
|
-
return [3
|
|
512
|
+
return [3, 9];
|
|
513
513
|
case 4:
|
|
514
514
|
_d = [{}];
|
|
515
|
-
return [4
|
|
515
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
516
516
|
case 5:
|
|
517
517
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
518
|
-
return [3
|
|
518
|
+
return [3, 9];
|
|
519
519
|
case 6:
|
|
520
520
|
_e = [{}];
|
|
521
|
-
return [4
|
|
521
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
522
522
|
case 7:
|
|
523
523
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
524
|
-
return [3
|
|
524
|
+
return [3, 9];
|
|
525
525
|
case 8:
|
|
526
526
|
parsedBody = parsedOutput.body;
|
|
527
527
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -531,7 +531,7 @@ var deserializeAws_json1_1GetStatementResultCommandError = function (output, con
|
|
|
531
531
|
message = response.message || response.Message || errorCode;
|
|
532
532
|
response.message = message;
|
|
533
533
|
delete response.Message;
|
|
534
|
-
return [2
|
|
534
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
535
535
|
}
|
|
536
536
|
});
|
|
537
537
|
}); };
|
|
@@ -541,15 +541,15 @@ export var deserializeAws_json1_1ListDatabasesCommand = function (output, contex
|
|
|
541
541
|
switch (_a.label) {
|
|
542
542
|
case 0:
|
|
543
543
|
if (output.statusCode >= 300) {
|
|
544
|
-
return [2
|
|
544
|
+
return [2, deserializeAws_json1_1ListDatabasesCommandError(output, context)];
|
|
545
545
|
}
|
|
546
|
-
return [4
|
|
546
|
+
return [4, parseBody(output.body, context)];
|
|
547
547
|
case 1:
|
|
548
548
|
data = _a.sent();
|
|
549
549
|
contents = {};
|
|
550
550
|
contents = deserializeAws_json1_1ListDatabasesResponse(data, context);
|
|
551
551
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
552
|
-
return [2
|
|
552
|
+
return [2, Promise.resolve(response)];
|
|
553
553
|
}
|
|
554
554
|
});
|
|
555
555
|
}); };
|
|
@@ -561,31 +561,31 @@ var deserializeAws_json1_1ListDatabasesCommandError = function (output, context)
|
|
|
561
561
|
case 0:
|
|
562
562
|
_a = [__assign({}, output)];
|
|
563
563
|
_e = {};
|
|
564
|
-
return [4
|
|
564
|
+
return [4, parseBody(output.body, context)];
|
|
565
565
|
case 1:
|
|
566
566
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
567
567
|
errorCode = "UnknownError";
|
|
568
568
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
569
569
|
_b = errorCode;
|
|
570
570
|
switch (_b) {
|
|
571
|
-
case "InternalServerException": return [3
|
|
572
|
-
case "com.amazonaws.redshiftdata#InternalServerException": return [3
|
|
573
|
-
case "ValidationException": return [3
|
|
574
|
-
case "com.amazonaws.redshiftdata#ValidationException": return [3
|
|
571
|
+
case "InternalServerException": return [3, 2];
|
|
572
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
|
|
573
|
+
case "ValidationException": return [3, 4];
|
|
574
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 4];
|
|
575
575
|
}
|
|
576
|
-
return [3
|
|
576
|
+
return [3, 6];
|
|
577
577
|
case 2:
|
|
578
578
|
_c = [{}];
|
|
579
|
-
return [4
|
|
579
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
580
580
|
case 3:
|
|
581
581
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
582
|
-
return [3
|
|
582
|
+
return [3, 7];
|
|
583
583
|
case 4:
|
|
584
584
|
_d = [{}];
|
|
585
|
-
return [4
|
|
585
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
586
586
|
case 5:
|
|
587
587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
588
|
-
return [3
|
|
588
|
+
return [3, 7];
|
|
589
589
|
case 6:
|
|
590
590
|
parsedBody = parsedOutput.body;
|
|
591
591
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -595,7 +595,7 @@ var deserializeAws_json1_1ListDatabasesCommandError = function (output, context)
|
|
|
595
595
|
message = response.message || response.Message || errorCode;
|
|
596
596
|
response.message = message;
|
|
597
597
|
delete response.Message;
|
|
598
|
-
return [2
|
|
598
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
601
|
}); };
|
|
@@ -605,15 +605,15 @@ export var deserializeAws_json1_1ListSchemasCommand = function (output, context)
|
|
|
605
605
|
switch (_a.label) {
|
|
606
606
|
case 0:
|
|
607
607
|
if (output.statusCode >= 300) {
|
|
608
|
-
return [2
|
|
608
|
+
return [2, deserializeAws_json1_1ListSchemasCommandError(output, context)];
|
|
609
609
|
}
|
|
610
|
-
return [4
|
|
610
|
+
return [4, parseBody(output.body, context)];
|
|
611
611
|
case 1:
|
|
612
612
|
data = _a.sent();
|
|
613
613
|
contents = {};
|
|
614
614
|
contents = deserializeAws_json1_1ListSchemasResponse(data, context);
|
|
615
615
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
616
|
-
return [2
|
|
616
|
+
return [2, Promise.resolve(response)];
|
|
617
617
|
}
|
|
618
618
|
});
|
|
619
619
|
}); };
|
|
@@ -625,31 +625,31 @@ var deserializeAws_json1_1ListSchemasCommandError = function (output, context) {
|
|
|
625
625
|
case 0:
|
|
626
626
|
_a = [__assign({}, output)];
|
|
627
627
|
_e = {};
|
|
628
|
-
return [4
|
|
628
|
+
return [4, parseBody(output.body, context)];
|
|
629
629
|
case 1:
|
|
630
630
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
631
631
|
errorCode = "UnknownError";
|
|
632
632
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
633
633
|
_b = errorCode;
|
|
634
634
|
switch (_b) {
|
|
635
|
-
case "InternalServerException": return [3
|
|
636
|
-
case "com.amazonaws.redshiftdata#InternalServerException": return [3
|
|
637
|
-
case "ValidationException": return [3
|
|
638
|
-
case "com.amazonaws.redshiftdata#ValidationException": return [3
|
|
635
|
+
case "InternalServerException": return [3, 2];
|
|
636
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
|
|
637
|
+
case "ValidationException": return [3, 4];
|
|
638
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 4];
|
|
639
639
|
}
|
|
640
|
-
return [3
|
|
640
|
+
return [3, 6];
|
|
641
641
|
case 2:
|
|
642
642
|
_c = [{}];
|
|
643
|
-
return [4
|
|
643
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
644
644
|
case 3:
|
|
645
645
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
646
|
-
return [3
|
|
646
|
+
return [3, 7];
|
|
647
647
|
case 4:
|
|
648
648
|
_d = [{}];
|
|
649
|
-
return [4
|
|
649
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
650
650
|
case 5:
|
|
651
651
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
652
|
-
return [3
|
|
652
|
+
return [3, 7];
|
|
653
653
|
case 6:
|
|
654
654
|
parsedBody = parsedOutput.body;
|
|
655
655
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -659,7 +659,7 @@ var deserializeAws_json1_1ListSchemasCommandError = function (output, context) {
|
|
|
659
659
|
message = response.message || response.Message || errorCode;
|
|
660
660
|
response.message = message;
|
|
661
661
|
delete response.Message;
|
|
662
|
-
return [2
|
|
662
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
663
663
|
}
|
|
664
664
|
});
|
|
665
665
|
}); };
|
|
@@ -669,15 +669,15 @@ export var deserializeAws_json1_1ListStatementsCommand = function (output, conte
|
|
|
669
669
|
switch (_a.label) {
|
|
670
670
|
case 0:
|
|
671
671
|
if (output.statusCode >= 300) {
|
|
672
|
-
return [2
|
|
672
|
+
return [2, deserializeAws_json1_1ListStatementsCommandError(output, context)];
|
|
673
673
|
}
|
|
674
|
-
return [4
|
|
674
|
+
return [4, parseBody(output.body, context)];
|
|
675
675
|
case 1:
|
|
676
676
|
data = _a.sent();
|
|
677
677
|
contents = {};
|
|
678
678
|
contents = deserializeAws_json1_1ListStatementsResponse(data, context);
|
|
679
679
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
680
|
-
return [2
|
|
680
|
+
return [2, Promise.resolve(response)];
|
|
681
681
|
}
|
|
682
682
|
});
|
|
683
683
|
}); };
|
|
@@ -689,31 +689,31 @@ var deserializeAws_json1_1ListStatementsCommandError = function (output, context
|
|
|
689
689
|
case 0:
|
|
690
690
|
_a = [__assign({}, output)];
|
|
691
691
|
_e = {};
|
|
692
|
-
return [4
|
|
692
|
+
return [4, parseBody(output.body, context)];
|
|
693
693
|
case 1:
|
|
694
694
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
695
695
|
errorCode = "UnknownError";
|
|
696
696
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
697
|
_b = errorCode;
|
|
698
698
|
switch (_b) {
|
|
699
|
-
case "InternalServerException": return [3
|
|
700
|
-
case "com.amazonaws.redshiftdata#InternalServerException": return [3
|
|
701
|
-
case "ValidationException": return [3
|
|
702
|
-
case "com.amazonaws.redshiftdata#ValidationException": return [3
|
|
699
|
+
case "InternalServerException": return [3, 2];
|
|
700
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
|
|
701
|
+
case "ValidationException": return [3, 4];
|
|
702
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 4];
|
|
703
703
|
}
|
|
704
|
-
return [3
|
|
704
|
+
return [3, 6];
|
|
705
705
|
case 2:
|
|
706
706
|
_c = [{}];
|
|
707
|
-
return [4
|
|
707
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
708
708
|
case 3:
|
|
709
709
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
710
|
-
return [3
|
|
710
|
+
return [3, 7];
|
|
711
711
|
case 4:
|
|
712
712
|
_d = [{}];
|
|
713
|
-
return [4
|
|
713
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
714
714
|
case 5:
|
|
715
715
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
716
|
-
return [3
|
|
716
|
+
return [3, 7];
|
|
717
717
|
case 6:
|
|
718
718
|
parsedBody = parsedOutput.body;
|
|
719
719
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -723,7 +723,7 @@ var deserializeAws_json1_1ListStatementsCommandError = function (output, context
|
|
|
723
723
|
message = response.message || response.Message || errorCode;
|
|
724
724
|
response.message = message;
|
|
725
725
|
delete response.Message;
|
|
726
|
-
return [2
|
|
726
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
727
727
|
}
|
|
728
728
|
});
|
|
729
729
|
}); };
|
|
@@ -733,15 +733,15 @@ export var deserializeAws_json1_1ListTablesCommand = function (output, context)
|
|
|
733
733
|
switch (_a.label) {
|
|
734
734
|
case 0:
|
|
735
735
|
if (output.statusCode >= 300) {
|
|
736
|
-
return [2
|
|
736
|
+
return [2, deserializeAws_json1_1ListTablesCommandError(output, context)];
|
|
737
737
|
}
|
|
738
|
-
return [4
|
|
738
|
+
return [4, parseBody(output.body, context)];
|
|
739
739
|
case 1:
|
|
740
740
|
data = _a.sent();
|
|
741
741
|
contents = {};
|
|
742
742
|
contents = deserializeAws_json1_1ListTablesResponse(data, context);
|
|
743
743
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
744
|
-
return [2
|
|
744
|
+
return [2, Promise.resolve(response)];
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
747
|
}); };
|
|
@@ -753,31 +753,31 @@ var deserializeAws_json1_1ListTablesCommandError = function (output, context) {
|
|
|
753
753
|
case 0:
|
|
754
754
|
_a = [__assign({}, output)];
|
|
755
755
|
_e = {};
|
|
756
|
-
return [4
|
|
756
|
+
return [4, parseBody(output.body, context)];
|
|
757
757
|
case 1:
|
|
758
758
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
759
759
|
errorCode = "UnknownError";
|
|
760
760
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
761
|
_b = errorCode;
|
|
762
762
|
switch (_b) {
|
|
763
|
-
case "InternalServerException": return [3
|
|
764
|
-
case "com.amazonaws.redshiftdata#InternalServerException": return [3
|
|
765
|
-
case "ValidationException": return [3
|
|
766
|
-
case "com.amazonaws.redshiftdata#ValidationException": return [3
|
|
763
|
+
case "InternalServerException": return [3, 2];
|
|
764
|
+
case "com.amazonaws.redshiftdata#InternalServerException": return [3, 2];
|
|
765
|
+
case "ValidationException": return [3, 4];
|
|
766
|
+
case "com.amazonaws.redshiftdata#ValidationException": return [3, 4];
|
|
767
767
|
}
|
|
768
|
-
return [3
|
|
768
|
+
return [3, 6];
|
|
769
769
|
case 2:
|
|
770
770
|
_c = [{}];
|
|
771
|
-
return [4
|
|
771
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
772
772
|
case 3:
|
|
773
773
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
774
|
-
return [3
|
|
774
|
+
return [3, 7];
|
|
775
775
|
case 4:
|
|
776
776
|
_d = [{}];
|
|
777
|
-
return [4
|
|
777
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
778
778
|
case 5:
|
|
779
779
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
780
|
-
return [3
|
|
780
|
+
return [3, 7];
|
|
781
781
|
case 6:
|
|
782
782
|
parsedBody = parsedOutput.body;
|
|
783
783
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -787,7 +787,7 @@ var deserializeAws_json1_1ListTablesCommandError = function (output, context) {
|
|
|
787
787
|
message = response.message || response.Message || errorCode;
|
|
788
788
|
response.message = message;
|
|
789
789
|
delete response.Message;
|
|
790
|
-
return [2
|
|
790
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
791
791
|
}
|
|
792
792
|
});
|
|
793
793
|
}); };
|
|
@@ -797,7 +797,7 @@ var deserializeAws_json1_1ActiveStatementsExceededExceptionResponse = function (
|
|
|
797
797
|
body = parsedOutput.body;
|
|
798
798
|
deserialized = deserializeAws_json1_1ActiveStatementsExceededException(body, context);
|
|
799
799
|
contents = __assign({ name: "ActiveStatementsExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
800
|
-
return [2
|
|
800
|
+
return [2, contents];
|
|
801
801
|
});
|
|
802
802
|
}); };
|
|
803
803
|
var deserializeAws_json1_1BatchExecuteStatementExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -806,7 +806,7 @@ var deserializeAws_json1_1BatchExecuteStatementExceptionResponse = function (par
|
|
|
806
806
|
body = parsedOutput.body;
|
|
807
807
|
deserialized = deserializeAws_json1_1BatchExecuteStatementException(body, context);
|
|
808
808
|
contents = __assign({ name: "BatchExecuteStatementException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
809
|
-
return [2
|
|
809
|
+
return [2, contents];
|
|
810
810
|
});
|
|
811
811
|
}); };
|
|
812
812
|
var deserializeAws_json1_1ExecuteStatementExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -815,7 +815,7 @@ var deserializeAws_json1_1ExecuteStatementExceptionResponse = function (parsedOu
|
|
|
815
815
|
body = parsedOutput.body;
|
|
816
816
|
deserialized = deserializeAws_json1_1ExecuteStatementException(body, context);
|
|
817
817
|
contents = __assign({ name: "ExecuteStatementException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
818
|
-
return [2
|
|
818
|
+
return [2, contents];
|
|
819
819
|
});
|
|
820
820
|
}); };
|
|
821
821
|
var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -824,7 +824,7 @@ var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutp
|
|
|
824
824
|
body = parsedOutput.body;
|
|
825
825
|
deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
826
826
|
contents = __assign({ name: "InternalServerException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
827
|
-
return [2
|
|
827
|
+
return [2, contents];
|
|
828
828
|
});
|
|
829
829
|
}); };
|
|
830
830
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -833,7 +833,7 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
833
833
|
body = parsedOutput.body;
|
|
834
834
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
835
835
|
contents = __assign({ name: "ResourceNotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
836
|
-
return [2
|
|
836
|
+
return [2, contents];
|
|
837
837
|
});
|
|
838
838
|
}); };
|
|
839
839
|
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -842,7 +842,7 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
|
|
|
842
842
|
body = parsedOutput.body;
|
|
843
843
|
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
844
844
|
contents = __assign({ name: "ValidationException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
845
|
-
return [2
|
|
845
|
+
return [2, contents];
|
|
846
846
|
});
|
|
847
847
|
}); };
|
|
848
848
|
var serializeAws_json1_1BatchExecuteStatementInput = function (input, context) {
|
|
@@ -1266,7 +1266,6 @@ var deserializeMetadata = function (output) {
|
|
|
1266
1266
|
cfId: output.headers["x-amz-cf-id"],
|
|
1267
1267
|
});
|
|
1268
1268
|
};
|
|
1269
|
-
// Collect low-level response body stream to Uint8Array.
|
|
1270
1269
|
var collectBody = function (streamBody, context) {
|
|
1271
1270
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1272
1271
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -1274,7 +1273,6 @@ var collectBody = function (streamBody, context) {
|
|
|
1274
1273
|
}
|
|
1275
1274
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1276
1275
|
};
|
|
1277
|
-
// Encode Uint8Array data into string with utf-8.
|
|
1278
1276
|
var collectBodyString = function (streamBody, context) {
|
|
1279
1277
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1280
1278
|
};
|
|
@@ -1282,7 +1280,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
1282
1280
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
1283
1281
|
return __generator(this, function (_c) {
|
|
1284
1282
|
switch (_c.label) {
|
|
1285
|
-
case 0: return [4
|
|
1283
|
+
case 0: return [4, context.endpoint()];
|
|
1286
1284
|
case 1:
|
|
1287
1285
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1288
1286
|
contents = {
|
|
@@ -1299,7 +1297,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
1299
1297
|
if (body !== undefined) {
|
|
1300
1298
|
contents.body = body;
|
|
1301
1299
|
}
|
|
1302
|
-
return [2
|
|
1300
|
+
return [2, new __HttpRequest(contents)];
|
|
1303
1301
|
}
|
|
1304
1302
|
});
|
|
1305
1303
|
}); };
|
|
@@ -1311,9 +1309,6 @@ var parseBody = function (streamBody, context) {
|
|
|
1311
1309
|
return {};
|
|
1312
1310
|
});
|
|
1313
1311
|
};
|
|
1314
|
-
/**
|
|
1315
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
1316
|
-
*/
|
|
1317
1312
|
var loadRestJsonErrorCode = function (output, data) {
|
|
1318
1313
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1319
1314
|
var sanitizeErrorCode = function (rawValue) {
|