@aws-sdk/client-cloudhsm 3.32.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/{dist/cjs → dist-cjs}/CloudHSM.js +0 -1
- package/{dist/cjs → dist-cjs}/CloudHSMClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/AddTagsToResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateHapgCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateHsmCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateLunaClientCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteHapgCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteHsmCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteLunaClientCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeHapgCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeHsmCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DescribeLunaClientCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetConfigCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListAvailableZonesCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListHapgsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListHsmsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListLunaClientsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ModifyHapgCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ModifyHsmCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ModifyLunaClientCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/RemoveTagsFromResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/CloudHSM.js +1 -15
- package/{dist/es → dist-es}/CloudHSMClient.js +2 -21
- package/dist-es/commands/AddTagsToResourceCommand.js +39 -0
- package/dist-es/commands/CreateHapgCommand.js +39 -0
- package/dist-es/commands/CreateHsmCommand.js +39 -0
- package/dist-es/commands/CreateLunaClientCommand.js +39 -0
- package/dist-es/commands/DeleteHapgCommand.js +39 -0
- package/dist-es/commands/DeleteHsmCommand.js +39 -0
- package/dist-es/commands/DeleteLunaClientCommand.js +39 -0
- package/dist-es/commands/DescribeHapgCommand.js +39 -0
- package/dist-es/commands/DescribeHsmCommand.js +39 -0
- package/dist-es/commands/DescribeLunaClientCommand.js +39 -0
- package/dist-es/commands/GetConfigCommand.js +39 -0
- package/dist-es/commands/ListAvailableZonesCommand.js +39 -0
- package/dist-es/commands/ListHapgsCommand.js +39 -0
- package/dist-es/commands/ListHsmsCommand.js +39 -0
- package/dist-es/commands/ListLunaClientsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/ModifyHapgCommand.js +39 -0
- package/dist-es/commands/ModifyHsmCommand.js +39 -0
- package/dist-es/commands/ModifyLunaClientCommand.js +39 -0
- package/dist-es/commands/RemoveTagsFromResourceCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -133
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +377 -383
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/CloudHSM.d.ts +1 -1
- package/{dist/types → dist-types}/CloudHSMClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AddTagsToResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateHapgCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateHsmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateLunaClientCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteHapgCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteHsmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteLunaClientCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeHapgCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeHsmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeLunaClientCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListAvailableZonesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListHapgsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListHsmsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListLunaClientsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ModifyHapgCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ModifyHsmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ModifyLunaClientCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RemoveTagsFromResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -1
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/CloudHSM.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/CloudHSMClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/AddTagsToResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateHapgCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateHsmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/CreateLunaClientCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteHapgCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteHsmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteLunaClientCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeHapgCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeHsmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DescribeLunaClientCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetConfigCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListAvailableZonesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListHapgsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListHsmsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListLunaClientsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ModifyHapgCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ModifyHsmCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ModifyLunaClientCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/RemoveTagsFromResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -1
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/CloudHSM.ts +0 -892
- package/CloudHSMClient.ts +0 -311
- package/commands/AddTagsToResourceCommand.ts +0 -106
- package/commands/CreateHapgCommand.ts +0 -105
- package/commands/CreateHsmCommand.ts +0 -110
- package/commands/CreateLunaClientCommand.ts +0 -104
- package/commands/DeleteHapgCommand.ts +0 -104
- package/commands/DeleteHsmCommand.ts +0 -102
- package/commands/DeleteLunaClientCommand.ts +0 -104
- package/commands/DescribeHapgCommand.ts +0 -104
- package/commands/DescribeHsmCommand.ts +0 -105
- package/commands/DescribeLunaClientCommand.ts +0 -104
- package/commands/GetConfigCommand.ts +0 -102
- package/commands/ListAvailableZonesCommand.ts +0 -104
- package/commands/ListHapgsCommand.ts +0 -105
- package/commands/ListHsmsCommand.ts +0 -106
- package/commands/ListLunaClientsCommand.ts +0 -108
- package/commands/ListTagsForResourceCommand.ts +0 -104
- package/commands/ModifyHapgCommand.ts +0 -104
- package/commands/ModifyHsmCommand.ts +0 -107
- package/commands/ModifyLunaClientCommand.ts +0 -106
- package/commands/RemoveTagsFromResourceCommand.ts +0 -106
- package/dist/cjs/CloudHSM.js.map +0 -1
- package/dist/cjs/CloudHSMClient.js.map +0 -1
- package/dist/cjs/commands/AddTagsToResourceCommand.js.map +0 -1
- package/dist/cjs/commands/CreateHapgCommand.js.map +0 -1
- package/dist/cjs/commands/CreateHsmCommand.js.map +0 -1
- package/dist/cjs/commands/CreateLunaClientCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteHapgCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteHsmCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteLunaClientCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeHapgCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeHsmCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeLunaClientCommand.js.map +0 -1
- package/dist/cjs/commands/GetConfigCommand.js.map +0 -1
- package/dist/cjs/commands/ListAvailableZonesCommand.js.map +0 -1
- package/dist/cjs/commands/ListHapgsCommand.js.map +0 -1
- package/dist/cjs/commands/ListHsmsCommand.js.map +0 -1
- package/dist/cjs/commands/ListLunaClientsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/ModifyHapgCommand.js.map +0 -1
- package/dist/cjs/commands/ModifyHsmCommand.js.map +0 -1
- package/dist/cjs/commands/ModifyLunaClientCommand.js.map +0 -1
- package/dist/cjs/commands/RemoveTagsFromResourceCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/CloudHSM.js.map +0 -1
- package/dist/es/CloudHSMClient.js.map +0 -1
- package/dist/es/commands/AddTagsToResourceCommand.js +0 -77
- package/dist/es/commands/AddTagsToResourceCommand.js.map +0 -1
- package/dist/es/commands/CreateHapgCommand.js +0 -76
- package/dist/es/commands/CreateHapgCommand.js.map +0 -1
- package/dist/es/commands/CreateHsmCommand.js +0 -84
- package/dist/es/commands/CreateHsmCommand.js.map +0 -1
- package/dist/es/commands/CreateLunaClientCommand.js +0 -75
- package/dist/es/commands/CreateLunaClientCommand.js.map +0 -1
- package/dist/es/commands/DeleteHapgCommand.js +0 -75
- package/dist/es/commands/DeleteHapgCommand.js.map +0 -1
- package/dist/es/commands/DeleteHsmCommand.js +0 -76
- package/dist/es/commands/DeleteHsmCommand.js.map +0 -1
- package/dist/es/commands/DeleteLunaClientCommand.js +0 -75
- package/dist/es/commands/DeleteLunaClientCommand.js.map +0 -1
- package/dist/es/commands/DescribeHapgCommand.js +0 -75
- package/dist/es/commands/DescribeHapgCommand.js.map +0 -1
- package/dist/es/commands/DescribeHsmCommand.js +0 -76
- package/dist/es/commands/DescribeHsmCommand.js.map +0 -1
- package/dist/es/commands/DescribeLunaClientCommand.js +0 -75
- package/dist/es/commands/DescribeLunaClientCommand.js.map +0 -1
- package/dist/es/commands/GetConfigCommand.js +0 -76
- package/dist/es/commands/GetConfigCommand.js.map +0 -1
- package/dist/es/commands/ListAvailableZonesCommand.js +0 -75
- package/dist/es/commands/ListAvailableZonesCommand.js.map +0 -1
- package/dist/es/commands/ListHapgsCommand.js +0 -79
- package/dist/es/commands/ListHapgsCommand.js.map +0 -1
- package/dist/es/commands/ListHsmsCommand.js +0 -80
- package/dist/es/commands/ListHsmsCommand.js.map +0 -1
- package/dist/es/commands/ListLunaClientsCommand.js +0 -79
- package/dist/es/commands/ListLunaClientsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +0 -75
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/ModifyHapgCommand.js +0 -75
- package/dist/es/commands/ModifyHapgCommand.js.map +0 -1
- package/dist/es/commands/ModifyHsmCommand.js +0 -81
- package/dist/es/commands/ModifyHsmCommand.js.map +0 -1
- package/dist/es/commands/ModifyLunaClientCommand.js +0 -77
- package/dist/es/commands/ModifyLunaClientCommand.js.map +0 -1
- package/dist/es/commands/RemoveTagsFromResourceCommand.js +0 -77
- package/dist/es/commands/RemoveTagsFromResourceCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -24
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1161
- package/protocols/Aws_json1_1.ts +0 -2399
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1AddTagsToResourceCommand = function (input, conte
|
|
|
9
9
|
"x-amz-target": "CloudHsmFrontendService.AddTagsToResource",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1AddTagsToResourceRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CreateHapgCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateHapgCommand = function (input, context) { r
|
|
|
20
20
|
"x-amz-target": "CloudHsmFrontendService.CreateHapg",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CreateHapgRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreateHsmCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreateHsmCommand = function (input, context) { re
|
|
|
31
31
|
"x-amz-target": "CloudHsmFrontendService.CreateHsm",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreateHsmRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1CreateLunaClientCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1CreateLunaClientCommand = function (input, contex
|
|
|
42
42
|
"x-amz-target": "CloudHsmFrontendService.CreateLunaClient",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1CreateLunaClientRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1DeleteHapgCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1DeleteHapgCommand = function (input, context) { r
|
|
|
53
53
|
"x-amz-target": "CloudHsmFrontendService.DeleteHapg",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1DeleteHapgRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1DeleteHsmCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1DeleteHsmCommand = function (input, context) { re
|
|
|
64
64
|
"x-amz-target": "CloudHsmFrontendService.DeleteHsm",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1DeleteHsmRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1DeleteLunaClientCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1DeleteLunaClientCommand = function (input, contex
|
|
|
75
75
|
"x-amz-target": "CloudHsmFrontendService.DeleteLunaClient",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1DeleteLunaClientRequest(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1DescribeHapgCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1DescribeHapgCommand = function (input, context) {
|
|
|
86
86
|
"x-amz-target": "CloudHsmFrontendService.DescribeHapg",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1DescribeHapgRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1DescribeHsmCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1DescribeHsmCommand = function (input, context) {
|
|
|
97
97
|
"x-amz-target": "CloudHsmFrontendService.DescribeHsm",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1DescribeHsmRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DescribeLunaClientCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DescribeLunaClientCommand = function (input, cont
|
|
|
108
108
|
"x-amz-target": "CloudHsmFrontendService.DescribeLunaClient",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DescribeLunaClientRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1GetConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1GetConfigCommand = function (input, context) { re
|
|
|
119
119
|
"x-amz-target": "CloudHsmFrontendService.GetConfig",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1GetConfigRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1ListAvailableZonesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1ListAvailableZonesCommand = function (input, cont
|
|
|
130
130
|
"x-amz-target": "CloudHsmFrontendService.ListAvailableZones",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1ListAvailableZonesRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1ListHapgsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1ListHapgsCommand = function (input, context) { re
|
|
|
141
141
|
"x-amz-target": "CloudHsmFrontendService.ListHapgs",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1ListHapgsRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1ListHsmsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1ListHsmsCommand = function (input, context) { ret
|
|
|
152
152
|
"x-amz-target": "CloudHsmFrontendService.ListHsms",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1ListHsmsRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1ListLunaClientsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1ListLunaClientsCommand = function (input, context
|
|
|
163
163
|
"x-amz-target": "CloudHsmFrontendService.ListLunaClients",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1ListLunaClientsRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
174
174
|
"x-amz-target": "CloudHsmFrontendService.ListTagsForResource",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1ModifyHapgCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1ModifyHapgCommand = function (input, context) { r
|
|
|
185
185
|
"x-amz-target": "CloudHsmFrontendService.ModifyHapg",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1ModifyHapgRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1ModifyHsmCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1ModifyHsmCommand = function (input, context) { re
|
|
|
196
196
|
"x-amz-target": "CloudHsmFrontendService.ModifyHsm",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1ModifyHsmRequest(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1ModifyLunaClientCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1ModifyLunaClientCommand = function (input, contex
|
|
|
207
207
|
"x-amz-target": "CloudHsmFrontendService.ModifyLunaClient",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1ModifyLunaClientRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1RemoveTagsFromResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1RemoveTagsFromResourceCommand = function (input,
|
|
|
218
218
|
"x-amz-target": "CloudHsmFrontendService.RemoveTagsFromResource",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1RemoveTagsFromResourceRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var deserializeAws_json1_1AddTagsToResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -227,15 +227,15 @@ export var deserializeAws_json1_1AddTagsToResourceCommand = function (output, co
|
|
|
227
227
|
switch (_a.label) {
|
|
228
228
|
case 0:
|
|
229
229
|
if (output.statusCode >= 300) {
|
|
230
|
-
return [2
|
|
230
|
+
return [2, deserializeAws_json1_1AddTagsToResourceCommandError(output, context)];
|
|
231
231
|
}
|
|
232
|
-
return [4
|
|
232
|
+
return [4, parseBody(output.body, context)];
|
|
233
233
|
case 1:
|
|
234
234
|
data = _a.sent();
|
|
235
235
|
contents = {};
|
|
236
236
|
contents = deserializeAws_json1_1AddTagsToResourceResponse(data, context);
|
|
237
237
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
238
|
-
return [2
|
|
238
|
+
return [2, Promise.resolve(response)];
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
241
|
}); };
|
|
@@ -247,39 +247,39 @@ var deserializeAws_json1_1AddTagsToResourceCommandError = function (output, cont
|
|
|
247
247
|
case 0:
|
|
248
248
|
_a = [__assign({}, output)];
|
|
249
249
|
_f = {};
|
|
250
|
-
return [4
|
|
250
|
+
return [4, parseBody(output.body, context)];
|
|
251
251
|
case 1:
|
|
252
252
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
253
253
|
errorCode = "UnknownError";
|
|
254
254
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
255
255
|
_b = errorCode;
|
|
256
256
|
switch (_b) {
|
|
257
|
-
case "CloudHsmInternalException": return [3
|
|
258
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
259
|
-
case "CloudHsmServiceException": return [3
|
|
260
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
261
|
-
case "InvalidRequestException": return [3
|
|
262
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
257
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
258
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
259
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
260
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
261
|
+
case "InvalidRequestException": return [3, 6];
|
|
262
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
263
263
|
}
|
|
264
|
-
return [3
|
|
264
|
+
return [3, 8];
|
|
265
265
|
case 2:
|
|
266
266
|
_c = [{}];
|
|
267
|
-
return [4
|
|
267
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
268
268
|
case 3:
|
|
269
269
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
270
|
-
return [3
|
|
270
|
+
return [3, 9];
|
|
271
271
|
case 4:
|
|
272
272
|
_d = [{}];
|
|
273
|
-
return [4
|
|
273
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
274
274
|
case 5:
|
|
275
275
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
276
|
-
return [3
|
|
276
|
+
return [3, 9];
|
|
277
277
|
case 6:
|
|
278
278
|
_e = [{}];
|
|
279
|
-
return [4
|
|
279
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
280
280
|
case 7:
|
|
281
281
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
282
|
-
return [3
|
|
282
|
+
return [3, 9];
|
|
283
283
|
case 8:
|
|
284
284
|
parsedBody = parsedOutput.body;
|
|
285
285
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -289,7 +289,7 @@ var deserializeAws_json1_1AddTagsToResourceCommandError = function (output, cont
|
|
|
289
289
|
message = response.message || response.Message || errorCode;
|
|
290
290
|
response.message = message;
|
|
291
291
|
delete response.Message;
|
|
292
|
-
return [2
|
|
292
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
293
293
|
}
|
|
294
294
|
});
|
|
295
295
|
}); };
|
|
@@ -299,15 +299,15 @@ export var deserializeAws_json1_1CreateHapgCommand = function (output, context)
|
|
|
299
299
|
switch (_a.label) {
|
|
300
300
|
case 0:
|
|
301
301
|
if (output.statusCode >= 300) {
|
|
302
|
-
return [2
|
|
302
|
+
return [2, deserializeAws_json1_1CreateHapgCommandError(output, context)];
|
|
303
303
|
}
|
|
304
|
-
return [4
|
|
304
|
+
return [4, parseBody(output.body, context)];
|
|
305
305
|
case 1:
|
|
306
306
|
data = _a.sent();
|
|
307
307
|
contents = {};
|
|
308
308
|
contents = deserializeAws_json1_1CreateHapgResponse(data, context);
|
|
309
309
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
310
|
-
return [2
|
|
310
|
+
return [2, Promise.resolve(response)];
|
|
311
311
|
}
|
|
312
312
|
});
|
|
313
313
|
}); };
|
|
@@ -319,39 +319,39 @@ var deserializeAws_json1_1CreateHapgCommandError = function (output, context) {
|
|
|
319
319
|
case 0:
|
|
320
320
|
_a = [__assign({}, output)];
|
|
321
321
|
_f = {};
|
|
322
|
-
return [4
|
|
322
|
+
return [4, parseBody(output.body, context)];
|
|
323
323
|
case 1:
|
|
324
324
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
325
325
|
errorCode = "UnknownError";
|
|
326
326
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
327
327
|
_b = errorCode;
|
|
328
328
|
switch (_b) {
|
|
329
|
-
case "CloudHsmInternalException": return [3
|
|
330
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
331
|
-
case "CloudHsmServiceException": return [3
|
|
332
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
333
|
-
case "InvalidRequestException": return [3
|
|
334
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
329
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
330
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
331
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
332
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
333
|
+
case "InvalidRequestException": return [3, 6];
|
|
334
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
335
335
|
}
|
|
336
|
-
return [3
|
|
336
|
+
return [3, 8];
|
|
337
337
|
case 2:
|
|
338
338
|
_c = [{}];
|
|
339
|
-
return [4
|
|
339
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
340
340
|
case 3:
|
|
341
341
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
342
|
-
return [3
|
|
342
|
+
return [3, 9];
|
|
343
343
|
case 4:
|
|
344
344
|
_d = [{}];
|
|
345
|
-
return [4
|
|
345
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
346
346
|
case 5:
|
|
347
347
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
348
|
-
return [3
|
|
348
|
+
return [3, 9];
|
|
349
349
|
case 6:
|
|
350
350
|
_e = [{}];
|
|
351
|
-
return [4
|
|
351
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
352
352
|
case 7:
|
|
353
353
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
354
|
-
return [3
|
|
354
|
+
return [3, 9];
|
|
355
355
|
case 8:
|
|
356
356
|
parsedBody = parsedOutput.body;
|
|
357
357
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -361,7 +361,7 @@ var deserializeAws_json1_1CreateHapgCommandError = function (output, context) {
|
|
|
361
361
|
message = response.message || response.Message || errorCode;
|
|
362
362
|
response.message = message;
|
|
363
363
|
delete response.Message;
|
|
364
|
-
return [2
|
|
364
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
367
|
}); };
|
|
@@ -371,15 +371,15 @@ export var deserializeAws_json1_1CreateHsmCommand = function (output, context) {
|
|
|
371
371
|
switch (_a.label) {
|
|
372
372
|
case 0:
|
|
373
373
|
if (output.statusCode >= 300) {
|
|
374
|
-
return [2
|
|
374
|
+
return [2, deserializeAws_json1_1CreateHsmCommandError(output, context)];
|
|
375
375
|
}
|
|
376
|
-
return [4
|
|
376
|
+
return [4, parseBody(output.body, context)];
|
|
377
377
|
case 1:
|
|
378
378
|
data = _a.sent();
|
|
379
379
|
contents = {};
|
|
380
380
|
contents = deserializeAws_json1_1CreateHsmResponse(data, context);
|
|
381
381
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
382
|
-
return [2
|
|
382
|
+
return [2, Promise.resolve(response)];
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
385
|
}); };
|
|
@@ -391,39 +391,39 @@ var deserializeAws_json1_1CreateHsmCommandError = function (output, context) { r
|
|
|
391
391
|
case 0:
|
|
392
392
|
_a = [__assign({}, output)];
|
|
393
393
|
_f = {};
|
|
394
|
-
return [4
|
|
394
|
+
return [4, parseBody(output.body, context)];
|
|
395
395
|
case 1:
|
|
396
396
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
397
397
|
errorCode = "UnknownError";
|
|
398
398
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
399
399
|
_b = errorCode;
|
|
400
400
|
switch (_b) {
|
|
401
|
-
case "CloudHsmInternalException": return [3
|
|
402
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
403
|
-
case "CloudHsmServiceException": return [3
|
|
404
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
405
|
-
case "InvalidRequestException": return [3
|
|
406
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
401
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
402
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
403
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
404
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
405
|
+
case "InvalidRequestException": return [3, 6];
|
|
406
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
407
407
|
}
|
|
408
|
-
return [3
|
|
408
|
+
return [3, 8];
|
|
409
409
|
case 2:
|
|
410
410
|
_c = [{}];
|
|
411
|
-
return [4
|
|
411
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
412
412
|
case 3:
|
|
413
413
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
414
|
-
return [3
|
|
414
|
+
return [3, 9];
|
|
415
415
|
case 4:
|
|
416
416
|
_d = [{}];
|
|
417
|
-
return [4
|
|
417
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
418
418
|
case 5:
|
|
419
419
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
420
|
-
return [3
|
|
420
|
+
return [3, 9];
|
|
421
421
|
case 6:
|
|
422
422
|
_e = [{}];
|
|
423
|
-
return [4
|
|
423
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
424
424
|
case 7:
|
|
425
425
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
426
|
-
return [3
|
|
426
|
+
return [3, 9];
|
|
427
427
|
case 8:
|
|
428
428
|
parsedBody = parsedOutput.body;
|
|
429
429
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -433,7 +433,7 @@ var deserializeAws_json1_1CreateHsmCommandError = function (output, context) { r
|
|
|
433
433
|
message = response.message || response.Message || errorCode;
|
|
434
434
|
response.message = message;
|
|
435
435
|
delete response.Message;
|
|
436
|
-
return [2
|
|
436
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
}); };
|
|
@@ -443,15 +443,15 @@ export var deserializeAws_json1_1CreateLunaClientCommand = function (output, con
|
|
|
443
443
|
switch (_a.label) {
|
|
444
444
|
case 0:
|
|
445
445
|
if (output.statusCode >= 300) {
|
|
446
|
-
return [2
|
|
446
|
+
return [2, deserializeAws_json1_1CreateLunaClientCommandError(output, context)];
|
|
447
447
|
}
|
|
448
|
-
return [4
|
|
448
|
+
return [4, parseBody(output.body, context)];
|
|
449
449
|
case 1:
|
|
450
450
|
data = _a.sent();
|
|
451
451
|
contents = {};
|
|
452
452
|
contents = deserializeAws_json1_1CreateLunaClientResponse(data, context);
|
|
453
453
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
454
|
-
return [2
|
|
454
|
+
return [2, Promise.resolve(response)];
|
|
455
455
|
}
|
|
456
456
|
});
|
|
457
457
|
}); };
|
|
@@ -463,39 +463,39 @@ var deserializeAws_json1_1CreateLunaClientCommandError = function (output, conte
|
|
|
463
463
|
case 0:
|
|
464
464
|
_a = [__assign({}, output)];
|
|
465
465
|
_f = {};
|
|
466
|
-
return [4
|
|
466
|
+
return [4, parseBody(output.body, context)];
|
|
467
467
|
case 1:
|
|
468
468
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
469
469
|
errorCode = "UnknownError";
|
|
470
470
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
471
471
|
_b = errorCode;
|
|
472
472
|
switch (_b) {
|
|
473
|
-
case "CloudHsmInternalException": return [3
|
|
474
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
475
|
-
case "CloudHsmServiceException": return [3
|
|
476
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
477
|
-
case "InvalidRequestException": return [3
|
|
478
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
473
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
474
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
475
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
476
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
477
|
+
case "InvalidRequestException": return [3, 6];
|
|
478
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
479
479
|
}
|
|
480
|
-
return [3
|
|
480
|
+
return [3, 8];
|
|
481
481
|
case 2:
|
|
482
482
|
_c = [{}];
|
|
483
|
-
return [4
|
|
483
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
484
484
|
case 3:
|
|
485
485
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
486
|
-
return [3
|
|
486
|
+
return [3, 9];
|
|
487
487
|
case 4:
|
|
488
488
|
_d = [{}];
|
|
489
|
-
return [4
|
|
489
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
490
490
|
case 5:
|
|
491
491
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
492
|
-
return [3
|
|
492
|
+
return [3, 9];
|
|
493
493
|
case 6:
|
|
494
494
|
_e = [{}];
|
|
495
|
-
return [4
|
|
495
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
496
496
|
case 7:
|
|
497
497
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
498
|
-
return [3
|
|
498
|
+
return [3, 9];
|
|
499
499
|
case 8:
|
|
500
500
|
parsedBody = parsedOutput.body;
|
|
501
501
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -505,7 +505,7 @@ var deserializeAws_json1_1CreateLunaClientCommandError = function (output, conte
|
|
|
505
505
|
message = response.message || response.Message || errorCode;
|
|
506
506
|
response.message = message;
|
|
507
507
|
delete response.Message;
|
|
508
|
-
return [2
|
|
508
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
509
509
|
}
|
|
510
510
|
});
|
|
511
511
|
}); };
|
|
@@ -515,15 +515,15 @@ export var deserializeAws_json1_1DeleteHapgCommand = function (output, context)
|
|
|
515
515
|
switch (_a.label) {
|
|
516
516
|
case 0:
|
|
517
517
|
if (output.statusCode >= 300) {
|
|
518
|
-
return [2
|
|
518
|
+
return [2, deserializeAws_json1_1DeleteHapgCommandError(output, context)];
|
|
519
519
|
}
|
|
520
|
-
return [4
|
|
520
|
+
return [4, parseBody(output.body, context)];
|
|
521
521
|
case 1:
|
|
522
522
|
data = _a.sent();
|
|
523
523
|
contents = {};
|
|
524
524
|
contents = deserializeAws_json1_1DeleteHapgResponse(data, context);
|
|
525
525
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
526
|
-
return [2
|
|
526
|
+
return [2, Promise.resolve(response)];
|
|
527
527
|
}
|
|
528
528
|
});
|
|
529
529
|
}); };
|
|
@@ -535,39 +535,39 @@ var deserializeAws_json1_1DeleteHapgCommandError = function (output, context) {
|
|
|
535
535
|
case 0:
|
|
536
536
|
_a = [__assign({}, output)];
|
|
537
537
|
_f = {};
|
|
538
|
-
return [4
|
|
538
|
+
return [4, parseBody(output.body, context)];
|
|
539
539
|
case 1:
|
|
540
540
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
541
541
|
errorCode = "UnknownError";
|
|
542
542
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
543
543
|
_b = errorCode;
|
|
544
544
|
switch (_b) {
|
|
545
|
-
case "CloudHsmInternalException": return [3
|
|
546
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
547
|
-
case "CloudHsmServiceException": return [3
|
|
548
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
549
|
-
case "InvalidRequestException": return [3
|
|
550
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
545
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
546
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
547
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
548
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
549
|
+
case "InvalidRequestException": return [3, 6];
|
|
550
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
551
551
|
}
|
|
552
|
-
return [3
|
|
552
|
+
return [3, 8];
|
|
553
553
|
case 2:
|
|
554
554
|
_c = [{}];
|
|
555
|
-
return [4
|
|
555
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
556
556
|
case 3:
|
|
557
557
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
558
|
-
return [3
|
|
558
|
+
return [3, 9];
|
|
559
559
|
case 4:
|
|
560
560
|
_d = [{}];
|
|
561
|
-
return [4
|
|
561
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
562
562
|
case 5:
|
|
563
563
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
564
|
-
return [3
|
|
564
|
+
return [3, 9];
|
|
565
565
|
case 6:
|
|
566
566
|
_e = [{}];
|
|
567
|
-
return [4
|
|
567
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
568
568
|
case 7:
|
|
569
569
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
570
|
-
return [3
|
|
570
|
+
return [3, 9];
|
|
571
571
|
case 8:
|
|
572
572
|
parsedBody = parsedOutput.body;
|
|
573
573
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -577,7 +577,7 @@ var deserializeAws_json1_1DeleteHapgCommandError = function (output, context) {
|
|
|
577
577
|
message = response.message || response.Message || errorCode;
|
|
578
578
|
response.message = message;
|
|
579
579
|
delete response.Message;
|
|
580
|
-
return [2
|
|
580
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
581
581
|
}
|
|
582
582
|
});
|
|
583
583
|
}); };
|
|
@@ -587,15 +587,15 @@ export var deserializeAws_json1_1DeleteHsmCommand = function (output, context) {
|
|
|
587
587
|
switch (_a.label) {
|
|
588
588
|
case 0:
|
|
589
589
|
if (output.statusCode >= 300) {
|
|
590
|
-
return [2
|
|
590
|
+
return [2, deserializeAws_json1_1DeleteHsmCommandError(output, context)];
|
|
591
591
|
}
|
|
592
|
-
return [4
|
|
592
|
+
return [4, parseBody(output.body, context)];
|
|
593
593
|
case 1:
|
|
594
594
|
data = _a.sent();
|
|
595
595
|
contents = {};
|
|
596
596
|
contents = deserializeAws_json1_1DeleteHsmResponse(data, context);
|
|
597
597
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
598
|
-
return [2
|
|
598
|
+
return [2, Promise.resolve(response)];
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
601
|
}); };
|
|
@@ -607,39 +607,39 @@ var deserializeAws_json1_1DeleteHsmCommandError = function (output, context) { r
|
|
|
607
607
|
case 0:
|
|
608
608
|
_a = [__assign({}, output)];
|
|
609
609
|
_f = {};
|
|
610
|
-
return [4
|
|
610
|
+
return [4, parseBody(output.body, context)];
|
|
611
611
|
case 1:
|
|
612
612
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
613
613
|
errorCode = "UnknownError";
|
|
614
614
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
615
615
|
_b = errorCode;
|
|
616
616
|
switch (_b) {
|
|
617
|
-
case "CloudHsmInternalException": return [3
|
|
618
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
619
|
-
case "CloudHsmServiceException": return [3
|
|
620
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
621
|
-
case "InvalidRequestException": return [3
|
|
622
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
617
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
618
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
619
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
620
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
621
|
+
case "InvalidRequestException": return [3, 6];
|
|
622
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
623
623
|
}
|
|
624
|
-
return [3
|
|
624
|
+
return [3, 8];
|
|
625
625
|
case 2:
|
|
626
626
|
_c = [{}];
|
|
627
|
-
return [4
|
|
627
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
628
628
|
case 3:
|
|
629
629
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
630
|
-
return [3
|
|
630
|
+
return [3, 9];
|
|
631
631
|
case 4:
|
|
632
632
|
_d = [{}];
|
|
633
|
-
return [4
|
|
633
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
634
634
|
case 5:
|
|
635
635
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
636
|
-
return [3
|
|
636
|
+
return [3, 9];
|
|
637
637
|
case 6:
|
|
638
638
|
_e = [{}];
|
|
639
|
-
return [4
|
|
639
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
640
640
|
case 7:
|
|
641
641
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
642
|
-
return [3
|
|
642
|
+
return [3, 9];
|
|
643
643
|
case 8:
|
|
644
644
|
parsedBody = parsedOutput.body;
|
|
645
645
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -649,7 +649,7 @@ var deserializeAws_json1_1DeleteHsmCommandError = function (output, context) { r
|
|
|
649
649
|
message = response.message || response.Message || errorCode;
|
|
650
650
|
response.message = message;
|
|
651
651
|
delete response.Message;
|
|
652
|
-
return [2
|
|
652
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
653
653
|
}
|
|
654
654
|
});
|
|
655
655
|
}); };
|
|
@@ -659,15 +659,15 @@ export var deserializeAws_json1_1DeleteLunaClientCommand = function (output, con
|
|
|
659
659
|
switch (_a.label) {
|
|
660
660
|
case 0:
|
|
661
661
|
if (output.statusCode >= 300) {
|
|
662
|
-
return [2
|
|
662
|
+
return [2, deserializeAws_json1_1DeleteLunaClientCommandError(output, context)];
|
|
663
663
|
}
|
|
664
|
-
return [4
|
|
664
|
+
return [4, parseBody(output.body, context)];
|
|
665
665
|
case 1:
|
|
666
666
|
data = _a.sent();
|
|
667
667
|
contents = {};
|
|
668
668
|
contents = deserializeAws_json1_1DeleteLunaClientResponse(data, context);
|
|
669
669
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
670
|
-
return [2
|
|
670
|
+
return [2, Promise.resolve(response)];
|
|
671
671
|
}
|
|
672
672
|
});
|
|
673
673
|
}); };
|
|
@@ -679,39 +679,39 @@ var deserializeAws_json1_1DeleteLunaClientCommandError = function (output, conte
|
|
|
679
679
|
case 0:
|
|
680
680
|
_a = [__assign({}, output)];
|
|
681
681
|
_f = {};
|
|
682
|
-
return [4
|
|
682
|
+
return [4, parseBody(output.body, context)];
|
|
683
683
|
case 1:
|
|
684
684
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
685
685
|
errorCode = "UnknownError";
|
|
686
686
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
687
687
|
_b = errorCode;
|
|
688
688
|
switch (_b) {
|
|
689
|
-
case "CloudHsmInternalException": return [3
|
|
690
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
691
|
-
case "CloudHsmServiceException": return [3
|
|
692
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
693
|
-
case "InvalidRequestException": return [3
|
|
694
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
689
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
690
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
691
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
692
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
693
|
+
case "InvalidRequestException": return [3, 6];
|
|
694
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
695
695
|
}
|
|
696
|
-
return [3
|
|
696
|
+
return [3, 8];
|
|
697
697
|
case 2:
|
|
698
698
|
_c = [{}];
|
|
699
|
-
return [4
|
|
699
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
700
700
|
case 3:
|
|
701
701
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
702
|
-
return [3
|
|
702
|
+
return [3, 9];
|
|
703
703
|
case 4:
|
|
704
704
|
_d = [{}];
|
|
705
|
-
return [4
|
|
705
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
706
706
|
case 5:
|
|
707
707
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
708
|
-
return [3
|
|
708
|
+
return [3, 9];
|
|
709
709
|
case 6:
|
|
710
710
|
_e = [{}];
|
|
711
|
-
return [4
|
|
711
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
712
712
|
case 7:
|
|
713
713
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
714
|
-
return [3
|
|
714
|
+
return [3, 9];
|
|
715
715
|
case 8:
|
|
716
716
|
parsedBody = parsedOutput.body;
|
|
717
717
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -721,7 +721,7 @@ var deserializeAws_json1_1DeleteLunaClientCommandError = function (output, conte
|
|
|
721
721
|
message = response.message || response.Message || errorCode;
|
|
722
722
|
response.message = message;
|
|
723
723
|
delete response.Message;
|
|
724
|
-
return [2
|
|
724
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
725
725
|
}
|
|
726
726
|
});
|
|
727
727
|
}); };
|
|
@@ -731,15 +731,15 @@ export var deserializeAws_json1_1DescribeHapgCommand = function (output, context
|
|
|
731
731
|
switch (_a.label) {
|
|
732
732
|
case 0:
|
|
733
733
|
if (output.statusCode >= 300) {
|
|
734
|
-
return [2
|
|
734
|
+
return [2, deserializeAws_json1_1DescribeHapgCommandError(output, context)];
|
|
735
735
|
}
|
|
736
|
-
return [4
|
|
736
|
+
return [4, parseBody(output.body, context)];
|
|
737
737
|
case 1:
|
|
738
738
|
data = _a.sent();
|
|
739
739
|
contents = {};
|
|
740
740
|
contents = deserializeAws_json1_1DescribeHapgResponse(data, context);
|
|
741
741
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
742
|
-
return [2
|
|
742
|
+
return [2, Promise.resolve(response)];
|
|
743
743
|
}
|
|
744
744
|
});
|
|
745
745
|
}); };
|
|
@@ -751,39 +751,39 @@ var deserializeAws_json1_1DescribeHapgCommandError = function (output, context)
|
|
|
751
751
|
case 0:
|
|
752
752
|
_a = [__assign({}, output)];
|
|
753
753
|
_f = {};
|
|
754
|
-
return [4
|
|
754
|
+
return [4, parseBody(output.body, context)];
|
|
755
755
|
case 1:
|
|
756
756
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
757
757
|
errorCode = "UnknownError";
|
|
758
758
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
759
|
_b = errorCode;
|
|
760
760
|
switch (_b) {
|
|
761
|
-
case "CloudHsmInternalException": return [3
|
|
762
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
763
|
-
case "CloudHsmServiceException": return [3
|
|
764
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
765
|
-
case "InvalidRequestException": return [3
|
|
766
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
761
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
762
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
763
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
764
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
765
|
+
case "InvalidRequestException": return [3, 6];
|
|
766
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
767
767
|
}
|
|
768
|
-
return [3
|
|
768
|
+
return [3, 8];
|
|
769
769
|
case 2:
|
|
770
770
|
_c = [{}];
|
|
771
|
-
return [4
|
|
771
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
772
772
|
case 3:
|
|
773
773
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
774
|
-
return [3
|
|
774
|
+
return [3, 9];
|
|
775
775
|
case 4:
|
|
776
776
|
_d = [{}];
|
|
777
|
-
return [4
|
|
777
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
778
778
|
case 5:
|
|
779
779
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
780
|
-
return [3
|
|
780
|
+
return [3, 9];
|
|
781
781
|
case 6:
|
|
782
782
|
_e = [{}];
|
|
783
|
-
return [4
|
|
783
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
784
784
|
case 7:
|
|
785
785
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
786
|
-
return [3
|
|
786
|
+
return [3, 9];
|
|
787
787
|
case 8:
|
|
788
788
|
parsedBody = parsedOutput.body;
|
|
789
789
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -793,7 +793,7 @@ var deserializeAws_json1_1DescribeHapgCommandError = function (output, context)
|
|
|
793
793
|
message = response.message || response.Message || errorCode;
|
|
794
794
|
response.message = message;
|
|
795
795
|
delete response.Message;
|
|
796
|
-
return [2
|
|
796
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
797
797
|
}
|
|
798
798
|
});
|
|
799
799
|
}); };
|
|
@@ -803,15 +803,15 @@ export var deserializeAws_json1_1DescribeHsmCommand = function (output, context)
|
|
|
803
803
|
switch (_a.label) {
|
|
804
804
|
case 0:
|
|
805
805
|
if (output.statusCode >= 300) {
|
|
806
|
-
return [2
|
|
806
|
+
return [2, deserializeAws_json1_1DescribeHsmCommandError(output, context)];
|
|
807
807
|
}
|
|
808
|
-
return [4
|
|
808
|
+
return [4, parseBody(output.body, context)];
|
|
809
809
|
case 1:
|
|
810
810
|
data = _a.sent();
|
|
811
811
|
contents = {};
|
|
812
812
|
contents = deserializeAws_json1_1DescribeHsmResponse(data, context);
|
|
813
813
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
814
|
-
return [2
|
|
814
|
+
return [2, Promise.resolve(response)];
|
|
815
815
|
}
|
|
816
816
|
});
|
|
817
817
|
}); };
|
|
@@ -823,39 +823,39 @@ var deserializeAws_json1_1DescribeHsmCommandError = function (output, context) {
|
|
|
823
823
|
case 0:
|
|
824
824
|
_a = [__assign({}, output)];
|
|
825
825
|
_f = {};
|
|
826
|
-
return [4
|
|
826
|
+
return [4, parseBody(output.body, context)];
|
|
827
827
|
case 1:
|
|
828
828
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
829
829
|
errorCode = "UnknownError";
|
|
830
830
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
831
|
_b = errorCode;
|
|
832
832
|
switch (_b) {
|
|
833
|
-
case "CloudHsmInternalException": return [3
|
|
834
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
835
|
-
case "CloudHsmServiceException": return [3
|
|
836
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
837
|
-
case "InvalidRequestException": return [3
|
|
838
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
833
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
834
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
835
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
836
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
837
|
+
case "InvalidRequestException": return [3, 6];
|
|
838
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
839
839
|
}
|
|
840
|
-
return [3
|
|
840
|
+
return [3, 8];
|
|
841
841
|
case 2:
|
|
842
842
|
_c = [{}];
|
|
843
|
-
return [4
|
|
843
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
844
844
|
case 3:
|
|
845
845
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
846
|
-
return [3
|
|
846
|
+
return [3, 9];
|
|
847
847
|
case 4:
|
|
848
848
|
_d = [{}];
|
|
849
|
-
return [4
|
|
849
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
850
850
|
case 5:
|
|
851
851
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
852
|
-
return [3
|
|
852
|
+
return [3, 9];
|
|
853
853
|
case 6:
|
|
854
854
|
_e = [{}];
|
|
855
|
-
return [4
|
|
855
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
856
856
|
case 7:
|
|
857
857
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
858
|
-
return [3
|
|
858
|
+
return [3, 9];
|
|
859
859
|
case 8:
|
|
860
860
|
parsedBody = parsedOutput.body;
|
|
861
861
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -865,7 +865,7 @@ var deserializeAws_json1_1DescribeHsmCommandError = function (output, context) {
|
|
|
865
865
|
message = response.message || response.Message || errorCode;
|
|
866
866
|
response.message = message;
|
|
867
867
|
delete response.Message;
|
|
868
|
-
return [2
|
|
868
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
869
869
|
}
|
|
870
870
|
});
|
|
871
871
|
}); };
|
|
@@ -875,15 +875,15 @@ export var deserializeAws_json1_1DescribeLunaClientCommand = function (output, c
|
|
|
875
875
|
switch (_a.label) {
|
|
876
876
|
case 0:
|
|
877
877
|
if (output.statusCode >= 300) {
|
|
878
|
-
return [2
|
|
878
|
+
return [2, deserializeAws_json1_1DescribeLunaClientCommandError(output, context)];
|
|
879
879
|
}
|
|
880
|
-
return [4
|
|
880
|
+
return [4, parseBody(output.body, context)];
|
|
881
881
|
case 1:
|
|
882
882
|
data = _a.sent();
|
|
883
883
|
contents = {};
|
|
884
884
|
contents = deserializeAws_json1_1DescribeLunaClientResponse(data, context);
|
|
885
885
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
886
|
-
return [2
|
|
886
|
+
return [2, Promise.resolve(response)];
|
|
887
887
|
}
|
|
888
888
|
});
|
|
889
889
|
}); };
|
|
@@ -895,39 +895,39 @@ var deserializeAws_json1_1DescribeLunaClientCommandError = function (output, con
|
|
|
895
895
|
case 0:
|
|
896
896
|
_a = [__assign({}, output)];
|
|
897
897
|
_f = {};
|
|
898
|
-
return [4
|
|
898
|
+
return [4, parseBody(output.body, context)];
|
|
899
899
|
case 1:
|
|
900
900
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
901
901
|
errorCode = "UnknownError";
|
|
902
902
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
903
903
|
_b = errorCode;
|
|
904
904
|
switch (_b) {
|
|
905
|
-
case "CloudHsmInternalException": return [3
|
|
906
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
907
|
-
case "CloudHsmServiceException": return [3
|
|
908
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
909
|
-
case "InvalidRequestException": return [3
|
|
910
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
905
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
906
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
907
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
908
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
909
|
+
case "InvalidRequestException": return [3, 6];
|
|
910
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
911
911
|
}
|
|
912
|
-
return [3
|
|
912
|
+
return [3, 8];
|
|
913
913
|
case 2:
|
|
914
914
|
_c = [{}];
|
|
915
|
-
return [4
|
|
915
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
916
916
|
case 3:
|
|
917
917
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
918
|
-
return [3
|
|
918
|
+
return [3, 9];
|
|
919
919
|
case 4:
|
|
920
920
|
_d = [{}];
|
|
921
|
-
return [4
|
|
921
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
922
922
|
case 5:
|
|
923
923
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
924
|
-
return [3
|
|
924
|
+
return [3, 9];
|
|
925
925
|
case 6:
|
|
926
926
|
_e = [{}];
|
|
927
|
-
return [4
|
|
927
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
928
928
|
case 7:
|
|
929
929
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
930
|
-
return [3
|
|
930
|
+
return [3, 9];
|
|
931
931
|
case 8:
|
|
932
932
|
parsedBody = parsedOutput.body;
|
|
933
933
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -937,7 +937,7 @@ var deserializeAws_json1_1DescribeLunaClientCommandError = function (output, con
|
|
|
937
937
|
message = response.message || response.Message || errorCode;
|
|
938
938
|
response.message = message;
|
|
939
939
|
delete response.Message;
|
|
940
|
-
return [2
|
|
940
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
941
941
|
}
|
|
942
942
|
});
|
|
943
943
|
}); };
|
|
@@ -947,15 +947,15 @@ export var deserializeAws_json1_1GetConfigCommand = function (output, context) {
|
|
|
947
947
|
switch (_a.label) {
|
|
948
948
|
case 0:
|
|
949
949
|
if (output.statusCode >= 300) {
|
|
950
|
-
return [2
|
|
950
|
+
return [2, deserializeAws_json1_1GetConfigCommandError(output, context)];
|
|
951
951
|
}
|
|
952
|
-
return [4
|
|
952
|
+
return [4, parseBody(output.body, context)];
|
|
953
953
|
case 1:
|
|
954
954
|
data = _a.sent();
|
|
955
955
|
contents = {};
|
|
956
956
|
contents = deserializeAws_json1_1GetConfigResponse(data, context);
|
|
957
957
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
958
|
-
return [2
|
|
958
|
+
return [2, Promise.resolve(response)];
|
|
959
959
|
}
|
|
960
960
|
});
|
|
961
961
|
}); };
|
|
@@ -967,39 +967,39 @@ var deserializeAws_json1_1GetConfigCommandError = function (output, context) { r
|
|
|
967
967
|
case 0:
|
|
968
968
|
_a = [__assign({}, output)];
|
|
969
969
|
_f = {};
|
|
970
|
-
return [4
|
|
970
|
+
return [4, parseBody(output.body, context)];
|
|
971
971
|
case 1:
|
|
972
972
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
973
973
|
errorCode = "UnknownError";
|
|
974
974
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
975
|
_b = errorCode;
|
|
976
976
|
switch (_b) {
|
|
977
|
-
case "CloudHsmInternalException": return [3
|
|
978
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
979
|
-
case "CloudHsmServiceException": return [3
|
|
980
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
981
|
-
case "InvalidRequestException": return [3
|
|
982
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
977
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
978
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
979
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
980
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
981
|
+
case "InvalidRequestException": return [3, 6];
|
|
982
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
983
983
|
}
|
|
984
|
-
return [3
|
|
984
|
+
return [3, 8];
|
|
985
985
|
case 2:
|
|
986
986
|
_c = [{}];
|
|
987
|
-
return [4
|
|
987
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
988
988
|
case 3:
|
|
989
989
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
990
|
-
return [3
|
|
990
|
+
return [3, 9];
|
|
991
991
|
case 4:
|
|
992
992
|
_d = [{}];
|
|
993
|
-
return [4
|
|
993
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
994
994
|
case 5:
|
|
995
995
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
996
|
-
return [3
|
|
996
|
+
return [3, 9];
|
|
997
997
|
case 6:
|
|
998
998
|
_e = [{}];
|
|
999
|
-
return [4
|
|
999
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1000
1000
|
case 7:
|
|
1001
1001
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1002
|
-
return [3
|
|
1002
|
+
return [3, 9];
|
|
1003
1003
|
case 8:
|
|
1004
1004
|
parsedBody = parsedOutput.body;
|
|
1005
1005
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1009,7 +1009,7 @@ var deserializeAws_json1_1GetConfigCommandError = function (output, context) { r
|
|
|
1009
1009
|
message = response.message || response.Message || errorCode;
|
|
1010
1010
|
response.message = message;
|
|
1011
1011
|
delete response.Message;
|
|
1012
|
-
return [2
|
|
1012
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1013
1013
|
}
|
|
1014
1014
|
});
|
|
1015
1015
|
}); };
|
|
@@ -1019,15 +1019,15 @@ export var deserializeAws_json1_1ListAvailableZonesCommand = function (output, c
|
|
|
1019
1019
|
switch (_a.label) {
|
|
1020
1020
|
case 0:
|
|
1021
1021
|
if (output.statusCode >= 300) {
|
|
1022
|
-
return [2
|
|
1022
|
+
return [2, deserializeAws_json1_1ListAvailableZonesCommandError(output, context)];
|
|
1023
1023
|
}
|
|
1024
|
-
return [4
|
|
1024
|
+
return [4, parseBody(output.body, context)];
|
|
1025
1025
|
case 1:
|
|
1026
1026
|
data = _a.sent();
|
|
1027
1027
|
contents = {};
|
|
1028
1028
|
contents = deserializeAws_json1_1ListAvailableZonesResponse(data, context);
|
|
1029
1029
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1030
|
-
return [2
|
|
1030
|
+
return [2, Promise.resolve(response)];
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
1033
1033
|
}); };
|
|
@@ -1039,39 +1039,39 @@ var deserializeAws_json1_1ListAvailableZonesCommandError = function (output, con
|
|
|
1039
1039
|
case 0:
|
|
1040
1040
|
_a = [__assign({}, output)];
|
|
1041
1041
|
_f = {};
|
|
1042
|
-
return [4
|
|
1042
|
+
return [4, parseBody(output.body, context)];
|
|
1043
1043
|
case 1:
|
|
1044
1044
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1045
1045
|
errorCode = "UnknownError";
|
|
1046
1046
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1047
1047
|
_b = errorCode;
|
|
1048
1048
|
switch (_b) {
|
|
1049
|
-
case "CloudHsmInternalException": return [3
|
|
1050
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
1051
|
-
case "CloudHsmServiceException": return [3
|
|
1052
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
1053
|
-
case "InvalidRequestException": return [3
|
|
1054
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
1049
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
1050
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
1051
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
1052
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
1053
|
+
case "InvalidRequestException": return [3, 6];
|
|
1054
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
1055
1055
|
}
|
|
1056
|
-
return [3
|
|
1056
|
+
return [3, 8];
|
|
1057
1057
|
case 2:
|
|
1058
1058
|
_c = [{}];
|
|
1059
|
-
return [4
|
|
1059
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
1060
1060
|
case 3:
|
|
1061
1061
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1062
|
-
return [3
|
|
1062
|
+
return [3, 9];
|
|
1063
1063
|
case 4:
|
|
1064
1064
|
_d = [{}];
|
|
1065
|
-
return [4
|
|
1065
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
1066
1066
|
case 5:
|
|
1067
1067
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1068
|
-
return [3
|
|
1068
|
+
return [3, 9];
|
|
1069
1069
|
case 6:
|
|
1070
1070
|
_e = [{}];
|
|
1071
|
-
return [4
|
|
1071
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1072
1072
|
case 7:
|
|
1073
1073
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1074
|
-
return [3
|
|
1074
|
+
return [3, 9];
|
|
1075
1075
|
case 8:
|
|
1076
1076
|
parsedBody = parsedOutput.body;
|
|
1077
1077
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1081,7 +1081,7 @@ var deserializeAws_json1_1ListAvailableZonesCommandError = function (output, con
|
|
|
1081
1081
|
message = response.message || response.Message || errorCode;
|
|
1082
1082
|
response.message = message;
|
|
1083
1083
|
delete response.Message;
|
|
1084
|
-
return [2
|
|
1084
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1085
1085
|
}
|
|
1086
1086
|
});
|
|
1087
1087
|
}); };
|
|
@@ -1091,15 +1091,15 @@ export var deserializeAws_json1_1ListHapgsCommand = function (output, context) {
|
|
|
1091
1091
|
switch (_a.label) {
|
|
1092
1092
|
case 0:
|
|
1093
1093
|
if (output.statusCode >= 300) {
|
|
1094
|
-
return [2
|
|
1094
|
+
return [2, deserializeAws_json1_1ListHapgsCommandError(output, context)];
|
|
1095
1095
|
}
|
|
1096
|
-
return [4
|
|
1096
|
+
return [4, parseBody(output.body, context)];
|
|
1097
1097
|
case 1:
|
|
1098
1098
|
data = _a.sent();
|
|
1099
1099
|
contents = {};
|
|
1100
1100
|
contents = deserializeAws_json1_1ListHapgsResponse(data, context);
|
|
1101
1101
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1102
|
-
return [2
|
|
1102
|
+
return [2, Promise.resolve(response)];
|
|
1103
1103
|
}
|
|
1104
1104
|
});
|
|
1105
1105
|
}); };
|
|
@@ -1111,39 +1111,39 @@ var deserializeAws_json1_1ListHapgsCommandError = function (output, context) { r
|
|
|
1111
1111
|
case 0:
|
|
1112
1112
|
_a = [__assign({}, output)];
|
|
1113
1113
|
_f = {};
|
|
1114
|
-
return [4
|
|
1114
|
+
return [4, parseBody(output.body, context)];
|
|
1115
1115
|
case 1:
|
|
1116
1116
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1117
1117
|
errorCode = "UnknownError";
|
|
1118
1118
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1119
1119
|
_b = errorCode;
|
|
1120
1120
|
switch (_b) {
|
|
1121
|
-
case "CloudHsmInternalException": return [3
|
|
1122
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
1123
|
-
case "CloudHsmServiceException": return [3
|
|
1124
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
1125
|
-
case "InvalidRequestException": return [3
|
|
1126
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
1121
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
1122
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
1123
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
1124
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
1125
|
+
case "InvalidRequestException": return [3, 6];
|
|
1126
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
1127
1127
|
}
|
|
1128
|
-
return [3
|
|
1128
|
+
return [3, 8];
|
|
1129
1129
|
case 2:
|
|
1130
1130
|
_c = [{}];
|
|
1131
|
-
return [4
|
|
1131
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
1132
1132
|
case 3:
|
|
1133
1133
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1134
|
-
return [3
|
|
1134
|
+
return [3, 9];
|
|
1135
1135
|
case 4:
|
|
1136
1136
|
_d = [{}];
|
|
1137
|
-
return [4
|
|
1137
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
1138
1138
|
case 5:
|
|
1139
1139
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1140
|
-
return [3
|
|
1140
|
+
return [3, 9];
|
|
1141
1141
|
case 6:
|
|
1142
1142
|
_e = [{}];
|
|
1143
|
-
return [4
|
|
1143
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1144
1144
|
case 7:
|
|
1145
1145
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1146
|
-
return [3
|
|
1146
|
+
return [3, 9];
|
|
1147
1147
|
case 8:
|
|
1148
1148
|
parsedBody = parsedOutput.body;
|
|
1149
1149
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1153,7 +1153,7 @@ var deserializeAws_json1_1ListHapgsCommandError = function (output, context) { r
|
|
|
1153
1153
|
message = response.message || response.Message || errorCode;
|
|
1154
1154
|
response.message = message;
|
|
1155
1155
|
delete response.Message;
|
|
1156
|
-
return [2
|
|
1156
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1157
1157
|
}
|
|
1158
1158
|
});
|
|
1159
1159
|
}); };
|
|
@@ -1163,15 +1163,15 @@ export var deserializeAws_json1_1ListHsmsCommand = function (output, context) {
|
|
|
1163
1163
|
switch (_a.label) {
|
|
1164
1164
|
case 0:
|
|
1165
1165
|
if (output.statusCode >= 300) {
|
|
1166
|
-
return [2
|
|
1166
|
+
return [2, deserializeAws_json1_1ListHsmsCommandError(output, context)];
|
|
1167
1167
|
}
|
|
1168
|
-
return [4
|
|
1168
|
+
return [4, parseBody(output.body, context)];
|
|
1169
1169
|
case 1:
|
|
1170
1170
|
data = _a.sent();
|
|
1171
1171
|
contents = {};
|
|
1172
1172
|
contents = deserializeAws_json1_1ListHsmsResponse(data, context);
|
|
1173
1173
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1174
|
-
return [2
|
|
1174
|
+
return [2, Promise.resolve(response)];
|
|
1175
1175
|
}
|
|
1176
1176
|
});
|
|
1177
1177
|
}); };
|
|
@@ -1183,39 +1183,39 @@ var deserializeAws_json1_1ListHsmsCommandError = function (output, context) { re
|
|
|
1183
1183
|
case 0:
|
|
1184
1184
|
_a = [__assign({}, output)];
|
|
1185
1185
|
_f = {};
|
|
1186
|
-
return [4
|
|
1186
|
+
return [4, parseBody(output.body, context)];
|
|
1187
1187
|
case 1:
|
|
1188
1188
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1189
1189
|
errorCode = "UnknownError";
|
|
1190
1190
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1191
1191
|
_b = errorCode;
|
|
1192
1192
|
switch (_b) {
|
|
1193
|
-
case "CloudHsmInternalException": return [3
|
|
1194
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
1195
|
-
case "CloudHsmServiceException": return [3
|
|
1196
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
1197
|
-
case "InvalidRequestException": return [3
|
|
1198
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
1193
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
1194
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
1195
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
1196
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
1197
|
+
case "InvalidRequestException": return [3, 6];
|
|
1198
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
1199
1199
|
}
|
|
1200
|
-
return [3
|
|
1200
|
+
return [3, 8];
|
|
1201
1201
|
case 2:
|
|
1202
1202
|
_c = [{}];
|
|
1203
|
-
return [4
|
|
1203
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
1204
1204
|
case 3:
|
|
1205
1205
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1206
|
-
return [3
|
|
1206
|
+
return [3, 9];
|
|
1207
1207
|
case 4:
|
|
1208
1208
|
_d = [{}];
|
|
1209
|
-
return [4
|
|
1209
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
1210
1210
|
case 5:
|
|
1211
1211
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1212
|
-
return [3
|
|
1212
|
+
return [3, 9];
|
|
1213
1213
|
case 6:
|
|
1214
1214
|
_e = [{}];
|
|
1215
|
-
return [4
|
|
1215
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1216
1216
|
case 7:
|
|
1217
1217
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1218
|
-
return [3
|
|
1218
|
+
return [3, 9];
|
|
1219
1219
|
case 8:
|
|
1220
1220
|
parsedBody = parsedOutput.body;
|
|
1221
1221
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1225,7 +1225,7 @@ var deserializeAws_json1_1ListHsmsCommandError = function (output, context) { re
|
|
|
1225
1225
|
message = response.message || response.Message || errorCode;
|
|
1226
1226
|
response.message = message;
|
|
1227
1227
|
delete response.Message;
|
|
1228
|
-
return [2
|
|
1228
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1229
1229
|
}
|
|
1230
1230
|
});
|
|
1231
1231
|
}); };
|
|
@@ -1235,15 +1235,15 @@ export var deserializeAws_json1_1ListLunaClientsCommand = function (output, cont
|
|
|
1235
1235
|
switch (_a.label) {
|
|
1236
1236
|
case 0:
|
|
1237
1237
|
if (output.statusCode >= 300) {
|
|
1238
|
-
return [2
|
|
1238
|
+
return [2, deserializeAws_json1_1ListLunaClientsCommandError(output, context)];
|
|
1239
1239
|
}
|
|
1240
|
-
return [4
|
|
1240
|
+
return [4, parseBody(output.body, context)];
|
|
1241
1241
|
case 1:
|
|
1242
1242
|
data = _a.sent();
|
|
1243
1243
|
contents = {};
|
|
1244
1244
|
contents = deserializeAws_json1_1ListLunaClientsResponse(data, context);
|
|
1245
1245
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1246
|
-
return [2
|
|
1246
|
+
return [2, Promise.resolve(response)];
|
|
1247
1247
|
}
|
|
1248
1248
|
});
|
|
1249
1249
|
}); };
|
|
@@ -1255,39 +1255,39 @@ var deserializeAws_json1_1ListLunaClientsCommandError = function (output, contex
|
|
|
1255
1255
|
case 0:
|
|
1256
1256
|
_a = [__assign({}, output)];
|
|
1257
1257
|
_f = {};
|
|
1258
|
-
return [4
|
|
1258
|
+
return [4, parseBody(output.body, context)];
|
|
1259
1259
|
case 1:
|
|
1260
1260
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1261
1261
|
errorCode = "UnknownError";
|
|
1262
1262
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1263
1263
|
_b = errorCode;
|
|
1264
1264
|
switch (_b) {
|
|
1265
|
-
case "CloudHsmInternalException": return [3
|
|
1266
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
1267
|
-
case "CloudHsmServiceException": return [3
|
|
1268
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
1269
|
-
case "InvalidRequestException": return [3
|
|
1270
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
1265
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
1266
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
1267
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
1268
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
1269
|
+
case "InvalidRequestException": return [3, 6];
|
|
1270
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
1271
1271
|
}
|
|
1272
|
-
return [3
|
|
1272
|
+
return [3, 8];
|
|
1273
1273
|
case 2:
|
|
1274
1274
|
_c = [{}];
|
|
1275
|
-
return [4
|
|
1275
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
1276
1276
|
case 3:
|
|
1277
1277
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1278
|
-
return [3
|
|
1278
|
+
return [3, 9];
|
|
1279
1279
|
case 4:
|
|
1280
1280
|
_d = [{}];
|
|
1281
|
-
return [4
|
|
1281
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
1282
1282
|
case 5:
|
|
1283
1283
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1284
|
-
return [3
|
|
1284
|
+
return [3, 9];
|
|
1285
1285
|
case 6:
|
|
1286
1286
|
_e = [{}];
|
|
1287
|
-
return [4
|
|
1287
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1288
1288
|
case 7:
|
|
1289
1289
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1290
|
-
return [3
|
|
1290
|
+
return [3, 9];
|
|
1291
1291
|
case 8:
|
|
1292
1292
|
parsedBody = parsedOutput.body;
|
|
1293
1293
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1297,7 +1297,7 @@ var deserializeAws_json1_1ListLunaClientsCommandError = function (output, contex
|
|
|
1297
1297
|
message = response.message || response.Message || errorCode;
|
|
1298
1298
|
response.message = message;
|
|
1299
1299
|
delete response.Message;
|
|
1300
|
-
return [2
|
|
1300
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1301
1301
|
}
|
|
1302
1302
|
});
|
|
1303
1303
|
}); };
|
|
@@ -1307,15 +1307,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
1307
1307
|
switch (_a.label) {
|
|
1308
1308
|
case 0:
|
|
1309
1309
|
if (output.statusCode >= 300) {
|
|
1310
|
-
return [2
|
|
1310
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
1311
1311
|
}
|
|
1312
|
-
return [4
|
|
1312
|
+
return [4, parseBody(output.body, context)];
|
|
1313
1313
|
case 1:
|
|
1314
1314
|
data = _a.sent();
|
|
1315
1315
|
contents = {};
|
|
1316
1316
|
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1317
1317
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1318
|
-
return [2
|
|
1318
|
+
return [2, Promise.resolve(response)];
|
|
1319
1319
|
}
|
|
1320
1320
|
});
|
|
1321
1321
|
}); };
|
|
@@ -1327,39 +1327,39 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1327
1327
|
case 0:
|
|
1328
1328
|
_a = [__assign({}, output)];
|
|
1329
1329
|
_f = {};
|
|
1330
|
-
return [4
|
|
1330
|
+
return [4, parseBody(output.body, context)];
|
|
1331
1331
|
case 1:
|
|
1332
1332
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1333
1333
|
errorCode = "UnknownError";
|
|
1334
1334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1335
1335
|
_b = errorCode;
|
|
1336
1336
|
switch (_b) {
|
|
1337
|
-
case "CloudHsmInternalException": return [3
|
|
1338
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
1339
|
-
case "CloudHsmServiceException": return [3
|
|
1340
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
1341
|
-
case "InvalidRequestException": return [3
|
|
1342
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
1337
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
1338
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
1339
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
1340
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
1341
|
+
case "InvalidRequestException": return [3, 6];
|
|
1342
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
1343
1343
|
}
|
|
1344
|
-
return [3
|
|
1344
|
+
return [3, 8];
|
|
1345
1345
|
case 2:
|
|
1346
1346
|
_c = [{}];
|
|
1347
|
-
return [4
|
|
1347
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
1348
1348
|
case 3:
|
|
1349
1349
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1350
|
-
return [3
|
|
1350
|
+
return [3, 9];
|
|
1351
1351
|
case 4:
|
|
1352
1352
|
_d = [{}];
|
|
1353
|
-
return [4
|
|
1353
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
1354
1354
|
case 5:
|
|
1355
1355
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1356
|
-
return [3
|
|
1356
|
+
return [3, 9];
|
|
1357
1357
|
case 6:
|
|
1358
1358
|
_e = [{}];
|
|
1359
|
-
return [4
|
|
1359
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1360
1360
|
case 7:
|
|
1361
1361
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1362
|
-
return [3
|
|
1362
|
+
return [3, 9];
|
|
1363
1363
|
case 8:
|
|
1364
1364
|
parsedBody = parsedOutput.body;
|
|
1365
1365
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1369,7 +1369,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1369
1369
|
message = response.message || response.Message || errorCode;
|
|
1370
1370
|
response.message = message;
|
|
1371
1371
|
delete response.Message;
|
|
1372
|
-
return [2
|
|
1372
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1373
1373
|
}
|
|
1374
1374
|
});
|
|
1375
1375
|
}); };
|
|
@@ -1379,15 +1379,15 @@ export var deserializeAws_json1_1ModifyHapgCommand = function (output, context)
|
|
|
1379
1379
|
switch (_a.label) {
|
|
1380
1380
|
case 0:
|
|
1381
1381
|
if (output.statusCode >= 300) {
|
|
1382
|
-
return [2
|
|
1382
|
+
return [2, deserializeAws_json1_1ModifyHapgCommandError(output, context)];
|
|
1383
1383
|
}
|
|
1384
|
-
return [4
|
|
1384
|
+
return [4, parseBody(output.body, context)];
|
|
1385
1385
|
case 1:
|
|
1386
1386
|
data = _a.sent();
|
|
1387
1387
|
contents = {};
|
|
1388
1388
|
contents = deserializeAws_json1_1ModifyHapgResponse(data, context);
|
|
1389
1389
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1390
|
-
return [2
|
|
1390
|
+
return [2, Promise.resolve(response)];
|
|
1391
1391
|
}
|
|
1392
1392
|
});
|
|
1393
1393
|
}); };
|
|
@@ -1399,39 +1399,39 @@ var deserializeAws_json1_1ModifyHapgCommandError = function (output, context) {
|
|
|
1399
1399
|
case 0:
|
|
1400
1400
|
_a = [__assign({}, output)];
|
|
1401
1401
|
_f = {};
|
|
1402
|
-
return [4
|
|
1402
|
+
return [4, parseBody(output.body, context)];
|
|
1403
1403
|
case 1:
|
|
1404
1404
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1405
1405
|
errorCode = "UnknownError";
|
|
1406
1406
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1407
1407
|
_b = errorCode;
|
|
1408
1408
|
switch (_b) {
|
|
1409
|
-
case "CloudHsmInternalException": return [3
|
|
1410
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
1411
|
-
case "CloudHsmServiceException": return [3
|
|
1412
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
1413
|
-
case "InvalidRequestException": return [3
|
|
1414
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
1409
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
1410
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
1411
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
1412
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
1413
|
+
case "InvalidRequestException": return [3, 6];
|
|
1414
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
1415
1415
|
}
|
|
1416
|
-
return [3
|
|
1416
|
+
return [3, 8];
|
|
1417
1417
|
case 2:
|
|
1418
1418
|
_c = [{}];
|
|
1419
|
-
return [4
|
|
1419
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
1420
1420
|
case 3:
|
|
1421
1421
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1422
|
-
return [3
|
|
1422
|
+
return [3, 9];
|
|
1423
1423
|
case 4:
|
|
1424
1424
|
_d = [{}];
|
|
1425
|
-
return [4
|
|
1425
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
1426
1426
|
case 5:
|
|
1427
1427
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1428
|
-
return [3
|
|
1428
|
+
return [3, 9];
|
|
1429
1429
|
case 6:
|
|
1430
1430
|
_e = [{}];
|
|
1431
|
-
return [4
|
|
1431
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1432
1432
|
case 7:
|
|
1433
1433
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1434
|
-
return [3
|
|
1434
|
+
return [3, 9];
|
|
1435
1435
|
case 8:
|
|
1436
1436
|
parsedBody = parsedOutput.body;
|
|
1437
1437
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1441,7 +1441,7 @@ var deserializeAws_json1_1ModifyHapgCommandError = function (output, context) {
|
|
|
1441
1441
|
message = response.message || response.Message || errorCode;
|
|
1442
1442
|
response.message = message;
|
|
1443
1443
|
delete response.Message;
|
|
1444
|
-
return [2
|
|
1444
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1445
1445
|
}
|
|
1446
1446
|
});
|
|
1447
1447
|
}); };
|
|
@@ -1451,15 +1451,15 @@ export var deserializeAws_json1_1ModifyHsmCommand = function (output, context) {
|
|
|
1451
1451
|
switch (_a.label) {
|
|
1452
1452
|
case 0:
|
|
1453
1453
|
if (output.statusCode >= 300) {
|
|
1454
|
-
return [2
|
|
1454
|
+
return [2, deserializeAws_json1_1ModifyHsmCommandError(output, context)];
|
|
1455
1455
|
}
|
|
1456
|
-
return [4
|
|
1456
|
+
return [4, parseBody(output.body, context)];
|
|
1457
1457
|
case 1:
|
|
1458
1458
|
data = _a.sent();
|
|
1459
1459
|
contents = {};
|
|
1460
1460
|
contents = deserializeAws_json1_1ModifyHsmResponse(data, context);
|
|
1461
1461
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1462
|
-
return [2
|
|
1462
|
+
return [2, Promise.resolve(response)];
|
|
1463
1463
|
}
|
|
1464
1464
|
});
|
|
1465
1465
|
}); };
|
|
@@ -1471,39 +1471,39 @@ var deserializeAws_json1_1ModifyHsmCommandError = function (output, context) { r
|
|
|
1471
1471
|
case 0:
|
|
1472
1472
|
_a = [__assign({}, output)];
|
|
1473
1473
|
_f = {};
|
|
1474
|
-
return [4
|
|
1474
|
+
return [4, parseBody(output.body, context)];
|
|
1475
1475
|
case 1:
|
|
1476
1476
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1477
1477
|
errorCode = "UnknownError";
|
|
1478
1478
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
1479
|
_b = errorCode;
|
|
1480
1480
|
switch (_b) {
|
|
1481
|
-
case "CloudHsmInternalException": return [3
|
|
1482
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
1483
|
-
case "CloudHsmServiceException": return [3
|
|
1484
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
1485
|
-
case "InvalidRequestException": return [3
|
|
1486
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
1481
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
1482
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
1483
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
1484
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
1485
|
+
case "InvalidRequestException": return [3, 6];
|
|
1486
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
1487
1487
|
}
|
|
1488
|
-
return [3
|
|
1488
|
+
return [3, 8];
|
|
1489
1489
|
case 2:
|
|
1490
1490
|
_c = [{}];
|
|
1491
|
-
return [4
|
|
1491
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
1492
1492
|
case 3:
|
|
1493
1493
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1494
|
-
return [3
|
|
1494
|
+
return [3, 9];
|
|
1495
1495
|
case 4:
|
|
1496
1496
|
_d = [{}];
|
|
1497
|
-
return [4
|
|
1497
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
1498
1498
|
case 5:
|
|
1499
1499
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1500
|
-
return [3
|
|
1500
|
+
return [3, 9];
|
|
1501
1501
|
case 6:
|
|
1502
1502
|
_e = [{}];
|
|
1503
|
-
return [4
|
|
1503
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1504
1504
|
case 7:
|
|
1505
1505
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1506
|
-
return [3
|
|
1506
|
+
return [3, 9];
|
|
1507
1507
|
case 8:
|
|
1508
1508
|
parsedBody = parsedOutput.body;
|
|
1509
1509
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1513,7 +1513,7 @@ var deserializeAws_json1_1ModifyHsmCommandError = function (output, context) { r
|
|
|
1513
1513
|
message = response.message || response.Message || errorCode;
|
|
1514
1514
|
response.message = message;
|
|
1515
1515
|
delete response.Message;
|
|
1516
|
-
return [2
|
|
1516
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1517
1517
|
}
|
|
1518
1518
|
});
|
|
1519
1519
|
}); };
|
|
@@ -1523,15 +1523,15 @@ export var deserializeAws_json1_1ModifyLunaClientCommand = function (output, con
|
|
|
1523
1523
|
switch (_a.label) {
|
|
1524
1524
|
case 0:
|
|
1525
1525
|
if (output.statusCode >= 300) {
|
|
1526
|
-
return [2
|
|
1526
|
+
return [2, deserializeAws_json1_1ModifyLunaClientCommandError(output, context)];
|
|
1527
1527
|
}
|
|
1528
|
-
return [4
|
|
1528
|
+
return [4, parseBody(output.body, context)];
|
|
1529
1529
|
case 1:
|
|
1530
1530
|
data = _a.sent();
|
|
1531
1531
|
contents = {};
|
|
1532
1532
|
contents = deserializeAws_json1_1ModifyLunaClientResponse(data, context);
|
|
1533
1533
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1534
|
-
return [2
|
|
1534
|
+
return [2, Promise.resolve(response)];
|
|
1535
1535
|
}
|
|
1536
1536
|
});
|
|
1537
1537
|
}); };
|
|
@@ -1543,23 +1543,23 @@ var deserializeAws_json1_1ModifyLunaClientCommandError = function (output, conte
|
|
|
1543
1543
|
case 0:
|
|
1544
1544
|
_a = [__assign({}, output)];
|
|
1545
1545
|
_d = {};
|
|
1546
|
-
return [4
|
|
1546
|
+
return [4, parseBody(output.body, context)];
|
|
1547
1547
|
case 1:
|
|
1548
1548
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
1549
1549
|
errorCode = "UnknownError";
|
|
1550
1550
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1551
1551
|
_b = errorCode;
|
|
1552
1552
|
switch (_b) {
|
|
1553
|
-
case "CloudHsmServiceException": return [3
|
|
1554
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
1553
|
+
case "CloudHsmServiceException": return [3, 2];
|
|
1554
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 2];
|
|
1555
1555
|
}
|
|
1556
|
-
return [3
|
|
1556
|
+
return [3, 4];
|
|
1557
1557
|
case 2:
|
|
1558
1558
|
_c = [{}];
|
|
1559
|
-
return [4
|
|
1559
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
1560
1560
|
case 3:
|
|
1561
1561
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1562
|
-
return [3
|
|
1562
|
+
return [3, 5];
|
|
1563
1563
|
case 4:
|
|
1564
1564
|
parsedBody = parsedOutput.body;
|
|
1565
1565
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1569,7 +1569,7 @@ var deserializeAws_json1_1ModifyLunaClientCommandError = function (output, conte
|
|
|
1569
1569
|
message = response.message || response.Message || errorCode;
|
|
1570
1570
|
response.message = message;
|
|
1571
1571
|
delete response.Message;
|
|
1572
|
-
return [2
|
|
1572
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1573
1573
|
}
|
|
1574
1574
|
});
|
|
1575
1575
|
}); };
|
|
@@ -1579,15 +1579,15 @@ export var deserializeAws_json1_1RemoveTagsFromResourceCommand = function (outpu
|
|
|
1579
1579
|
switch (_a.label) {
|
|
1580
1580
|
case 0:
|
|
1581
1581
|
if (output.statusCode >= 300) {
|
|
1582
|
-
return [2
|
|
1582
|
+
return [2, deserializeAws_json1_1RemoveTagsFromResourceCommandError(output, context)];
|
|
1583
1583
|
}
|
|
1584
|
-
return [4
|
|
1584
|
+
return [4, parseBody(output.body, context)];
|
|
1585
1585
|
case 1:
|
|
1586
1586
|
data = _a.sent();
|
|
1587
1587
|
contents = {};
|
|
1588
1588
|
contents = deserializeAws_json1_1RemoveTagsFromResourceResponse(data, context);
|
|
1589
1589
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1590
|
-
return [2
|
|
1590
|
+
return [2, Promise.resolve(response)];
|
|
1591
1591
|
}
|
|
1592
1592
|
});
|
|
1593
1593
|
}); };
|
|
@@ -1599,39 +1599,39 @@ var deserializeAws_json1_1RemoveTagsFromResourceCommandError = function (output,
|
|
|
1599
1599
|
case 0:
|
|
1600
1600
|
_a = [__assign({}, output)];
|
|
1601
1601
|
_f = {};
|
|
1602
|
-
return [4
|
|
1602
|
+
return [4, parseBody(output.body, context)];
|
|
1603
1603
|
case 1:
|
|
1604
1604
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1605
1605
|
errorCode = "UnknownError";
|
|
1606
1606
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1607
1607
|
_b = errorCode;
|
|
1608
1608
|
switch (_b) {
|
|
1609
|
-
case "CloudHsmInternalException": return [3
|
|
1610
|
-
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3
|
|
1611
|
-
case "CloudHsmServiceException": return [3
|
|
1612
|
-
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3
|
|
1613
|
-
case "InvalidRequestException": return [3
|
|
1614
|
-
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3
|
|
1609
|
+
case "CloudHsmInternalException": return [3, 2];
|
|
1610
|
+
case "com.amazonaws.cloudhsm#CloudHsmInternalException": return [3, 2];
|
|
1611
|
+
case "CloudHsmServiceException": return [3, 4];
|
|
1612
|
+
case "com.amazonaws.cloudhsm#CloudHsmServiceException": return [3, 4];
|
|
1613
|
+
case "InvalidRequestException": return [3, 6];
|
|
1614
|
+
case "com.amazonaws.cloudhsm#InvalidRequestException": return [3, 6];
|
|
1615
1615
|
}
|
|
1616
|
-
return [3
|
|
1616
|
+
return [3, 8];
|
|
1617
1617
|
case 2:
|
|
1618
1618
|
_c = [{}];
|
|
1619
|
-
return [4
|
|
1619
|
+
return [4, deserializeAws_json1_1CloudHsmInternalExceptionResponse(parsedOutput, context)];
|
|
1620
1620
|
case 3:
|
|
1621
1621
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1622
|
-
return [3
|
|
1622
|
+
return [3, 9];
|
|
1623
1623
|
case 4:
|
|
1624
1624
|
_d = [{}];
|
|
1625
|
-
return [4
|
|
1625
|
+
return [4, deserializeAws_json1_1CloudHsmServiceExceptionResponse(parsedOutput, context)];
|
|
1626
1626
|
case 5:
|
|
1627
1627
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1628
|
-
return [3
|
|
1628
|
+
return [3, 9];
|
|
1629
1629
|
case 6:
|
|
1630
1630
|
_e = [{}];
|
|
1631
|
-
return [4
|
|
1631
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1632
1632
|
case 7:
|
|
1633
1633
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1634
|
-
return [3
|
|
1634
|
+
return [3, 9];
|
|
1635
1635
|
case 8:
|
|
1636
1636
|
parsedBody = parsedOutput.body;
|
|
1637
1637
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1641,7 +1641,7 @@ var deserializeAws_json1_1RemoveTagsFromResourceCommandError = function (output,
|
|
|
1641
1641
|
message = response.message || response.Message || errorCode;
|
|
1642
1642
|
response.message = message;
|
|
1643
1643
|
delete response.Message;
|
|
1644
|
-
return [2
|
|
1644
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1645
1645
|
}
|
|
1646
1646
|
});
|
|
1647
1647
|
}); };
|
|
@@ -1651,7 +1651,7 @@ var deserializeAws_json1_1CloudHsmInternalExceptionResponse = function (parsedOu
|
|
|
1651
1651
|
body = parsedOutput.body;
|
|
1652
1652
|
deserialized = deserializeAws_json1_1CloudHsmInternalException(body, context);
|
|
1653
1653
|
contents = __assign({ name: "CloudHsmInternalException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1654
|
-
return [2
|
|
1654
|
+
return [2, contents];
|
|
1655
1655
|
});
|
|
1656
1656
|
}); };
|
|
1657
1657
|
var deserializeAws_json1_1CloudHsmServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1660,7 +1660,7 @@ var deserializeAws_json1_1CloudHsmServiceExceptionResponse = function (parsedOut
|
|
|
1660
1660
|
body = parsedOutput.body;
|
|
1661
1661
|
deserialized = deserializeAws_json1_1CloudHsmServiceException(body, context);
|
|
1662
1662
|
contents = __assign({ name: "CloudHsmServiceException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1663
|
-
return [2
|
|
1663
|
+
return [2, contents];
|
|
1664
1664
|
});
|
|
1665
1665
|
}); };
|
|
1666
1666
|
var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1669,7 +1669,7 @@ var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutp
|
|
|
1669
1669
|
body = parsedOutput.body;
|
|
1670
1670
|
deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
1671
1671
|
contents = __assign({ name: "InvalidRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
1672
|
-
return [2
|
|
1672
|
+
return [2, contents];
|
|
1673
1673
|
});
|
|
1674
1674
|
}); };
|
|
1675
1675
|
var serializeAws_json1_1AddTagsToResourceRequest = function (input, context) {
|
|
@@ -2044,7 +2044,6 @@ var deserializeMetadata = function (output) {
|
|
|
2044
2044
|
cfId: output.headers["x-amz-cf-id"],
|
|
2045
2045
|
});
|
|
2046
2046
|
};
|
|
2047
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2048
2047
|
var collectBody = function (streamBody, context) {
|
|
2049
2048
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2050
2049
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2052,7 +2051,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2052
2051
|
}
|
|
2053
2052
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2054
2053
|
};
|
|
2055
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2056
2054
|
var collectBodyString = function (streamBody, context) {
|
|
2057
2055
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2058
2056
|
};
|
|
@@ -2060,7 +2058,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2060
2058
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2061
2059
|
return __generator(this, function (_c) {
|
|
2062
2060
|
switch (_c.label) {
|
|
2063
|
-
case 0: return [4
|
|
2061
|
+
case 0: return [4, context.endpoint()];
|
|
2064
2062
|
case 1:
|
|
2065
2063
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2066
2064
|
contents = {
|
|
@@ -2077,7 +2075,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
2077
2075
|
if (body !== undefined) {
|
|
2078
2076
|
contents.body = body;
|
|
2079
2077
|
}
|
|
2080
|
-
return [2
|
|
2078
|
+
return [2, new __HttpRequest(contents)];
|
|
2081
2079
|
}
|
|
2082
2080
|
});
|
|
2083
2081
|
}); };
|
|
@@ -2089,9 +2087,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2089
2087
|
return {};
|
|
2090
2088
|
});
|
|
2091
2089
|
};
|
|
2092
|
-
/**
|
|
2093
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2094
|
-
*/
|
|
2095
2090
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2096
2091
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2097
2092
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -2116,4 +2111,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2116
2111
|
}
|
|
2117
2112
|
return "";
|
|
2118
2113
|
};
|
|
2119
|
-
//# sourceMappingURL=Aws_json1_1.js.map
|