@aws-sdk/client-transcribe 3.30.0 → 3.34.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 +41 -0
- package/dist/cjs/TranscribeClient.js +13 -13
- package/dist/cjs/TranscribeClient.js.map +1 -1
- package/dist/cjs/commands/CreateCallAnalyticsCategoryCommand.js +3 -3
- package/dist/cjs/commands/CreateCallAnalyticsCategoryCommand.js.map +1 -1
- package/dist/cjs/commands/CreateLanguageModelCommand.js +3 -3
- package/dist/cjs/commands/CreateLanguageModelCommand.js.map +1 -1
- package/dist/cjs/commands/CreateMedicalVocabularyCommand.js +3 -3
- package/dist/cjs/commands/CreateMedicalVocabularyCommand.js.map +1 -1
- package/dist/cjs/commands/CreateVocabularyCommand.js +3 -3
- package/dist/cjs/commands/CreateVocabularyCommand.js.map +1 -1
- package/dist/cjs/commands/CreateVocabularyFilterCommand.js +3 -3
- package/dist/cjs/commands/CreateVocabularyFilterCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteCallAnalyticsCategoryCommand.js +3 -3
- package/dist/cjs/commands/DeleteCallAnalyticsCategoryCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteCallAnalyticsJobCommand.js +3 -3
- package/dist/cjs/commands/DeleteCallAnalyticsJobCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteLanguageModelCommand.js +3 -3
- package/dist/cjs/commands/DeleteLanguageModelCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteMedicalTranscriptionJobCommand.js +3 -3
- package/dist/cjs/commands/DeleteMedicalTranscriptionJobCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteMedicalVocabularyCommand.js +3 -3
- package/dist/cjs/commands/DeleteMedicalVocabularyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteTranscriptionJobCommand.js +3 -3
- package/dist/cjs/commands/DeleteTranscriptionJobCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteVocabularyCommand.js +3 -3
- package/dist/cjs/commands/DeleteVocabularyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteVocabularyFilterCommand.js +3 -3
- package/dist/cjs/commands/DeleteVocabularyFilterCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeLanguageModelCommand.js +3 -3
- package/dist/cjs/commands/DescribeLanguageModelCommand.js.map +1 -1
- package/dist/cjs/commands/GetCallAnalyticsCategoryCommand.js +3 -3
- package/dist/cjs/commands/GetCallAnalyticsCategoryCommand.js.map +1 -1
- package/dist/cjs/commands/GetCallAnalyticsJobCommand.js +3 -3
- package/dist/cjs/commands/GetCallAnalyticsJobCommand.js.map +1 -1
- package/dist/cjs/commands/GetMedicalTranscriptionJobCommand.js +3 -3
- package/dist/cjs/commands/GetMedicalTranscriptionJobCommand.js.map +1 -1
- package/dist/cjs/commands/GetMedicalVocabularyCommand.js +3 -3
- package/dist/cjs/commands/GetMedicalVocabularyCommand.js.map +1 -1
- package/dist/cjs/commands/GetTranscriptionJobCommand.js +3 -3
- package/dist/cjs/commands/GetTranscriptionJobCommand.js.map +1 -1
- package/dist/cjs/commands/GetVocabularyCommand.js +3 -3
- package/dist/cjs/commands/GetVocabularyCommand.js.map +1 -1
- package/dist/cjs/commands/GetVocabularyFilterCommand.js +3 -3
- package/dist/cjs/commands/GetVocabularyFilterCommand.js.map +1 -1
- package/dist/cjs/commands/ListCallAnalyticsCategoriesCommand.js +3 -3
- package/dist/cjs/commands/ListCallAnalyticsCategoriesCommand.js.map +1 -1
- package/dist/cjs/commands/ListCallAnalyticsJobsCommand.js +3 -3
- package/dist/cjs/commands/ListCallAnalyticsJobsCommand.js.map +1 -1
- package/dist/cjs/commands/ListLanguageModelsCommand.js +3 -3
- package/dist/cjs/commands/ListLanguageModelsCommand.js.map +1 -1
- package/dist/cjs/commands/ListMedicalTranscriptionJobsCommand.js +3 -3
- package/dist/cjs/commands/ListMedicalTranscriptionJobsCommand.js.map +1 -1
- package/dist/cjs/commands/ListMedicalVocabulariesCommand.js +3 -3
- package/dist/cjs/commands/ListMedicalVocabulariesCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/ListTranscriptionJobsCommand.js +3 -3
- package/dist/cjs/commands/ListTranscriptionJobsCommand.js.map +1 -1
- package/dist/cjs/commands/ListVocabulariesCommand.js +3 -3
- package/dist/cjs/commands/ListVocabulariesCommand.js.map +1 -1
- package/dist/cjs/commands/ListVocabularyFiltersCommand.js +3 -3
- package/dist/cjs/commands/ListVocabularyFiltersCommand.js.map +1 -1
- package/dist/cjs/commands/StartCallAnalyticsJobCommand.js +3 -3
- package/dist/cjs/commands/StartCallAnalyticsJobCommand.js.map +1 -1
- package/dist/cjs/commands/StartMedicalTranscriptionJobCommand.js +3 -3
- package/dist/cjs/commands/StartMedicalTranscriptionJobCommand.js.map +1 -1
- package/dist/cjs/commands/StartTranscriptionJobCommand.js +3 -3
- package/dist/cjs/commands/StartTranscriptionJobCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateCallAnalyticsCategoryCommand.js +3 -3
- package/dist/cjs/commands/UpdateCallAnalyticsCategoryCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateMedicalVocabularyCommand.js +3 -3
- package/dist/cjs/commands/UpdateMedicalVocabularyCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateVocabularyCommand.js +3 -3
- package/dist/cjs/commands/UpdateVocabularyCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateVocabularyFilterCommand.js +3 -3
- package/dist/cjs/commands/UpdateVocabularyFilterCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +51 -51
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/models/models_0.js +25 -2
- package/dist/cjs/models/models_0.js.map +1 -1
- package/dist/cjs/package.json +39 -39
- package/dist/cjs/protocols/Aws_json1_1.js +270 -200
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/es/Transcribe.js +1 -4
- package/dist/es/Transcribe.js.map +1 -1
- package/dist/es/TranscribeClient.js +1 -9
- package/dist/es/TranscribeClient.js.map +1 -1
- package/dist/es/commands/CreateCallAnalyticsCategoryCommand.js +2 -31
- package/dist/es/commands/CreateCallAnalyticsCategoryCommand.js.map +1 -1
- package/dist/es/commands/CreateLanguageModelCommand.js +2 -28
- package/dist/es/commands/CreateLanguageModelCommand.js.map +1 -1
- package/dist/es/commands/CreateMedicalVocabularyCommand.js +2 -27
- package/dist/es/commands/CreateMedicalVocabularyCommand.js.map +1 -1
- package/dist/es/commands/CreateVocabularyCommand.js +2 -28
- package/dist/es/commands/CreateVocabularyCommand.js.map +1 -1
- package/dist/es/commands/CreateVocabularyFilterCommand.js +2 -28
- package/dist/es/commands/CreateVocabularyFilterCommand.js.map +1 -1
- package/dist/es/commands/DeleteCallAnalyticsCategoryCommand.js +2 -27
- package/dist/es/commands/DeleteCallAnalyticsCategoryCommand.js.map +1 -1
- package/dist/es/commands/DeleteCallAnalyticsJobCommand.js +2 -27
- package/dist/es/commands/DeleteCallAnalyticsJobCommand.js.map +1 -1
- package/dist/es/commands/DeleteLanguageModelCommand.js +2 -27
- package/dist/es/commands/DeleteLanguageModelCommand.js.map +1 -1
- package/dist/es/commands/DeleteMedicalTranscriptionJobCommand.js +2 -27
- package/dist/es/commands/DeleteMedicalTranscriptionJobCommand.js.map +1 -1
- package/dist/es/commands/DeleteMedicalVocabularyCommand.js +2 -27
- package/dist/es/commands/DeleteMedicalVocabularyCommand.js.map +1 -1
- package/dist/es/commands/DeleteTranscriptionJobCommand.js +2 -28
- package/dist/es/commands/DeleteTranscriptionJobCommand.js.map +1 -1
- package/dist/es/commands/DeleteVocabularyCommand.js +2 -27
- package/dist/es/commands/DeleteVocabularyCommand.js.map +1 -1
- package/dist/es/commands/DeleteVocabularyFilterCommand.js +2 -27
- package/dist/es/commands/DeleteVocabularyFilterCommand.js.map +1 -1
- package/dist/es/commands/DescribeLanguageModelCommand.js +2 -31
- package/dist/es/commands/DescribeLanguageModelCommand.js.map +1 -1
- package/dist/es/commands/GetCallAnalyticsCategoryCommand.js +2 -27
- package/dist/es/commands/GetCallAnalyticsCategoryCommand.js.map +1 -1
- package/dist/es/commands/GetCallAnalyticsJobCommand.js +2 -31
- package/dist/es/commands/GetCallAnalyticsJobCommand.js.map +1 -1
- package/dist/es/commands/GetMedicalTranscriptionJobCommand.js +2 -29
- package/dist/es/commands/GetMedicalTranscriptionJobCommand.js.map +1 -1
- package/dist/es/commands/GetMedicalVocabularyCommand.js +2 -27
- package/dist/es/commands/GetMedicalVocabularyCommand.js.map +1 -1
- package/dist/es/commands/GetTranscriptionJobCommand.js +2 -30
- package/dist/es/commands/GetTranscriptionJobCommand.js.map +1 -1
- package/dist/es/commands/GetVocabularyCommand.js +2 -27
- package/dist/es/commands/GetVocabularyCommand.js.map +1 -1
- package/dist/es/commands/GetVocabularyFilterCommand.js +2 -27
- package/dist/es/commands/GetVocabularyFilterCommand.js.map +1 -1
- package/dist/es/commands/ListCallAnalyticsCategoriesCommand.js +2 -29
- package/dist/es/commands/ListCallAnalyticsCategoriesCommand.js.map +1 -1
- package/dist/es/commands/ListCallAnalyticsJobsCommand.js +2 -27
- package/dist/es/commands/ListCallAnalyticsJobsCommand.js.map +1 -1
- package/dist/es/commands/ListLanguageModelsCommand.js +2 -29
- package/dist/es/commands/ListLanguageModelsCommand.js.map +1 -1
- package/dist/es/commands/ListMedicalTranscriptionJobsCommand.js +2 -27
- package/dist/es/commands/ListMedicalTranscriptionJobsCommand.js.map +1 -1
- package/dist/es/commands/ListMedicalVocabulariesCommand.js +2 -28
- package/dist/es/commands/ListMedicalVocabulariesCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/ListTranscriptionJobsCommand.js +2 -27
- package/dist/es/commands/ListTranscriptionJobsCommand.js.map +1 -1
- package/dist/es/commands/ListVocabulariesCommand.js +2 -28
- package/dist/es/commands/ListVocabulariesCommand.js.map +1 -1
- package/dist/es/commands/ListVocabularyFiltersCommand.js +2 -27
- package/dist/es/commands/ListVocabularyFiltersCommand.js.map +1 -1
- package/dist/es/commands/StartCallAnalyticsJobCommand.js +2 -31
- package/dist/es/commands/StartCallAnalyticsJobCommand.js.map +1 -1
- package/dist/es/commands/StartMedicalTranscriptionJobCommand.js +2 -27
- package/dist/es/commands/StartMedicalTranscriptionJobCommand.js.map +1 -1
- package/dist/es/commands/StartTranscriptionJobCommand.js +2 -27
- package/dist/es/commands/StartTranscriptionJobCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -27
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateCallAnalyticsCategoryCommand.js +2 -28
- package/dist/es/commands/UpdateCallAnalyticsCategoryCommand.js.map +1 -1
- package/dist/es/commands/UpdateMedicalVocabularyCommand.js +2 -29
- package/dist/es/commands/UpdateMedicalVocabularyCommand.js.map +1 -1
- package/dist/es/commands/UpdateVocabularyCommand.js +2 -28
- package/dist/es/commands/UpdateVocabularyCommand.js.map +1 -1
- package/dist/es/commands/UpdateVocabularyFilterCommand.js +2 -27
- package/dist/es/commands/UpdateVocabularyFilterCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +13 -318
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +39 -39
- package/dist/es/pagination/ListCallAnalyticsCategoriesPaginator.js +16 -28
- package/dist/es/pagination/ListCallAnalyticsCategoriesPaginator.js.map +1 -1
- package/dist/es/pagination/ListCallAnalyticsJobsPaginator.js +16 -28
- package/dist/es/pagination/ListCallAnalyticsJobsPaginator.js.map +1 -1
- package/dist/es/pagination/ListLanguageModelsPaginator.js +16 -28
- package/dist/es/pagination/ListLanguageModelsPaginator.js.map +1 -1
- package/dist/es/pagination/ListMedicalTranscriptionJobsPaginator.js +16 -28
- package/dist/es/pagination/ListMedicalTranscriptionJobsPaginator.js.map +1 -1
- package/dist/es/pagination/ListMedicalVocabulariesPaginator.js +16 -28
- package/dist/es/pagination/ListMedicalVocabulariesPaginator.js.map +1 -1
- package/dist/es/pagination/ListTranscriptionJobsPaginator.js +16 -28
- package/dist/es/pagination/ListTranscriptionJobsPaginator.js.map +1 -1
- package/dist/es/pagination/ListVocabulariesPaginator.js +16 -28
- package/dist/es/pagination/ListVocabulariesPaginator.js.map +1 -1
- package/dist/es/pagination/ListVocabularyFiltersPaginator.js +16 -28
- package/dist/es/pagination/ListVocabularyFiltersPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +980 -921
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/types/models/models_0.d.ts +63 -2
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/models/models_0.d.ts +63 -2
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/models/models_0.ts +73 -2
- package/package.json +39 -39
- package/protocols/Aws_json1_1.ts +123 -34
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { Rule, } from "../models/models_0";
|
|
3
3
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
4
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
5
5
|
export var serializeAws_json1_1CreateCallAnalyticsCategoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
6
|
var headers, body;
|
|
7
7
|
return __generator(this, function (_a) {
|
|
@@ -10,7 +10,7 @@ export var serializeAws_json1_1CreateCallAnalyticsCategoryCommand = function (in
|
|
|
10
10
|
"x-amz-target": "Transcribe.CreateCallAnalyticsCategory",
|
|
11
11
|
};
|
|
12
12
|
body = JSON.stringify(serializeAws_json1_1CreateCallAnalyticsCategoryRequest(input, context));
|
|
13
|
-
return [2
|
|
13
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
14
14
|
});
|
|
15
15
|
}); };
|
|
16
16
|
export var serializeAws_json1_1CreateLanguageModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -21,7 +21,7 @@ export var serializeAws_json1_1CreateLanguageModelCommand = function (input, con
|
|
|
21
21
|
"x-amz-target": "Transcribe.CreateLanguageModel",
|
|
22
22
|
};
|
|
23
23
|
body = JSON.stringify(serializeAws_json1_1CreateLanguageModelRequest(input, context));
|
|
24
|
-
return [2
|
|
24
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
25
25
|
});
|
|
26
26
|
}); };
|
|
27
27
|
export var serializeAws_json1_1CreateMedicalVocabularyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -32,7 +32,7 @@ export var serializeAws_json1_1CreateMedicalVocabularyCommand = function (input,
|
|
|
32
32
|
"x-amz-target": "Transcribe.CreateMedicalVocabulary",
|
|
33
33
|
};
|
|
34
34
|
body = JSON.stringify(serializeAws_json1_1CreateMedicalVocabularyRequest(input, context));
|
|
35
|
-
return [2
|
|
35
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
36
36
|
});
|
|
37
37
|
}); };
|
|
38
38
|
export var serializeAws_json1_1CreateVocabularyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -43,7 +43,7 @@ export var serializeAws_json1_1CreateVocabularyCommand = function (input, contex
|
|
|
43
43
|
"x-amz-target": "Transcribe.CreateVocabulary",
|
|
44
44
|
};
|
|
45
45
|
body = JSON.stringify(serializeAws_json1_1CreateVocabularyRequest(input, context));
|
|
46
|
-
return [2
|
|
46
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
47
47
|
});
|
|
48
48
|
}); };
|
|
49
49
|
export var serializeAws_json1_1CreateVocabularyFilterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -54,7 +54,7 @@ export var serializeAws_json1_1CreateVocabularyFilterCommand = function (input,
|
|
|
54
54
|
"x-amz-target": "Transcribe.CreateVocabularyFilter",
|
|
55
55
|
};
|
|
56
56
|
body = JSON.stringify(serializeAws_json1_1CreateVocabularyFilterRequest(input, context));
|
|
57
|
-
return [2
|
|
57
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
58
58
|
});
|
|
59
59
|
}); };
|
|
60
60
|
export var serializeAws_json1_1DeleteCallAnalyticsCategoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -65,7 +65,7 @@ export var serializeAws_json1_1DeleteCallAnalyticsCategoryCommand = function (in
|
|
|
65
65
|
"x-amz-target": "Transcribe.DeleteCallAnalyticsCategory",
|
|
66
66
|
};
|
|
67
67
|
body = JSON.stringify(serializeAws_json1_1DeleteCallAnalyticsCategoryRequest(input, context));
|
|
68
|
-
return [2
|
|
68
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
69
69
|
});
|
|
70
70
|
}); };
|
|
71
71
|
export var serializeAws_json1_1DeleteCallAnalyticsJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -76,7 +76,7 @@ export var serializeAws_json1_1DeleteCallAnalyticsJobCommand = function (input,
|
|
|
76
76
|
"x-amz-target": "Transcribe.DeleteCallAnalyticsJob",
|
|
77
77
|
};
|
|
78
78
|
body = JSON.stringify(serializeAws_json1_1DeleteCallAnalyticsJobRequest(input, context));
|
|
79
|
-
return [2
|
|
79
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
80
80
|
});
|
|
81
81
|
}); };
|
|
82
82
|
export var serializeAws_json1_1DeleteLanguageModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -87,7 +87,7 @@ export var serializeAws_json1_1DeleteLanguageModelCommand = function (input, con
|
|
|
87
87
|
"x-amz-target": "Transcribe.DeleteLanguageModel",
|
|
88
88
|
};
|
|
89
89
|
body = JSON.stringify(serializeAws_json1_1DeleteLanguageModelRequest(input, context));
|
|
90
|
-
return [2
|
|
90
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
91
91
|
});
|
|
92
92
|
}); };
|
|
93
93
|
export var serializeAws_json1_1DeleteMedicalTranscriptionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -98,7 +98,7 @@ export var serializeAws_json1_1DeleteMedicalTranscriptionJobCommand = function (
|
|
|
98
98
|
"x-amz-target": "Transcribe.DeleteMedicalTranscriptionJob",
|
|
99
99
|
};
|
|
100
100
|
body = JSON.stringify(serializeAws_json1_1DeleteMedicalTranscriptionJobRequest(input, context));
|
|
101
|
-
return [2
|
|
101
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
102
102
|
});
|
|
103
103
|
}); };
|
|
104
104
|
export var serializeAws_json1_1DeleteMedicalVocabularyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -109,7 +109,7 @@ export var serializeAws_json1_1DeleteMedicalVocabularyCommand = function (input,
|
|
|
109
109
|
"x-amz-target": "Transcribe.DeleteMedicalVocabulary",
|
|
110
110
|
};
|
|
111
111
|
body = JSON.stringify(serializeAws_json1_1DeleteMedicalVocabularyRequest(input, context));
|
|
112
|
-
return [2
|
|
112
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
113
113
|
});
|
|
114
114
|
}); };
|
|
115
115
|
export var serializeAws_json1_1DeleteTranscriptionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -120,7 +120,7 @@ export var serializeAws_json1_1DeleteTranscriptionJobCommand = function (input,
|
|
|
120
120
|
"x-amz-target": "Transcribe.DeleteTranscriptionJob",
|
|
121
121
|
};
|
|
122
122
|
body = JSON.stringify(serializeAws_json1_1DeleteTranscriptionJobRequest(input, context));
|
|
123
|
-
return [2
|
|
123
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
124
124
|
});
|
|
125
125
|
}); };
|
|
126
126
|
export var serializeAws_json1_1DeleteVocabularyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -131,7 +131,7 @@ export var serializeAws_json1_1DeleteVocabularyCommand = function (input, contex
|
|
|
131
131
|
"x-amz-target": "Transcribe.DeleteVocabulary",
|
|
132
132
|
};
|
|
133
133
|
body = JSON.stringify(serializeAws_json1_1DeleteVocabularyRequest(input, context));
|
|
134
|
-
return [2
|
|
134
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
135
135
|
});
|
|
136
136
|
}); };
|
|
137
137
|
export var serializeAws_json1_1DeleteVocabularyFilterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -142,7 +142,7 @@ export var serializeAws_json1_1DeleteVocabularyFilterCommand = function (input,
|
|
|
142
142
|
"x-amz-target": "Transcribe.DeleteVocabularyFilter",
|
|
143
143
|
};
|
|
144
144
|
body = JSON.stringify(serializeAws_json1_1DeleteVocabularyFilterRequest(input, context));
|
|
145
|
-
return [2
|
|
145
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
146
146
|
});
|
|
147
147
|
}); };
|
|
148
148
|
export var serializeAws_json1_1DescribeLanguageModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -153,7 +153,7 @@ export var serializeAws_json1_1DescribeLanguageModelCommand = function (input, c
|
|
|
153
153
|
"x-amz-target": "Transcribe.DescribeLanguageModel",
|
|
154
154
|
};
|
|
155
155
|
body = JSON.stringify(serializeAws_json1_1DescribeLanguageModelRequest(input, context));
|
|
156
|
-
return [2
|
|
156
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
157
157
|
});
|
|
158
158
|
}); };
|
|
159
159
|
export var serializeAws_json1_1GetCallAnalyticsCategoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -164,7 +164,7 @@ export var serializeAws_json1_1GetCallAnalyticsCategoryCommand = function (input
|
|
|
164
164
|
"x-amz-target": "Transcribe.GetCallAnalyticsCategory",
|
|
165
165
|
};
|
|
166
166
|
body = JSON.stringify(serializeAws_json1_1GetCallAnalyticsCategoryRequest(input, context));
|
|
167
|
-
return [2
|
|
167
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
168
168
|
});
|
|
169
169
|
}); };
|
|
170
170
|
export var serializeAws_json1_1GetCallAnalyticsJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -175,7 +175,7 @@ export var serializeAws_json1_1GetCallAnalyticsJobCommand = function (input, con
|
|
|
175
175
|
"x-amz-target": "Transcribe.GetCallAnalyticsJob",
|
|
176
176
|
};
|
|
177
177
|
body = JSON.stringify(serializeAws_json1_1GetCallAnalyticsJobRequest(input, context));
|
|
178
|
-
return [2
|
|
178
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
179
179
|
});
|
|
180
180
|
}); };
|
|
181
181
|
export var serializeAws_json1_1GetMedicalTranscriptionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -186,7 +186,7 @@ export var serializeAws_json1_1GetMedicalTranscriptionJobCommand = function (inp
|
|
|
186
186
|
"x-amz-target": "Transcribe.GetMedicalTranscriptionJob",
|
|
187
187
|
};
|
|
188
188
|
body = JSON.stringify(serializeAws_json1_1GetMedicalTranscriptionJobRequest(input, context));
|
|
189
|
-
return [2
|
|
189
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
190
190
|
});
|
|
191
191
|
}); };
|
|
192
192
|
export var serializeAws_json1_1GetMedicalVocabularyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -197,7 +197,7 @@ export var serializeAws_json1_1GetMedicalVocabularyCommand = function (input, co
|
|
|
197
197
|
"x-amz-target": "Transcribe.GetMedicalVocabulary",
|
|
198
198
|
};
|
|
199
199
|
body = JSON.stringify(serializeAws_json1_1GetMedicalVocabularyRequest(input, context));
|
|
200
|
-
return [2
|
|
200
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
201
201
|
});
|
|
202
202
|
}); };
|
|
203
203
|
export var serializeAws_json1_1GetTranscriptionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -208,7 +208,7 @@ export var serializeAws_json1_1GetTranscriptionJobCommand = function (input, con
|
|
|
208
208
|
"x-amz-target": "Transcribe.GetTranscriptionJob",
|
|
209
209
|
};
|
|
210
210
|
body = JSON.stringify(serializeAws_json1_1GetTranscriptionJobRequest(input, context));
|
|
211
|
-
return [2
|
|
211
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
212
212
|
});
|
|
213
213
|
}); };
|
|
214
214
|
export var serializeAws_json1_1GetVocabularyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -219,7 +219,7 @@ export var serializeAws_json1_1GetVocabularyCommand = function (input, context)
|
|
|
219
219
|
"x-amz-target": "Transcribe.GetVocabulary",
|
|
220
220
|
};
|
|
221
221
|
body = JSON.stringify(serializeAws_json1_1GetVocabularyRequest(input, context));
|
|
222
|
-
return [2
|
|
222
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
223
223
|
});
|
|
224
224
|
}); };
|
|
225
225
|
export var serializeAws_json1_1GetVocabularyFilterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -230,7 +230,7 @@ export var serializeAws_json1_1GetVocabularyFilterCommand = function (input, con
|
|
|
230
230
|
"x-amz-target": "Transcribe.GetVocabularyFilter",
|
|
231
231
|
};
|
|
232
232
|
body = JSON.stringify(serializeAws_json1_1GetVocabularyFilterRequest(input, context));
|
|
233
|
-
return [2
|
|
233
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
234
234
|
});
|
|
235
235
|
}); };
|
|
236
236
|
export var serializeAws_json1_1ListCallAnalyticsCategoriesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -241,7 +241,7 @@ export var serializeAws_json1_1ListCallAnalyticsCategoriesCommand = function (in
|
|
|
241
241
|
"x-amz-target": "Transcribe.ListCallAnalyticsCategories",
|
|
242
242
|
};
|
|
243
243
|
body = JSON.stringify(serializeAws_json1_1ListCallAnalyticsCategoriesRequest(input, context));
|
|
244
|
-
return [2
|
|
244
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
245
245
|
});
|
|
246
246
|
}); };
|
|
247
247
|
export var serializeAws_json1_1ListCallAnalyticsJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -252,7 +252,7 @@ export var serializeAws_json1_1ListCallAnalyticsJobsCommand = function (input, c
|
|
|
252
252
|
"x-amz-target": "Transcribe.ListCallAnalyticsJobs",
|
|
253
253
|
};
|
|
254
254
|
body = JSON.stringify(serializeAws_json1_1ListCallAnalyticsJobsRequest(input, context));
|
|
255
|
-
return [2
|
|
255
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
256
256
|
});
|
|
257
257
|
}); };
|
|
258
258
|
export var serializeAws_json1_1ListLanguageModelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -263,7 +263,7 @@ export var serializeAws_json1_1ListLanguageModelsCommand = function (input, cont
|
|
|
263
263
|
"x-amz-target": "Transcribe.ListLanguageModels",
|
|
264
264
|
};
|
|
265
265
|
body = JSON.stringify(serializeAws_json1_1ListLanguageModelsRequest(input, context));
|
|
266
|
-
return [2
|
|
266
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
267
267
|
});
|
|
268
268
|
}); };
|
|
269
269
|
export var serializeAws_json1_1ListMedicalTranscriptionJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -274,7 +274,7 @@ export var serializeAws_json1_1ListMedicalTranscriptionJobsCommand = function (i
|
|
|
274
274
|
"x-amz-target": "Transcribe.ListMedicalTranscriptionJobs",
|
|
275
275
|
};
|
|
276
276
|
body = JSON.stringify(serializeAws_json1_1ListMedicalTranscriptionJobsRequest(input, context));
|
|
277
|
-
return [2
|
|
277
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
278
278
|
});
|
|
279
279
|
}); };
|
|
280
280
|
export var serializeAws_json1_1ListMedicalVocabulariesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -285,7 +285,7 @@ export var serializeAws_json1_1ListMedicalVocabulariesCommand = function (input,
|
|
|
285
285
|
"x-amz-target": "Transcribe.ListMedicalVocabularies",
|
|
286
286
|
};
|
|
287
287
|
body = JSON.stringify(serializeAws_json1_1ListMedicalVocabulariesRequest(input, context));
|
|
288
|
-
return [2
|
|
288
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
289
289
|
});
|
|
290
290
|
}); };
|
|
291
291
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -296,7 +296,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
296
296
|
"x-amz-target": "Transcribe.ListTagsForResource",
|
|
297
297
|
};
|
|
298
298
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
299
|
-
return [2
|
|
299
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
300
300
|
});
|
|
301
301
|
}); };
|
|
302
302
|
export var serializeAws_json1_1ListTranscriptionJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -307,7 +307,7 @@ export var serializeAws_json1_1ListTranscriptionJobsCommand = function (input, c
|
|
|
307
307
|
"x-amz-target": "Transcribe.ListTranscriptionJobs",
|
|
308
308
|
};
|
|
309
309
|
body = JSON.stringify(serializeAws_json1_1ListTranscriptionJobsRequest(input, context));
|
|
310
|
-
return [2
|
|
310
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
311
311
|
});
|
|
312
312
|
}); };
|
|
313
313
|
export var serializeAws_json1_1ListVocabulariesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -318,7 +318,7 @@ export var serializeAws_json1_1ListVocabulariesCommand = function (input, contex
|
|
|
318
318
|
"x-amz-target": "Transcribe.ListVocabularies",
|
|
319
319
|
};
|
|
320
320
|
body = JSON.stringify(serializeAws_json1_1ListVocabulariesRequest(input, context));
|
|
321
|
-
return [2
|
|
321
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
322
322
|
});
|
|
323
323
|
}); };
|
|
324
324
|
export var serializeAws_json1_1ListVocabularyFiltersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -329,7 +329,7 @@ export var serializeAws_json1_1ListVocabularyFiltersCommand = function (input, c
|
|
|
329
329
|
"x-amz-target": "Transcribe.ListVocabularyFilters",
|
|
330
330
|
};
|
|
331
331
|
body = JSON.stringify(serializeAws_json1_1ListVocabularyFiltersRequest(input, context));
|
|
332
|
-
return [2
|
|
332
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
333
333
|
});
|
|
334
334
|
}); };
|
|
335
335
|
export var serializeAws_json1_1StartCallAnalyticsJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -340,7 +340,7 @@ export var serializeAws_json1_1StartCallAnalyticsJobCommand = function (input, c
|
|
|
340
340
|
"x-amz-target": "Transcribe.StartCallAnalyticsJob",
|
|
341
341
|
};
|
|
342
342
|
body = JSON.stringify(serializeAws_json1_1StartCallAnalyticsJobRequest(input, context));
|
|
343
|
-
return [2
|
|
343
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
344
344
|
});
|
|
345
345
|
}); };
|
|
346
346
|
export var serializeAws_json1_1StartMedicalTranscriptionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -351,7 +351,7 @@ export var serializeAws_json1_1StartMedicalTranscriptionJobCommand = function (i
|
|
|
351
351
|
"x-amz-target": "Transcribe.StartMedicalTranscriptionJob",
|
|
352
352
|
};
|
|
353
353
|
body = JSON.stringify(serializeAws_json1_1StartMedicalTranscriptionJobRequest(input, context));
|
|
354
|
-
return [2
|
|
354
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
355
355
|
});
|
|
356
356
|
}); };
|
|
357
357
|
export var serializeAws_json1_1StartTranscriptionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -362,7 +362,7 @@ export var serializeAws_json1_1StartTranscriptionJobCommand = function (input, c
|
|
|
362
362
|
"x-amz-target": "Transcribe.StartTranscriptionJob",
|
|
363
363
|
};
|
|
364
364
|
body = JSON.stringify(serializeAws_json1_1StartTranscriptionJobRequest(input, context));
|
|
365
|
-
return [2
|
|
365
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
366
366
|
});
|
|
367
367
|
}); };
|
|
368
368
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -373,7 +373,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
373
373
|
"x-amz-target": "Transcribe.TagResource",
|
|
374
374
|
};
|
|
375
375
|
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
376
|
-
return [2
|
|
376
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
377
377
|
});
|
|
378
378
|
}); };
|
|
379
379
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -384,7 +384,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
384
384
|
"x-amz-target": "Transcribe.UntagResource",
|
|
385
385
|
};
|
|
386
386
|
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
387
|
-
return [2
|
|
387
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
388
388
|
});
|
|
389
389
|
}); };
|
|
390
390
|
export var serializeAws_json1_1UpdateCallAnalyticsCategoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -395,7 +395,7 @@ export var serializeAws_json1_1UpdateCallAnalyticsCategoryCommand = function (in
|
|
|
395
395
|
"x-amz-target": "Transcribe.UpdateCallAnalyticsCategory",
|
|
396
396
|
};
|
|
397
397
|
body = JSON.stringify(serializeAws_json1_1UpdateCallAnalyticsCategoryRequest(input, context));
|
|
398
|
-
return [2
|
|
398
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
399
399
|
});
|
|
400
400
|
}); };
|
|
401
401
|
export var serializeAws_json1_1UpdateMedicalVocabularyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -406,7 +406,7 @@ export var serializeAws_json1_1UpdateMedicalVocabularyCommand = function (input,
|
|
|
406
406
|
"x-amz-target": "Transcribe.UpdateMedicalVocabulary",
|
|
407
407
|
};
|
|
408
408
|
body = JSON.stringify(serializeAws_json1_1UpdateMedicalVocabularyRequest(input, context));
|
|
409
|
-
return [2
|
|
409
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
410
410
|
});
|
|
411
411
|
}); };
|
|
412
412
|
export var serializeAws_json1_1UpdateVocabularyCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -417,7 +417,7 @@ export var serializeAws_json1_1UpdateVocabularyCommand = function (input, contex
|
|
|
417
417
|
"x-amz-target": "Transcribe.UpdateVocabulary",
|
|
418
418
|
};
|
|
419
419
|
body = JSON.stringify(serializeAws_json1_1UpdateVocabularyRequest(input, context));
|
|
420
|
-
return [2
|
|
420
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
421
421
|
});
|
|
422
422
|
}); };
|
|
423
423
|
export var serializeAws_json1_1UpdateVocabularyFilterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -428,7 +428,7 @@ export var serializeAws_json1_1UpdateVocabularyFilterCommand = function (input,
|
|
|
428
428
|
"x-amz-target": "Transcribe.UpdateVocabularyFilter",
|
|
429
429
|
};
|
|
430
430
|
body = JSON.stringify(serializeAws_json1_1UpdateVocabularyFilterRequest(input, context));
|
|
431
|
-
return [2
|
|
431
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
432
432
|
});
|
|
433
433
|
}); };
|
|
434
434
|
export var deserializeAws_json1_1CreateCallAnalyticsCategoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -437,15 +437,15 @@ export var deserializeAws_json1_1CreateCallAnalyticsCategoryCommand = function (
|
|
|
437
437
|
switch (_a.label) {
|
|
438
438
|
case 0:
|
|
439
439
|
if (output.statusCode >= 300) {
|
|
440
|
-
return [2
|
|
440
|
+
return [2, deserializeAws_json1_1CreateCallAnalyticsCategoryCommandError(output, context)];
|
|
441
441
|
}
|
|
442
|
-
return [4
|
|
442
|
+
return [4, parseBody(output.body, context)];
|
|
443
443
|
case 1:
|
|
444
444
|
data = _a.sent();
|
|
445
445
|
contents = {};
|
|
446
446
|
contents = deserializeAws_json1_1CreateCallAnalyticsCategoryResponse(data, context);
|
|
447
447
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
448
|
-
return [2
|
|
448
|
+
return [2, Promise.resolve(response)];
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
}); };
|
|
@@ -457,47 +457,47 @@ var deserializeAws_json1_1CreateCallAnalyticsCategoryCommandError = function (ou
|
|
|
457
457
|
case 0:
|
|
458
458
|
_a = [__assign({}, output)];
|
|
459
459
|
_g = {};
|
|
460
|
-
return [4
|
|
460
|
+
return [4, parseBody(output.body, context)];
|
|
461
461
|
case 1:
|
|
462
462
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
463
463
|
errorCode = "UnknownError";
|
|
464
464
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
465
465
|
_b = errorCode;
|
|
466
466
|
switch (_b) {
|
|
467
|
-
case "BadRequestException": return [3
|
|
468
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
469
|
-
case "ConflictException": return [3
|
|
470
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
471
|
-
case "InternalFailureException": return [3
|
|
472
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
473
|
-
case "LimitExceededException": return [3
|
|
474
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
467
|
+
case "BadRequestException": return [3, 2];
|
|
468
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
469
|
+
case "ConflictException": return [3, 4];
|
|
470
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
471
|
+
case "InternalFailureException": return [3, 6];
|
|
472
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
473
|
+
case "LimitExceededException": return [3, 8];
|
|
474
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
475
475
|
}
|
|
476
|
-
return [3
|
|
476
|
+
return [3, 10];
|
|
477
477
|
case 2:
|
|
478
478
|
_c = [{}];
|
|
479
|
-
return [4
|
|
479
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
480
480
|
case 3:
|
|
481
481
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
482
|
-
return [3
|
|
482
|
+
return [3, 11];
|
|
483
483
|
case 4:
|
|
484
484
|
_d = [{}];
|
|
485
|
-
return [4
|
|
485
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
486
486
|
case 5:
|
|
487
487
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
488
|
-
return [3
|
|
488
|
+
return [3, 11];
|
|
489
489
|
case 6:
|
|
490
490
|
_e = [{}];
|
|
491
|
-
return [4
|
|
491
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
492
492
|
case 7:
|
|
493
493
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
494
|
-
return [3
|
|
494
|
+
return [3, 11];
|
|
495
495
|
case 8:
|
|
496
496
|
_f = [{}];
|
|
497
|
-
return [4
|
|
497
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
498
498
|
case 9:
|
|
499
499
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
500
|
-
return [3
|
|
500
|
+
return [3, 11];
|
|
501
501
|
case 10:
|
|
502
502
|
parsedBody = parsedOutput.body;
|
|
503
503
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -507,7 +507,7 @@ var deserializeAws_json1_1CreateCallAnalyticsCategoryCommandError = function (ou
|
|
|
507
507
|
message = response.message || response.Message || errorCode;
|
|
508
508
|
response.message = message;
|
|
509
509
|
delete response.Message;
|
|
510
|
-
return [2
|
|
510
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
511
511
|
}
|
|
512
512
|
});
|
|
513
513
|
}); };
|
|
@@ -517,15 +517,15 @@ export var deserializeAws_json1_1CreateLanguageModelCommand = function (output,
|
|
|
517
517
|
switch (_a.label) {
|
|
518
518
|
case 0:
|
|
519
519
|
if (output.statusCode >= 300) {
|
|
520
|
-
return [2
|
|
520
|
+
return [2, deserializeAws_json1_1CreateLanguageModelCommandError(output, context)];
|
|
521
521
|
}
|
|
522
|
-
return [4
|
|
522
|
+
return [4, parseBody(output.body, context)];
|
|
523
523
|
case 1:
|
|
524
524
|
data = _a.sent();
|
|
525
525
|
contents = {};
|
|
526
526
|
contents = deserializeAws_json1_1CreateLanguageModelResponse(data, context);
|
|
527
527
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
528
|
-
return [2
|
|
528
|
+
return [2, Promise.resolve(response)];
|
|
529
529
|
}
|
|
530
530
|
});
|
|
531
531
|
}); };
|
|
@@ -537,47 +537,47 @@ var deserializeAws_json1_1CreateLanguageModelCommandError = function (output, co
|
|
|
537
537
|
case 0:
|
|
538
538
|
_a = [__assign({}, output)];
|
|
539
539
|
_g = {};
|
|
540
|
-
return [4
|
|
540
|
+
return [4, parseBody(output.body, context)];
|
|
541
541
|
case 1:
|
|
542
542
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
543
543
|
errorCode = "UnknownError";
|
|
544
544
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
545
545
|
_b = errorCode;
|
|
546
546
|
switch (_b) {
|
|
547
|
-
case "BadRequestException": return [3
|
|
548
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
549
|
-
case "ConflictException": return [3
|
|
550
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
551
|
-
case "InternalFailureException": return [3
|
|
552
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
553
|
-
case "LimitExceededException": return [3
|
|
554
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
547
|
+
case "BadRequestException": return [3, 2];
|
|
548
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
549
|
+
case "ConflictException": return [3, 4];
|
|
550
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
551
|
+
case "InternalFailureException": return [3, 6];
|
|
552
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
553
|
+
case "LimitExceededException": return [3, 8];
|
|
554
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
555
555
|
}
|
|
556
|
-
return [3
|
|
556
|
+
return [3, 10];
|
|
557
557
|
case 2:
|
|
558
558
|
_c = [{}];
|
|
559
|
-
return [4
|
|
559
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
560
560
|
case 3:
|
|
561
561
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
562
|
-
return [3
|
|
562
|
+
return [3, 11];
|
|
563
563
|
case 4:
|
|
564
564
|
_d = [{}];
|
|
565
|
-
return [4
|
|
565
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
566
566
|
case 5:
|
|
567
567
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
568
|
-
return [3
|
|
568
|
+
return [3, 11];
|
|
569
569
|
case 6:
|
|
570
570
|
_e = [{}];
|
|
571
|
-
return [4
|
|
571
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
572
572
|
case 7:
|
|
573
573
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
574
|
-
return [3
|
|
574
|
+
return [3, 11];
|
|
575
575
|
case 8:
|
|
576
576
|
_f = [{}];
|
|
577
|
-
return [4
|
|
577
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
578
578
|
case 9:
|
|
579
579
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
580
|
-
return [3
|
|
580
|
+
return [3, 11];
|
|
581
581
|
case 10:
|
|
582
582
|
parsedBody = parsedOutput.body;
|
|
583
583
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -587,7 +587,7 @@ var deserializeAws_json1_1CreateLanguageModelCommandError = function (output, co
|
|
|
587
587
|
message = response.message || response.Message || errorCode;
|
|
588
588
|
response.message = message;
|
|
589
589
|
delete response.Message;
|
|
590
|
-
return [2
|
|
590
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
591
591
|
}
|
|
592
592
|
});
|
|
593
593
|
}); };
|
|
@@ -597,15 +597,15 @@ export var deserializeAws_json1_1CreateMedicalVocabularyCommand = function (outp
|
|
|
597
597
|
switch (_a.label) {
|
|
598
598
|
case 0:
|
|
599
599
|
if (output.statusCode >= 300) {
|
|
600
|
-
return [2
|
|
600
|
+
return [2, deserializeAws_json1_1CreateMedicalVocabularyCommandError(output, context)];
|
|
601
601
|
}
|
|
602
|
-
return [4
|
|
602
|
+
return [4, parseBody(output.body, context)];
|
|
603
603
|
case 1:
|
|
604
604
|
data = _a.sent();
|
|
605
605
|
contents = {};
|
|
606
606
|
contents = deserializeAws_json1_1CreateMedicalVocabularyResponse(data, context);
|
|
607
607
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
608
|
-
return [2
|
|
608
|
+
return [2, Promise.resolve(response)];
|
|
609
609
|
}
|
|
610
610
|
});
|
|
611
611
|
}); };
|
|
@@ -617,47 +617,47 @@ var deserializeAws_json1_1CreateMedicalVocabularyCommandError = function (output
|
|
|
617
617
|
case 0:
|
|
618
618
|
_a = [__assign({}, output)];
|
|
619
619
|
_g = {};
|
|
620
|
-
return [4
|
|
620
|
+
return [4, parseBody(output.body, context)];
|
|
621
621
|
case 1:
|
|
622
622
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
623
623
|
errorCode = "UnknownError";
|
|
624
624
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
625
625
|
_b = errorCode;
|
|
626
626
|
switch (_b) {
|
|
627
|
-
case "BadRequestException": return [3
|
|
628
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
629
|
-
case "ConflictException": return [3
|
|
630
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
631
|
-
case "InternalFailureException": return [3
|
|
632
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
633
|
-
case "LimitExceededException": return [3
|
|
634
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
627
|
+
case "BadRequestException": return [3, 2];
|
|
628
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
629
|
+
case "ConflictException": return [3, 4];
|
|
630
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
631
|
+
case "InternalFailureException": return [3, 6];
|
|
632
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
633
|
+
case "LimitExceededException": return [3, 8];
|
|
634
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
635
635
|
}
|
|
636
|
-
return [3
|
|
636
|
+
return [3, 10];
|
|
637
637
|
case 2:
|
|
638
638
|
_c = [{}];
|
|
639
|
-
return [4
|
|
639
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
640
640
|
case 3:
|
|
641
641
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
642
|
-
return [3
|
|
642
|
+
return [3, 11];
|
|
643
643
|
case 4:
|
|
644
644
|
_d = [{}];
|
|
645
|
-
return [4
|
|
645
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
646
646
|
case 5:
|
|
647
647
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
648
|
-
return [3
|
|
648
|
+
return [3, 11];
|
|
649
649
|
case 6:
|
|
650
650
|
_e = [{}];
|
|
651
|
-
return [4
|
|
651
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
652
652
|
case 7:
|
|
653
653
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
654
|
-
return [3
|
|
654
|
+
return [3, 11];
|
|
655
655
|
case 8:
|
|
656
656
|
_f = [{}];
|
|
657
|
-
return [4
|
|
657
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
658
658
|
case 9:
|
|
659
659
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
660
|
-
return [3
|
|
660
|
+
return [3, 11];
|
|
661
661
|
case 10:
|
|
662
662
|
parsedBody = parsedOutput.body;
|
|
663
663
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -667,7 +667,7 @@ var deserializeAws_json1_1CreateMedicalVocabularyCommandError = function (output
|
|
|
667
667
|
message = response.message || response.Message || errorCode;
|
|
668
668
|
response.message = message;
|
|
669
669
|
delete response.Message;
|
|
670
|
-
return [2
|
|
670
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
}); };
|
|
@@ -677,15 +677,15 @@ export var deserializeAws_json1_1CreateVocabularyCommand = function (output, con
|
|
|
677
677
|
switch (_a.label) {
|
|
678
678
|
case 0:
|
|
679
679
|
if (output.statusCode >= 300) {
|
|
680
|
-
return [2
|
|
680
|
+
return [2, deserializeAws_json1_1CreateVocabularyCommandError(output, context)];
|
|
681
681
|
}
|
|
682
|
-
return [4
|
|
682
|
+
return [4, parseBody(output.body, context)];
|
|
683
683
|
case 1:
|
|
684
684
|
data = _a.sent();
|
|
685
685
|
contents = {};
|
|
686
686
|
contents = deserializeAws_json1_1CreateVocabularyResponse(data, context);
|
|
687
687
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
688
|
-
return [2
|
|
688
|
+
return [2, Promise.resolve(response)];
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
691
|
}); };
|
|
@@ -697,47 +697,47 @@ var deserializeAws_json1_1CreateVocabularyCommandError = function (output, conte
|
|
|
697
697
|
case 0:
|
|
698
698
|
_a = [__assign({}, output)];
|
|
699
699
|
_g = {};
|
|
700
|
-
return [4
|
|
700
|
+
return [4, parseBody(output.body, context)];
|
|
701
701
|
case 1:
|
|
702
702
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
703
703
|
errorCode = "UnknownError";
|
|
704
704
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
705
705
|
_b = errorCode;
|
|
706
706
|
switch (_b) {
|
|
707
|
-
case "BadRequestException": return [3
|
|
708
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
709
|
-
case "ConflictException": return [3
|
|
710
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
711
|
-
case "InternalFailureException": return [3
|
|
712
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
713
|
-
case "LimitExceededException": return [3
|
|
714
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
707
|
+
case "BadRequestException": return [3, 2];
|
|
708
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
709
|
+
case "ConflictException": return [3, 4];
|
|
710
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
711
|
+
case "InternalFailureException": return [3, 6];
|
|
712
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
713
|
+
case "LimitExceededException": return [3, 8];
|
|
714
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
715
715
|
}
|
|
716
|
-
return [3
|
|
716
|
+
return [3, 10];
|
|
717
717
|
case 2:
|
|
718
718
|
_c = [{}];
|
|
719
|
-
return [4
|
|
719
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
720
720
|
case 3:
|
|
721
721
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
722
|
-
return [3
|
|
722
|
+
return [3, 11];
|
|
723
723
|
case 4:
|
|
724
724
|
_d = [{}];
|
|
725
|
-
return [4
|
|
725
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
726
726
|
case 5:
|
|
727
727
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
728
|
-
return [3
|
|
728
|
+
return [3, 11];
|
|
729
729
|
case 6:
|
|
730
730
|
_e = [{}];
|
|
731
|
-
return [4
|
|
731
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
732
732
|
case 7:
|
|
733
733
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
734
|
-
return [3
|
|
734
|
+
return [3, 11];
|
|
735
735
|
case 8:
|
|
736
736
|
_f = [{}];
|
|
737
|
-
return [4
|
|
737
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
738
738
|
case 9:
|
|
739
739
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
740
|
-
return [3
|
|
740
|
+
return [3, 11];
|
|
741
741
|
case 10:
|
|
742
742
|
parsedBody = parsedOutput.body;
|
|
743
743
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -747,7 +747,7 @@ var deserializeAws_json1_1CreateVocabularyCommandError = function (output, conte
|
|
|
747
747
|
message = response.message || response.Message || errorCode;
|
|
748
748
|
response.message = message;
|
|
749
749
|
delete response.Message;
|
|
750
|
-
return [2
|
|
750
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
751
751
|
}
|
|
752
752
|
});
|
|
753
753
|
}); };
|
|
@@ -757,15 +757,15 @@ export var deserializeAws_json1_1CreateVocabularyFilterCommand = function (outpu
|
|
|
757
757
|
switch (_a.label) {
|
|
758
758
|
case 0:
|
|
759
759
|
if (output.statusCode >= 300) {
|
|
760
|
-
return [2
|
|
760
|
+
return [2, deserializeAws_json1_1CreateVocabularyFilterCommandError(output, context)];
|
|
761
761
|
}
|
|
762
|
-
return [4
|
|
762
|
+
return [4, parseBody(output.body, context)];
|
|
763
763
|
case 1:
|
|
764
764
|
data = _a.sent();
|
|
765
765
|
contents = {};
|
|
766
766
|
contents = deserializeAws_json1_1CreateVocabularyFilterResponse(data, context);
|
|
767
767
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
768
|
-
return [2
|
|
768
|
+
return [2, Promise.resolve(response)];
|
|
769
769
|
}
|
|
770
770
|
});
|
|
771
771
|
}); };
|
|
@@ -777,47 +777,47 @@ var deserializeAws_json1_1CreateVocabularyFilterCommandError = function (output,
|
|
|
777
777
|
case 0:
|
|
778
778
|
_a = [__assign({}, output)];
|
|
779
779
|
_g = {};
|
|
780
|
-
return [4
|
|
780
|
+
return [4, parseBody(output.body, context)];
|
|
781
781
|
case 1:
|
|
782
782
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
783
783
|
errorCode = "UnknownError";
|
|
784
784
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
785
785
|
_b = errorCode;
|
|
786
786
|
switch (_b) {
|
|
787
|
-
case "BadRequestException": return [3
|
|
788
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
789
|
-
case "ConflictException": return [3
|
|
790
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
791
|
-
case "InternalFailureException": return [3
|
|
792
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
793
|
-
case "LimitExceededException": return [3
|
|
794
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
787
|
+
case "BadRequestException": return [3, 2];
|
|
788
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
789
|
+
case "ConflictException": return [3, 4];
|
|
790
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
791
|
+
case "InternalFailureException": return [3, 6];
|
|
792
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
793
|
+
case "LimitExceededException": return [3, 8];
|
|
794
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
795
795
|
}
|
|
796
|
-
return [3
|
|
796
|
+
return [3, 10];
|
|
797
797
|
case 2:
|
|
798
798
|
_c = [{}];
|
|
799
|
-
return [4
|
|
799
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
800
800
|
case 3:
|
|
801
801
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
802
|
-
return [3
|
|
802
|
+
return [3, 11];
|
|
803
803
|
case 4:
|
|
804
804
|
_d = [{}];
|
|
805
|
-
return [4
|
|
805
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
806
806
|
case 5:
|
|
807
807
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
808
|
-
return [3
|
|
808
|
+
return [3, 11];
|
|
809
809
|
case 6:
|
|
810
810
|
_e = [{}];
|
|
811
|
-
return [4
|
|
811
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
812
812
|
case 7:
|
|
813
813
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
814
|
-
return [3
|
|
814
|
+
return [3, 11];
|
|
815
815
|
case 8:
|
|
816
816
|
_f = [{}];
|
|
817
|
-
return [4
|
|
817
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
818
818
|
case 9:
|
|
819
819
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
820
|
-
return [3
|
|
820
|
+
return [3, 11];
|
|
821
821
|
case 10:
|
|
822
822
|
parsedBody = parsedOutput.body;
|
|
823
823
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -827,7 +827,7 @@ var deserializeAws_json1_1CreateVocabularyFilterCommandError = function (output,
|
|
|
827
827
|
message = response.message || response.Message || errorCode;
|
|
828
828
|
response.message = message;
|
|
829
829
|
delete response.Message;
|
|
830
|
-
return [2
|
|
830
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
831
831
|
}
|
|
832
832
|
});
|
|
833
833
|
}); };
|
|
@@ -837,15 +837,15 @@ export var deserializeAws_json1_1DeleteCallAnalyticsCategoryCommand = function (
|
|
|
837
837
|
switch (_a.label) {
|
|
838
838
|
case 0:
|
|
839
839
|
if (output.statusCode >= 300) {
|
|
840
|
-
return [2
|
|
840
|
+
return [2, deserializeAws_json1_1DeleteCallAnalyticsCategoryCommandError(output, context)];
|
|
841
841
|
}
|
|
842
|
-
return [4
|
|
842
|
+
return [4, parseBody(output.body, context)];
|
|
843
843
|
case 1:
|
|
844
844
|
data = _a.sent();
|
|
845
845
|
contents = {};
|
|
846
846
|
contents = deserializeAws_json1_1DeleteCallAnalyticsCategoryResponse(data, context);
|
|
847
847
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
848
|
-
return [2
|
|
848
|
+
return [2, Promise.resolve(response)];
|
|
849
849
|
}
|
|
850
850
|
});
|
|
851
851
|
}); };
|
|
@@ -857,47 +857,47 @@ var deserializeAws_json1_1DeleteCallAnalyticsCategoryCommandError = function (ou
|
|
|
857
857
|
case 0:
|
|
858
858
|
_a = [__assign({}, output)];
|
|
859
859
|
_g = {};
|
|
860
|
-
return [4
|
|
860
|
+
return [4, parseBody(output.body, context)];
|
|
861
861
|
case 1:
|
|
862
862
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
863
863
|
errorCode = "UnknownError";
|
|
864
864
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
865
865
|
_b = errorCode;
|
|
866
866
|
switch (_b) {
|
|
867
|
-
case "BadRequestException": return [3
|
|
868
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
869
|
-
case "InternalFailureException": return [3
|
|
870
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
871
|
-
case "LimitExceededException": return [3
|
|
872
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
873
|
-
case "NotFoundException": return [3
|
|
874
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
867
|
+
case "BadRequestException": return [3, 2];
|
|
868
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
869
|
+
case "InternalFailureException": return [3, 4];
|
|
870
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
871
|
+
case "LimitExceededException": return [3, 6];
|
|
872
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
873
|
+
case "NotFoundException": return [3, 8];
|
|
874
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
875
875
|
}
|
|
876
|
-
return [3
|
|
876
|
+
return [3, 10];
|
|
877
877
|
case 2:
|
|
878
878
|
_c = [{}];
|
|
879
|
-
return [4
|
|
879
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
880
880
|
case 3:
|
|
881
881
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
882
|
-
return [3
|
|
882
|
+
return [3, 11];
|
|
883
883
|
case 4:
|
|
884
884
|
_d = [{}];
|
|
885
|
-
return [4
|
|
885
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
886
886
|
case 5:
|
|
887
887
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
888
|
-
return [3
|
|
888
|
+
return [3, 11];
|
|
889
889
|
case 6:
|
|
890
890
|
_e = [{}];
|
|
891
|
-
return [4
|
|
891
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
892
892
|
case 7:
|
|
893
893
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
894
|
-
return [3
|
|
894
|
+
return [3, 11];
|
|
895
895
|
case 8:
|
|
896
896
|
_f = [{}];
|
|
897
|
-
return [4
|
|
897
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
898
898
|
case 9:
|
|
899
899
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
900
|
-
return [3
|
|
900
|
+
return [3, 11];
|
|
901
901
|
case 10:
|
|
902
902
|
parsedBody = parsedOutput.body;
|
|
903
903
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -907,7 +907,7 @@ var deserializeAws_json1_1DeleteCallAnalyticsCategoryCommandError = function (ou
|
|
|
907
907
|
message = response.message || response.Message || errorCode;
|
|
908
908
|
response.message = message;
|
|
909
909
|
delete response.Message;
|
|
910
|
-
return [2
|
|
910
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
911
911
|
}
|
|
912
912
|
});
|
|
913
913
|
}); };
|
|
@@ -917,15 +917,15 @@ export var deserializeAws_json1_1DeleteCallAnalyticsJobCommand = function (outpu
|
|
|
917
917
|
switch (_a.label) {
|
|
918
918
|
case 0:
|
|
919
919
|
if (output.statusCode >= 300) {
|
|
920
|
-
return [2
|
|
920
|
+
return [2, deserializeAws_json1_1DeleteCallAnalyticsJobCommandError(output, context)];
|
|
921
921
|
}
|
|
922
|
-
return [4
|
|
922
|
+
return [4, parseBody(output.body, context)];
|
|
923
923
|
case 1:
|
|
924
924
|
data = _a.sent();
|
|
925
925
|
contents = {};
|
|
926
926
|
contents = deserializeAws_json1_1DeleteCallAnalyticsJobResponse(data, context);
|
|
927
927
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
928
|
-
return [2
|
|
928
|
+
return [2, Promise.resolve(response)];
|
|
929
929
|
}
|
|
930
930
|
});
|
|
931
931
|
}); };
|
|
@@ -937,39 +937,39 @@ var deserializeAws_json1_1DeleteCallAnalyticsJobCommandError = function (output,
|
|
|
937
937
|
case 0:
|
|
938
938
|
_a = [__assign({}, output)];
|
|
939
939
|
_f = {};
|
|
940
|
-
return [4
|
|
940
|
+
return [4, parseBody(output.body, context)];
|
|
941
941
|
case 1:
|
|
942
942
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
943
943
|
errorCode = "UnknownError";
|
|
944
944
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
945
945
|
_b = errorCode;
|
|
946
946
|
switch (_b) {
|
|
947
|
-
case "BadRequestException": return [3
|
|
948
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
949
|
-
case "InternalFailureException": return [3
|
|
950
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
951
|
-
case "LimitExceededException": return [3
|
|
952
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
947
|
+
case "BadRequestException": return [3, 2];
|
|
948
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
949
|
+
case "InternalFailureException": return [3, 4];
|
|
950
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
951
|
+
case "LimitExceededException": return [3, 6];
|
|
952
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
953
953
|
}
|
|
954
|
-
return [3
|
|
954
|
+
return [3, 8];
|
|
955
955
|
case 2:
|
|
956
956
|
_c = [{}];
|
|
957
|
-
return [4
|
|
957
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
958
958
|
case 3:
|
|
959
959
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
960
|
-
return [3
|
|
960
|
+
return [3, 9];
|
|
961
961
|
case 4:
|
|
962
962
|
_d = [{}];
|
|
963
|
-
return [4
|
|
963
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
964
964
|
case 5:
|
|
965
965
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
966
|
-
return [3
|
|
966
|
+
return [3, 9];
|
|
967
967
|
case 6:
|
|
968
968
|
_e = [{}];
|
|
969
|
-
return [4
|
|
969
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
970
970
|
case 7:
|
|
971
971
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
972
|
-
return [3
|
|
972
|
+
return [3, 9];
|
|
973
973
|
case 8:
|
|
974
974
|
parsedBody = parsedOutput.body;
|
|
975
975
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -979,7 +979,7 @@ var deserializeAws_json1_1DeleteCallAnalyticsJobCommandError = function (output,
|
|
|
979
979
|
message = response.message || response.Message || errorCode;
|
|
980
980
|
response.message = message;
|
|
981
981
|
delete response.Message;
|
|
982
|
-
return [2
|
|
982
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
983
983
|
}
|
|
984
984
|
});
|
|
985
985
|
}); };
|
|
@@ -989,15 +989,15 @@ export var deserializeAws_json1_1DeleteLanguageModelCommand = function (output,
|
|
|
989
989
|
switch (_a.label) {
|
|
990
990
|
case 0:
|
|
991
991
|
if (output.statusCode >= 300) {
|
|
992
|
-
return [2
|
|
992
|
+
return [2, deserializeAws_json1_1DeleteLanguageModelCommandError(output, context)];
|
|
993
993
|
}
|
|
994
|
-
return [4
|
|
994
|
+
return [4, collectBody(output.body, context)];
|
|
995
995
|
case 1:
|
|
996
996
|
_a.sent();
|
|
997
997
|
response = {
|
|
998
998
|
$metadata: deserializeMetadata(output),
|
|
999
999
|
};
|
|
1000
|
-
return [2
|
|
1000
|
+
return [2, Promise.resolve(response)];
|
|
1001
1001
|
}
|
|
1002
1002
|
});
|
|
1003
1003
|
}); };
|
|
@@ -1009,39 +1009,39 @@ var deserializeAws_json1_1DeleteLanguageModelCommandError = function (output, co
|
|
|
1009
1009
|
case 0:
|
|
1010
1010
|
_a = [__assign({}, output)];
|
|
1011
1011
|
_f = {};
|
|
1012
|
-
return [4
|
|
1012
|
+
return [4, parseBody(output.body, context)];
|
|
1013
1013
|
case 1:
|
|
1014
1014
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1015
1015
|
errorCode = "UnknownError";
|
|
1016
1016
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1017
1017
|
_b = errorCode;
|
|
1018
1018
|
switch (_b) {
|
|
1019
|
-
case "BadRequestException": return [3
|
|
1020
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1021
|
-
case "InternalFailureException": return [3
|
|
1022
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1023
|
-
case "LimitExceededException": return [3
|
|
1024
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1019
|
+
case "BadRequestException": return [3, 2];
|
|
1020
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1021
|
+
case "InternalFailureException": return [3, 4];
|
|
1022
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1023
|
+
case "LimitExceededException": return [3, 6];
|
|
1024
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1025
1025
|
}
|
|
1026
|
-
return [3
|
|
1026
|
+
return [3, 8];
|
|
1027
1027
|
case 2:
|
|
1028
1028
|
_c = [{}];
|
|
1029
|
-
return [4
|
|
1029
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1030
1030
|
case 3:
|
|
1031
1031
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1032
|
-
return [3
|
|
1032
|
+
return [3, 9];
|
|
1033
1033
|
case 4:
|
|
1034
1034
|
_d = [{}];
|
|
1035
|
-
return [4
|
|
1035
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1036
1036
|
case 5:
|
|
1037
1037
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1038
|
-
return [3
|
|
1038
|
+
return [3, 9];
|
|
1039
1039
|
case 6:
|
|
1040
1040
|
_e = [{}];
|
|
1041
|
-
return [4
|
|
1041
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1042
1042
|
case 7:
|
|
1043
1043
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1044
|
-
return [3
|
|
1044
|
+
return [3, 9];
|
|
1045
1045
|
case 8:
|
|
1046
1046
|
parsedBody = parsedOutput.body;
|
|
1047
1047
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1051,7 +1051,7 @@ var deserializeAws_json1_1DeleteLanguageModelCommandError = function (output, co
|
|
|
1051
1051
|
message = response.message || response.Message || errorCode;
|
|
1052
1052
|
response.message = message;
|
|
1053
1053
|
delete response.Message;
|
|
1054
|
-
return [2
|
|
1054
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1055
1055
|
}
|
|
1056
1056
|
});
|
|
1057
1057
|
}); };
|
|
@@ -1061,15 +1061,15 @@ export var deserializeAws_json1_1DeleteMedicalTranscriptionJobCommand = function
|
|
|
1061
1061
|
switch (_a.label) {
|
|
1062
1062
|
case 0:
|
|
1063
1063
|
if (output.statusCode >= 300) {
|
|
1064
|
-
return [2
|
|
1064
|
+
return [2, deserializeAws_json1_1DeleteMedicalTranscriptionJobCommandError(output, context)];
|
|
1065
1065
|
}
|
|
1066
|
-
return [4
|
|
1066
|
+
return [4, collectBody(output.body, context)];
|
|
1067
1067
|
case 1:
|
|
1068
1068
|
_a.sent();
|
|
1069
1069
|
response = {
|
|
1070
1070
|
$metadata: deserializeMetadata(output),
|
|
1071
1071
|
};
|
|
1072
|
-
return [2
|
|
1072
|
+
return [2, Promise.resolve(response)];
|
|
1073
1073
|
}
|
|
1074
1074
|
});
|
|
1075
1075
|
}); };
|
|
@@ -1081,39 +1081,39 @@ var deserializeAws_json1_1DeleteMedicalTranscriptionJobCommandError = function (
|
|
|
1081
1081
|
case 0:
|
|
1082
1082
|
_a = [__assign({}, output)];
|
|
1083
1083
|
_f = {};
|
|
1084
|
-
return [4
|
|
1084
|
+
return [4, parseBody(output.body, context)];
|
|
1085
1085
|
case 1:
|
|
1086
1086
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1087
1087
|
errorCode = "UnknownError";
|
|
1088
1088
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1089
1089
|
_b = errorCode;
|
|
1090
1090
|
switch (_b) {
|
|
1091
|
-
case "BadRequestException": return [3
|
|
1092
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1093
|
-
case "InternalFailureException": return [3
|
|
1094
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1095
|
-
case "LimitExceededException": return [3
|
|
1096
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1091
|
+
case "BadRequestException": return [3, 2];
|
|
1092
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1093
|
+
case "InternalFailureException": return [3, 4];
|
|
1094
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1095
|
+
case "LimitExceededException": return [3, 6];
|
|
1096
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1097
1097
|
}
|
|
1098
|
-
return [3
|
|
1098
|
+
return [3, 8];
|
|
1099
1099
|
case 2:
|
|
1100
1100
|
_c = [{}];
|
|
1101
|
-
return [4
|
|
1101
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1102
1102
|
case 3:
|
|
1103
1103
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1104
|
-
return [3
|
|
1104
|
+
return [3, 9];
|
|
1105
1105
|
case 4:
|
|
1106
1106
|
_d = [{}];
|
|
1107
|
-
return [4
|
|
1107
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1108
1108
|
case 5:
|
|
1109
1109
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1110
|
-
return [3
|
|
1110
|
+
return [3, 9];
|
|
1111
1111
|
case 6:
|
|
1112
1112
|
_e = [{}];
|
|
1113
|
-
return [4
|
|
1113
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1114
1114
|
case 7:
|
|
1115
1115
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1116
|
-
return [3
|
|
1116
|
+
return [3, 9];
|
|
1117
1117
|
case 8:
|
|
1118
1118
|
parsedBody = parsedOutput.body;
|
|
1119
1119
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1123,7 +1123,7 @@ var deserializeAws_json1_1DeleteMedicalTranscriptionJobCommandError = function (
|
|
|
1123
1123
|
message = response.message || response.Message || errorCode;
|
|
1124
1124
|
response.message = message;
|
|
1125
1125
|
delete response.Message;
|
|
1126
|
-
return [2
|
|
1126
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1127
1127
|
}
|
|
1128
1128
|
});
|
|
1129
1129
|
}); };
|
|
@@ -1133,15 +1133,15 @@ export var deserializeAws_json1_1DeleteMedicalVocabularyCommand = function (outp
|
|
|
1133
1133
|
switch (_a.label) {
|
|
1134
1134
|
case 0:
|
|
1135
1135
|
if (output.statusCode >= 300) {
|
|
1136
|
-
return [2
|
|
1136
|
+
return [2, deserializeAws_json1_1DeleteMedicalVocabularyCommandError(output, context)];
|
|
1137
1137
|
}
|
|
1138
|
-
return [4
|
|
1138
|
+
return [4, collectBody(output.body, context)];
|
|
1139
1139
|
case 1:
|
|
1140
1140
|
_a.sent();
|
|
1141
1141
|
response = {
|
|
1142
1142
|
$metadata: deserializeMetadata(output),
|
|
1143
1143
|
};
|
|
1144
|
-
return [2
|
|
1144
|
+
return [2, Promise.resolve(response)];
|
|
1145
1145
|
}
|
|
1146
1146
|
});
|
|
1147
1147
|
}); };
|
|
@@ -1153,47 +1153,47 @@ var deserializeAws_json1_1DeleteMedicalVocabularyCommandError = function (output
|
|
|
1153
1153
|
case 0:
|
|
1154
1154
|
_a = [__assign({}, output)];
|
|
1155
1155
|
_g = {};
|
|
1156
|
-
return [4
|
|
1156
|
+
return [4, parseBody(output.body, context)];
|
|
1157
1157
|
case 1:
|
|
1158
1158
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1159
1159
|
errorCode = "UnknownError";
|
|
1160
1160
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
1161
|
_b = errorCode;
|
|
1162
1162
|
switch (_b) {
|
|
1163
|
-
case "BadRequestException": return [3
|
|
1164
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1165
|
-
case "InternalFailureException": return [3
|
|
1166
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1167
|
-
case "LimitExceededException": return [3
|
|
1168
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1169
|
-
case "NotFoundException": return [3
|
|
1170
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
1163
|
+
case "BadRequestException": return [3, 2];
|
|
1164
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1165
|
+
case "InternalFailureException": return [3, 4];
|
|
1166
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1167
|
+
case "LimitExceededException": return [3, 6];
|
|
1168
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1169
|
+
case "NotFoundException": return [3, 8];
|
|
1170
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
1171
1171
|
}
|
|
1172
|
-
return [3
|
|
1172
|
+
return [3, 10];
|
|
1173
1173
|
case 2:
|
|
1174
1174
|
_c = [{}];
|
|
1175
|
-
return [4
|
|
1175
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1176
1176
|
case 3:
|
|
1177
1177
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1178
|
-
return [3
|
|
1178
|
+
return [3, 11];
|
|
1179
1179
|
case 4:
|
|
1180
1180
|
_d = [{}];
|
|
1181
|
-
return [4
|
|
1181
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1182
1182
|
case 5:
|
|
1183
1183
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1184
|
-
return [3
|
|
1184
|
+
return [3, 11];
|
|
1185
1185
|
case 6:
|
|
1186
1186
|
_e = [{}];
|
|
1187
|
-
return [4
|
|
1187
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1188
1188
|
case 7:
|
|
1189
1189
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1190
|
-
return [3
|
|
1190
|
+
return [3, 11];
|
|
1191
1191
|
case 8:
|
|
1192
1192
|
_f = [{}];
|
|
1193
|
-
return [4
|
|
1193
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1194
1194
|
case 9:
|
|
1195
1195
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1196
|
-
return [3
|
|
1196
|
+
return [3, 11];
|
|
1197
1197
|
case 10:
|
|
1198
1198
|
parsedBody = parsedOutput.body;
|
|
1199
1199
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1203,7 +1203,7 @@ var deserializeAws_json1_1DeleteMedicalVocabularyCommandError = function (output
|
|
|
1203
1203
|
message = response.message || response.Message || errorCode;
|
|
1204
1204
|
response.message = message;
|
|
1205
1205
|
delete response.Message;
|
|
1206
|
-
return [2
|
|
1206
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1207
1207
|
}
|
|
1208
1208
|
});
|
|
1209
1209
|
}); };
|
|
@@ -1213,15 +1213,15 @@ export var deserializeAws_json1_1DeleteTranscriptionJobCommand = function (outpu
|
|
|
1213
1213
|
switch (_a.label) {
|
|
1214
1214
|
case 0:
|
|
1215
1215
|
if (output.statusCode >= 300) {
|
|
1216
|
-
return [2
|
|
1216
|
+
return [2, deserializeAws_json1_1DeleteTranscriptionJobCommandError(output, context)];
|
|
1217
1217
|
}
|
|
1218
|
-
return [4
|
|
1218
|
+
return [4, collectBody(output.body, context)];
|
|
1219
1219
|
case 1:
|
|
1220
1220
|
_a.sent();
|
|
1221
1221
|
response = {
|
|
1222
1222
|
$metadata: deserializeMetadata(output),
|
|
1223
1223
|
};
|
|
1224
|
-
return [2
|
|
1224
|
+
return [2, Promise.resolve(response)];
|
|
1225
1225
|
}
|
|
1226
1226
|
});
|
|
1227
1227
|
}); };
|
|
@@ -1233,39 +1233,39 @@ var deserializeAws_json1_1DeleteTranscriptionJobCommandError = function (output,
|
|
|
1233
1233
|
case 0:
|
|
1234
1234
|
_a = [__assign({}, output)];
|
|
1235
1235
|
_f = {};
|
|
1236
|
-
return [4
|
|
1236
|
+
return [4, parseBody(output.body, context)];
|
|
1237
1237
|
case 1:
|
|
1238
1238
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1239
1239
|
errorCode = "UnknownError";
|
|
1240
1240
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
1241
|
_b = errorCode;
|
|
1242
1242
|
switch (_b) {
|
|
1243
|
-
case "BadRequestException": return [3
|
|
1244
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1245
|
-
case "InternalFailureException": return [3
|
|
1246
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1247
|
-
case "LimitExceededException": return [3
|
|
1248
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1243
|
+
case "BadRequestException": return [3, 2];
|
|
1244
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1245
|
+
case "InternalFailureException": return [3, 4];
|
|
1246
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1247
|
+
case "LimitExceededException": return [3, 6];
|
|
1248
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1249
1249
|
}
|
|
1250
|
-
return [3
|
|
1250
|
+
return [3, 8];
|
|
1251
1251
|
case 2:
|
|
1252
1252
|
_c = [{}];
|
|
1253
|
-
return [4
|
|
1253
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1254
1254
|
case 3:
|
|
1255
1255
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1256
|
-
return [3
|
|
1256
|
+
return [3, 9];
|
|
1257
1257
|
case 4:
|
|
1258
1258
|
_d = [{}];
|
|
1259
|
-
return [4
|
|
1259
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1260
1260
|
case 5:
|
|
1261
1261
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1262
|
-
return [3
|
|
1262
|
+
return [3, 9];
|
|
1263
1263
|
case 6:
|
|
1264
1264
|
_e = [{}];
|
|
1265
|
-
return [4
|
|
1265
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1266
1266
|
case 7:
|
|
1267
1267
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1268
|
-
return [3
|
|
1268
|
+
return [3, 9];
|
|
1269
1269
|
case 8:
|
|
1270
1270
|
parsedBody = parsedOutput.body;
|
|
1271
1271
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1275,7 +1275,7 @@ var deserializeAws_json1_1DeleteTranscriptionJobCommandError = function (output,
|
|
|
1275
1275
|
message = response.message || response.Message || errorCode;
|
|
1276
1276
|
response.message = message;
|
|
1277
1277
|
delete response.Message;
|
|
1278
|
-
return [2
|
|
1278
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1279
1279
|
}
|
|
1280
1280
|
});
|
|
1281
1281
|
}); };
|
|
@@ -1285,15 +1285,15 @@ export var deserializeAws_json1_1DeleteVocabularyCommand = function (output, con
|
|
|
1285
1285
|
switch (_a.label) {
|
|
1286
1286
|
case 0:
|
|
1287
1287
|
if (output.statusCode >= 300) {
|
|
1288
|
-
return [2
|
|
1288
|
+
return [2, deserializeAws_json1_1DeleteVocabularyCommandError(output, context)];
|
|
1289
1289
|
}
|
|
1290
|
-
return [4
|
|
1290
|
+
return [4, collectBody(output.body, context)];
|
|
1291
1291
|
case 1:
|
|
1292
1292
|
_a.sent();
|
|
1293
1293
|
response = {
|
|
1294
1294
|
$metadata: deserializeMetadata(output),
|
|
1295
1295
|
};
|
|
1296
|
-
return [2
|
|
1296
|
+
return [2, Promise.resolve(response)];
|
|
1297
1297
|
}
|
|
1298
1298
|
});
|
|
1299
1299
|
}); };
|
|
@@ -1305,47 +1305,47 @@ var deserializeAws_json1_1DeleteVocabularyCommandError = function (output, conte
|
|
|
1305
1305
|
case 0:
|
|
1306
1306
|
_a = [__assign({}, output)];
|
|
1307
1307
|
_g = {};
|
|
1308
|
-
return [4
|
|
1308
|
+
return [4, parseBody(output.body, context)];
|
|
1309
1309
|
case 1:
|
|
1310
1310
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1311
1311
|
errorCode = "UnknownError";
|
|
1312
1312
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1313
1313
|
_b = errorCode;
|
|
1314
1314
|
switch (_b) {
|
|
1315
|
-
case "BadRequestException": return [3
|
|
1316
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1317
|
-
case "InternalFailureException": return [3
|
|
1318
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1319
|
-
case "LimitExceededException": return [3
|
|
1320
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1321
|
-
case "NotFoundException": return [3
|
|
1322
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
1315
|
+
case "BadRequestException": return [3, 2];
|
|
1316
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1317
|
+
case "InternalFailureException": return [3, 4];
|
|
1318
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1319
|
+
case "LimitExceededException": return [3, 6];
|
|
1320
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1321
|
+
case "NotFoundException": return [3, 8];
|
|
1322
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
1323
1323
|
}
|
|
1324
|
-
return [3
|
|
1324
|
+
return [3, 10];
|
|
1325
1325
|
case 2:
|
|
1326
1326
|
_c = [{}];
|
|
1327
|
-
return [4
|
|
1327
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1328
1328
|
case 3:
|
|
1329
1329
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1330
|
-
return [3
|
|
1330
|
+
return [3, 11];
|
|
1331
1331
|
case 4:
|
|
1332
1332
|
_d = [{}];
|
|
1333
|
-
return [4
|
|
1333
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1334
1334
|
case 5:
|
|
1335
1335
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1336
|
-
return [3
|
|
1336
|
+
return [3, 11];
|
|
1337
1337
|
case 6:
|
|
1338
1338
|
_e = [{}];
|
|
1339
|
-
return [4
|
|
1339
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1340
1340
|
case 7:
|
|
1341
1341
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1342
|
-
return [3
|
|
1342
|
+
return [3, 11];
|
|
1343
1343
|
case 8:
|
|
1344
1344
|
_f = [{}];
|
|
1345
|
-
return [4
|
|
1345
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1346
1346
|
case 9:
|
|
1347
1347
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1348
|
-
return [3
|
|
1348
|
+
return [3, 11];
|
|
1349
1349
|
case 10:
|
|
1350
1350
|
parsedBody = parsedOutput.body;
|
|
1351
1351
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1355,7 +1355,7 @@ var deserializeAws_json1_1DeleteVocabularyCommandError = function (output, conte
|
|
|
1355
1355
|
message = response.message || response.Message || errorCode;
|
|
1356
1356
|
response.message = message;
|
|
1357
1357
|
delete response.Message;
|
|
1358
|
-
return [2
|
|
1358
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1359
1359
|
}
|
|
1360
1360
|
});
|
|
1361
1361
|
}); };
|
|
@@ -1365,15 +1365,15 @@ export var deserializeAws_json1_1DeleteVocabularyFilterCommand = function (outpu
|
|
|
1365
1365
|
switch (_a.label) {
|
|
1366
1366
|
case 0:
|
|
1367
1367
|
if (output.statusCode >= 300) {
|
|
1368
|
-
return [2
|
|
1368
|
+
return [2, deserializeAws_json1_1DeleteVocabularyFilterCommandError(output, context)];
|
|
1369
1369
|
}
|
|
1370
|
-
return [4
|
|
1370
|
+
return [4, collectBody(output.body, context)];
|
|
1371
1371
|
case 1:
|
|
1372
1372
|
_a.sent();
|
|
1373
1373
|
response = {
|
|
1374
1374
|
$metadata: deserializeMetadata(output),
|
|
1375
1375
|
};
|
|
1376
|
-
return [2
|
|
1376
|
+
return [2, Promise.resolve(response)];
|
|
1377
1377
|
}
|
|
1378
1378
|
});
|
|
1379
1379
|
}); };
|
|
@@ -1385,47 +1385,47 @@ var deserializeAws_json1_1DeleteVocabularyFilterCommandError = function (output,
|
|
|
1385
1385
|
case 0:
|
|
1386
1386
|
_a = [__assign({}, output)];
|
|
1387
1387
|
_g = {};
|
|
1388
|
-
return [4
|
|
1388
|
+
return [4, parseBody(output.body, context)];
|
|
1389
1389
|
case 1:
|
|
1390
1390
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1391
1391
|
errorCode = "UnknownError";
|
|
1392
1392
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1393
1393
|
_b = errorCode;
|
|
1394
1394
|
switch (_b) {
|
|
1395
|
-
case "BadRequestException": return [3
|
|
1396
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1397
|
-
case "InternalFailureException": return [3
|
|
1398
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1399
|
-
case "LimitExceededException": return [3
|
|
1400
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1401
|
-
case "NotFoundException": return [3
|
|
1402
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
1395
|
+
case "BadRequestException": return [3, 2];
|
|
1396
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1397
|
+
case "InternalFailureException": return [3, 4];
|
|
1398
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1399
|
+
case "LimitExceededException": return [3, 6];
|
|
1400
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1401
|
+
case "NotFoundException": return [3, 8];
|
|
1402
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
1403
1403
|
}
|
|
1404
|
-
return [3
|
|
1404
|
+
return [3, 10];
|
|
1405
1405
|
case 2:
|
|
1406
1406
|
_c = [{}];
|
|
1407
|
-
return [4
|
|
1407
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1408
1408
|
case 3:
|
|
1409
1409
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1410
|
-
return [3
|
|
1410
|
+
return [3, 11];
|
|
1411
1411
|
case 4:
|
|
1412
1412
|
_d = [{}];
|
|
1413
|
-
return [4
|
|
1413
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1414
1414
|
case 5:
|
|
1415
1415
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1416
|
-
return [3
|
|
1416
|
+
return [3, 11];
|
|
1417
1417
|
case 6:
|
|
1418
1418
|
_e = [{}];
|
|
1419
|
-
return [4
|
|
1419
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1420
1420
|
case 7:
|
|
1421
1421
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1422
|
-
return [3
|
|
1422
|
+
return [3, 11];
|
|
1423
1423
|
case 8:
|
|
1424
1424
|
_f = [{}];
|
|
1425
|
-
return [4
|
|
1425
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1426
1426
|
case 9:
|
|
1427
1427
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1428
|
-
return [3
|
|
1428
|
+
return [3, 11];
|
|
1429
1429
|
case 10:
|
|
1430
1430
|
parsedBody = parsedOutput.body;
|
|
1431
1431
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1435,7 +1435,7 @@ var deserializeAws_json1_1DeleteVocabularyFilterCommandError = function (output,
|
|
|
1435
1435
|
message = response.message || response.Message || errorCode;
|
|
1436
1436
|
response.message = message;
|
|
1437
1437
|
delete response.Message;
|
|
1438
|
-
return [2
|
|
1438
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1439
1439
|
}
|
|
1440
1440
|
});
|
|
1441
1441
|
}); };
|
|
@@ -1445,15 +1445,15 @@ export var deserializeAws_json1_1DescribeLanguageModelCommand = function (output
|
|
|
1445
1445
|
switch (_a.label) {
|
|
1446
1446
|
case 0:
|
|
1447
1447
|
if (output.statusCode >= 300) {
|
|
1448
|
-
return [2
|
|
1448
|
+
return [2, deserializeAws_json1_1DescribeLanguageModelCommandError(output, context)];
|
|
1449
1449
|
}
|
|
1450
|
-
return [4
|
|
1450
|
+
return [4, parseBody(output.body, context)];
|
|
1451
1451
|
case 1:
|
|
1452
1452
|
data = _a.sent();
|
|
1453
1453
|
contents = {};
|
|
1454
1454
|
contents = deserializeAws_json1_1DescribeLanguageModelResponse(data, context);
|
|
1455
1455
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1456
|
-
return [2
|
|
1456
|
+
return [2, Promise.resolve(response)];
|
|
1457
1457
|
}
|
|
1458
1458
|
});
|
|
1459
1459
|
}); };
|
|
@@ -1465,47 +1465,47 @@ var deserializeAws_json1_1DescribeLanguageModelCommandError = function (output,
|
|
|
1465
1465
|
case 0:
|
|
1466
1466
|
_a = [__assign({}, output)];
|
|
1467
1467
|
_g = {};
|
|
1468
|
-
return [4
|
|
1468
|
+
return [4, parseBody(output.body, context)];
|
|
1469
1469
|
case 1:
|
|
1470
1470
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1471
1471
|
errorCode = "UnknownError";
|
|
1472
1472
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1473
1473
|
_b = errorCode;
|
|
1474
1474
|
switch (_b) {
|
|
1475
|
-
case "BadRequestException": return [3
|
|
1476
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1477
|
-
case "InternalFailureException": return [3
|
|
1478
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1479
|
-
case "LimitExceededException": return [3
|
|
1480
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1481
|
-
case "NotFoundException": return [3
|
|
1482
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
1475
|
+
case "BadRequestException": return [3, 2];
|
|
1476
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1477
|
+
case "InternalFailureException": return [3, 4];
|
|
1478
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1479
|
+
case "LimitExceededException": return [3, 6];
|
|
1480
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1481
|
+
case "NotFoundException": return [3, 8];
|
|
1482
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
1483
1483
|
}
|
|
1484
|
-
return [3
|
|
1484
|
+
return [3, 10];
|
|
1485
1485
|
case 2:
|
|
1486
1486
|
_c = [{}];
|
|
1487
|
-
return [4
|
|
1487
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1488
1488
|
case 3:
|
|
1489
1489
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1490
|
-
return [3
|
|
1490
|
+
return [3, 11];
|
|
1491
1491
|
case 4:
|
|
1492
1492
|
_d = [{}];
|
|
1493
|
-
return [4
|
|
1493
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1494
1494
|
case 5:
|
|
1495
1495
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1496
|
-
return [3
|
|
1496
|
+
return [3, 11];
|
|
1497
1497
|
case 6:
|
|
1498
1498
|
_e = [{}];
|
|
1499
|
-
return [4
|
|
1499
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1500
1500
|
case 7:
|
|
1501
1501
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1502
|
-
return [3
|
|
1502
|
+
return [3, 11];
|
|
1503
1503
|
case 8:
|
|
1504
1504
|
_f = [{}];
|
|
1505
|
-
return [4
|
|
1505
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1506
1506
|
case 9:
|
|
1507
1507
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1508
|
-
return [3
|
|
1508
|
+
return [3, 11];
|
|
1509
1509
|
case 10:
|
|
1510
1510
|
parsedBody = parsedOutput.body;
|
|
1511
1511
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1515,7 +1515,7 @@ var deserializeAws_json1_1DescribeLanguageModelCommandError = function (output,
|
|
|
1515
1515
|
message = response.message || response.Message || errorCode;
|
|
1516
1516
|
response.message = message;
|
|
1517
1517
|
delete response.Message;
|
|
1518
|
-
return [2
|
|
1518
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1519
1519
|
}
|
|
1520
1520
|
});
|
|
1521
1521
|
}); };
|
|
@@ -1525,15 +1525,15 @@ export var deserializeAws_json1_1GetCallAnalyticsCategoryCommand = function (out
|
|
|
1525
1525
|
switch (_a.label) {
|
|
1526
1526
|
case 0:
|
|
1527
1527
|
if (output.statusCode >= 300) {
|
|
1528
|
-
return [2
|
|
1528
|
+
return [2, deserializeAws_json1_1GetCallAnalyticsCategoryCommandError(output, context)];
|
|
1529
1529
|
}
|
|
1530
|
-
return [4
|
|
1530
|
+
return [4, parseBody(output.body, context)];
|
|
1531
1531
|
case 1:
|
|
1532
1532
|
data = _a.sent();
|
|
1533
1533
|
contents = {};
|
|
1534
1534
|
contents = deserializeAws_json1_1GetCallAnalyticsCategoryResponse(data, context);
|
|
1535
1535
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1536
|
-
return [2
|
|
1536
|
+
return [2, Promise.resolve(response)];
|
|
1537
1537
|
}
|
|
1538
1538
|
});
|
|
1539
1539
|
}); };
|
|
@@ -1545,47 +1545,47 @@ var deserializeAws_json1_1GetCallAnalyticsCategoryCommandError = function (outpu
|
|
|
1545
1545
|
case 0:
|
|
1546
1546
|
_a = [__assign({}, output)];
|
|
1547
1547
|
_g = {};
|
|
1548
|
-
return [4
|
|
1548
|
+
return [4, parseBody(output.body, context)];
|
|
1549
1549
|
case 1:
|
|
1550
1550
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1551
1551
|
errorCode = "UnknownError";
|
|
1552
1552
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1553
1553
|
_b = errorCode;
|
|
1554
1554
|
switch (_b) {
|
|
1555
|
-
case "BadRequestException": return [3
|
|
1556
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1557
|
-
case "InternalFailureException": return [3
|
|
1558
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1559
|
-
case "LimitExceededException": return [3
|
|
1560
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1561
|
-
case "NotFoundException": return [3
|
|
1562
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
1555
|
+
case "BadRequestException": return [3, 2];
|
|
1556
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1557
|
+
case "InternalFailureException": return [3, 4];
|
|
1558
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1559
|
+
case "LimitExceededException": return [3, 6];
|
|
1560
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1561
|
+
case "NotFoundException": return [3, 8];
|
|
1562
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
1563
1563
|
}
|
|
1564
|
-
return [3
|
|
1564
|
+
return [3, 10];
|
|
1565
1565
|
case 2:
|
|
1566
1566
|
_c = [{}];
|
|
1567
|
-
return [4
|
|
1567
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1568
1568
|
case 3:
|
|
1569
1569
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1570
|
-
return [3
|
|
1570
|
+
return [3, 11];
|
|
1571
1571
|
case 4:
|
|
1572
1572
|
_d = [{}];
|
|
1573
|
-
return [4
|
|
1573
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1574
1574
|
case 5:
|
|
1575
1575
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1576
|
-
return [3
|
|
1576
|
+
return [3, 11];
|
|
1577
1577
|
case 6:
|
|
1578
1578
|
_e = [{}];
|
|
1579
|
-
return [4
|
|
1579
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1580
1580
|
case 7:
|
|
1581
1581
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1582
|
-
return [3
|
|
1582
|
+
return [3, 11];
|
|
1583
1583
|
case 8:
|
|
1584
1584
|
_f = [{}];
|
|
1585
|
-
return [4
|
|
1585
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1586
1586
|
case 9:
|
|
1587
1587
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1588
|
-
return [3
|
|
1588
|
+
return [3, 11];
|
|
1589
1589
|
case 10:
|
|
1590
1590
|
parsedBody = parsedOutput.body;
|
|
1591
1591
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1595,7 +1595,7 @@ var deserializeAws_json1_1GetCallAnalyticsCategoryCommandError = function (outpu
|
|
|
1595
1595
|
message = response.message || response.Message || errorCode;
|
|
1596
1596
|
response.message = message;
|
|
1597
1597
|
delete response.Message;
|
|
1598
|
-
return [2
|
|
1598
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1599
1599
|
}
|
|
1600
1600
|
});
|
|
1601
1601
|
}); };
|
|
@@ -1605,15 +1605,15 @@ export var deserializeAws_json1_1GetCallAnalyticsJobCommand = function (output,
|
|
|
1605
1605
|
switch (_a.label) {
|
|
1606
1606
|
case 0:
|
|
1607
1607
|
if (output.statusCode >= 300) {
|
|
1608
|
-
return [2
|
|
1608
|
+
return [2, deserializeAws_json1_1GetCallAnalyticsJobCommandError(output, context)];
|
|
1609
1609
|
}
|
|
1610
|
-
return [4
|
|
1610
|
+
return [4, parseBody(output.body, context)];
|
|
1611
1611
|
case 1:
|
|
1612
1612
|
data = _a.sent();
|
|
1613
1613
|
contents = {};
|
|
1614
1614
|
contents = deserializeAws_json1_1GetCallAnalyticsJobResponse(data, context);
|
|
1615
1615
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1616
|
-
return [2
|
|
1616
|
+
return [2, Promise.resolve(response)];
|
|
1617
1617
|
}
|
|
1618
1618
|
});
|
|
1619
1619
|
}); };
|
|
@@ -1625,47 +1625,47 @@ var deserializeAws_json1_1GetCallAnalyticsJobCommandError = function (output, co
|
|
|
1625
1625
|
case 0:
|
|
1626
1626
|
_a = [__assign({}, output)];
|
|
1627
1627
|
_g = {};
|
|
1628
|
-
return [4
|
|
1628
|
+
return [4, parseBody(output.body, context)];
|
|
1629
1629
|
case 1:
|
|
1630
1630
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1631
1631
|
errorCode = "UnknownError";
|
|
1632
1632
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1633
1633
|
_b = errorCode;
|
|
1634
1634
|
switch (_b) {
|
|
1635
|
-
case "BadRequestException": return [3
|
|
1636
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1637
|
-
case "InternalFailureException": return [3
|
|
1638
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1639
|
-
case "LimitExceededException": return [3
|
|
1640
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1641
|
-
case "NotFoundException": return [3
|
|
1642
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
1635
|
+
case "BadRequestException": return [3, 2];
|
|
1636
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1637
|
+
case "InternalFailureException": return [3, 4];
|
|
1638
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1639
|
+
case "LimitExceededException": return [3, 6];
|
|
1640
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1641
|
+
case "NotFoundException": return [3, 8];
|
|
1642
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
1643
1643
|
}
|
|
1644
|
-
return [3
|
|
1644
|
+
return [3, 10];
|
|
1645
1645
|
case 2:
|
|
1646
1646
|
_c = [{}];
|
|
1647
|
-
return [4
|
|
1647
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1648
1648
|
case 3:
|
|
1649
1649
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1650
|
-
return [3
|
|
1650
|
+
return [3, 11];
|
|
1651
1651
|
case 4:
|
|
1652
1652
|
_d = [{}];
|
|
1653
|
-
return [4
|
|
1653
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1654
1654
|
case 5:
|
|
1655
1655
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1656
|
-
return [3
|
|
1656
|
+
return [3, 11];
|
|
1657
1657
|
case 6:
|
|
1658
1658
|
_e = [{}];
|
|
1659
|
-
return [4
|
|
1659
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1660
1660
|
case 7:
|
|
1661
1661
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1662
|
-
return [3
|
|
1662
|
+
return [3, 11];
|
|
1663
1663
|
case 8:
|
|
1664
1664
|
_f = [{}];
|
|
1665
|
-
return [4
|
|
1665
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1666
1666
|
case 9:
|
|
1667
1667
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1668
|
-
return [3
|
|
1668
|
+
return [3, 11];
|
|
1669
1669
|
case 10:
|
|
1670
1670
|
parsedBody = parsedOutput.body;
|
|
1671
1671
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1675,7 +1675,7 @@ var deserializeAws_json1_1GetCallAnalyticsJobCommandError = function (output, co
|
|
|
1675
1675
|
message = response.message || response.Message || errorCode;
|
|
1676
1676
|
response.message = message;
|
|
1677
1677
|
delete response.Message;
|
|
1678
|
-
return [2
|
|
1678
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1679
1679
|
}
|
|
1680
1680
|
});
|
|
1681
1681
|
}); };
|
|
@@ -1685,15 +1685,15 @@ export var deserializeAws_json1_1GetMedicalTranscriptionJobCommand = function (o
|
|
|
1685
1685
|
switch (_a.label) {
|
|
1686
1686
|
case 0:
|
|
1687
1687
|
if (output.statusCode >= 300) {
|
|
1688
|
-
return [2
|
|
1688
|
+
return [2, deserializeAws_json1_1GetMedicalTranscriptionJobCommandError(output, context)];
|
|
1689
1689
|
}
|
|
1690
|
-
return [4
|
|
1690
|
+
return [4, parseBody(output.body, context)];
|
|
1691
1691
|
case 1:
|
|
1692
1692
|
data = _a.sent();
|
|
1693
1693
|
contents = {};
|
|
1694
1694
|
contents = deserializeAws_json1_1GetMedicalTranscriptionJobResponse(data, context);
|
|
1695
1695
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1696
|
-
return [2
|
|
1696
|
+
return [2, Promise.resolve(response)];
|
|
1697
1697
|
}
|
|
1698
1698
|
});
|
|
1699
1699
|
}); };
|
|
@@ -1705,47 +1705,47 @@ var deserializeAws_json1_1GetMedicalTranscriptionJobCommandError = function (out
|
|
|
1705
1705
|
case 0:
|
|
1706
1706
|
_a = [__assign({}, output)];
|
|
1707
1707
|
_g = {};
|
|
1708
|
-
return [4
|
|
1708
|
+
return [4, parseBody(output.body, context)];
|
|
1709
1709
|
case 1:
|
|
1710
1710
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1711
1711
|
errorCode = "UnknownError";
|
|
1712
1712
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
1713
|
_b = errorCode;
|
|
1714
1714
|
switch (_b) {
|
|
1715
|
-
case "BadRequestException": return [3
|
|
1716
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1717
|
-
case "InternalFailureException": return [3
|
|
1718
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1719
|
-
case "LimitExceededException": return [3
|
|
1720
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1721
|
-
case "NotFoundException": return [3
|
|
1722
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
1715
|
+
case "BadRequestException": return [3, 2];
|
|
1716
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1717
|
+
case "InternalFailureException": return [3, 4];
|
|
1718
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1719
|
+
case "LimitExceededException": return [3, 6];
|
|
1720
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1721
|
+
case "NotFoundException": return [3, 8];
|
|
1722
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
1723
1723
|
}
|
|
1724
|
-
return [3
|
|
1724
|
+
return [3, 10];
|
|
1725
1725
|
case 2:
|
|
1726
1726
|
_c = [{}];
|
|
1727
|
-
return [4
|
|
1727
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1728
1728
|
case 3:
|
|
1729
1729
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1730
|
-
return [3
|
|
1730
|
+
return [3, 11];
|
|
1731
1731
|
case 4:
|
|
1732
1732
|
_d = [{}];
|
|
1733
|
-
return [4
|
|
1733
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1734
1734
|
case 5:
|
|
1735
1735
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1736
|
-
return [3
|
|
1736
|
+
return [3, 11];
|
|
1737
1737
|
case 6:
|
|
1738
1738
|
_e = [{}];
|
|
1739
|
-
return [4
|
|
1739
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1740
1740
|
case 7:
|
|
1741
1741
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1742
|
-
return [3
|
|
1742
|
+
return [3, 11];
|
|
1743
1743
|
case 8:
|
|
1744
1744
|
_f = [{}];
|
|
1745
|
-
return [4
|
|
1745
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1746
1746
|
case 9:
|
|
1747
1747
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1748
|
-
return [3
|
|
1748
|
+
return [3, 11];
|
|
1749
1749
|
case 10:
|
|
1750
1750
|
parsedBody = parsedOutput.body;
|
|
1751
1751
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1755,7 +1755,7 @@ var deserializeAws_json1_1GetMedicalTranscriptionJobCommandError = function (out
|
|
|
1755
1755
|
message = response.message || response.Message || errorCode;
|
|
1756
1756
|
response.message = message;
|
|
1757
1757
|
delete response.Message;
|
|
1758
|
-
return [2
|
|
1758
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1759
1759
|
}
|
|
1760
1760
|
});
|
|
1761
1761
|
}); };
|
|
@@ -1765,15 +1765,15 @@ export var deserializeAws_json1_1GetMedicalVocabularyCommand = function (output,
|
|
|
1765
1765
|
switch (_a.label) {
|
|
1766
1766
|
case 0:
|
|
1767
1767
|
if (output.statusCode >= 300) {
|
|
1768
|
-
return [2
|
|
1768
|
+
return [2, deserializeAws_json1_1GetMedicalVocabularyCommandError(output, context)];
|
|
1769
1769
|
}
|
|
1770
|
-
return [4
|
|
1770
|
+
return [4, parseBody(output.body, context)];
|
|
1771
1771
|
case 1:
|
|
1772
1772
|
data = _a.sent();
|
|
1773
1773
|
contents = {};
|
|
1774
1774
|
contents = deserializeAws_json1_1GetMedicalVocabularyResponse(data, context);
|
|
1775
1775
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1776
|
-
return [2
|
|
1776
|
+
return [2, Promise.resolve(response)];
|
|
1777
1777
|
}
|
|
1778
1778
|
});
|
|
1779
1779
|
}); };
|
|
@@ -1785,47 +1785,47 @@ var deserializeAws_json1_1GetMedicalVocabularyCommandError = function (output, c
|
|
|
1785
1785
|
case 0:
|
|
1786
1786
|
_a = [__assign({}, output)];
|
|
1787
1787
|
_g = {};
|
|
1788
|
-
return [4
|
|
1788
|
+
return [4, parseBody(output.body, context)];
|
|
1789
1789
|
case 1:
|
|
1790
1790
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1791
1791
|
errorCode = "UnknownError";
|
|
1792
1792
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
1793
|
_b = errorCode;
|
|
1794
1794
|
switch (_b) {
|
|
1795
|
-
case "BadRequestException": return [3
|
|
1796
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1797
|
-
case "InternalFailureException": return [3
|
|
1798
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1799
|
-
case "LimitExceededException": return [3
|
|
1800
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1801
|
-
case "NotFoundException": return [3
|
|
1802
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
1795
|
+
case "BadRequestException": return [3, 2];
|
|
1796
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1797
|
+
case "InternalFailureException": return [3, 4];
|
|
1798
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1799
|
+
case "LimitExceededException": return [3, 6];
|
|
1800
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1801
|
+
case "NotFoundException": return [3, 8];
|
|
1802
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
1803
1803
|
}
|
|
1804
|
-
return [3
|
|
1804
|
+
return [3, 10];
|
|
1805
1805
|
case 2:
|
|
1806
1806
|
_c = [{}];
|
|
1807
|
-
return [4
|
|
1807
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1808
1808
|
case 3:
|
|
1809
1809
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1810
|
-
return [3
|
|
1810
|
+
return [3, 11];
|
|
1811
1811
|
case 4:
|
|
1812
1812
|
_d = [{}];
|
|
1813
|
-
return [4
|
|
1813
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1814
1814
|
case 5:
|
|
1815
1815
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1816
|
-
return [3
|
|
1816
|
+
return [3, 11];
|
|
1817
1817
|
case 6:
|
|
1818
1818
|
_e = [{}];
|
|
1819
|
-
return [4
|
|
1819
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1820
1820
|
case 7:
|
|
1821
1821
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1822
|
-
return [3
|
|
1822
|
+
return [3, 11];
|
|
1823
1823
|
case 8:
|
|
1824
1824
|
_f = [{}];
|
|
1825
|
-
return [4
|
|
1825
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1826
1826
|
case 9:
|
|
1827
1827
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1828
|
-
return [3
|
|
1828
|
+
return [3, 11];
|
|
1829
1829
|
case 10:
|
|
1830
1830
|
parsedBody = parsedOutput.body;
|
|
1831
1831
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1835,7 +1835,7 @@ var deserializeAws_json1_1GetMedicalVocabularyCommandError = function (output, c
|
|
|
1835
1835
|
message = response.message || response.Message || errorCode;
|
|
1836
1836
|
response.message = message;
|
|
1837
1837
|
delete response.Message;
|
|
1838
|
-
return [2
|
|
1838
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1839
1839
|
}
|
|
1840
1840
|
});
|
|
1841
1841
|
}); };
|
|
@@ -1845,15 +1845,15 @@ export var deserializeAws_json1_1GetTranscriptionJobCommand = function (output,
|
|
|
1845
1845
|
switch (_a.label) {
|
|
1846
1846
|
case 0:
|
|
1847
1847
|
if (output.statusCode >= 300) {
|
|
1848
|
-
return [2
|
|
1848
|
+
return [2, deserializeAws_json1_1GetTranscriptionJobCommandError(output, context)];
|
|
1849
1849
|
}
|
|
1850
|
-
return [4
|
|
1850
|
+
return [4, parseBody(output.body, context)];
|
|
1851
1851
|
case 1:
|
|
1852
1852
|
data = _a.sent();
|
|
1853
1853
|
contents = {};
|
|
1854
1854
|
contents = deserializeAws_json1_1GetTranscriptionJobResponse(data, context);
|
|
1855
1855
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1856
|
-
return [2
|
|
1856
|
+
return [2, Promise.resolve(response)];
|
|
1857
1857
|
}
|
|
1858
1858
|
});
|
|
1859
1859
|
}); };
|
|
@@ -1865,47 +1865,47 @@ var deserializeAws_json1_1GetTranscriptionJobCommandError = function (output, co
|
|
|
1865
1865
|
case 0:
|
|
1866
1866
|
_a = [__assign({}, output)];
|
|
1867
1867
|
_g = {};
|
|
1868
|
-
return [4
|
|
1868
|
+
return [4, parseBody(output.body, context)];
|
|
1869
1869
|
case 1:
|
|
1870
1870
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1871
1871
|
errorCode = "UnknownError";
|
|
1872
1872
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1873
1873
|
_b = errorCode;
|
|
1874
1874
|
switch (_b) {
|
|
1875
|
-
case "BadRequestException": return [3
|
|
1876
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1877
|
-
case "InternalFailureException": return [3
|
|
1878
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1879
|
-
case "LimitExceededException": return [3
|
|
1880
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1881
|
-
case "NotFoundException": return [3
|
|
1882
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
1875
|
+
case "BadRequestException": return [3, 2];
|
|
1876
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1877
|
+
case "InternalFailureException": return [3, 4];
|
|
1878
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1879
|
+
case "LimitExceededException": return [3, 6];
|
|
1880
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1881
|
+
case "NotFoundException": return [3, 8];
|
|
1882
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
1883
1883
|
}
|
|
1884
|
-
return [3
|
|
1884
|
+
return [3, 10];
|
|
1885
1885
|
case 2:
|
|
1886
1886
|
_c = [{}];
|
|
1887
|
-
return [4
|
|
1887
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1888
1888
|
case 3:
|
|
1889
1889
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1890
|
-
return [3
|
|
1890
|
+
return [3, 11];
|
|
1891
1891
|
case 4:
|
|
1892
1892
|
_d = [{}];
|
|
1893
|
-
return [4
|
|
1893
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1894
1894
|
case 5:
|
|
1895
1895
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1896
|
-
return [3
|
|
1896
|
+
return [3, 11];
|
|
1897
1897
|
case 6:
|
|
1898
1898
|
_e = [{}];
|
|
1899
|
-
return [4
|
|
1899
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1900
1900
|
case 7:
|
|
1901
1901
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1902
|
-
return [3
|
|
1902
|
+
return [3, 11];
|
|
1903
1903
|
case 8:
|
|
1904
1904
|
_f = [{}];
|
|
1905
|
-
return [4
|
|
1905
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1906
1906
|
case 9:
|
|
1907
1907
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1908
|
-
return [3
|
|
1908
|
+
return [3, 11];
|
|
1909
1909
|
case 10:
|
|
1910
1910
|
parsedBody = parsedOutput.body;
|
|
1911
1911
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1915,7 +1915,7 @@ var deserializeAws_json1_1GetTranscriptionJobCommandError = function (output, co
|
|
|
1915
1915
|
message = response.message || response.Message || errorCode;
|
|
1916
1916
|
response.message = message;
|
|
1917
1917
|
delete response.Message;
|
|
1918
|
-
return [2
|
|
1918
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1919
1919
|
}
|
|
1920
1920
|
});
|
|
1921
1921
|
}); };
|
|
@@ -1925,15 +1925,15 @@ export var deserializeAws_json1_1GetVocabularyCommand = function (output, contex
|
|
|
1925
1925
|
switch (_a.label) {
|
|
1926
1926
|
case 0:
|
|
1927
1927
|
if (output.statusCode >= 300) {
|
|
1928
|
-
return [2
|
|
1928
|
+
return [2, deserializeAws_json1_1GetVocabularyCommandError(output, context)];
|
|
1929
1929
|
}
|
|
1930
|
-
return [4
|
|
1930
|
+
return [4, parseBody(output.body, context)];
|
|
1931
1931
|
case 1:
|
|
1932
1932
|
data = _a.sent();
|
|
1933
1933
|
contents = {};
|
|
1934
1934
|
contents = deserializeAws_json1_1GetVocabularyResponse(data, context);
|
|
1935
1935
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1936
|
-
return [2
|
|
1936
|
+
return [2, Promise.resolve(response)];
|
|
1937
1937
|
}
|
|
1938
1938
|
});
|
|
1939
1939
|
}); };
|
|
@@ -1945,47 +1945,47 @@ var deserializeAws_json1_1GetVocabularyCommandError = function (output, context)
|
|
|
1945
1945
|
case 0:
|
|
1946
1946
|
_a = [__assign({}, output)];
|
|
1947
1947
|
_g = {};
|
|
1948
|
-
return [4
|
|
1948
|
+
return [4, parseBody(output.body, context)];
|
|
1949
1949
|
case 1:
|
|
1950
1950
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1951
1951
|
errorCode = "UnknownError";
|
|
1952
1952
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1953
1953
|
_b = errorCode;
|
|
1954
1954
|
switch (_b) {
|
|
1955
|
-
case "BadRequestException": return [3
|
|
1956
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
1957
|
-
case "InternalFailureException": return [3
|
|
1958
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
1959
|
-
case "LimitExceededException": return [3
|
|
1960
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
1961
|
-
case "NotFoundException": return [3
|
|
1962
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
1955
|
+
case "BadRequestException": return [3, 2];
|
|
1956
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
1957
|
+
case "InternalFailureException": return [3, 4];
|
|
1958
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
1959
|
+
case "LimitExceededException": return [3, 6];
|
|
1960
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
1961
|
+
case "NotFoundException": return [3, 8];
|
|
1962
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
1963
1963
|
}
|
|
1964
|
-
return [3
|
|
1964
|
+
return [3, 10];
|
|
1965
1965
|
case 2:
|
|
1966
1966
|
_c = [{}];
|
|
1967
|
-
return [4
|
|
1967
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1968
1968
|
case 3:
|
|
1969
1969
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1970
|
-
return [3
|
|
1970
|
+
return [3, 11];
|
|
1971
1971
|
case 4:
|
|
1972
1972
|
_d = [{}];
|
|
1973
|
-
return [4
|
|
1973
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
1974
1974
|
case 5:
|
|
1975
1975
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1976
|
-
return [3
|
|
1976
|
+
return [3, 11];
|
|
1977
1977
|
case 6:
|
|
1978
1978
|
_e = [{}];
|
|
1979
|
-
return [4
|
|
1979
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1980
1980
|
case 7:
|
|
1981
1981
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1982
|
-
return [3
|
|
1982
|
+
return [3, 11];
|
|
1983
1983
|
case 8:
|
|
1984
1984
|
_f = [{}];
|
|
1985
|
-
return [4
|
|
1985
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1986
1986
|
case 9:
|
|
1987
1987
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1988
|
-
return [3
|
|
1988
|
+
return [3, 11];
|
|
1989
1989
|
case 10:
|
|
1990
1990
|
parsedBody = parsedOutput.body;
|
|
1991
1991
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1995,7 +1995,7 @@ var deserializeAws_json1_1GetVocabularyCommandError = function (output, context)
|
|
|
1995
1995
|
message = response.message || response.Message || errorCode;
|
|
1996
1996
|
response.message = message;
|
|
1997
1997
|
delete response.Message;
|
|
1998
|
-
return [2
|
|
1998
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1999
1999
|
}
|
|
2000
2000
|
});
|
|
2001
2001
|
}); };
|
|
@@ -2005,15 +2005,15 @@ export var deserializeAws_json1_1GetVocabularyFilterCommand = function (output,
|
|
|
2005
2005
|
switch (_a.label) {
|
|
2006
2006
|
case 0:
|
|
2007
2007
|
if (output.statusCode >= 300) {
|
|
2008
|
-
return [2
|
|
2008
|
+
return [2, deserializeAws_json1_1GetVocabularyFilterCommandError(output, context)];
|
|
2009
2009
|
}
|
|
2010
|
-
return [4
|
|
2010
|
+
return [4, parseBody(output.body, context)];
|
|
2011
2011
|
case 1:
|
|
2012
2012
|
data = _a.sent();
|
|
2013
2013
|
contents = {};
|
|
2014
2014
|
contents = deserializeAws_json1_1GetVocabularyFilterResponse(data, context);
|
|
2015
2015
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2016
|
-
return [2
|
|
2016
|
+
return [2, Promise.resolve(response)];
|
|
2017
2017
|
}
|
|
2018
2018
|
});
|
|
2019
2019
|
}); };
|
|
@@ -2025,47 +2025,47 @@ var deserializeAws_json1_1GetVocabularyFilterCommandError = function (output, co
|
|
|
2025
2025
|
case 0:
|
|
2026
2026
|
_a = [__assign({}, output)];
|
|
2027
2027
|
_g = {};
|
|
2028
|
-
return [4
|
|
2028
|
+
return [4, parseBody(output.body, context)];
|
|
2029
2029
|
case 1:
|
|
2030
2030
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2031
2031
|
errorCode = "UnknownError";
|
|
2032
2032
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
2033
|
_b = errorCode;
|
|
2034
2034
|
switch (_b) {
|
|
2035
|
-
case "BadRequestException": return [3
|
|
2036
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2037
|
-
case "InternalFailureException": return [3
|
|
2038
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2039
|
-
case "LimitExceededException": return [3
|
|
2040
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2041
|
-
case "NotFoundException": return [3
|
|
2042
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
2035
|
+
case "BadRequestException": return [3, 2];
|
|
2036
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2037
|
+
case "InternalFailureException": return [3, 4];
|
|
2038
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
2039
|
+
case "LimitExceededException": return [3, 6];
|
|
2040
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
2041
|
+
case "NotFoundException": return [3, 8];
|
|
2042
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
2043
2043
|
}
|
|
2044
|
-
return [3
|
|
2044
|
+
return [3, 10];
|
|
2045
2045
|
case 2:
|
|
2046
2046
|
_c = [{}];
|
|
2047
|
-
return [4
|
|
2047
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2048
2048
|
case 3:
|
|
2049
2049
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2050
|
-
return [3
|
|
2050
|
+
return [3, 11];
|
|
2051
2051
|
case 4:
|
|
2052
2052
|
_d = [{}];
|
|
2053
|
-
return [4
|
|
2053
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2054
2054
|
case 5:
|
|
2055
2055
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2056
|
-
return [3
|
|
2056
|
+
return [3, 11];
|
|
2057
2057
|
case 6:
|
|
2058
2058
|
_e = [{}];
|
|
2059
|
-
return [4
|
|
2059
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2060
2060
|
case 7:
|
|
2061
2061
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2062
|
-
return [3
|
|
2062
|
+
return [3, 11];
|
|
2063
2063
|
case 8:
|
|
2064
2064
|
_f = [{}];
|
|
2065
|
-
return [4
|
|
2065
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2066
2066
|
case 9:
|
|
2067
2067
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2068
|
-
return [3
|
|
2068
|
+
return [3, 11];
|
|
2069
2069
|
case 10:
|
|
2070
2070
|
parsedBody = parsedOutput.body;
|
|
2071
2071
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2075,7 +2075,7 @@ var deserializeAws_json1_1GetVocabularyFilterCommandError = function (output, co
|
|
|
2075
2075
|
message = response.message || response.Message || errorCode;
|
|
2076
2076
|
response.message = message;
|
|
2077
2077
|
delete response.Message;
|
|
2078
|
-
return [2
|
|
2078
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2079
2079
|
}
|
|
2080
2080
|
});
|
|
2081
2081
|
}); };
|
|
@@ -2085,15 +2085,15 @@ export var deserializeAws_json1_1ListCallAnalyticsCategoriesCommand = function (
|
|
|
2085
2085
|
switch (_a.label) {
|
|
2086
2086
|
case 0:
|
|
2087
2087
|
if (output.statusCode >= 300) {
|
|
2088
|
-
return [2
|
|
2088
|
+
return [2, deserializeAws_json1_1ListCallAnalyticsCategoriesCommandError(output, context)];
|
|
2089
2089
|
}
|
|
2090
|
-
return [4
|
|
2090
|
+
return [4, parseBody(output.body, context)];
|
|
2091
2091
|
case 1:
|
|
2092
2092
|
data = _a.sent();
|
|
2093
2093
|
contents = {};
|
|
2094
2094
|
contents = deserializeAws_json1_1ListCallAnalyticsCategoriesResponse(data, context);
|
|
2095
2095
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2096
|
-
return [2
|
|
2096
|
+
return [2, Promise.resolve(response)];
|
|
2097
2097
|
}
|
|
2098
2098
|
});
|
|
2099
2099
|
}); };
|
|
@@ -2105,39 +2105,39 @@ var deserializeAws_json1_1ListCallAnalyticsCategoriesCommandError = function (ou
|
|
|
2105
2105
|
case 0:
|
|
2106
2106
|
_a = [__assign({}, output)];
|
|
2107
2107
|
_f = {};
|
|
2108
|
-
return [4
|
|
2108
|
+
return [4, parseBody(output.body, context)];
|
|
2109
2109
|
case 1:
|
|
2110
2110
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2111
2111
|
errorCode = "UnknownError";
|
|
2112
2112
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2113
2113
|
_b = errorCode;
|
|
2114
2114
|
switch (_b) {
|
|
2115
|
-
case "BadRequestException": return [3
|
|
2116
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2117
|
-
case "InternalFailureException": return [3
|
|
2118
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2119
|
-
case "LimitExceededException": return [3
|
|
2120
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2115
|
+
case "BadRequestException": return [3, 2];
|
|
2116
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2117
|
+
case "InternalFailureException": return [3, 4];
|
|
2118
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
2119
|
+
case "LimitExceededException": return [3, 6];
|
|
2120
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
2121
2121
|
}
|
|
2122
|
-
return [3
|
|
2122
|
+
return [3, 8];
|
|
2123
2123
|
case 2:
|
|
2124
2124
|
_c = [{}];
|
|
2125
|
-
return [4
|
|
2125
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2126
2126
|
case 3:
|
|
2127
2127
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2128
|
-
return [3
|
|
2128
|
+
return [3, 9];
|
|
2129
2129
|
case 4:
|
|
2130
2130
|
_d = [{}];
|
|
2131
|
-
return [4
|
|
2131
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2132
2132
|
case 5:
|
|
2133
2133
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2134
|
-
return [3
|
|
2134
|
+
return [3, 9];
|
|
2135
2135
|
case 6:
|
|
2136
2136
|
_e = [{}];
|
|
2137
|
-
return [4
|
|
2137
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2138
2138
|
case 7:
|
|
2139
2139
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2140
|
-
return [3
|
|
2140
|
+
return [3, 9];
|
|
2141
2141
|
case 8:
|
|
2142
2142
|
parsedBody = parsedOutput.body;
|
|
2143
2143
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2147,7 +2147,7 @@ var deserializeAws_json1_1ListCallAnalyticsCategoriesCommandError = function (ou
|
|
|
2147
2147
|
message = response.message || response.Message || errorCode;
|
|
2148
2148
|
response.message = message;
|
|
2149
2149
|
delete response.Message;
|
|
2150
|
-
return [2
|
|
2150
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2151
2151
|
}
|
|
2152
2152
|
});
|
|
2153
2153
|
}); };
|
|
@@ -2157,15 +2157,15 @@ export var deserializeAws_json1_1ListCallAnalyticsJobsCommand = function (output
|
|
|
2157
2157
|
switch (_a.label) {
|
|
2158
2158
|
case 0:
|
|
2159
2159
|
if (output.statusCode >= 300) {
|
|
2160
|
-
return [2
|
|
2160
|
+
return [2, deserializeAws_json1_1ListCallAnalyticsJobsCommandError(output, context)];
|
|
2161
2161
|
}
|
|
2162
|
-
return [4
|
|
2162
|
+
return [4, parseBody(output.body, context)];
|
|
2163
2163
|
case 1:
|
|
2164
2164
|
data = _a.sent();
|
|
2165
2165
|
contents = {};
|
|
2166
2166
|
contents = deserializeAws_json1_1ListCallAnalyticsJobsResponse(data, context);
|
|
2167
2167
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2168
|
-
return [2
|
|
2168
|
+
return [2, Promise.resolve(response)];
|
|
2169
2169
|
}
|
|
2170
2170
|
});
|
|
2171
2171
|
}); };
|
|
@@ -2177,39 +2177,39 @@ var deserializeAws_json1_1ListCallAnalyticsJobsCommandError = function (output,
|
|
|
2177
2177
|
case 0:
|
|
2178
2178
|
_a = [__assign({}, output)];
|
|
2179
2179
|
_f = {};
|
|
2180
|
-
return [4
|
|
2180
|
+
return [4, parseBody(output.body, context)];
|
|
2181
2181
|
case 1:
|
|
2182
2182
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2183
2183
|
errorCode = "UnknownError";
|
|
2184
2184
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2185
2185
|
_b = errorCode;
|
|
2186
2186
|
switch (_b) {
|
|
2187
|
-
case "BadRequestException": return [3
|
|
2188
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2189
|
-
case "InternalFailureException": return [3
|
|
2190
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2191
|
-
case "LimitExceededException": return [3
|
|
2192
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2187
|
+
case "BadRequestException": return [3, 2];
|
|
2188
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2189
|
+
case "InternalFailureException": return [3, 4];
|
|
2190
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
2191
|
+
case "LimitExceededException": return [3, 6];
|
|
2192
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
2193
2193
|
}
|
|
2194
|
-
return [3
|
|
2194
|
+
return [3, 8];
|
|
2195
2195
|
case 2:
|
|
2196
2196
|
_c = [{}];
|
|
2197
|
-
return [4
|
|
2197
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2198
2198
|
case 3:
|
|
2199
2199
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2200
|
-
return [3
|
|
2200
|
+
return [3, 9];
|
|
2201
2201
|
case 4:
|
|
2202
2202
|
_d = [{}];
|
|
2203
|
-
return [4
|
|
2203
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2204
2204
|
case 5:
|
|
2205
2205
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2206
|
-
return [3
|
|
2206
|
+
return [3, 9];
|
|
2207
2207
|
case 6:
|
|
2208
2208
|
_e = [{}];
|
|
2209
|
-
return [4
|
|
2209
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2210
2210
|
case 7:
|
|
2211
2211
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2212
|
-
return [3
|
|
2212
|
+
return [3, 9];
|
|
2213
2213
|
case 8:
|
|
2214
2214
|
parsedBody = parsedOutput.body;
|
|
2215
2215
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2219,7 +2219,7 @@ var deserializeAws_json1_1ListCallAnalyticsJobsCommandError = function (output,
|
|
|
2219
2219
|
message = response.message || response.Message || errorCode;
|
|
2220
2220
|
response.message = message;
|
|
2221
2221
|
delete response.Message;
|
|
2222
|
-
return [2
|
|
2222
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2223
2223
|
}
|
|
2224
2224
|
});
|
|
2225
2225
|
}); };
|
|
@@ -2229,15 +2229,15 @@ export var deserializeAws_json1_1ListLanguageModelsCommand = function (output, c
|
|
|
2229
2229
|
switch (_a.label) {
|
|
2230
2230
|
case 0:
|
|
2231
2231
|
if (output.statusCode >= 300) {
|
|
2232
|
-
return [2
|
|
2232
|
+
return [2, deserializeAws_json1_1ListLanguageModelsCommandError(output, context)];
|
|
2233
2233
|
}
|
|
2234
|
-
return [4
|
|
2234
|
+
return [4, parseBody(output.body, context)];
|
|
2235
2235
|
case 1:
|
|
2236
2236
|
data = _a.sent();
|
|
2237
2237
|
contents = {};
|
|
2238
2238
|
contents = deserializeAws_json1_1ListLanguageModelsResponse(data, context);
|
|
2239
2239
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2240
|
-
return [2
|
|
2240
|
+
return [2, Promise.resolve(response)];
|
|
2241
2241
|
}
|
|
2242
2242
|
});
|
|
2243
2243
|
}); };
|
|
@@ -2249,39 +2249,39 @@ var deserializeAws_json1_1ListLanguageModelsCommandError = function (output, con
|
|
|
2249
2249
|
case 0:
|
|
2250
2250
|
_a = [__assign({}, output)];
|
|
2251
2251
|
_f = {};
|
|
2252
|
-
return [4
|
|
2252
|
+
return [4, parseBody(output.body, context)];
|
|
2253
2253
|
case 1:
|
|
2254
2254
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2255
2255
|
errorCode = "UnknownError";
|
|
2256
2256
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
2257
|
_b = errorCode;
|
|
2258
2258
|
switch (_b) {
|
|
2259
|
-
case "BadRequestException": return [3
|
|
2260
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2261
|
-
case "InternalFailureException": return [3
|
|
2262
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2263
|
-
case "LimitExceededException": return [3
|
|
2264
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2259
|
+
case "BadRequestException": return [3, 2];
|
|
2260
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2261
|
+
case "InternalFailureException": return [3, 4];
|
|
2262
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
2263
|
+
case "LimitExceededException": return [3, 6];
|
|
2264
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
2265
2265
|
}
|
|
2266
|
-
return [3
|
|
2266
|
+
return [3, 8];
|
|
2267
2267
|
case 2:
|
|
2268
2268
|
_c = [{}];
|
|
2269
|
-
return [4
|
|
2269
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2270
2270
|
case 3:
|
|
2271
2271
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2272
|
-
return [3
|
|
2272
|
+
return [3, 9];
|
|
2273
2273
|
case 4:
|
|
2274
2274
|
_d = [{}];
|
|
2275
|
-
return [4
|
|
2275
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2276
2276
|
case 5:
|
|
2277
2277
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2278
|
-
return [3
|
|
2278
|
+
return [3, 9];
|
|
2279
2279
|
case 6:
|
|
2280
2280
|
_e = [{}];
|
|
2281
|
-
return [4
|
|
2281
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2282
2282
|
case 7:
|
|
2283
2283
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2284
|
-
return [3
|
|
2284
|
+
return [3, 9];
|
|
2285
2285
|
case 8:
|
|
2286
2286
|
parsedBody = parsedOutput.body;
|
|
2287
2287
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2291,7 +2291,7 @@ var deserializeAws_json1_1ListLanguageModelsCommandError = function (output, con
|
|
|
2291
2291
|
message = response.message || response.Message || errorCode;
|
|
2292
2292
|
response.message = message;
|
|
2293
2293
|
delete response.Message;
|
|
2294
|
-
return [2
|
|
2294
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2295
2295
|
}
|
|
2296
2296
|
});
|
|
2297
2297
|
}); };
|
|
@@ -2301,15 +2301,15 @@ export var deserializeAws_json1_1ListMedicalTranscriptionJobsCommand = function
|
|
|
2301
2301
|
switch (_a.label) {
|
|
2302
2302
|
case 0:
|
|
2303
2303
|
if (output.statusCode >= 300) {
|
|
2304
|
-
return [2
|
|
2304
|
+
return [2, deserializeAws_json1_1ListMedicalTranscriptionJobsCommandError(output, context)];
|
|
2305
2305
|
}
|
|
2306
|
-
return [4
|
|
2306
|
+
return [4, parseBody(output.body, context)];
|
|
2307
2307
|
case 1:
|
|
2308
2308
|
data = _a.sent();
|
|
2309
2309
|
contents = {};
|
|
2310
2310
|
contents = deserializeAws_json1_1ListMedicalTranscriptionJobsResponse(data, context);
|
|
2311
2311
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2312
|
-
return [2
|
|
2312
|
+
return [2, Promise.resolve(response)];
|
|
2313
2313
|
}
|
|
2314
2314
|
});
|
|
2315
2315
|
}); };
|
|
@@ -2321,39 +2321,39 @@ var deserializeAws_json1_1ListMedicalTranscriptionJobsCommandError = function (o
|
|
|
2321
2321
|
case 0:
|
|
2322
2322
|
_a = [__assign({}, output)];
|
|
2323
2323
|
_f = {};
|
|
2324
|
-
return [4
|
|
2324
|
+
return [4, parseBody(output.body, context)];
|
|
2325
2325
|
case 1:
|
|
2326
2326
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2327
2327
|
errorCode = "UnknownError";
|
|
2328
2328
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2329
2329
|
_b = errorCode;
|
|
2330
2330
|
switch (_b) {
|
|
2331
|
-
case "BadRequestException": return [3
|
|
2332
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2333
|
-
case "InternalFailureException": return [3
|
|
2334
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2335
|
-
case "LimitExceededException": return [3
|
|
2336
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2331
|
+
case "BadRequestException": return [3, 2];
|
|
2332
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2333
|
+
case "InternalFailureException": return [3, 4];
|
|
2334
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
2335
|
+
case "LimitExceededException": return [3, 6];
|
|
2336
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
2337
2337
|
}
|
|
2338
|
-
return [3
|
|
2338
|
+
return [3, 8];
|
|
2339
2339
|
case 2:
|
|
2340
2340
|
_c = [{}];
|
|
2341
|
-
return [4
|
|
2341
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2342
2342
|
case 3:
|
|
2343
2343
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2344
|
-
return [3
|
|
2344
|
+
return [3, 9];
|
|
2345
2345
|
case 4:
|
|
2346
2346
|
_d = [{}];
|
|
2347
|
-
return [4
|
|
2347
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2348
2348
|
case 5:
|
|
2349
2349
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2350
|
-
return [3
|
|
2350
|
+
return [3, 9];
|
|
2351
2351
|
case 6:
|
|
2352
2352
|
_e = [{}];
|
|
2353
|
-
return [4
|
|
2353
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2354
2354
|
case 7:
|
|
2355
2355
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2356
|
-
return [3
|
|
2356
|
+
return [3, 9];
|
|
2357
2357
|
case 8:
|
|
2358
2358
|
parsedBody = parsedOutput.body;
|
|
2359
2359
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2363,7 +2363,7 @@ var deserializeAws_json1_1ListMedicalTranscriptionJobsCommandError = function (o
|
|
|
2363
2363
|
message = response.message || response.Message || errorCode;
|
|
2364
2364
|
response.message = message;
|
|
2365
2365
|
delete response.Message;
|
|
2366
|
-
return [2
|
|
2366
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2367
2367
|
}
|
|
2368
2368
|
});
|
|
2369
2369
|
}); };
|
|
@@ -2373,15 +2373,15 @@ export var deserializeAws_json1_1ListMedicalVocabulariesCommand = function (outp
|
|
|
2373
2373
|
switch (_a.label) {
|
|
2374
2374
|
case 0:
|
|
2375
2375
|
if (output.statusCode >= 300) {
|
|
2376
|
-
return [2
|
|
2376
|
+
return [2, deserializeAws_json1_1ListMedicalVocabulariesCommandError(output, context)];
|
|
2377
2377
|
}
|
|
2378
|
-
return [4
|
|
2378
|
+
return [4, parseBody(output.body, context)];
|
|
2379
2379
|
case 1:
|
|
2380
2380
|
data = _a.sent();
|
|
2381
2381
|
contents = {};
|
|
2382
2382
|
contents = deserializeAws_json1_1ListMedicalVocabulariesResponse(data, context);
|
|
2383
2383
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2384
|
-
return [2
|
|
2384
|
+
return [2, Promise.resolve(response)];
|
|
2385
2385
|
}
|
|
2386
2386
|
});
|
|
2387
2387
|
}); };
|
|
@@ -2393,39 +2393,39 @@ var deserializeAws_json1_1ListMedicalVocabulariesCommandError = function (output
|
|
|
2393
2393
|
case 0:
|
|
2394
2394
|
_a = [__assign({}, output)];
|
|
2395
2395
|
_f = {};
|
|
2396
|
-
return [4
|
|
2396
|
+
return [4, parseBody(output.body, context)];
|
|
2397
2397
|
case 1:
|
|
2398
2398
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2399
2399
|
errorCode = "UnknownError";
|
|
2400
2400
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2401
2401
|
_b = errorCode;
|
|
2402
2402
|
switch (_b) {
|
|
2403
|
-
case "BadRequestException": return [3
|
|
2404
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2405
|
-
case "InternalFailureException": return [3
|
|
2406
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2407
|
-
case "LimitExceededException": return [3
|
|
2408
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2403
|
+
case "BadRequestException": return [3, 2];
|
|
2404
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2405
|
+
case "InternalFailureException": return [3, 4];
|
|
2406
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
2407
|
+
case "LimitExceededException": return [3, 6];
|
|
2408
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
2409
2409
|
}
|
|
2410
|
-
return [3
|
|
2410
|
+
return [3, 8];
|
|
2411
2411
|
case 2:
|
|
2412
2412
|
_c = [{}];
|
|
2413
|
-
return [4
|
|
2413
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2414
2414
|
case 3:
|
|
2415
2415
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2416
|
-
return [3
|
|
2416
|
+
return [3, 9];
|
|
2417
2417
|
case 4:
|
|
2418
2418
|
_d = [{}];
|
|
2419
|
-
return [4
|
|
2419
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2420
2420
|
case 5:
|
|
2421
2421
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2422
|
-
return [3
|
|
2422
|
+
return [3, 9];
|
|
2423
2423
|
case 6:
|
|
2424
2424
|
_e = [{}];
|
|
2425
|
-
return [4
|
|
2425
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2426
2426
|
case 7:
|
|
2427
2427
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2428
|
-
return [3
|
|
2428
|
+
return [3, 9];
|
|
2429
2429
|
case 8:
|
|
2430
2430
|
parsedBody = parsedOutput.body;
|
|
2431
2431
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2435,7 +2435,7 @@ var deserializeAws_json1_1ListMedicalVocabulariesCommandError = function (output
|
|
|
2435
2435
|
message = response.message || response.Message || errorCode;
|
|
2436
2436
|
response.message = message;
|
|
2437
2437
|
delete response.Message;
|
|
2438
|
-
return [2
|
|
2438
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2439
2439
|
}
|
|
2440
2440
|
});
|
|
2441
2441
|
}); };
|
|
@@ -2445,15 +2445,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
2445
2445
|
switch (_a.label) {
|
|
2446
2446
|
case 0:
|
|
2447
2447
|
if (output.statusCode >= 300) {
|
|
2448
|
-
return [2
|
|
2448
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
2449
2449
|
}
|
|
2450
|
-
return [4
|
|
2450
|
+
return [4, parseBody(output.body, context)];
|
|
2451
2451
|
case 1:
|
|
2452
2452
|
data = _a.sent();
|
|
2453
2453
|
contents = {};
|
|
2454
2454
|
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
2455
2455
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2456
|
-
return [2
|
|
2456
|
+
return [2, Promise.resolve(response)];
|
|
2457
2457
|
}
|
|
2458
2458
|
});
|
|
2459
2459
|
}); };
|
|
@@ -2465,47 +2465,47 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2465
2465
|
case 0:
|
|
2466
2466
|
_a = [__assign({}, output)];
|
|
2467
2467
|
_g = {};
|
|
2468
|
-
return [4
|
|
2468
|
+
return [4, parseBody(output.body, context)];
|
|
2469
2469
|
case 1:
|
|
2470
2470
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2471
2471
|
errorCode = "UnknownError";
|
|
2472
2472
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2473
2473
|
_b = errorCode;
|
|
2474
2474
|
switch (_b) {
|
|
2475
|
-
case "BadRequestException": return [3
|
|
2476
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2477
|
-
case "InternalFailureException": return [3
|
|
2478
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2479
|
-
case "LimitExceededException": return [3
|
|
2480
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2481
|
-
case "NotFoundException": return [3
|
|
2482
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
2475
|
+
case "BadRequestException": return [3, 2];
|
|
2476
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2477
|
+
case "InternalFailureException": return [3, 4];
|
|
2478
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
2479
|
+
case "LimitExceededException": return [3, 6];
|
|
2480
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
2481
|
+
case "NotFoundException": return [3, 8];
|
|
2482
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
2483
2483
|
}
|
|
2484
|
-
return [3
|
|
2484
|
+
return [3, 10];
|
|
2485
2485
|
case 2:
|
|
2486
2486
|
_c = [{}];
|
|
2487
|
-
return [4
|
|
2487
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2488
2488
|
case 3:
|
|
2489
2489
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2490
|
-
return [3
|
|
2490
|
+
return [3, 11];
|
|
2491
2491
|
case 4:
|
|
2492
2492
|
_d = [{}];
|
|
2493
|
-
return [4
|
|
2493
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2494
2494
|
case 5:
|
|
2495
2495
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2496
|
-
return [3
|
|
2496
|
+
return [3, 11];
|
|
2497
2497
|
case 6:
|
|
2498
2498
|
_e = [{}];
|
|
2499
|
-
return [4
|
|
2499
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2500
2500
|
case 7:
|
|
2501
2501
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2502
|
-
return [3
|
|
2502
|
+
return [3, 11];
|
|
2503
2503
|
case 8:
|
|
2504
2504
|
_f = [{}];
|
|
2505
|
-
return [4
|
|
2505
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2506
2506
|
case 9:
|
|
2507
2507
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2508
|
-
return [3
|
|
2508
|
+
return [3, 11];
|
|
2509
2509
|
case 10:
|
|
2510
2510
|
parsedBody = parsedOutput.body;
|
|
2511
2511
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2515,7 +2515,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
2515
2515
|
message = response.message || response.Message || errorCode;
|
|
2516
2516
|
response.message = message;
|
|
2517
2517
|
delete response.Message;
|
|
2518
|
-
return [2
|
|
2518
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2519
2519
|
}
|
|
2520
2520
|
});
|
|
2521
2521
|
}); };
|
|
@@ -2525,15 +2525,15 @@ export var deserializeAws_json1_1ListTranscriptionJobsCommand = function (output
|
|
|
2525
2525
|
switch (_a.label) {
|
|
2526
2526
|
case 0:
|
|
2527
2527
|
if (output.statusCode >= 300) {
|
|
2528
|
-
return [2
|
|
2528
|
+
return [2, deserializeAws_json1_1ListTranscriptionJobsCommandError(output, context)];
|
|
2529
2529
|
}
|
|
2530
|
-
return [4
|
|
2530
|
+
return [4, parseBody(output.body, context)];
|
|
2531
2531
|
case 1:
|
|
2532
2532
|
data = _a.sent();
|
|
2533
2533
|
contents = {};
|
|
2534
2534
|
contents = deserializeAws_json1_1ListTranscriptionJobsResponse(data, context);
|
|
2535
2535
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2536
|
-
return [2
|
|
2536
|
+
return [2, Promise.resolve(response)];
|
|
2537
2537
|
}
|
|
2538
2538
|
});
|
|
2539
2539
|
}); };
|
|
@@ -2545,39 +2545,39 @@ var deserializeAws_json1_1ListTranscriptionJobsCommandError = function (output,
|
|
|
2545
2545
|
case 0:
|
|
2546
2546
|
_a = [__assign({}, output)];
|
|
2547
2547
|
_f = {};
|
|
2548
|
-
return [4
|
|
2548
|
+
return [4, parseBody(output.body, context)];
|
|
2549
2549
|
case 1:
|
|
2550
2550
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2551
2551
|
errorCode = "UnknownError";
|
|
2552
2552
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2553
2553
|
_b = errorCode;
|
|
2554
2554
|
switch (_b) {
|
|
2555
|
-
case "BadRequestException": return [3
|
|
2556
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2557
|
-
case "InternalFailureException": return [3
|
|
2558
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2559
|
-
case "LimitExceededException": return [3
|
|
2560
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2555
|
+
case "BadRequestException": return [3, 2];
|
|
2556
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2557
|
+
case "InternalFailureException": return [3, 4];
|
|
2558
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
2559
|
+
case "LimitExceededException": return [3, 6];
|
|
2560
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
2561
2561
|
}
|
|
2562
|
-
return [3
|
|
2562
|
+
return [3, 8];
|
|
2563
2563
|
case 2:
|
|
2564
2564
|
_c = [{}];
|
|
2565
|
-
return [4
|
|
2565
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2566
2566
|
case 3:
|
|
2567
2567
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2568
|
-
return [3
|
|
2568
|
+
return [3, 9];
|
|
2569
2569
|
case 4:
|
|
2570
2570
|
_d = [{}];
|
|
2571
|
-
return [4
|
|
2571
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2572
2572
|
case 5:
|
|
2573
2573
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2574
|
-
return [3
|
|
2574
|
+
return [3, 9];
|
|
2575
2575
|
case 6:
|
|
2576
2576
|
_e = [{}];
|
|
2577
|
-
return [4
|
|
2577
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2578
2578
|
case 7:
|
|
2579
2579
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2580
|
-
return [3
|
|
2580
|
+
return [3, 9];
|
|
2581
2581
|
case 8:
|
|
2582
2582
|
parsedBody = parsedOutput.body;
|
|
2583
2583
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2587,7 +2587,7 @@ var deserializeAws_json1_1ListTranscriptionJobsCommandError = function (output,
|
|
|
2587
2587
|
message = response.message || response.Message || errorCode;
|
|
2588
2588
|
response.message = message;
|
|
2589
2589
|
delete response.Message;
|
|
2590
|
-
return [2
|
|
2590
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2591
2591
|
}
|
|
2592
2592
|
});
|
|
2593
2593
|
}); };
|
|
@@ -2597,15 +2597,15 @@ export var deserializeAws_json1_1ListVocabulariesCommand = function (output, con
|
|
|
2597
2597
|
switch (_a.label) {
|
|
2598
2598
|
case 0:
|
|
2599
2599
|
if (output.statusCode >= 300) {
|
|
2600
|
-
return [2
|
|
2600
|
+
return [2, deserializeAws_json1_1ListVocabulariesCommandError(output, context)];
|
|
2601
2601
|
}
|
|
2602
|
-
return [4
|
|
2602
|
+
return [4, parseBody(output.body, context)];
|
|
2603
2603
|
case 1:
|
|
2604
2604
|
data = _a.sent();
|
|
2605
2605
|
contents = {};
|
|
2606
2606
|
contents = deserializeAws_json1_1ListVocabulariesResponse(data, context);
|
|
2607
2607
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2608
|
-
return [2
|
|
2608
|
+
return [2, Promise.resolve(response)];
|
|
2609
2609
|
}
|
|
2610
2610
|
});
|
|
2611
2611
|
}); };
|
|
@@ -2617,39 +2617,39 @@ var deserializeAws_json1_1ListVocabulariesCommandError = function (output, conte
|
|
|
2617
2617
|
case 0:
|
|
2618
2618
|
_a = [__assign({}, output)];
|
|
2619
2619
|
_f = {};
|
|
2620
|
-
return [4
|
|
2620
|
+
return [4, parseBody(output.body, context)];
|
|
2621
2621
|
case 1:
|
|
2622
2622
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2623
2623
|
errorCode = "UnknownError";
|
|
2624
2624
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2625
2625
|
_b = errorCode;
|
|
2626
2626
|
switch (_b) {
|
|
2627
|
-
case "BadRequestException": return [3
|
|
2628
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2629
|
-
case "InternalFailureException": return [3
|
|
2630
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2631
|
-
case "LimitExceededException": return [3
|
|
2632
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2627
|
+
case "BadRequestException": return [3, 2];
|
|
2628
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2629
|
+
case "InternalFailureException": return [3, 4];
|
|
2630
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
2631
|
+
case "LimitExceededException": return [3, 6];
|
|
2632
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
2633
2633
|
}
|
|
2634
|
-
return [3
|
|
2634
|
+
return [3, 8];
|
|
2635
2635
|
case 2:
|
|
2636
2636
|
_c = [{}];
|
|
2637
|
-
return [4
|
|
2637
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2638
2638
|
case 3:
|
|
2639
2639
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2640
|
-
return [3
|
|
2640
|
+
return [3, 9];
|
|
2641
2641
|
case 4:
|
|
2642
2642
|
_d = [{}];
|
|
2643
|
-
return [4
|
|
2643
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2644
2644
|
case 5:
|
|
2645
2645
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2646
|
-
return [3
|
|
2646
|
+
return [3, 9];
|
|
2647
2647
|
case 6:
|
|
2648
2648
|
_e = [{}];
|
|
2649
|
-
return [4
|
|
2649
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2650
2650
|
case 7:
|
|
2651
2651
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2652
|
-
return [3
|
|
2652
|
+
return [3, 9];
|
|
2653
2653
|
case 8:
|
|
2654
2654
|
parsedBody = parsedOutput.body;
|
|
2655
2655
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2659,7 +2659,7 @@ var deserializeAws_json1_1ListVocabulariesCommandError = function (output, conte
|
|
|
2659
2659
|
message = response.message || response.Message || errorCode;
|
|
2660
2660
|
response.message = message;
|
|
2661
2661
|
delete response.Message;
|
|
2662
|
-
return [2
|
|
2662
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2663
2663
|
}
|
|
2664
2664
|
});
|
|
2665
2665
|
}); };
|
|
@@ -2669,15 +2669,15 @@ export var deserializeAws_json1_1ListVocabularyFiltersCommand = function (output
|
|
|
2669
2669
|
switch (_a.label) {
|
|
2670
2670
|
case 0:
|
|
2671
2671
|
if (output.statusCode >= 300) {
|
|
2672
|
-
return [2
|
|
2672
|
+
return [2, deserializeAws_json1_1ListVocabularyFiltersCommandError(output, context)];
|
|
2673
2673
|
}
|
|
2674
|
-
return [4
|
|
2674
|
+
return [4, parseBody(output.body, context)];
|
|
2675
2675
|
case 1:
|
|
2676
2676
|
data = _a.sent();
|
|
2677
2677
|
contents = {};
|
|
2678
2678
|
contents = deserializeAws_json1_1ListVocabularyFiltersResponse(data, context);
|
|
2679
2679
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2680
|
-
return [2
|
|
2680
|
+
return [2, Promise.resolve(response)];
|
|
2681
2681
|
}
|
|
2682
2682
|
});
|
|
2683
2683
|
}); };
|
|
@@ -2689,39 +2689,39 @@ var deserializeAws_json1_1ListVocabularyFiltersCommandError = function (output,
|
|
|
2689
2689
|
case 0:
|
|
2690
2690
|
_a = [__assign({}, output)];
|
|
2691
2691
|
_f = {};
|
|
2692
|
-
return [4
|
|
2692
|
+
return [4, parseBody(output.body, context)];
|
|
2693
2693
|
case 1:
|
|
2694
2694
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2695
2695
|
errorCode = "UnknownError";
|
|
2696
2696
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2697
2697
|
_b = errorCode;
|
|
2698
2698
|
switch (_b) {
|
|
2699
|
-
case "BadRequestException": return [3
|
|
2700
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2701
|
-
case "InternalFailureException": return [3
|
|
2702
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2703
|
-
case "LimitExceededException": return [3
|
|
2704
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2699
|
+
case "BadRequestException": return [3, 2];
|
|
2700
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2701
|
+
case "InternalFailureException": return [3, 4];
|
|
2702
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
2703
|
+
case "LimitExceededException": return [3, 6];
|
|
2704
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
2705
2705
|
}
|
|
2706
|
-
return [3
|
|
2706
|
+
return [3, 8];
|
|
2707
2707
|
case 2:
|
|
2708
2708
|
_c = [{}];
|
|
2709
|
-
return [4
|
|
2709
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2710
2710
|
case 3:
|
|
2711
2711
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2712
|
-
return [3
|
|
2712
|
+
return [3, 9];
|
|
2713
2713
|
case 4:
|
|
2714
2714
|
_d = [{}];
|
|
2715
|
-
return [4
|
|
2715
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2716
2716
|
case 5:
|
|
2717
2717
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2718
|
-
return [3
|
|
2718
|
+
return [3, 9];
|
|
2719
2719
|
case 6:
|
|
2720
2720
|
_e = [{}];
|
|
2721
|
-
return [4
|
|
2721
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2722
2722
|
case 7:
|
|
2723
2723
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2724
|
-
return [3
|
|
2724
|
+
return [3, 9];
|
|
2725
2725
|
case 8:
|
|
2726
2726
|
parsedBody = parsedOutput.body;
|
|
2727
2727
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2731,7 +2731,7 @@ var deserializeAws_json1_1ListVocabularyFiltersCommandError = function (output,
|
|
|
2731
2731
|
message = response.message || response.Message || errorCode;
|
|
2732
2732
|
response.message = message;
|
|
2733
2733
|
delete response.Message;
|
|
2734
|
-
return [2
|
|
2734
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2735
2735
|
}
|
|
2736
2736
|
});
|
|
2737
2737
|
}); };
|
|
@@ -2741,15 +2741,15 @@ export var deserializeAws_json1_1StartCallAnalyticsJobCommand = function (output
|
|
|
2741
2741
|
switch (_a.label) {
|
|
2742
2742
|
case 0:
|
|
2743
2743
|
if (output.statusCode >= 300) {
|
|
2744
|
-
return [2
|
|
2744
|
+
return [2, deserializeAws_json1_1StartCallAnalyticsJobCommandError(output, context)];
|
|
2745
2745
|
}
|
|
2746
|
-
return [4
|
|
2746
|
+
return [4, parseBody(output.body, context)];
|
|
2747
2747
|
case 1:
|
|
2748
2748
|
data = _a.sent();
|
|
2749
2749
|
contents = {};
|
|
2750
2750
|
contents = deserializeAws_json1_1StartCallAnalyticsJobResponse(data, context);
|
|
2751
2751
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2752
|
-
return [2
|
|
2752
|
+
return [2, Promise.resolve(response)];
|
|
2753
2753
|
}
|
|
2754
2754
|
});
|
|
2755
2755
|
}); };
|
|
@@ -2761,47 +2761,47 @@ var deserializeAws_json1_1StartCallAnalyticsJobCommandError = function (output,
|
|
|
2761
2761
|
case 0:
|
|
2762
2762
|
_a = [__assign({}, output)];
|
|
2763
2763
|
_g = {};
|
|
2764
|
-
return [4
|
|
2764
|
+
return [4, parseBody(output.body, context)];
|
|
2765
2765
|
case 1:
|
|
2766
2766
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2767
2767
|
errorCode = "UnknownError";
|
|
2768
2768
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
2769
|
_b = errorCode;
|
|
2770
2770
|
switch (_b) {
|
|
2771
|
-
case "BadRequestException": return [3
|
|
2772
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2773
|
-
case "ConflictException": return [3
|
|
2774
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
2775
|
-
case "InternalFailureException": return [3
|
|
2776
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2777
|
-
case "LimitExceededException": return [3
|
|
2778
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2771
|
+
case "BadRequestException": return [3, 2];
|
|
2772
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2773
|
+
case "ConflictException": return [3, 4];
|
|
2774
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
2775
|
+
case "InternalFailureException": return [3, 6];
|
|
2776
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
2777
|
+
case "LimitExceededException": return [3, 8];
|
|
2778
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
2779
2779
|
}
|
|
2780
|
-
return [3
|
|
2780
|
+
return [3, 10];
|
|
2781
2781
|
case 2:
|
|
2782
2782
|
_c = [{}];
|
|
2783
|
-
return [4
|
|
2783
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2784
2784
|
case 3:
|
|
2785
2785
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2786
|
-
return [3
|
|
2786
|
+
return [3, 11];
|
|
2787
2787
|
case 4:
|
|
2788
2788
|
_d = [{}];
|
|
2789
|
-
return [4
|
|
2789
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2790
2790
|
case 5:
|
|
2791
2791
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2792
|
-
return [3
|
|
2792
|
+
return [3, 11];
|
|
2793
2793
|
case 6:
|
|
2794
2794
|
_e = [{}];
|
|
2795
|
-
return [4
|
|
2795
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2796
2796
|
case 7:
|
|
2797
2797
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2798
|
-
return [3
|
|
2798
|
+
return [3, 11];
|
|
2799
2799
|
case 8:
|
|
2800
2800
|
_f = [{}];
|
|
2801
|
-
return [4
|
|
2801
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2802
2802
|
case 9:
|
|
2803
2803
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2804
|
-
return [3
|
|
2804
|
+
return [3, 11];
|
|
2805
2805
|
case 10:
|
|
2806
2806
|
parsedBody = parsedOutput.body;
|
|
2807
2807
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2811,7 +2811,7 @@ var deserializeAws_json1_1StartCallAnalyticsJobCommandError = function (output,
|
|
|
2811
2811
|
message = response.message || response.Message || errorCode;
|
|
2812
2812
|
response.message = message;
|
|
2813
2813
|
delete response.Message;
|
|
2814
|
-
return [2
|
|
2814
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2815
2815
|
}
|
|
2816
2816
|
});
|
|
2817
2817
|
}); };
|
|
@@ -2821,15 +2821,15 @@ export var deserializeAws_json1_1StartMedicalTranscriptionJobCommand = function
|
|
|
2821
2821
|
switch (_a.label) {
|
|
2822
2822
|
case 0:
|
|
2823
2823
|
if (output.statusCode >= 300) {
|
|
2824
|
-
return [2
|
|
2824
|
+
return [2, deserializeAws_json1_1StartMedicalTranscriptionJobCommandError(output, context)];
|
|
2825
2825
|
}
|
|
2826
|
-
return [4
|
|
2826
|
+
return [4, parseBody(output.body, context)];
|
|
2827
2827
|
case 1:
|
|
2828
2828
|
data = _a.sent();
|
|
2829
2829
|
contents = {};
|
|
2830
2830
|
contents = deserializeAws_json1_1StartMedicalTranscriptionJobResponse(data, context);
|
|
2831
2831
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2832
|
-
return [2
|
|
2832
|
+
return [2, Promise.resolve(response)];
|
|
2833
2833
|
}
|
|
2834
2834
|
});
|
|
2835
2835
|
}); };
|
|
@@ -2841,47 +2841,47 @@ var deserializeAws_json1_1StartMedicalTranscriptionJobCommandError = function (o
|
|
|
2841
2841
|
case 0:
|
|
2842
2842
|
_a = [__assign({}, output)];
|
|
2843
2843
|
_g = {};
|
|
2844
|
-
return [4
|
|
2844
|
+
return [4, parseBody(output.body, context)];
|
|
2845
2845
|
case 1:
|
|
2846
2846
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2847
2847
|
errorCode = "UnknownError";
|
|
2848
2848
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2849
2849
|
_b = errorCode;
|
|
2850
2850
|
switch (_b) {
|
|
2851
|
-
case "BadRequestException": return [3
|
|
2852
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2853
|
-
case "ConflictException": return [3
|
|
2854
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
2855
|
-
case "InternalFailureException": return [3
|
|
2856
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2857
|
-
case "LimitExceededException": return [3
|
|
2858
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2851
|
+
case "BadRequestException": return [3, 2];
|
|
2852
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2853
|
+
case "ConflictException": return [3, 4];
|
|
2854
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
2855
|
+
case "InternalFailureException": return [3, 6];
|
|
2856
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
2857
|
+
case "LimitExceededException": return [3, 8];
|
|
2858
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
2859
2859
|
}
|
|
2860
|
-
return [3
|
|
2860
|
+
return [3, 10];
|
|
2861
2861
|
case 2:
|
|
2862
2862
|
_c = [{}];
|
|
2863
|
-
return [4
|
|
2863
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2864
2864
|
case 3:
|
|
2865
2865
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2866
|
-
return [3
|
|
2866
|
+
return [3, 11];
|
|
2867
2867
|
case 4:
|
|
2868
2868
|
_d = [{}];
|
|
2869
|
-
return [4
|
|
2869
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2870
2870
|
case 5:
|
|
2871
2871
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2872
|
-
return [3
|
|
2872
|
+
return [3, 11];
|
|
2873
2873
|
case 6:
|
|
2874
2874
|
_e = [{}];
|
|
2875
|
-
return [4
|
|
2875
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2876
2876
|
case 7:
|
|
2877
2877
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2878
|
-
return [3
|
|
2878
|
+
return [3, 11];
|
|
2879
2879
|
case 8:
|
|
2880
2880
|
_f = [{}];
|
|
2881
|
-
return [4
|
|
2881
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2882
2882
|
case 9:
|
|
2883
2883
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2884
|
-
return [3
|
|
2884
|
+
return [3, 11];
|
|
2885
2885
|
case 10:
|
|
2886
2886
|
parsedBody = parsedOutput.body;
|
|
2887
2887
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2891,7 +2891,7 @@ var deserializeAws_json1_1StartMedicalTranscriptionJobCommandError = function (o
|
|
|
2891
2891
|
message = response.message || response.Message || errorCode;
|
|
2892
2892
|
response.message = message;
|
|
2893
2893
|
delete response.Message;
|
|
2894
|
-
return [2
|
|
2894
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2895
2895
|
}
|
|
2896
2896
|
});
|
|
2897
2897
|
}); };
|
|
@@ -2901,15 +2901,15 @@ export var deserializeAws_json1_1StartTranscriptionJobCommand = function (output
|
|
|
2901
2901
|
switch (_a.label) {
|
|
2902
2902
|
case 0:
|
|
2903
2903
|
if (output.statusCode >= 300) {
|
|
2904
|
-
return [2
|
|
2904
|
+
return [2, deserializeAws_json1_1StartTranscriptionJobCommandError(output, context)];
|
|
2905
2905
|
}
|
|
2906
|
-
return [4
|
|
2906
|
+
return [4, parseBody(output.body, context)];
|
|
2907
2907
|
case 1:
|
|
2908
2908
|
data = _a.sent();
|
|
2909
2909
|
contents = {};
|
|
2910
2910
|
contents = deserializeAws_json1_1StartTranscriptionJobResponse(data, context);
|
|
2911
2911
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2912
|
-
return [2
|
|
2912
|
+
return [2, Promise.resolve(response)];
|
|
2913
2913
|
}
|
|
2914
2914
|
});
|
|
2915
2915
|
}); };
|
|
@@ -2921,47 +2921,47 @@ var deserializeAws_json1_1StartTranscriptionJobCommandError = function (output,
|
|
|
2921
2921
|
case 0:
|
|
2922
2922
|
_a = [__assign({}, output)];
|
|
2923
2923
|
_g = {};
|
|
2924
|
-
return [4
|
|
2924
|
+
return [4, parseBody(output.body, context)];
|
|
2925
2925
|
case 1:
|
|
2926
2926
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2927
2927
|
errorCode = "UnknownError";
|
|
2928
2928
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2929
2929
|
_b = errorCode;
|
|
2930
2930
|
switch (_b) {
|
|
2931
|
-
case "BadRequestException": return [3
|
|
2932
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
2933
|
-
case "ConflictException": return [3
|
|
2934
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
2935
|
-
case "InternalFailureException": return [3
|
|
2936
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
2937
|
-
case "LimitExceededException": return [3
|
|
2938
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
2931
|
+
case "BadRequestException": return [3, 2];
|
|
2932
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
2933
|
+
case "ConflictException": return [3, 4];
|
|
2934
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
2935
|
+
case "InternalFailureException": return [3, 6];
|
|
2936
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
2937
|
+
case "LimitExceededException": return [3, 8];
|
|
2938
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
2939
2939
|
}
|
|
2940
|
-
return [3
|
|
2940
|
+
return [3, 10];
|
|
2941
2941
|
case 2:
|
|
2942
2942
|
_c = [{}];
|
|
2943
|
-
return [4
|
|
2943
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2944
2944
|
case 3:
|
|
2945
2945
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2946
|
-
return [3
|
|
2946
|
+
return [3, 11];
|
|
2947
2947
|
case 4:
|
|
2948
2948
|
_d = [{}];
|
|
2949
|
-
return [4
|
|
2949
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
2950
2950
|
case 5:
|
|
2951
2951
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2952
|
-
return [3
|
|
2952
|
+
return [3, 11];
|
|
2953
2953
|
case 6:
|
|
2954
2954
|
_e = [{}];
|
|
2955
|
-
return [4
|
|
2955
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
2956
2956
|
case 7:
|
|
2957
2957
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2958
|
-
return [3
|
|
2958
|
+
return [3, 11];
|
|
2959
2959
|
case 8:
|
|
2960
2960
|
_f = [{}];
|
|
2961
|
-
return [4
|
|
2961
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
2962
2962
|
case 9:
|
|
2963
2963
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2964
|
-
return [3
|
|
2964
|
+
return [3, 11];
|
|
2965
2965
|
case 10:
|
|
2966
2966
|
parsedBody = parsedOutput.body;
|
|
2967
2967
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2971,7 +2971,7 @@ var deserializeAws_json1_1StartTranscriptionJobCommandError = function (output,
|
|
|
2971
2971
|
message = response.message || response.Message || errorCode;
|
|
2972
2972
|
response.message = message;
|
|
2973
2973
|
delete response.Message;
|
|
2974
|
-
return [2
|
|
2974
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2975
2975
|
}
|
|
2976
2976
|
});
|
|
2977
2977
|
}); };
|
|
@@ -2981,15 +2981,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
2981
2981
|
switch (_a.label) {
|
|
2982
2982
|
case 0:
|
|
2983
2983
|
if (output.statusCode >= 300) {
|
|
2984
|
-
return [2
|
|
2984
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
2985
2985
|
}
|
|
2986
|
-
return [4
|
|
2986
|
+
return [4, parseBody(output.body, context)];
|
|
2987
2987
|
case 1:
|
|
2988
2988
|
data = _a.sent();
|
|
2989
2989
|
contents = {};
|
|
2990
2990
|
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
2991
2991
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2992
|
-
return [2
|
|
2992
|
+
return [2, Promise.resolve(response)];
|
|
2993
2993
|
}
|
|
2994
2994
|
});
|
|
2995
2995
|
}); };
|
|
@@ -3001,55 +3001,55 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
3001
3001
|
case 0:
|
|
3002
3002
|
_a = [__assign({}, output)];
|
|
3003
3003
|
_h = {};
|
|
3004
|
-
return [4
|
|
3004
|
+
return [4, parseBody(output.body, context)];
|
|
3005
3005
|
case 1:
|
|
3006
3006
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3007
3007
|
errorCode = "UnknownError";
|
|
3008
3008
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3009
3009
|
_b = errorCode;
|
|
3010
3010
|
switch (_b) {
|
|
3011
|
-
case "BadRequestException": return [3
|
|
3012
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
3013
|
-
case "ConflictException": return [3
|
|
3014
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
3015
|
-
case "InternalFailureException": return [3
|
|
3016
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
3017
|
-
case "LimitExceededException": return [3
|
|
3018
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
3019
|
-
case "NotFoundException": return [3
|
|
3020
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
3011
|
+
case "BadRequestException": return [3, 2];
|
|
3012
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
3013
|
+
case "ConflictException": return [3, 4];
|
|
3014
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
3015
|
+
case "InternalFailureException": return [3, 6];
|
|
3016
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
3017
|
+
case "LimitExceededException": return [3, 8];
|
|
3018
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
3019
|
+
case "NotFoundException": return [3, 10];
|
|
3020
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 10];
|
|
3021
3021
|
}
|
|
3022
|
-
return [3
|
|
3022
|
+
return [3, 12];
|
|
3023
3023
|
case 2:
|
|
3024
3024
|
_c = [{}];
|
|
3025
|
-
return [4
|
|
3025
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3026
3026
|
case 3:
|
|
3027
3027
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3028
|
-
return [3
|
|
3028
|
+
return [3, 13];
|
|
3029
3029
|
case 4:
|
|
3030
3030
|
_d = [{}];
|
|
3031
|
-
return [4
|
|
3031
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
3032
3032
|
case 5:
|
|
3033
3033
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3034
|
-
return [3
|
|
3034
|
+
return [3, 13];
|
|
3035
3035
|
case 6:
|
|
3036
3036
|
_e = [{}];
|
|
3037
|
-
return [4
|
|
3037
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
3038
3038
|
case 7:
|
|
3039
3039
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3040
|
-
return [3
|
|
3040
|
+
return [3, 13];
|
|
3041
3041
|
case 8:
|
|
3042
3042
|
_f = [{}];
|
|
3043
|
-
return [4
|
|
3043
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3044
3044
|
case 9:
|
|
3045
3045
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3046
|
-
return [3
|
|
3046
|
+
return [3, 13];
|
|
3047
3047
|
case 10:
|
|
3048
3048
|
_g = [{}];
|
|
3049
|
-
return [4
|
|
3049
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3050
3050
|
case 11:
|
|
3051
3051
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3052
|
-
return [3
|
|
3052
|
+
return [3, 13];
|
|
3053
3053
|
case 12:
|
|
3054
3054
|
parsedBody = parsedOutput.body;
|
|
3055
3055
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3059,7 +3059,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
3059
3059
|
message = response.message || response.Message || errorCode;
|
|
3060
3060
|
response.message = message;
|
|
3061
3061
|
delete response.Message;
|
|
3062
|
-
return [2
|
|
3062
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3063
3063
|
}
|
|
3064
3064
|
});
|
|
3065
3065
|
}); };
|
|
@@ -3069,15 +3069,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
3069
3069
|
switch (_a.label) {
|
|
3070
3070
|
case 0:
|
|
3071
3071
|
if (output.statusCode >= 300) {
|
|
3072
|
-
return [2
|
|
3072
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
3073
3073
|
}
|
|
3074
|
-
return [4
|
|
3074
|
+
return [4, parseBody(output.body, context)];
|
|
3075
3075
|
case 1:
|
|
3076
3076
|
data = _a.sent();
|
|
3077
3077
|
contents = {};
|
|
3078
3078
|
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
3079
3079
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3080
|
-
return [2
|
|
3080
|
+
return [2, Promise.resolve(response)];
|
|
3081
3081
|
}
|
|
3082
3082
|
});
|
|
3083
3083
|
}); };
|
|
@@ -3089,55 +3089,55 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
3089
3089
|
case 0:
|
|
3090
3090
|
_a = [__assign({}, output)];
|
|
3091
3091
|
_h = {};
|
|
3092
|
-
return [4
|
|
3092
|
+
return [4, parseBody(output.body, context)];
|
|
3093
3093
|
case 1:
|
|
3094
3094
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3095
3095
|
errorCode = "UnknownError";
|
|
3096
3096
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3097
3097
|
_b = errorCode;
|
|
3098
3098
|
switch (_b) {
|
|
3099
|
-
case "BadRequestException": return [3
|
|
3100
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
3101
|
-
case "ConflictException": return [3
|
|
3102
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
3103
|
-
case "InternalFailureException": return [3
|
|
3104
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
3105
|
-
case "LimitExceededException": return [3
|
|
3106
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
3107
|
-
case "NotFoundException": return [3
|
|
3108
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
3099
|
+
case "BadRequestException": return [3, 2];
|
|
3100
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
3101
|
+
case "ConflictException": return [3, 4];
|
|
3102
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
3103
|
+
case "InternalFailureException": return [3, 6];
|
|
3104
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
3105
|
+
case "LimitExceededException": return [3, 8];
|
|
3106
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
3107
|
+
case "NotFoundException": return [3, 10];
|
|
3108
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 10];
|
|
3109
3109
|
}
|
|
3110
|
-
return [3
|
|
3110
|
+
return [3, 12];
|
|
3111
3111
|
case 2:
|
|
3112
3112
|
_c = [{}];
|
|
3113
|
-
return [4
|
|
3113
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3114
3114
|
case 3:
|
|
3115
3115
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3116
|
-
return [3
|
|
3116
|
+
return [3, 13];
|
|
3117
3117
|
case 4:
|
|
3118
3118
|
_d = [{}];
|
|
3119
|
-
return [4
|
|
3119
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
3120
3120
|
case 5:
|
|
3121
3121
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3122
|
-
return [3
|
|
3122
|
+
return [3, 13];
|
|
3123
3123
|
case 6:
|
|
3124
3124
|
_e = [{}];
|
|
3125
|
-
return [4
|
|
3125
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
3126
3126
|
case 7:
|
|
3127
3127
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3128
|
-
return [3
|
|
3128
|
+
return [3, 13];
|
|
3129
3129
|
case 8:
|
|
3130
3130
|
_f = [{}];
|
|
3131
|
-
return [4
|
|
3131
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3132
3132
|
case 9:
|
|
3133
3133
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3134
|
-
return [3
|
|
3134
|
+
return [3, 13];
|
|
3135
3135
|
case 10:
|
|
3136
3136
|
_g = [{}];
|
|
3137
|
-
return [4
|
|
3137
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3138
3138
|
case 11:
|
|
3139
3139
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3140
|
-
return [3
|
|
3140
|
+
return [3, 13];
|
|
3141
3141
|
case 12:
|
|
3142
3142
|
parsedBody = parsedOutput.body;
|
|
3143
3143
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3147,7 +3147,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
3147
3147
|
message = response.message || response.Message || errorCode;
|
|
3148
3148
|
response.message = message;
|
|
3149
3149
|
delete response.Message;
|
|
3150
|
-
return [2
|
|
3150
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3151
3151
|
}
|
|
3152
3152
|
});
|
|
3153
3153
|
}); };
|
|
@@ -3157,15 +3157,15 @@ export var deserializeAws_json1_1UpdateCallAnalyticsCategoryCommand = function (
|
|
|
3157
3157
|
switch (_a.label) {
|
|
3158
3158
|
case 0:
|
|
3159
3159
|
if (output.statusCode >= 300) {
|
|
3160
|
-
return [2
|
|
3160
|
+
return [2, deserializeAws_json1_1UpdateCallAnalyticsCategoryCommandError(output, context)];
|
|
3161
3161
|
}
|
|
3162
|
-
return [4
|
|
3162
|
+
return [4, parseBody(output.body, context)];
|
|
3163
3163
|
case 1:
|
|
3164
3164
|
data = _a.sent();
|
|
3165
3165
|
contents = {};
|
|
3166
3166
|
contents = deserializeAws_json1_1UpdateCallAnalyticsCategoryResponse(data, context);
|
|
3167
3167
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3168
|
-
return [2
|
|
3168
|
+
return [2, Promise.resolve(response)];
|
|
3169
3169
|
}
|
|
3170
3170
|
});
|
|
3171
3171
|
}); };
|
|
@@ -3177,55 +3177,55 @@ var deserializeAws_json1_1UpdateCallAnalyticsCategoryCommandError = function (ou
|
|
|
3177
3177
|
case 0:
|
|
3178
3178
|
_a = [__assign({}, output)];
|
|
3179
3179
|
_h = {};
|
|
3180
|
-
return [4
|
|
3180
|
+
return [4, parseBody(output.body, context)];
|
|
3181
3181
|
case 1:
|
|
3182
3182
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3183
3183
|
errorCode = "UnknownError";
|
|
3184
3184
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3185
3185
|
_b = errorCode;
|
|
3186
3186
|
switch (_b) {
|
|
3187
|
-
case "BadRequestException": return [3
|
|
3188
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
3189
|
-
case "ConflictException": return [3
|
|
3190
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
3191
|
-
case "InternalFailureException": return [3
|
|
3192
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
3193
|
-
case "LimitExceededException": return [3
|
|
3194
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
3195
|
-
case "NotFoundException": return [3
|
|
3196
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
3187
|
+
case "BadRequestException": return [3, 2];
|
|
3188
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
3189
|
+
case "ConflictException": return [3, 4];
|
|
3190
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
3191
|
+
case "InternalFailureException": return [3, 6];
|
|
3192
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
3193
|
+
case "LimitExceededException": return [3, 8];
|
|
3194
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
3195
|
+
case "NotFoundException": return [3, 10];
|
|
3196
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 10];
|
|
3197
3197
|
}
|
|
3198
|
-
return [3
|
|
3198
|
+
return [3, 12];
|
|
3199
3199
|
case 2:
|
|
3200
3200
|
_c = [{}];
|
|
3201
|
-
return [4
|
|
3201
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3202
3202
|
case 3:
|
|
3203
3203
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3204
|
-
return [3
|
|
3204
|
+
return [3, 13];
|
|
3205
3205
|
case 4:
|
|
3206
3206
|
_d = [{}];
|
|
3207
|
-
return [4
|
|
3207
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
3208
3208
|
case 5:
|
|
3209
3209
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3210
|
-
return [3
|
|
3210
|
+
return [3, 13];
|
|
3211
3211
|
case 6:
|
|
3212
3212
|
_e = [{}];
|
|
3213
|
-
return [4
|
|
3213
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
3214
3214
|
case 7:
|
|
3215
3215
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3216
|
-
return [3
|
|
3216
|
+
return [3, 13];
|
|
3217
3217
|
case 8:
|
|
3218
3218
|
_f = [{}];
|
|
3219
|
-
return [4
|
|
3219
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3220
3220
|
case 9:
|
|
3221
3221
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3222
|
-
return [3
|
|
3222
|
+
return [3, 13];
|
|
3223
3223
|
case 10:
|
|
3224
3224
|
_g = [{}];
|
|
3225
|
-
return [4
|
|
3225
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3226
3226
|
case 11:
|
|
3227
3227
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3228
|
-
return [3
|
|
3228
|
+
return [3, 13];
|
|
3229
3229
|
case 12:
|
|
3230
3230
|
parsedBody = parsedOutput.body;
|
|
3231
3231
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3235,7 +3235,7 @@ var deserializeAws_json1_1UpdateCallAnalyticsCategoryCommandError = function (ou
|
|
|
3235
3235
|
message = response.message || response.Message || errorCode;
|
|
3236
3236
|
response.message = message;
|
|
3237
3237
|
delete response.Message;
|
|
3238
|
-
return [2
|
|
3238
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3239
3239
|
}
|
|
3240
3240
|
});
|
|
3241
3241
|
}); };
|
|
@@ -3245,15 +3245,15 @@ export var deserializeAws_json1_1UpdateMedicalVocabularyCommand = function (outp
|
|
|
3245
3245
|
switch (_a.label) {
|
|
3246
3246
|
case 0:
|
|
3247
3247
|
if (output.statusCode >= 300) {
|
|
3248
|
-
return [2
|
|
3248
|
+
return [2, deserializeAws_json1_1UpdateMedicalVocabularyCommandError(output, context)];
|
|
3249
3249
|
}
|
|
3250
|
-
return [4
|
|
3250
|
+
return [4, parseBody(output.body, context)];
|
|
3251
3251
|
case 1:
|
|
3252
3252
|
data = _a.sent();
|
|
3253
3253
|
contents = {};
|
|
3254
3254
|
contents = deserializeAws_json1_1UpdateMedicalVocabularyResponse(data, context);
|
|
3255
3255
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3256
|
-
return [2
|
|
3256
|
+
return [2, Promise.resolve(response)];
|
|
3257
3257
|
}
|
|
3258
3258
|
});
|
|
3259
3259
|
}); };
|
|
@@ -3265,55 +3265,55 @@ var deserializeAws_json1_1UpdateMedicalVocabularyCommandError = function (output
|
|
|
3265
3265
|
case 0:
|
|
3266
3266
|
_a = [__assign({}, output)];
|
|
3267
3267
|
_h = {};
|
|
3268
|
-
return [4
|
|
3268
|
+
return [4, parseBody(output.body, context)];
|
|
3269
3269
|
case 1:
|
|
3270
3270
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3271
3271
|
errorCode = "UnknownError";
|
|
3272
3272
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3273
3273
|
_b = errorCode;
|
|
3274
3274
|
switch (_b) {
|
|
3275
|
-
case "BadRequestException": return [3
|
|
3276
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
3277
|
-
case "ConflictException": return [3
|
|
3278
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
3279
|
-
case "InternalFailureException": return [3
|
|
3280
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
3281
|
-
case "LimitExceededException": return [3
|
|
3282
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
3283
|
-
case "NotFoundException": return [3
|
|
3284
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
3275
|
+
case "BadRequestException": return [3, 2];
|
|
3276
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
3277
|
+
case "ConflictException": return [3, 4];
|
|
3278
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
3279
|
+
case "InternalFailureException": return [3, 6];
|
|
3280
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
3281
|
+
case "LimitExceededException": return [3, 8];
|
|
3282
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
3283
|
+
case "NotFoundException": return [3, 10];
|
|
3284
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 10];
|
|
3285
3285
|
}
|
|
3286
|
-
return [3
|
|
3286
|
+
return [3, 12];
|
|
3287
3287
|
case 2:
|
|
3288
3288
|
_c = [{}];
|
|
3289
|
-
return [4
|
|
3289
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3290
3290
|
case 3:
|
|
3291
3291
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3292
|
-
return [3
|
|
3292
|
+
return [3, 13];
|
|
3293
3293
|
case 4:
|
|
3294
3294
|
_d = [{}];
|
|
3295
|
-
return [4
|
|
3295
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
3296
3296
|
case 5:
|
|
3297
3297
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3298
|
-
return [3
|
|
3298
|
+
return [3, 13];
|
|
3299
3299
|
case 6:
|
|
3300
3300
|
_e = [{}];
|
|
3301
|
-
return [4
|
|
3301
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
3302
3302
|
case 7:
|
|
3303
3303
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3304
|
-
return [3
|
|
3304
|
+
return [3, 13];
|
|
3305
3305
|
case 8:
|
|
3306
3306
|
_f = [{}];
|
|
3307
|
-
return [4
|
|
3307
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3308
3308
|
case 9:
|
|
3309
3309
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3310
|
-
return [3
|
|
3310
|
+
return [3, 13];
|
|
3311
3311
|
case 10:
|
|
3312
3312
|
_g = [{}];
|
|
3313
|
-
return [4
|
|
3313
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3314
3314
|
case 11:
|
|
3315
3315
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3316
|
-
return [3
|
|
3316
|
+
return [3, 13];
|
|
3317
3317
|
case 12:
|
|
3318
3318
|
parsedBody = parsedOutput.body;
|
|
3319
3319
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3323,7 +3323,7 @@ var deserializeAws_json1_1UpdateMedicalVocabularyCommandError = function (output
|
|
|
3323
3323
|
message = response.message || response.Message || errorCode;
|
|
3324
3324
|
response.message = message;
|
|
3325
3325
|
delete response.Message;
|
|
3326
|
-
return [2
|
|
3326
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3327
3327
|
}
|
|
3328
3328
|
});
|
|
3329
3329
|
}); };
|
|
@@ -3333,15 +3333,15 @@ export var deserializeAws_json1_1UpdateVocabularyCommand = function (output, con
|
|
|
3333
3333
|
switch (_a.label) {
|
|
3334
3334
|
case 0:
|
|
3335
3335
|
if (output.statusCode >= 300) {
|
|
3336
|
-
return [2
|
|
3336
|
+
return [2, deserializeAws_json1_1UpdateVocabularyCommandError(output, context)];
|
|
3337
3337
|
}
|
|
3338
|
-
return [4
|
|
3338
|
+
return [4, parseBody(output.body, context)];
|
|
3339
3339
|
case 1:
|
|
3340
3340
|
data = _a.sent();
|
|
3341
3341
|
contents = {};
|
|
3342
3342
|
contents = deserializeAws_json1_1UpdateVocabularyResponse(data, context);
|
|
3343
3343
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3344
|
-
return [2
|
|
3344
|
+
return [2, Promise.resolve(response)];
|
|
3345
3345
|
}
|
|
3346
3346
|
});
|
|
3347
3347
|
}); };
|
|
@@ -3353,55 +3353,55 @@ var deserializeAws_json1_1UpdateVocabularyCommandError = function (output, conte
|
|
|
3353
3353
|
case 0:
|
|
3354
3354
|
_a = [__assign({}, output)];
|
|
3355
3355
|
_h = {};
|
|
3356
|
-
return [4
|
|
3356
|
+
return [4, parseBody(output.body, context)];
|
|
3357
3357
|
case 1:
|
|
3358
3358
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3359
3359
|
errorCode = "UnknownError";
|
|
3360
3360
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3361
3361
|
_b = errorCode;
|
|
3362
3362
|
switch (_b) {
|
|
3363
|
-
case "BadRequestException": return [3
|
|
3364
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
3365
|
-
case "ConflictException": return [3
|
|
3366
|
-
case "com.amazonaws.transcribe#ConflictException": return [3
|
|
3367
|
-
case "InternalFailureException": return [3
|
|
3368
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
3369
|
-
case "LimitExceededException": return [3
|
|
3370
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
3371
|
-
case "NotFoundException": return [3
|
|
3372
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
3363
|
+
case "BadRequestException": return [3, 2];
|
|
3364
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
3365
|
+
case "ConflictException": return [3, 4];
|
|
3366
|
+
case "com.amazonaws.transcribe#ConflictException": return [3, 4];
|
|
3367
|
+
case "InternalFailureException": return [3, 6];
|
|
3368
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 6];
|
|
3369
|
+
case "LimitExceededException": return [3, 8];
|
|
3370
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 8];
|
|
3371
|
+
case "NotFoundException": return [3, 10];
|
|
3372
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 10];
|
|
3373
3373
|
}
|
|
3374
|
-
return [3
|
|
3374
|
+
return [3, 12];
|
|
3375
3375
|
case 2:
|
|
3376
3376
|
_c = [{}];
|
|
3377
|
-
return [4
|
|
3377
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3378
3378
|
case 3:
|
|
3379
3379
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3380
|
-
return [3
|
|
3380
|
+
return [3, 13];
|
|
3381
3381
|
case 4:
|
|
3382
3382
|
_d = [{}];
|
|
3383
|
-
return [4
|
|
3383
|
+
return [4, deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)];
|
|
3384
3384
|
case 5:
|
|
3385
3385
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3386
|
-
return [3
|
|
3386
|
+
return [3, 13];
|
|
3387
3387
|
case 6:
|
|
3388
3388
|
_e = [{}];
|
|
3389
|
-
return [4
|
|
3389
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
3390
3390
|
case 7:
|
|
3391
3391
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3392
|
-
return [3
|
|
3392
|
+
return [3, 13];
|
|
3393
3393
|
case 8:
|
|
3394
3394
|
_f = [{}];
|
|
3395
|
-
return [4
|
|
3395
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3396
3396
|
case 9:
|
|
3397
3397
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3398
|
-
return [3
|
|
3398
|
+
return [3, 13];
|
|
3399
3399
|
case 10:
|
|
3400
3400
|
_g = [{}];
|
|
3401
|
-
return [4
|
|
3401
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3402
3402
|
case 11:
|
|
3403
3403
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3404
|
-
return [3
|
|
3404
|
+
return [3, 13];
|
|
3405
3405
|
case 12:
|
|
3406
3406
|
parsedBody = parsedOutput.body;
|
|
3407
3407
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3411,7 +3411,7 @@ var deserializeAws_json1_1UpdateVocabularyCommandError = function (output, conte
|
|
|
3411
3411
|
message = response.message || response.Message || errorCode;
|
|
3412
3412
|
response.message = message;
|
|
3413
3413
|
delete response.Message;
|
|
3414
|
-
return [2
|
|
3414
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3415
3415
|
}
|
|
3416
3416
|
});
|
|
3417
3417
|
}); };
|
|
@@ -3421,15 +3421,15 @@ export var deserializeAws_json1_1UpdateVocabularyFilterCommand = function (outpu
|
|
|
3421
3421
|
switch (_a.label) {
|
|
3422
3422
|
case 0:
|
|
3423
3423
|
if (output.statusCode >= 300) {
|
|
3424
|
-
return [2
|
|
3424
|
+
return [2, deserializeAws_json1_1UpdateVocabularyFilterCommandError(output, context)];
|
|
3425
3425
|
}
|
|
3426
|
-
return [4
|
|
3426
|
+
return [4, parseBody(output.body, context)];
|
|
3427
3427
|
case 1:
|
|
3428
3428
|
data = _a.sent();
|
|
3429
3429
|
contents = {};
|
|
3430
3430
|
contents = deserializeAws_json1_1UpdateVocabularyFilterResponse(data, context);
|
|
3431
3431
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3432
|
-
return [2
|
|
3432
|
+
return [2, Promise.resolve(response)];
|
|
3433
3433
|
}
|
|
3434
3434
|
});
|
|
3435
3435
|
}); };
|
|
@@ -3441,47 +3441,47 @@ var deserializeAws_json1_1UpdateVocabularyFilterCommandError = function (output,
|
|
|
3441
3441
|
case 0:
|
|
3442
3442
|
_a = [__assign({}, output)];
|
|
3443
3443
|
_g = {};
|
|
3444
|
-
return [4
|
|
3444
|
+
return [4, parseBody(output.body, context)];
|
|
3445
3445
|
case 1:
|
|
3446
3446
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3447
3447
|
errorCode = "UnknownError";
|
|
3448
3448
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3449
3449
|
_b = errorCode;
|
|
3450
3450
|
switch (_b) {
|
|
3451
|
-
case "BadRequestException": return [3
|
|
3452
|
-
case "com.amazonaws.transcribe#BadRequestException": return [3
|
|
3453
|
-
case "InternalFailureException": return [3
|
|
3454
|
-
case "com.amazonaws.transcribe#InternalFailureException": return [3
|
|
3455
|
-
case "LimitExceededException": return [3
|
|
3456
|
-
case "com.amazonaws.transcribe#LimitExceededException": return [3
|
|
3457
|
-
case "NotFoundException": return [3
|
|
3458
|
-
case "com.amazonaws.transcribe#NotFoundException": return [3
|
|
3451
|
+
case "BadRequestException": return [3, 2];
|
|
3452
|
+
case "com.amazonaws.transcribe#BadRequestException": return [3, 2];
|
|
3453
|
+
case "InternalFailureException": return [3, 4];
|
|
3454
|
+
case "com.amazonaws.transcribe#InternalFailureException": return [3, 4];
|
|
3455
|
+
case "LimitExceededException": return [3, 6];
|
|
3456
|
+
case "com.amazonaws.transcribe#LimitExceededException": return [3, 6];
|
|
3457
|
+
case "NotFoundException": return [3, 8];
|
|
3458
|
+
case "com.amazonaws.transcribe#NotFoundException": return [3, 8];
|
|
3459
3459
|
}
|
|
3460
|
-
return [3
|
|
3460
|
+
return [3, 10];
|
|
3461
3461
|
case 2:
|
|
3462
3462
|
_c = [{}];
|
|
3463
|
-
return [4
|
|
3463
|
+
return [4, deserializeAws_json1_1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3464
3464
|
case 3:
|
|
3465
3465
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3466
|
-
return [3
|
|
3466
|
+
return [3, 11];
|
|
3467
3467
|
case 4:
|
|
3468
3468
|
_d = [{}];
|
|
3469
|
-
return [4
|
|
3469
|
+
return [4, deserializeAws_json1_1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
3470
3470
|
case 5:
|
|
3471
3471
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3472
|
-
return [3
|
|
3472
|
+
return [3, 11];
|
|
3473
3473
|
case 6:
|
|
3474
3474
|
_e = [{}];
|
|
3475
|
-
return [4
|
|
3475
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3476
3476
|
case 7:
|
|
3477
3477
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3478
|
-
return [3
|
|
3478
|
+
return [3, 11];
|
|
3479
3479
|
case 8:
|
|
3480
3480
|
_f = [{}];
|
|
3481
|
-
return [4
|
|
3481
|
+
return [4, deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3482
3482
|
case 9:
|
|
3483
3483
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3484
|
-
return [3
|
|
3484
|
+
return [3, 11];
|
|
3485
3485
|
case 10:
|
|
3486
3486
|
parsedBody = parsedOutput.body;
|
|
3487
3487
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3491,7 +3491,7 @@ var deserializeAws_json1_1UpdateVocabularyFilterCommandError = function (output,
|
|
|
3491
3491
|
message = response.message || response.Message || errorCode;
|
|
3492
3492
|
response.message = message;
|
|
3493
3493
|
delete response.Message;
|
|
3494
|
-
return [2
|
|
3494
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3495
3495
|
}
|
|
3496
3496
|
});
|
|
3497
3497
|
}); };
|
|
@@ -3501,7 +3501,7 @@ var deserializeAws_json1_1BadRequestExceptionResponse = function (parsedOutput,
|
|
|
3501
3501
|
body = parsedOutput.body;
|
|
3502
3502
|
deserialized = deserializeAws_json1_1BadRequestException(body, context);
|
|
3503
3503
|
contents = __assign({ name: "BadRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3504
|
-
return [2
|
|
3504
|
+
return [2, contents];
|
|
3505
3505
|
});
|
|
3506
3506
|
}); };
|
|
3507
3507
|
var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3510,7 +3510,7 @@ var deserializeAws_json1_1ConflictExceptionResponse = function (parsedOutput, co
|
|
|
3510
3510
|
body = parsedOutput.body;
|
|
3511
3511
|
deserialized = deserializeAws_json1_1ConflictException(body, context);
|
|
3512
3512
|
contents = __assign({ name: "ConflictException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3513
|
-
return [2
|
|
3513
|
+
return [2, contents];
|
|
3514
3514
|
});
|
|
3515
3515
|
}); };
|
|
3516
3516
|
var deserializeAws_json1_1InternalFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3519,7 +3519,7 @@ var deserializeAws_json1_1InternalFailureExceptionResponse = function (parsedOut
|
|
|
3519
3519
|
body = parsedOutput.body;
|
|
3520
3520
|
deserialized = deserializeAws_json1_1InternalFailureException(body, context);
|
|
3521
3521
|
contents = __assign({ name: "InternalFailureException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3522
|
-
return [2
|
|
3522
|
+
return [2, contents];
|
|
3523
3523
|
});
|
|
3524
3524
|
}); };
|
|
3525
3525
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3528,7 +3528,7 @@ var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutpu
|
|
|
3528
3528
|
body = parsedOutput.body;
|
|
3529
3529
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3530
3530
|
contents = __assign({ name: "LimitExceededException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3531
|
-
return [2
|
|
3531
|
+
return [2, contents];
|
|
3532
3532
|
});
|
|
3533
3533
|
}); };
|
|
3534
3534
|
var deserializeAws_json1_1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -3537,7 +3537,7 @@ var deserializeAws_json1_1NotFoundExceptionResponse = function (parsedOutput, co
|
|
|
3537
3537
|
body = parsedOutput.body;
|
|
3538
3538
|
deserialized = deserializeAws_json1_1NotFoundException(body, context);
|
|
3539
3539
|
contents = __assign({ name: "NotFoundException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
3540
|
-
return [2
|
|
3540
|
+
return [2, contents];
|
|
3541
3541
|
});
|
|
3542
3542
|
}); };
|
|
3543
3543
|
var serializeAws_json1_1AbsoluteTimeRange = function (input, context) {
|
|
@@ -3681,6 +3681,16 @@ var serializeAws_json1_1JobExecutionSettings = function (input, context) {
|
|
|
3681
3681
|
input.AllowDeferredExecution !== null && { AllowDeferredExecution: input.AllowDeferredExecution })), (input.DataAccessRoleArn !== undefined &&
|
|
3682
3682
|
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn }));
|
|
3683
3683
|
};
|
|
3684
|
+
var serializeAws_json1_1KMSEncryptionContextMap = function (input, context) {
|
|
3685
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
3686
|
+
var _b;
|
|
3687
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
3688
|
+
if (value === null) {
|
|
3689
|
+
return acc;
|
|
3690
|
+
}
|
|
3691
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
3692
|
+
}, {});
|
|
3693
|
+
};
|
|
3684
3694
|
var serializeAws_json1_1LanguageOptions = function (input, context) {
|
|
3685
3695
|
return input
|
|
3686
3696
|
.filter(function (e) { return e != null; })
|
|
@@ -3825,8 +3835,11 @@ var serializeAws_json1_1StartCallAnalyticsJobRequest = function (input, context)
|
|
|
3825
3835
|
input.Settings !== null && { Settings: serializeAws_json1_1CallAnalyticsJobSettings(input.Settings, context) }));
|
|
3826
3836
|
};
|
|
3827
3837
|
var serializeAws_json1_1StartMedicalTranscriptionJobRequest = function (input, context) {
|
|
3828
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContentIdentificationType !== undefined &&
|
|
3829
|
-
input.ContentIdentificationType !== null && { ContentIdentificationType: input.ContentIdentificationType })), (input.
|
|
3838
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContentIdentificationType !== undefined &&
|
|
3839
|
+
input.ContentIdentificationType !== null && { ContentIdentificationType: input.ContentIdentificationType })), (input.KMSEncryptionContext !== undefined &&
|
|
3840
|
+
input.KMSEncryptionContext !== null && {
|
|
3841
|
+
KMSEncryptionContext: serializeAws_json1_1KMSEncryptionContextMap(input.KMSEncryptionContext, context),
|
|
3842
|
+
})), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.Media !== undefined &&
|
|
3830
3843
|
input.Media !== null && { Media: serializeAws_json1_1Media(input.Media, context) })), (input.MediaFormat !== undefined && input.MediaFormat !== null && { MediaFormat: input.MediaFormat })), (input.MediaSampleRateHertz !== undefined &&
|
|
3831
3844
|
input.MediaSampleRateHertz !== null && { MediaSampleRateHertz: input.MediaSampleRateHertz })), (input.MedicalTranscriptionJobName !== undefined &&
|
|
3832
3845
|
input.MedicalTranscriptionJobName !== null && { MedicalTranscriptionJobName: input.MedicalTranscriptionJobName })), (input.OutputBucketName !== undefined &&
|
|
@@ -3837,13 +3850,16 @@ var serializeAws_json1_1StartMedicalTranscriptionJobRequest = function (input, c
|
|
|
3837
3850
|
})), (input.Specialty !== undefined && input.Specialty !== null && { Specialty: input.Specialty })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
|
|
3838
3851
|
};
|
|
3839
3852
|
var serializeAws_json1_1StartTranscriptionJobRequest = function (input, context) {
|
|
3840
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContentRedaction !== undefined &&
|
|
3853
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ContentRedaction !== undefined &&
|
|
3841
3854
|
input.ContentRedaction !== null && {
|
|
3842
3855
|
ContentRedaction: serializeAws_json1_1ContentRedaction(input.ContentRedaction, context),
|
|
3843
3856
|
})), (input.IdentifyLanguage !== undefined &&
|
|
3844
3857
|
input.IdentifyLanguage !== null && { IdentifyLanguage: input.IdentifyLanguage })), (input.JobExecutionSettings !== undefined &&
|
|
3845
3858
|
input.JobExecutionSettings !== null && {
|
|
3846
3859
|
JobExecutionSettings: serializeAws_json1_1JobExecutionSettings(input.JobExecutionSettings, context),
|
|
3860
|
+
})), (input.KMSEncryptionContext !== undefined &&
|
|
3861
|
+
input.KMSEncryptionContext !== null && {
|
|
3862
|
+
KMSEncryptionContext: serializeAws_json1_1KMSEncryptionContextMap(input.KMSEncryptionContext, context),
|
|
3847
3863
|
})), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.LanguageOptions !== undefined &&
|
|
3848
3864
|
input.LanguageOptions !== null && {
|
|
3849
3865
|
LanguageOptions: serializeAws_json1_1LanguageOptions(input.LanguageOptions, context),
|
|
@@ -3855,7 +3871,8 @@ var serializeAws_json1_1StartTranscriptionJobRequest = function (input, context)
|
|
|
3855
3871
|
})), (input.OutputBucketName !== undefined &&
|
|
3856
3872
|
input.OutputBucketName !== null && { OutputBucketName: input.OutputBucketName })), (input.OutputEncryptionKMSKeyId !== undefined &&
|
|
3857
3873
|
input.OutputEncryptionKMSKeyId !== null && { OutputEncryptionKMSKeyId: input.OutputEncryptionKMSKeyId })), (input.OutputKey !== undefined && input.OutputKey !== null && { OutputKey: input.OutputKey })), (input.Settings !== undefined &&
|
|
3858
|
-
input.Settings !== null && { Settings: serializeAws_json1_1Settings(input.Settings, context) })), (input.
|
|
3874
|
+
input.Settings !== null && { Settings: serializeAws_json1_1Settings(input.Settings, context) })), (input.Subtitles !== undefined &&
|
|
3875
|
+
input.Subtitles !== null && { Subtitles: serializeAws_json1_1Subtitles(input.Subtitles, context) })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.TranscriptionJobName !== undefined &&
|
|
3859
3876
|
input.TranscriptionJobName !== null && { TranscriptionJobName: input.TranscriptionJobName }));
|
|
3860
3877
|
};
|
|
3861
3878
|
var serializeAws_json1_1StringTargetList = function (input, context) {
|
|
@@ -3868,6 +3885,20 @@ var serializeAws_json1_1StringTargetList = function (input, context) {
|
|
|
3868
3885
|
return entry;
|
|
3869
3886
|
});
|
|
3870
3887
|
};
|
|
3888
|
+
var serializeAws_json1_1SubtitleFormats = function (input, context) {
|
|
3889
|
+
return input
|
|
3890
|
+
.filter(function (e) { return e != null; })
|
|
3891
|
+
.map(function (entry) {
|
|
3892
|
+
if (entry === null) {
|
|
3893
|
+
return null;
|
|
3894
|
+
}
|
|
3895
|
+
return entry;
|
|
3896
|
+
});
|
|
3897
|
+
};
|
|
3898
|
+
var serializeAws_json1_1Subtitles = function (input, context) {
|
|
3899
|
+
return __assign({}, (input.Formats !== undefined &&
|
|
3900
|
+
input.Formats !== null && { Formats: serializeAws_json1_1SubtitleFormats(input.Formats, context) }));
|
|
3901
|
+
};
|
|
3871
3902
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
3872
3903
|
return __assign(__assign({}, (input.Key !== undefined && input.Key !== null && { Key: input.Key })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
|
|
3873
3904
|
};
|
|
@@ -3962,10 +3993,10 @@ var deserializeAws_json1_1CallAnalyticsJob = function (output, context) {
|
|
|
3962
3993
|
? deserializeAws_json1_1ChannelDefinitions(output.ChannelDefinitions, context)
|
|
3963
3994
|
: undefined,
|
|
3964
3995
|
CompletionTime: output.CompletionTime !== undefined && output.CompletionTime !== null
|
|
3965
|
-
?
|
|
3996
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
|
|
3966
3997
|
: undefined,
|
|
3967
3998
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
3968
|
-
?
|
|
3999
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
3969
4000
|
: undefined,
|
|
3970
4001
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
3971
4002
|
FailureReason: __expectString(output.FailureReason),
|
|
@@ -3980,7 +4011,7 @@ var deserializeAws_json1_1CallAnalyticsJob = function (output, context) {
|
|
|
3980
4011
|
? deserializeAws_json1_1CallAnalyticsJobSettings(output.Settings, context)
|
|
3981
4012
|
: undefined,
|
|
3982
4013
|
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
3983
|
-
?
|
|
4014
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
3984
4015
|
: undefined,
|
|
3985
4016
|
Transcript: output.Transcript !== undefined && output.Transcript !== null
|
|
3986
4017
|
? deserializeAws_json1_1Transcript(output.Transcript, context)
|
|
@@ -4016,15 +4047,15 @@ var deserializeAws_json1_1CallAnalyticsJobSummary = function (output, context) {
|
|
|
4016
4047
|
CallAnalyticsJobName: __expectString(output.CallAnalyticsJobName),
|
|
4017
4048
|
CallAnalyticsJobStatus: __expectString(output.CallAnalyticsJobStatus),
|
|
4018
4049
|
CompletionTime: output.CompletionTime !== undefined && output.CompletionTime !== null
|
|
4019
|
-
?
|
|
4050
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
|
|
4020
4051
|
: undefined,
|
|
4021
4052
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4022
|
-
?
|
|
4053
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4023
4054
|
: undefined,
|
|
4024
4055
|
FailureReason: __expectString(output.FailureReason),
|
|
4025
4056
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4026
4057
|
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4027
|
-
?
|
|
4058
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
4028
4059
|
: undefined,
|
|
4029
4060
|
};
|
|
4030
4061
|
};
|
|
@@ -4032,10 +4063,10 @@ var deserializeAws_json1_1CategoryProperties = function (output, context) {
|
|
|
4032
4063
|
return {
|
|
4033
4064
|
CategoryName: __expectString(output.CategoryName),
|
|
4034
4065
|
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
4035
|
-
?
|
|
4066
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTime)))
|
|
4036
4067
|
: undefined,
|
|
4037
4068
|
LastUpdateTime: output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
|
|
4038
|
-
?
|
|
4069
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
|
|
4039
4070
|
: undefined,
|
|
4040
4071
|
Rules: output.Rules !== undefined && output.Rules !== null
|
|
4041
4072
|
? deserializeAws_json1_1RuleList(output.Rules, context)
|
|
@@ -4102,7 +4133,7 @@ var deserializeAws_json1_1CreateMedicalVocabularyResponse = function (output, co
|
|
|
4102
4133
|
FailureReason: __expectString(output.FailureReason),
|
|
4103
4134
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4104
4135
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4105
|
-
?
|
|
4136
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4106
4137
|
: undefined,
|
|
4107
4138
|
VocabularyName: __expectString(output.VocabularyName),
|
|
4108
4139
|
VocabularyState: __expectString(output.VocabularyState),
|
|
@@ -4112,7 +4143,7 @@ var deserializeAws_json1_1CreateVocabularyFilterResponse = function (output, con
|
|
|
4112
4143
|
return {
|
|
4113
4144
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4114
4145
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4115
|
-
?
|
|
4146
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4116
4147
|
: undefined,
|
|
4117
4148
|
VocabularyFilterName: __expectString(output.VocabularyFilterName),
|
|
4118
4149
|
};
|
|
@@ -4122,7 +4153,7 @@ var deserializeAws_json1_1CreateVocabularyResponse = function (output, context)
|
|
|
4122
4153
|
FailureReason: __expectString(output.FailureReason),
|
|
4123
4154
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4124
4155
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4125
|
-
?
|
|
4156
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4126
4157
|
: undefined,
|
|
4127
4158
|
VocabularyName: __expectString(output.VocabularyName),
|
|
4128
4159
|
VocabularyState: __expectString(output.VocabularyState),
|
|
@@ -4168,7 +4199,7 @@ var deserializeAws_json1_1GetMedicalVocabularyResponse = function (output, conte
|
|
|
4168
4199
|
FailureReason: __expectString(output.FailureReason),
|
|
4169
4200
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4170
4201
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4171
|
-
?
|
|
4202
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4172
4203
|
: undefined,
|
|
4173
4204
|
VocabularyName: __expectString(output.VocabularyName),
|
|
4174
4205
|
VocabularyState: __expectString(output.VocabularyState),
|
|
@@ -4186,7 +4217,7 @@ var deserializeAws_json1_1GetVocabularyFilterResponse = function (output, contex
|
|
|
4186
4217
|
DownloadUri: __expectString(output.DownloadUri),
|
|
4187
4218
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4188
4219
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4189
|
-
?
|
|
4220
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4190
4221
|
: undefined,
|
|
4191
4222
|
VocabularyFilterName: __expectString(output.VocabularyFilterName),
|
|
4192
4223
|
};
|
|
@@ -4197,7 +4228,7 @@ var deserializeAws_json1_1GetVocabularyResponse = function (output, context) {
|
|
|
4197
4228
|
FailureReason: __expectString(output.FailureReason),
|
|
4198
4229
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4199
4230
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4200
|
-
?
|
|
4231
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4201
4232
|
: undefined,
|
|
4202
4233
|
VocabularyName: __expectString(output.VocabularyName),
|
|
4203
4234
|
VocabularyState: __expectString(output.VocabularyState),
|
|
@@ -4238,7 +4269,7 @@ var deserializeAws_json1_1LanguageModel = function (output, context) {
|
|
|
4238
4269
|
return {
|
|
4239
4270
|
BaseModelName: __expectString(output.BaseModelName),
|
|
4240
4271
|
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
4241
|
-
?
|
|
4272
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateTime)))
|
|
4242
4273
|
: undefined,
|
|
4243
4274
|
FailureReason: __expectString(output.FailureReason),
|
|
4244
4275
|
InputDataConfig: output.InputDataConfig !== undefined && output.InputDataConfig !== null
|
|
@@ -4246,7 +4277,7 @@ var deserializeAws_json1_1LanguageModel = function (output, context) {
|
|
|
4246
4277
|
: undefined,
|
|
4247
4278
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4248
4279
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4249
|
-
?
|
|
4280
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4250
4281
|
: undefined,
|
|
4251
4282
|
ModelName: __expectString(output.ModelName),
|
|
4252
4283
|
ModelStatus: __expectString(output.ModelStatus),
|
|
@@ -4359,11 +4390,11 @@ var deserializeAws_json1_1MedicalTranscript = function (output, context) {
|
|
|
4359
4390
|
var deserializeAws_json1_1MedicalTranscriptionJob = function (output, context) {
|
|
4360
4391
|
return {
|
|
4361
4392
|
CompletionTime: output.CompletionTime !== undefined && output.CompletionTime !== null
|
|
4362
|
-
?
|
|
4393
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
|
|
4363
4394
|
: undefined,
|
|
4364
4395
|
ContentIdentificationType: __expectString(output.ContentIdentificationType),
|
|
4365
4396
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4366
|
-
?
|
|
4397
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4367
4398
|
: undefined,
|
|
4368
4399
|
FailureReason: __expectString(output.FailureReason),
|
|
4369
4400
|
LanguageCode: __expectString(output.LanguageCode),
|
|
@@ -4378,7 +4409,7 @@ var deserializeAws_json1_1MedicalTranscriptionJob = function (output, context) {
|
|
|
4378
4409
|
: undefined,
|
|
4379
4410
|
Specialty: __expectString(output.Specialty),
|
|
4380
4411
|
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4381
|
-
?
|
|
4412
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
4382
4413
|
: undefined,
|
|
4383
4414
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4384
4415
|
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
@@ -4403,11 +4434,11 @@ var deserializeAws_json1_1MedicalTranscriptionJobSummaries = function (output, c
|
|
|
4403
4434
|
var deserializeAws_json1_1MedicalTranscriptionJobSummary = function (output, context) {
|
|
4404
4435
|
return {
|
|
4405
4436
|
CompletionTime: output.CompletionTime !== undefined && output.CompletionTime !== null
|
|
4406
|
-
?
|
|
4437
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
|
|
4407
4438
|
: undefined,
|
|
4408
4439
|
ContentIdentificationType: __expectString(output.ContentIdentificationType),
|
|
4409
4440
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4410
|
-
?
|
|
4441
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4411
4442
|
: undefined,
|
|
4412
4443
|
FailureReason: __expectString(output.FailureReason),
|
|
4413
4444
|
LanguageCode: __expectString(output.LanguageCode),
|
|
@@ -4415,7 +4446,7 @@ var deserializeAws_json1_1MedicalTranscriptionJobSummary = function (output, con
|
|
|
4415
4446
|
OutputLocationType: __expectString(output.OutputLocationType),
|
|
4416
4447
|
Specialty: __expectString(output.Specialty),
|
|
4417
4448
|
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4418
|
-
?
|
|
4449
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
4419
4450
|
: undefined,
|
|
4420
4451
|
TranscriptionJobStatus: __expectString(output.TranscriptionJobStatus),
|
|
4421
4452
|
Type: __expectString(output.Type),
|
|
@@ -4501,7 +4532,7 @@ var deserializeAws_json1_1RuleList = function (output, context) {
|
|
|
4501
4532
|
if (entry === null) {
|
|
4502
4533
|
return null;
|
|
4503
4534
|
}
|
|
4504
|
-
return deserializeAws_json1_1Rule(entry, context);
|
|
4535
|
+
return deserializeAws_json1_1Rule(__expectUnion(entry), context);
|
|
4505
4536
|
});
|
|
4506
4537
|
};
|
|
4507
4538
|
var deserializeAws_json1_1SentimentFilter = function (output, context) {
|
|
@@ -4572,6 +4603,36 @@ var deserializeAws_json1_1StringTargetList = function (output, context) {
|
|
|
4572
4603
|
return __expectString(entry);
|
|
4573
4604
|
});
|
|
4574
4605
|
};
|
|
4606
|
+
var deserializeAws_json1_1SubtitleFileUris = function (output, context) {
|
|
4607
|
+
return (output || [])
|
|
4608
|
+
.filter(function (e) { return e != null; })
|
|
4609
|
+
.map(function (entry) {
|
|
4610
|
+
if (entry === null) {
|
|
4611
|
+
return null;
|
|
4612
|
+
}
|
|
4613
|
+
return __expectString(entry);
|
|
4614
|
+
});
|
|
4615
|
+
};
|
|
4616
|
+
var deserializeAws_json1_1SubtitleFormats = function (output, context) {
|
|
4617
|
+
return (output || [])
|
|
4618
|
+
.filter(function (e) { return e != null; })
|
|
4619
|
+
.map(function (entry) {
|
|
4620
|
+
if (entry === null) {
|
|
4621
|
+
return null;
|
|
4622
|
+
}
|
|
4623
|
+
return __expectString(entry);
|
|
4624
|
+
});
|
|
4625
|
+
};
|
|
4626
|
+
var deserializeAws_json1_1SubtitlesOutput = function (output, context) {
|
|
4627
|
+
return {
|
|
4628
|
+
Formats: output.Formats !== undefined && output.Formats !== null
|
|
4629
|
+
? deserializeAws_json1_1SubtitleFormats(output.Formats, context)
|
|
4630
|
+
: undefined,
|
|
4631
|
+
SubtitleFileUris: output.SubtitleFileUris !== undefined && output.SubtitleFileUris !== null
|
|
4632
|
+
? deserializeAws_json1_1SubtitleFileUris(output.SubtitleFileUris, context)
|
|
4633
|
+
: undefined,
|
|
4634
|
+
};
|
|
4635
|
+
};
|
|
4575
4636
|
var deserializeAws_json1_1Tag = function (output, context) {
|
|
4576
4637
|
return {
|
|
4577
4638
|
Key: __expectString(output.Key),
|
|
@@ -4616,13 +4677,13 @@ var deserializeAws_json1_1TranscriptFilter = function (output, context) {
|
|
|
4616
4677
|
var deserializeAws_json1_1TranscriptionJob = function (output, context) {
|
|
4617
4678
|
return {
|
|
4618
4679
|
CompletionTime: output.CompletionTime !== undefined && output.CompletionTime !== null
|
|
4619
|
-
?
|
|
4680
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
|
|
4620
4681
|
: undefined,
|
|
4621
4682
|
ContentRedaction: output.ContentRedaction !== undefined && output.ContentRedaction !== null
|
|
4622
4683
|
? deserializeAws_json1_1ContentRedaction(output.ContentRedaction, context)
|
|
4623
4684
|
: undefined,
|
|
4624
4685
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4625
|
-
?
|
|
4686
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4626
4687
|
: undefined,
|
|
4627
4688
|
FailureReason: __expectString(output.FailureReason),
|
|
4628
4689
|
IdentifiedLanguageScore: __limitedParseFloat32(output.IdentifiedLanguageScore),
|
|
@@ -4646,7 +4707,10 @@ var deserializeAws_json1_1TranscriptionJob = function (output, context) {
|
|
|
4646
4707
|
? deserializeAws_json1_1Settings(output.Settings, context)
|
|
4647
4708
|
: undefined,
|
|
4648
4709
|
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4649
|
-
?
|
|
4710
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
4711
|
+
: undefined,
|
|
4712
|
+
Subtitles: output.Subtitles !== undefined && output.Subtitles !== null
|
|
4713
|
+
? deserializeAws_json1_1SubtitlesOutput(output.Subtitles, context)
|
|
4650
4714
|
: undefined,
|
|
4651
4715
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
4652
4716
|
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
@@ -4671,13 +4735,13 @@ var deserializeAws_json1_1TranscriptionJobSummaries = function (output, context)
|
|
|
4671
4735
|
var deserializeAws_json1_1TranscriptionJobSummary = function (output, context) {
|
|
4672
4736
|
return {
|
|
4673
4737
|
CompletionTime: output.CompletionTime !== undefined && output.CompletionTime !== null
|
|
4674
|
-
?
|
|
4738
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionTime)))
|
|
4675
4739
|
: undefined,
|
|
4676
4740
|
ContentRedaction: output.ContentRedaction !== undefined && output.ContentRedaction !== null
|
|
4677
4741
|
? deserializeAws_json1_1ContentRedaction(output.ContentRedaction, context)
|
|
4678
4742
|
: undefined,
|
|
4679
4743
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
4680
|
-
?
|
|
4744
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
4681
4745
|
: undefined,
|
|
4682
4746
|
FailureReason: __expectString(output.FailureReason),
|
|
4683
4747
|
IdentifiedLanguageScore: __limitedParseFloat32(output.IdentifiedLanguageScore),
|
|
@@ -4688,7 +4752,7 @@ var deserializeAws_json1_1TranscriptionJobSummary = function (output, context) {
|
|
|
4688
4752
|
: undefined,
|
|
4689
4753
|
OutputLocationType: __expectString(output.OutputLocationType),
|
|
4690
4754
|
StartTime: output.StartTime !== undefined && output.StartTime !== null
|
|
4691
|
-
?
|
|
4755
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
4692
4756
|
: undefined,
|
|
4693
4757
|
TranscriptionJobName: __expectString(output.TranscriptionJobName),
|
|
4694
4758
|
TranscriptionJobStatus: __expectString(output.TranscriptionJobStatus),
|
|
@@ -4708,7 +4772,7 @@ var deserializeAws_json1_1UpdateMedicalVocabularyResponse = function (output, co
|
|
|
4708
4772
|
return {
|
|
4709
4773
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4710
4774
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4711
|
-
?
|
|
4775
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4712
4776
|
: undefined,
|
|
4713
4777
|
VocabularyName: __expectString(output.VocabularyName),
|
|
4714
4778
|
VocabularyState: __expectString(output.VocabularyState),
|
|
@@ -4718,7 +4782,7 @@ var deserializeAws_json1_1UpdateVocabularyFilterResponse = function (output, con
|
|
|
4718
4782
|
return {
|
|
4719
4783
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4720
4784
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4721
|
-
?
|
|
4785
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4722
4786
|
: undefined,
|
|
4723
4787
|
VocabularyFilterName: __expectString(output.VocabularyFilterName),
|
|
4724
4788
|
};
|
|
@@ -4727,7 +4791,7 @@ var deserializeAws_json1_1UpdateVocabularyResponse = function (output, context)
|
|
|
4727
4791
|
return {
|
|
4728
4792
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4729
4793
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4730
|
-
?
|
|
4794
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4731
4795
|
: undefined,
|
|
4732
4796
|
VocabularyName: __expectString(output.VocabularyName),
|
|
4733
4797
|
VocabularyState: __expectString(output.VocabularyState),
|
|
@@ -4747,7 +4811,7 @@ var deserializeAws_json1_1VocabularyFilterInfo = function (output, context) {
|
|
|
4747
4811
|
return {
|
|
4748
4812
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4749
4813
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4750
|
-
?
|
|
4814
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4751
4815
|
: undefined,
|
|
4752
4816
|
VocabularyFilterName: __expectString(output.VocabularyFilterName),
|
|
4753
4817
|
};
|
|
@@ -4766,7 +4830,7 @@ var deserializeAws_json1_1VocabularyInfo = function (output, context) {
|
|
|
4766
4830
|
return {
|
|
4767
4831
|
LanguageCode: __expectString(output.LanguageCode),
|
|
4768
4832
|
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
4769
|
-
?
|
|
4833
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
4770
4834
|
: undefined,
|
|
4771
4835
|
VocabularyName: __expectString(output.VocabularyName),
|
|
4772
4836
|
VocabularyState: __expectString(output.VocabularyState),
|
|
@@ -4781,7 +4845,6 @@ var deserializeMetadata = function (output) {
|
|
|
4781
4845
|
cfId: output.headers["x-amz-cf-id"],
|
|
4782
4846
|
});
|
|
4783
4847
|
};
|
|
4784
|
-
// Collect low-level response body stream to Uint8Array.
|
|
4785
4848
|
var collectBody = function (streamBody, context) {
|
|
4786
4849
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
4787
4850
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -4789,7 +4852,6 @@ var collectBody = function (streamBody, context) {
|
|
|
4789
4852
|
}
|
|
4790
4853
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4791
4854
|
};
|
|
4792
|
-
// Encode Uint8Array data into string with utf-8.
|
|
4793
4855
|
var collectBodyString = function (streamBody, context) {
|
|
4794
4856
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
4795
4857
|
};
|
|
@@ -4797,7 +4859,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4797
4859
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
4798
4860
|
return __generator(this, function (_c) {
|
|
4799
4861
|
switch (_c.label) {
|
|
4800
|
-
case 0: return [4
|
|
4862
|
+
case 0: return [4, context.endpoint()];
|
|
4801
4863
|
case 1:
|
|
4802
4864
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4803
4865
|
contents = {
|
|
@@ -4814,7 +4876,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
4814
4876
|
if (body !== undefined) {
|
|
4815
4877
|
contents.body = body;
|
|
4816
4878
|
}
|
|
4817
|
-
return [2
|
|
4879
|
+
return [2, new __HttpRequest(contents)];
|
|
4818
4880
|
}
|
|
4819
4881
|
});
|
|
4820
4882
|
}); };
|
|
@@ -4826,9 +4888,6 @@ var parseBody = function (streamBody, context) {
|
|
|
4826
4888
|
return {};
|
|
4827
4889
|
});
|
|
4828
4890
|
};
|
|
4829
|
-
/**
|
|
4830
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
4831
|
-
*/
|
|
4832
4891
|
var loadRestJsonErrorCode = function (output, data) {
|
|
4833
4892
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4834
4893
|
var sanitizeErrorCode = function (rawValue) {
|