@aws-sdk/client-datasync 3.33.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/package.json +38 -38
- package/dist/es/DataSync.js +1 -10
- package/dist/es/DataSync.js.map +1 -1
- package/dist/es/DataSyncClient.js +1 -15
- package/dist/es/DataSyncClient.js.map +1 -1
- package/dist/es/commands/CancelTaskExecutionCommand.js +2 -34
- package/dist/es/commands/CancelTaskExecutionCommand.js.map +1 -1
- package/dist/es/commands/CreateAgentCommand.js +2 -41
- package/dist/es/commands/CreateAgentCommand.js.map +1 -1
- package/dist/es/commands/CreateLocationEfsCommand.js +2 -27
- package/dist/es/commands/CreateLocationEfsCommand.js.map +1 -1
- package/dist/es/commands/CreateLocationFsxWindowsCommand.js +2 -27
- package/dist/es/commands/CreateLocationFsxWindowsCommand.js.map +1 -1
- package/dist/es/commands/CreateLocationNfsCommand.js +2 -28
- package/dist/es/commands/CreateLocationNfsCommand.js.map +1 -1
- package/dist/es/commands/CreateLocationObjectStorageCommand.js +2 -28
- package/dist/es/commands/CreateLocationObjectStorageCommand.js.map +1 -1
- package/dist/es/commands/CreateLocationS3Command.js +2 -33
- package/dist/es/commands/CreateLocationS3Command.js.map +1 -1
- package/dist/es/commands/CreateLocationSmbCommand.js +2 -28
- package/dist/es/commands/CreateLocationSmbCommand.js.map +1 -1
- package/dist/es/commands/CreateTaskCommand.js +2 -45
- package/dist/es/commands/CreateTaskCommand.js.map +1 -1
- package/dist/es/commands/DeleteAgentCommand.js +2 -30
- package/dist/es/commands/DeleteAgentCommand.js.map +1 -1
- package/dist/es/commands/DeleteLocationCommand.js +2 -27
- package/dist/es/commands/DeleteLocationCommand.js.map +1 -1
- package/dist/es/commands/DeleteTaskCommand.js +2 -27
- package/dist/es/commands/DeleteTaskCommand.js.map +1 -1
- package/dist/es/commands/DescribeAgentCommand.js +2 -29
- package/dist/es/commands/DescribeAgentCommand.js.map +1 -1
- package/dist/es/commands/DescribeLocationEfsCommand.js +2 -27
- package/dist/es/commands/DescribeLocationEfsCommand.js.map +1 -1
- package/dist/es/commands/DescribeLocationFsxWindowsCommand.js +2 -28
- package/dist/es/commands/DescribeLocationFsxWindowsCommand.js.map +1 -1
- package/dist/es/commands/DescribeLocationNfsCommand.js +2 -27
- package/dist/es/commands/DescribeLocationNfsCommand.js.map +1 -1
- package/dist/es/commands/DescribeLocationObjectStorageCommand.js +2 -28
- package/dist/es/commands/DescribeLocationObjectStorageCommand.js.map +1 -1
- package/dist/es/commands/DescribeLocationS3Command.js +2 -27
- package/dist/es/commands/DescribeLocationS3Command.js.map +1 -1
- package/dist/es/commands/DescribeLocationSmbCommand.js +2 -27
- package/dist/es/commands/DescribeLocationSmbCommand.js.map +1 -1
- package/dist/es/commands/DescribeTaskCommand.js +2 -27
- package/dist/es/commands/DescribeTaskCommand.js.map +1 -1
- package/dist/es/commands/DescribeTaskExecutionCommand.js +2 -27
- package/dist/es/commands/DescribeTaskExecutionCommand.js.map +1 -1
- package/dist/es/commands/ListAgentsCommand.js +2 -34
- package/dist/es/commands/ListAgentsCommand.js.map +1 -1
- package/dist/es/commands/ListLocationsCommand.js +2 -30
- package/dist/es/commands/ListLocationsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForResourceCommand.js +2 -27
- package/dist/es/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/es/commands/ListTaskExecutionsCommand.js +2 -27
- package/dist/es/commands/ListTaskExecutionsCommand.js.map +1 -1
- package/dist/es/commands/ListTasksCommand.js +2 -27
- package/dist/es/commands/ListTasksCommand.js.map +1 -1
- package/dist/es/commands/StartTaskExecutionCommand.js +2 -35
- package/dist/es/commands/StartTaskExecutionCommand.js.map +1 -1
- package/dist/es/commands/TagResourceCommand.js +2 -27
- package/dist/es/commands/TagResourceCommand.js.map +1 -1
- package/dist/es/commands/UntagResourceCommand.js +2 -27
- package/dist/es/commands/UntagResourceCommand.js.map +1 -1
- package/dist/es/commands/UpdateAgentCommand.js +2 -27
- package/dist/es/commands/UpdateAgentCommand.js.map +1 -1
- package/dist/es/commands/UpdateLocationNfsCommand.js +2 -28
- package/dist/es/commands/UpdateLocationNfsCommand.js.map +1 -1
- package/dist/es/commands/UpdateLocationObjectStorageCommand.js +2 -29
- package/dist/es/commands/UpdateLocationObjectStorageCommand.js.map +1 -1
- package/dist/es/commands/UpdateLocationSmbCommand.js +2 -29
- package/dist/es/commands/UpdateLocationSmbCommand.js.map +1 -1
- package/dist/es/commands/UpdateTaskCommand.js +2 -27
- package/dist/es/commands/UpdateTaskCommand.js.map +1 -1
- package/dist/es/commands/UpdateTaskExecutionCommand.js +2 -36
- package/dist/es/commands/UpdateTaskExecutionCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -267
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +38 -38
- package/dist/es/pagination/ListAgentsPaginator.js +16 -28
- package/dist/es/pagination/ListAgentsPaginator.js.map +1 -1
- package/dist/es/pagination/ListLocationsPaginator.js +16 -28
- package/dist/es/pagination/ListLocationsPaginator.js.map +1 -1
- package/dist/es/pagination/ListTagsForResourcePaginator.js +16 -28
- package/dist/es/pagination/ListTagsForResourcePaginator.js.map +1 -1
- package/dist/es/pagination/ListTaskExecutionsPaginator.js +16 -28
- package/dist/es/pagination/ListTaskExecutionsPaginator.js.map +1 -1
- package/dist/es/pagination/ListTasksPaginator.js +16 -28
- package/dist/es/pagination/ListTasksPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +529 -534
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/package.json +38 -38
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +4 -5
- package/tsconfig.types.json +8 -0
|
@@ -9,7 +9,7 @@ export var serializeAws_json1_1CancelTaskExecutionCommand = function (input, con
|
|
|
9
9
|
"x-amz-target": "FmrsService.CancelTaskExecution",
|
|
10
10
|
};
|
|
11
11
|
body = JSON.stringify(serializeAws_json1_1CancelTaskExecutionRequest(input, context));
|
|
12
|
-
return [2
|
|
12
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
15
|
export var serializeAws_json1_1CreateAgentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20,7 +20,7 @@ export var serializeAws_json1_1CreateAgentCommand = function (input, context) {
|
|
|
20
20
|
"x-amz-target": "FmrsService.CreateAgent",
|
|
21
21
|
};
|
|
22
22
|
body = JSON.stringify(serializeAws_json1_1CreateAgentRequest(input, context));
|
|
23
|
-
return [2
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
24
|
});
|
|
25
25
|
}); };
|
|
26
26
|
export var serializeAws_json1_1CreateLocationEfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -31,7 +31,7 @@ export var serializeAws_json1_1CreateLocationEfsCommand = function (input, conte
|
|
|
31
31
|
"x-amz-target": "FmrsService.CreateLocationEfs",
|
|
32
32
|
};
|
|
33
33
|
body = JSON.stringify(serializeAws_json1_1CreateLocationEfsRequest(input, context));
|
|
34
|
-
return [2
|
|
34
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
35
35
|
});
|
|
36
36
|
}); };
|
|
37
37
|
export var serializeAws_json1_1CreateLocationFsxWindowsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -42,7 +42,7 @@ export var serializeAws_json1_1CreateLocationFsxWindowsCommand = function (input
|
|
|
42
42
|
"x-amz-target": "FmrsService.CreateLocationFsxWindows",
|
|
43
43
|
};
|
|
44
44
|
body = JSON.stringify(serializeAws_json1_1CreateLocationFsxWindowsRequest(input, context));
|
|
45
|
-
return [2
|
|
45
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
46
46
|
});
|
|
47
47
|
}); };
|
|
48
48
|
export var serializeAws_json1_1CreateLocationNfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -53,7 +53,7 @@ export var serializeAws_json1_1CreateLocationNfsCommand = function (input, conte
|
|
|
53
53
|
"x-amz-target": "FmrsService.CreateLocationNfs",
|
|
54
54
|
};
|
|
55
55
|
body = JSON.stringify(serializeAws_json1_1CreateLocationNfsRequest(input, context));
|
|
56
|
-
return [2
|
|
56
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_json1_1CreateLocationObjectStorageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -64,7 +64,7 @@ export var serializeAws_json1_1CreateLocationObjectStorageCommand = function (in
|
|
|
64
64
|
"x-amz-target": "FmrsService.CreateLocationObjectStorage",
|
|
65
65
|
};
|
|
66
66
|
body = JSON.stringify(serializeAws_json1_1CreateLocationObjectStorageRequest(input, context));
|
|
67
|
-
return [2
|
|
67
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
68
68
|
});
|
|
69
69
|
}); };
|
|
70
70
|
export var serializeAws_json1_1CreateLocationS3Command = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -75,7 +75,7 @@ export var serializeAws_json1_1CreateLocationS3Command = function (input, contex
|
|
|
75
75
|
"x-amz-target": "FmrsService.CreateLocationS3",
|
|
76
76
|
};
|
|
77
77
|
body = JSON.stringify(serializeAws_json1_1CreateLocationS3Request(input, context));
|
|
78
|
-
return [2
|
|
78
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
79
79
|
});
|
|
80
80
|
}); };
|
|
81
81
|
export var serializeAws_json1_1CreateLocationSmbCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -86,7 +86,7 @@ export var serializeAws_json1_1CreateLocationSmbCommand = function (input, conte
|
|
|
86
86
|
"x-amz-target": "FmrsService.CreateLocationSmb",
|
|
87
87
|
};
|
|
88
88
|
body = JSON.stringify(serializeAws_json1_1CreateLocationSmbRequest(input, context));
|
|
89
|
-
return [2
|
|
89
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
90
|
});
|
|
91
91
|
}); };
|
|
92
92
|
export var serializeAws_json1_1CreateTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -97,7 +97,7 @@ export var serializeAws_json1_1CreateTaskCommand = function (input, context) { r
|
|
|
97
97
|
"x-amz-target": "FmrsService.CreateTask",
|
|
98
98
|
};
|
|
99
99
|
body = JSON.stringify(serializeAws_json1_1CreateTaskRequest(input, context));
|
|
100
|
-
return [2
|
|
100
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
101
101
|
});
|
|
102
102
|
}); };
|
|
103
103
|
export var serializeAws_json1_1DeleteAgentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -108,7 +108,7 @@ export var serializeAws_json1_1DeleteAgentCommand = function (input, context) {
|
|
|
108
108
|
"x-amz-target": "FmrsService.DeleteAgent",
|
|
109
109
|
};
|
|
110
110
|
body = JSON.stringify(serializeAws_json1_1DeleteAgentRequest(input, context));
|
|
111
|
-
return [2
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
112
|
});
|
|
113
113
|
}); };
|
|
114
114
|
export var serializeAws_json1_1DeleteLocationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -119,7 +119,7 @@ export var serializeAws_json1_1DeleteLocationCommand = function (input, context)
|
|
|
119
119
|
"x-amz-target": "FmrsService.DeleteLocation",
|
|
120
120
|
};
|
|
121
121
|
body = JSON.stringify(serializeAws_json1_1DeleteLocationRequest(input, context));
|
|
122
|
-
return [2
|
|
122
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
123
123
|
});
|
|
124
124
|
}); };
|
|
125
125
|
export var serializeAws_json1_1DeleteTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -130,7 +130,7 @@ export var serializeAws_json1_1DeleteTaskCommand = function (input, context) { r
|
|
|
130
130
|
"x-amz-target": "FmrsService.DeleteTask",
|
|
131
131
|
};
|
|
132
132
|
body = JSON.stringify(serializeAws_json1_1DeleteTaskRequest(input, context));
|
|
133
|
-
return [2
|
|
133
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
134
134
|
});
|
|
135
135
|
}); };
|
|
136
136
|
export var serializeAws_json1_1DescribeAgentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -141,7 +141,7 @@ export var serializeAws_json1_1DescribeAgentCommand = function (input, context)
|
|
|
141
141
|
"x-amz-target": "FmrsService.DescribeAgent",
|
|
142
142
|
};
|
|
143
143
|
body = JSON.stringify(serializeAws_json1_1DescribeAgentRequest(input, context));
|
|
144
|
-
return [2
|
|
144
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
145
145
|
});
|
|
146
146
|
}); };
|
|
147
147
|
export var serializeAws_json1_1DescribeLocationEfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -152,7 +152,7 @@ export var serializeAws_json1_1DescribeLocationEfsCommand = function (input, con
|
|
|
152
152
|
"x-amz-target": "FmrsService.DescribeLocationEfs",
|
|
153
153
|
};
|
|
154
154
|
body = JSON.stringify(serializeAws_json1_1DescribeLocationEfsRequest(input, context));
|
|
155
|
-
return [2
|
|
155
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
156
156
|
});
|
|
157
157
|
}); };
|
|
158
158
|
export var serializeAws_json1_1DescribeLocationFsxWindowsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -163,7 +163,7 @@ export var serializeAws_json1_1DescribeLocationFsxWindowsCommand = function (inp
|
|
|
163
163
|
"x-amz-target": "FmrsService.DescribeLocationFsxWindows",
|
|
164
164
|
};
|
|
165
165
|
body = JSON.stringify(serializeAws_json1_1DescribeLocationFsxWindowsRequest(input, context));
|
|
166
|
-
return [2
|
|
166
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
167
167
|
});
|
|
168
168
|
}); };
|
|
169
169
|
export var serializeAws_json1_1DescribeLocationNfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -174,7 +174,7 @@ export var serializeAws_json1_1DescribeLocationNfsCommand = function (input, con
|
|
|
174
174
|
"x-amz-target": "FmrsService.DescribeLocationNfs",
|
|
175
175
|
};
|
|
176
176
|
body = JSON.stringify(serializeAws_json1_1DescribeLocationNfsRequest(input, context));
|
|
177
|
-
return [2
|
|
177
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
178
|
});
|
|
179
179
|
}); };
|
|
180
180
|
export var serializeAws_json1_1DescribeLocationObjectStorageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -185,7 +185,7 @@ export var serializeAws_json1_1DescribeLocationObjectStorageCommand = function (
|
|
|
185
185
|
"x-amz-target": "FmrsService.DescribeLocationObjectStorage",
|
|
186
186
|
};
|
|
187
187
|
body = JSON.stringify(serializeAws_json1_1DescribeLocationObjectStorageRequest(input, context));
|
|
188
|
-
return [2
|
|
188
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
189
189
|
});
|
|
190
190
|
}); };
|
|
191
191
|
export var serializeAws_json1_1DescribeLocationS3Command = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -196,7 +196,7 @@ export var serializeAws_json1_1DescribeLocationS3Command = function (input, cont
|
|
|
196
196
|
"x-amz-target": "FmrsService.DescribeLocationS3",
|
|
197
197
|
};
|
|
198
198
|
body = JSON.stringify(serializeAws_json1_1DescribeLocationS3Request(input, context));
|
|
199
|
-
return [2
|
|
199
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
export var serializeAws_json1_1DescribeLocationSmbCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -207,7 +207,7 @@ export var serializeAws_json1_1DescribeLocationSmbCommand = function (input, con
|
|
|
207
207
|
"x-amz-target": "FmrsService.DescribeLocationSmb",
|
|
208
208
|
};
|
|
209
209
|
body = JSON.stringify(serializeAws_json1_1DescribeLocationSmbRequest(input, context));
|
|
210
|
-
return [2
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
211
|
});
|
|
212
212
|
}); };
|
|
213
213
|
export var serializeAws_json1_1DescribeTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -218,7 +218,7 @@ export var serializeAws_json1_1DescribeTaskCommand = function (input, context) {
|
|
|
218
218
|
"x-amz-target": "FmrsService.DescribeTask",
|
|
219
219
|
};
|
|
220
220
|
body = JSON.stringify(serializeAws_json1_1DescribeTaskRequest(input, context));
|
|
221
|
-
return [2
|
|
221
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
222
|
});
|
|
223
223
|
}); };
|
|
224
224
|
export var serializeAws_json1_1DescribeTaskExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -229,7 +229,7 @@ export var serializeAws_json1_1DescribeTaskExecutionCommand = function (input, c
|
|
|
229
229
|
"x-amz-target": "FmrsService.DescribeTaskExecution",
|
|
230
230
|
};
|
|
231
231
|
body = JSON.stringify(serializeAws_json1_1DescribeTaskExecutionRequest(input, context));
|
|
232
|
-
return [2
|
|
232
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
233
233
|
});
|
|
234
234
|
}); };
|
|
235
235
|
export var serializeAws_json1_1ListAgentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -240,7 +240,7 @@ export var serializeAws_json1_1ListAgentsCommand = function (input, context) { r
|
|
|
240
240
|
"x-amz-target": "FmrsService.ListAgents",
|
|
241
241
|
};
|
|
242
242
|
body = JSON.stringify(serializeAws_json1_1ListAgentsRequest(input, context));
|
|
243
|
-
return [2
|
|
243
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
244
244
|
});
|
|
245
245
|
}); };
|
|
246
246
|
export var serializeAws_json1_1ListLocationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -251,7 +251,7 @@ export var serializeAws_json1_1ListLocationsCommand = function (input, context)
|
|
|
251
251
|
"x-amz-target": "FmrsService.ListLocations",
|
|
252
252
|
};
|
|
253
253
|
body = JSON.stringify(serializeAws_json1_1ListLocationsRequest(input, context));
|
|
254
|
-
return [2
|
|
254
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
255
255
|
});
|
|
256
256
|
}); };
|
|
257
257
|
export var serializeAws_json1_1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -262,7 +262,7 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
|
|
|
262
262
|
"x-amz-target": "FmrsService.ListTagsForResource",
|
|
263
263
|
};
|
|
264
264
|
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
265
|
-
return [2
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
266
|
});
|
|
267
267
|
}); };
|
|
268
268
|
export var serializeAws_json1_1ListTaskExecutionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -273,7 +273,7 @@ export var serializeAws_json1_1ListTaskExecutionsCommand = function (input, cont
|
|
|
273
273
|
"x-amz-target": "FmrsService.ListTaskExecutions",
|
|
274
274
|
};
|
|
275
275
|
body = JSON.stringify(serializeAws_json1_1ListTaskExecutionsRequest(input, context));
|
|
276
|
-
return [2
|
|
276
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
277
277
|
});
|
|
278
278
|
}); };
|
|
279
279
|
export var serializeAws_json1_1ListTasksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -284,7 +284,7 @@ export var serializeAws_json1_1ListTasksCommand = function (input, context) { re
|
|
|
284
284
|
"x-amz-target": "FmrsService.ListTasks",
|
|
285
285
|
};
|
|
286
286
|
body = JSON.stringify(serializeAws_json1_1ListTasksRequest(input, context));
|
|
287
|
-
return [2
|
|
287
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
288
288
|
});
|
|
289
289
|
}); };
|
|
290
290
|
export var serializeAws_json1_1StartTaskExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -295,7 +295,7 @@ export var serializeAws_json1_1StartTaskExecutionCommand = function (input, cont
|
|
|
295
295
|
"x-amz-target": "FmrsService.StartTaskExecution",
|
|
296
296
|
};
|
|
297
297
|
body = JSON.stringify(serializeAws_json1_1StartTaskExecutionRequest(input, context));
|
|
298
|
-
return [2
|
|
298
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
299
299
|
});
|
|
300
300
|
}); };
|
|
301
301
|
export var serializeAws_json1_1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -306,7 +306,7 @@ export var serializeAws_json1_1TagResourceCommand = function (input, context) {
|
|
|
306
306
|
"x-amz-target": "FmrsService.TagResource",
|
|
307
307
|
};
|
|
308
308
|
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
309
|
-
return [2
|
|
309
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
310
310
|
});
|
|
311
311
|
}); };
|
|
312
312
|
export var serializeAws_json1_1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -317,7 +317,7 @@ export var serializeAws_json1_1UntagResourceCommand = function (input, context)
|
|
|
317
317
|
"x-amz-target": "FmrsService.UntagResource",
|
|
318
318
|
};
|
|
319
319
|
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
320
|
-
return [2
|
|
320
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
321
321
|
});
|
|
322
322
|
}); };
|
|
323
323
|
export var serializeAws_json1_1UpdateAgentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -328,7 +328,7 @@ export var serializeAws_json1_1UpdateAgentCommand = function (input, context) {
|
|
|
328
328
|
"x-amz-target": "FmrsService.UpdateAgent",
|
|
329
329
|
};
|
|
330
330
|
body = JSON.stringify(serializeAws_json1_1UpdateAgentRequest(input, context));
|
|
331
|
-
return [2
|
|
331
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
332
332
|
});
|
|
333
333
|
}); };
|
|
334
334
|
export var serializeAws_json1_1UpdateLocationNfsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -339,7 +339,7 @@ export var serializeAws_json1_1UpdateLocationNfsCommand = function (input, conte
|
|
|
339
339
|
"x-amz-target": "FmrsService.UpdateLocationNfs",
|
|
340
340
|
};
|
|
341
341
|
body = JSON.stringify(serializeAws_json1_1UpdateLocationNfsRequest(input, context));
|
|
342
|
-
return [2
|
|
342
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
343
343
|
});
|
|
344
344
|
}); };
|
|
345
345
|
export var serializeAws_json1_1UpdateLocationObjectStorageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -350,7 +350,7 @@ export var serializeAws_json1_1UpdateLocationObjectStorageCommand = function (in
|
|
|
350
350
|
"x-amz-target": "FmrsService.UpdateLocationObjectStorage",
|
|
351
351
|
};
|
|
352
352
|
body = JSON.stringify(serializeAws_json1_1UpdateLocationObjectStorageRequest(input, context));
|
|
353
|
-
return [2
|
|
353
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
354
354
|
});
|
|
355
355
|
}); };
|
|
356
356
|
export var serializeAws_json1_1UpdateLocationSmbCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -361,7 +361,7 @@ export var serializeAws_json1_1UpdateLocationSmbCommand = function (input, conte
|
|
|
361
361
|
"x-amz-target": "FmrsService.UpdateLocationSmb",
|
|
362
362
|
};
|
|
363
363
|
body = JSON.stringify(serializeAws_json1_1UpdateLocationSmbRequest(input, context));
|
|
364
|
-
return [2
|
|
364
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
365
365
|
});
|
|
366
366
|
}); };
|
|
367
367
|
export var serializeAws_json1_1UpdateTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -372,7 +372,7 @@ export var serializeAws_json1_1UpdateTaskCommand = function (input, context) { r
|
|
|
372
372
|
"x-amz-target": "FmrsService.UpdateTask",
|
|
373
373
|
};
|
|
374
374
|
body = JSON.stringify(serializeAws_json1_1UpdateTaskRequest(input, context));
|
|
375
|
-
return [2
|
|
375
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
376
376
|
});
|
|
377
377
|
}); };
|
|
378
378
|
export var serializeAws_json1_1UpdateTaskExecutionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -383,7 +383,7 @@ export var serializeAws_json1_1UpdateTaskExecutionCommand = function (input, con
|
|
|
383
383
|
"x-amz-target": "FmrsService.UpdateTaskExecution",
|
|
384
384
|
};
|
|
385
385
|
body = JSON.stringify(serializeAws_json1_1UpdateTaskExecutionRequest(input, context));
|
|
386
|
-
return [2
|
|
386
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
387
387
|
});
|
|
388
388
|
}); };
|
|
389
389
|
export var deserializeAws_json1_1CancelTaskExecutionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -392,15 +392,15 @@ export var deserializeAws_json1_1CancelTaskExecutionCommand = function (output,
|
|
|
392
392
|
switch (_a.label) {
|
|
393
393
|
case 0:
|
|
394
394
|
if (output.statusCode >= 300) {
|
|
395
|
-
return [2
|
|
395
|
+
return [2, deserializeAws_json1_1CancelTaskExecutionCommandError(output, context)];
|
|
396
396
|
}
|
|
397
|
-
return [4
|
|
397
|
+
return [4, parseBody(output.body, context)];
|
|
398
398
|
case 1:
|
|
399
399
|
data = _a.sent();
|
|
400
400
|
contents = {};
|
|
401
401
|
contents = deserializeAws_json1_1CancelTaskExecutionResponse(data, context);
|
|
402
402
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
403
|
-
return [2
|
|
403
|
+
return [2, Promise.resolve(response)];
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
406
|
}); };
|
|
@@ -412,31 +412,31 @@ var deserializeAws_json1_1CancelTaskExecutionCommandError = function (output, co
|
|
|
412
412
|
case 0:
|
|
413
413
|
_a = [__assign({}, output)];
|
|
414
414
|
_e = {};
|
|
415
|
-
return [4
|
|
415
|
+
return [4, parseBody(output.body, context)];
|
|
416
416
|
case 1:
|
|
417
417
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
418
418
|
errorCode = "UnknownError";
|
|
419
419
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
420
|
_b = errorCode;
|
|
421
421
|
switch (_b) {
|
|
422
|
-
case "InternalException": return [3
|
|
423
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
424
|
-
case "InvalidRequestException": return [3
|
|
425
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
422
|
+
case "InternalException": return [3, 2];
|
|
423
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
424
|
+
case "InvalidRequestException": return [3, 4];
|
|
425
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
426
426
|
}
|
|
427
|
-
return [3
|
|
427
|
+
return [3, 6];
|
|
428
428
|
case 2:
|
|
429
429
|
_c = [{}];
|
|
430
|
-
return [4
|
|
430
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
431
431
|
case 3:
|
|
432
432
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
433
|
-
return [3
|
|
433
|
+
return [3, 7];
|
|
434
434
|
case 4:
|
|
435
435
|
_d = [{}];
|
|
436
|
-
return [4
|
|
436
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
437
437
|
case 5:
|
|
438
438
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
439
|
-
return [3
|
|
439
|
+
return [3, 7];
|
|
440
440
|
case 6:
|
|
441
441
|
parsedBody = parsedOutput.body;
|
|
442
442
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -446,7 +446,7 @@ var deserializeAws_json1_1CancelTaskExecutionCommandError = function (output, co
|
|
|
446
446
|
message = response.message || response.Message || errorCode;
|
|
447
447
|
response.message = message;
|
|
448
448
|
delete response.Message;
|
|
449
|
-
return [2
|
|
449
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
450
450
|
}
|
|
451
451
|
});
|
|
452
452
|
}); };
|
|
@@ -456,15 +456,15 @@ export var deserializeAws_json1_1CreateAgentCommand = function (output, context)
|
|
|
456
456
|
switch (_a.label) {
|
|
457
457
|
case 0:
|
|
458
458
|
if (output.statusCode >= 300) {
|
|
459
|
-
return [2
|
|
459
|
+
return [2, deserializeAws_json1_1CreateAgentCommandError(output, context)];
|
|
460
460
|
}
|
|
461
|
-
return [4
|
|
461
|
+
return [4, parseBody(output.body, context)];
|
|
462
462
|
case 1:
|
|
463
463
|
data = _a.sent();
|
|
464
464
|
contents = {};
|
|
465
465
|
contents = deserializeAws_json1_1CreateAgentResponse(data, context);
|
|
466
466
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
467
|
-
return [2
|
|
467
|
+
return [2, Promise.resolve(response)];
|
|
468
468
|
}
|
|
469
469
|
});
|
|
470
470
|
}); };
|
|
@@ -476,31 +476,31 @@ var deserializeAws_json1_1CreateAgentCommandError = function (output, context) {
|
|
|
476
476
|
case 0:
|
|
477
477
|
_a = [__assign({}, output)];
|
|
478
478
|
_e = {};
|
|
479
|
-
return [4
|
|
479
|
+
return [4, parseBody(output.body, context)];
|
|
480
480
|
case 1:
|
|
481
481
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
482
482
|
errorCode = "UnknownError";
|
|
483
483
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
484
|
_b = errorCode;
|
|
485
485
|
switch (_b) {
|
|
486
|
-
case "InternalException": return [3
|
|
487
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
488
|
-
case "InvalidRequestException": return [3
|
|
489
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
486
|
+
case "InternalException": return [3, 2];
|
|
487
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
488
|
+
case "InvalidRequestException": return [3, 4];
|
|
489
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
490
490
|
}
|
|
491
|
-
return [3
|
|
491
|
+
return [3, 6];
|
|
492
492
|
case 2:
|
|
493
493
|
_c = [{}];
|
|
494
|
-
return [4
|
|
494
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
495
495
|
case 3:
|
|
496
496
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
497
|
-
return [3
|
|
497
|
+
return [3, 7];
|
|
498
498
|
case 4:
|
|
499
499
|
_d = [{}];
|
|
500
|
-
return [4
|
|
500
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
501
501
|
case 5:
|
|
502
502
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
503
|
-
return [3
|
|
503
|
+
return [3, 7];
|
|
504
504
|
case 6:
|
|
505
505
|
parsedBody = parsedOutput.body;
|
|
506
506
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -510,7 +510,7 @@ var deserializeAws_json1_1CreateAgentCommandError = function (output, context) {
|
|
|
510
510
|
message = response.message || response.Message || errorCode;
|
|
511
511
|
response.message = message;
|
|
512
512
|
delete response.Message;
|
|
513
|
-
return [2
|
|
513
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
516
|
}); };
|
|
@@ -520,15 +520,15 @@ export var deserializeAws_json1_1CreateLocationEfsCommand = function (output, co
|
|
|
520
520
|
switch (_a.label) {
|
|
521
521
|
case 0:
|
|
522
522
|
if (output.statusCode >= 300) {
|
|
523
|
-
return [2
|
|
523
|
+
return [2, deserializeAws_json1_1CreateLocationEfsCommandError(output, context)];
|
|
524
524
|
}
|
|
525
|
-
return [4
|
|
525
|
+
return [4, parseBody(output.body, context)];
|
|
526
526
|
case 1:
|
|
527
527
|
data = _a.sent();
|
|
528
528
|
contents = {};
|
|
529
529
|
contents = deserializeAws_json1_1CreateLocationEfsResponse(data, context);
|
|
530
530
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
531
|
-
return [2
|
|
531
|
+
return [2, Promise.resolve(response)];
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
534
|
}); };
|
|
@@ -540,31 +540,31 @@ var deserializeAws_json1_1CreateLocationEfsCommandError = function (output, cont
|
|
|
540
540
|
case 0:
|
|
541
541
|
_a = [__assign({}, output)];
|
|
542
542
|
_e = {};
|
|
543
|
-
return [4
|
|
543
|
+
return [4, parseBody(output.body, context)];
|
|
544
544
|
case 1:
|
|
545
545
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
546
546
|
errorCode = "UnknownError";
|
|
547
547
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
548
548
|
_b = errorCode;
|
|
549
549
|
switch (_b) {
|
|
550
|
-
case "InternalException": return [3
|
|
551
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
552
|
-
case "InvalidRequestException": return [3
|
|
553
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
550
|
+
case "InternalException": return [3, 2];
|
|
551
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
552
|
+
case "InvalidRequestException": return [3, 4];
|
|
553
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
554
554
|
}
|
|
555
|
-
return [3
|
|
555
|
+
return [3, 6];
|
|
556
556
|
case 2:
|
|
557
557
|
_c = [{}];
|
|
558
|
-
return [4
|
|
558
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
559
559
|
case 3:
|
|
560
560
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
561
|
-
return [3
|
|
561
|
+
return [3, 7];
|
|
562
562
|
case 4:
|
|
563
563
|
_d = [{}];
|
|
564
|
-
return [4
|
|
564
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
565
565
|
case 5:
|
|
566
566
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
567
|
-
return [3
|
|
567
|
+
return [3, 7];
|
|
568
568
|
case 6:
|
|
569
569
|
parsedBody = parsedOutput.body;
|
|
570
570
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -574,7 +574,7 @@ var deserializeAws_json1_1CreateLocationEfsCommandError = function (output, cont
|
|
|
574
574
|
message = response.message || response.Message || errorCode;
|
|
575
575
|
response.message = message;
|
|
576
576
|
delete response.Message;
|
|
577
|
-
return [2
|
|
577
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
578
578
|
}
|
|
579
579
|
});
|
|
580
580
|
}); };
|
|
@@ -584,15 +584,15 @@ export var deserializeAws_json1_1CreateLocationFsxWindowsCommand = function (out
|
|
|
584
584
|
switch (_a.label) {
|
|
585
585
|
case 0:
|
|
586
586
|
if (output.statusCode >= 300) {
|
|
587
|
-
return [2
|
|
587
|
+
return [2, deserializeAws_json1_1CreateLocationFsxWindowsCommandError(output, context)];
|
|
588
588
|
}
|
|
589
|
-
return [4
|
|
589
|
+
return [4, parseBody(output.body, context)];
|
|
590
590
|
case 1:
|
|
591
591
|
data = _a.sent();
|
|
592
592
|
contents = {};
|
|
593
593
|
contents = deserializeAws_json1_1CreateLocationFsxWindowsResponse(data, context);
|
|
594
594
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
595
|
-
return [2
|
|
595
|
+
return [2, Promise.resolve(response)];
|
|
596
596
|
}
|
|
597
597
|
});
|
|
598
598
|
}); };
|
|
@@ -604,31 +604,31 @@ var deserializeAws_json1_1CreateLocationFsxWindowsCommandError = function (outpu
|
|
|
604
604
|
case 0:
|
|
605
605
|
_a = [__assign({}, output)];
|
|
606
606
|
_e = {};
|
|
607
|
-
return [4
|
|
607
|
+
return [4, parseBody(output.body, context)];
|
|
608
608
|
case 1:
|
|
609
609
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
610
610
|
errorCode = "UnknownError";
|
|
611
611
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
612
|
_b = errorCode;
|
|
613
613
|
switch (_b) {
|
|
614
|
-
case "InternalException": return [3
|
|
615
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
616
|
-
case "InvalidRequestException": return [3
|
|
617
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
614
|
+
case "InternalException": return [3, 2];
|
|
615
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
616
|
+
case "InvalidRequestException": return [3, 4];
|
|
617
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
618
618
|
}
|
|
619
|
-
return [3
|
|
619
|
+
return [3, 6];
|
|
620
620
|
case 2:
|
|
621
621
|
_c = [{}];
|
|
622
|
-
return [4
|
|
622
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
623
623
|
case 3:
|
|
624
624
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
625
|
-
return [3
|
|
625
|
+
return [3, 7];
|
|
626
626
|
case 4:
|
|
627
627
|
_d = [{}];
|
|
628
|
-
return [4
|
|
628
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
629
629
|
case 5:
|
|
630
630
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
631
|
-
return [3
|
|
631
|
+
return [3, 7];
|
|
632
632
|
case 6:
|
|
633
633
|
parsedBody = parsedOutput.body;
|
|
634
634
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -638,7 +638,7 @@ var deserializeAws_json1_1CreateLocationFsxWindowsCommandError = function (outpu
|
|
|
638
638
|
message = response.message || response.Message || errorCode;
|
|
639
639
|
response.message = message;
|
|
640
640
|
delete response.Message;
|
|
641
|
-
return [2
|
|
641
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
642
642
|
}
|
|
643
643
|
});
|
|
644
644
|
}); };
|
|
@@ -648,15 +648,15 @@ export var deserializeAws_json1_1CreateLocationNfsCommand = function (output, co
|
|
|
648
648
|
switch (_a.label) {
|
|
649
649
|
case 0:
|
|
650
650
|
if (output.statusCode >= 300) {
|
|
651
|
-
return [2
|
|
651
|
+
return [2, deserializeAws_json1_1CreateLocationNfsCommandError(output, context)];
|
|
652
652
|
}
|
|
653
|
-
return [4
|
|
653
|
+
return [4, parseBody(output.body, context)];
|
|
654
654
|
case 1:
|
|
655
655
|
data = _a.sent();
|
|
656
656
|
contents = {};
|
|
657
657
|
contents = deserializeAws_json1_1CreateLocationNfsResponse(data, context);
|
|
658
658
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
659
|
-
return [2
|
|
659
|
+
return [2, Promise.resolve(response)];
|
|
660
660
|
}
|
|
661
661
|
});
|
|
662
662
|
}); };
|
|
@@ -668,31 +668,31 @@ var deserializeAws_json1_1CreateLocationNfsCommandError = function (output, cont
|
|
|
668
668
|
case 0:
|
|
669
669
|
_a = [__assign({}, output)];
|
|
670
670
|
_e = {};
|
|
671
|
-
return [4
|
|
671
|
+
return [4, parseBody(output.body, context)];
|
|
672
672
|
case 1:
|
|
673
673
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
674
674
|
errorCode = "UnknownError";
|
|
675
675
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
676
676
|
_b = errorCode;
|
|
677
677
|
switch (_b) {
|
|
678
|
-
case "InternalException": return [3
|
|
679
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
680
|
-
case "InvalidRequestException": return [3
|
|
681
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
678
|
+
case "InternalException": return [3, 2];
|
|
679
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
680
|
+
case "InvalidRequestException": return [3, 4];
|
|
681
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
682
682
|
}
|
|
683
|
-
return [3
|
|
683
|
+
return [3, 6];
|
|
684
684
|
case 2:
|
|
685
685
|
_c = [{}];
|
|
686
|
-
return [4
|
|
686
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
687
687
|
case 3:
|
|
688
688
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
689
|
-
return [3
|
|
689
|
+
return [3, 7];
|
|
690
690
|
case 4:
|
|
691
691
|
_d = [{}];
|
|
692
|
-
return [4
|
|
692
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
693
693
|
case 5:
|
|
694
694
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
695
|
-
return [3
|
|
695
|
+
return [3, 7];
|
|
696
696
|
case 6:
|
|
697
697
|
parsedBody = parsedOutput.body;
|
|
698
698
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -702,7 +702,7 @@ var deserializeAws_json1_1CreateLocationNfsCommandError = function (output, cont
|
|
|
702
702
|
message = response.message || response.Message || errorCode;
|
|
703
703
|
response.message = message;
|
|
704
704
|
delete response.Message;
|
|
705
|
-
return [2
|
|
705
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
706
706
|
}
|
|
707
707
|
});
|
|
708
708
|
}); };
|
|
@@ -712,15 +712,15 @@ export var deserializeAws_json1_1CreateLocationObjectStorageCommand = function (
|
|
|
712
712
|
switch (_a.label) {
|
|
713
713
|
case 0:
|
|
714
714
|
if (output.statusCode >= 300) {
|
|
715
|
-
return [2
|
|
715
|
+
return [2, deserializeAws_json1_1CreateLocationObjectStorageCommandError(output, context)];
|
|
716
716
|
}
|
|
717
|
-
return [4
|
|
717
|
+
return [4, parseBody(output.body, context)];
|
|
718
718
|
case 1:
|
|
719
719
|
data = _a.sent();
|
|
720
720
|
contents = {};
|
|
721
721
|
contents = deserializeAws_json1_1CreateLocationObjectStorageResponse(data, context);
|
|
722
722
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
723
|
-
return [2
|
|
723
|
+
return [2, Promise.resolve(response)];
|
|
724
724
|
}
|
|
725
725
|
});
|
|
726
726
|
}); };
|
|
@@ -732,31 +732,31 @@ var deserializeAws_json1_1CreateLocationObjectStorageCommandError = function (ou
|
|
|
732
732
|
case 0:
|
|
733
733
|
_a = [__assign({}, output)];
|
|
734
734
|
_e = {};
|
|
735
|
-
return [4
|
|
735
|
+
return [4, parseBody(output.body, context)];
|
|
736
736
|
case 1:
|
|
737
737
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
738
738
|
errorCode = "UnknownError";
|
|
739
739
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
740
740
|
_b = errorCode;
|
|
741
741
|
switch (_b) {
|
|
742
|
-
case "InternalException": return [3
|
|
743
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
744
|
-
case "InvalidRequestException": return [3
|
|
745
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
742
|
+
case "InternalException": return [3, 2];
|
|
743
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
744
|
+
case "InvalidRequestException": return [3, 4];
|
|
745
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
746
746
|
}
|
|
747
|
-
return [3
|
|
747
|
+
return [3, 6];
|
|
748
748
|
case 2:
|
|
749
749
|
_c = [{}];
|
|
750
|
-
return [4
|
|
750
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
751
751
|
case 3:
|
|
752
752
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
753
|
-
return [3
|
|
753
|
+
return [3, 7];
|
|
754
754
|
case 4:
|
|
755
755
|
_d = [{}];
|
|
756
|
-
return [4
|
|
756
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
757
757
|
case 5:
|
|
758
758
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
759
|
-
return [3
|
|
759
|
+
return [3, 7];
|
|
760
760
|
case 6:
|
|
761
761
|
parsedBody = parsedOutput.body;
|
|
762
762
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -766,7 +766,7 @@ var deserializeAws_json1_1CreateLocationObjectStorageCommandError = function (ou
|
|
|
766
766
|
message = response.message || response.Message || errorCode;
|
|
767
767
|
response.message = message;
|
|
768
768
|
delete response.Message;
|
|
769
|
-
return [2
|
|
769
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
772
|
}); };
|
|
@@ -776,15 +776,15 @@ export var deserializeAws_json1_1CreateLocationS3Command = function (output, con
|
|
|
776
776
|
switch (_a.label) {
|
|
777
777
|
case 0:
|
|
778
778
|
if (output.statusCode >= 300) {
|
|
779
|
-
return [2
|
|
779
|
+
return [2, deserializeAws_json1_1CreateLocationS3CommandError(output, context)];
|
|
780
780
|
}
|
|
781
|
-
return [4
|
|
781
|
+
return [4, parseBody(output.body, context)];
|
|
782
782
|
case 1:
|
|
783
783
|
data = _a.sent();
|
|
784
784
|
contents = {};
|
|
785
785
|
contents = deserializeAws_json1_1CreateLocationS3Response(data, context);
|
|
786
786
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
787
|
-
return [2
|
|
787
|
+
return [2, Promise.resolve(response)];
|
|
788
788
|
}
|
|
789
789
|
});
|
|
790
790
|
}); };
|
|
@@ -796,31 +796,31 @@ var deserializeAws_json1_1CreateLocationS3CommandError = function (output, conte
|
|
|
796
796
|
case 0:
|
|
797
797
|
_a = [__assign({}, output)];
|
|
798
798
|
_e = {};
|
|
799
|
-
return [4
|
|
799
|
+
return [4, parseBody(output.body, context)];
|
|
800
800
|
case 1:
|
|
801
801
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
802
802
|
errorCode = "UnknownError";
|
|
803
803
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
804
|
_b = errorCode;
|
|
805
805
|
switch (_b) {
|
|
806
|
-
case "InternalException": return [3
|
|
807
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
808
|
-
case "InvalidRequestException": return [3
|
|
809
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
806
|
+
case "InternalException": return [3, 2];
|
|
807
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
808
|
+
case "InvalidRequestException": return [3, 4];
|
|
809
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
810
810
|
}
|
|
811
|
-
return [3
|
|
811
|
+
return [3, 6];
|
|
812
812
|
case 2:
|
|
813
813
|
_c = [{}];
|
|
814
|
-
return [4
|
|
814
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
815
815
|
case 3:
|
|
816
816
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
817
|
-
return [3
|
|
817
|
+
return [3, 7];
|
|
818
818
|
case 4:
|
|
819
819
|
_d = [{}];
|
|
820
|
-
return [4
|
|
820
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
821
821
|
case 5:
|
|
822
822
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
823
|
-
return [3
|
|
823
|
+
return [3, 7];
|
|
824
824
|
case 6:
|
|
825
825
|
parsedBody = parsedOutput.body;
|
|
826
826
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -830,7 +830,7 @@ var deserializeAws_json1_1CreateLocationS3CommandError = function (output, conte
|
|
|
830
830
|
message = response.message || response.Message || errorCode;
|
|
831
831
|
response.message = message;
|
|
832
832
|
delete response.Message;
|
|
833
|
-
return [2
|
|
833
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
834
834
|
}
|
|
835
835
|
});
|
|
836
836
|
}); };
|
|
@@ -840,15 +840,15 @@ export var deserializeAws_json1_1CreateLocationSmbCommand = function (output, co
|
|
|
840
840
|
switch (_a.label) {
|
|
841
841
|
case 0:
|
|
842
842
|
if (output.statusCode >= 300) {
|
|
843
|
-
return [2
|
|
843
|
+
return [2, deserializeAws_json1_1CreateLocationSmbCommandError(output, context)];
|
|
844
844
|
}
|
|
845
|
-
return [4
|
|
845
|
+
return [4, parseBody(output.body, context)];
|
|
846
846
|
case 1:
|
|
847
847
|
data = _a.sent();
|
|
848
848
|
contents = {};
|
|
849
849
|
contents = deserializeAws_json1_1CreateLocationSmbResponse(data, context);
|
|
850
850
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
851
|
-
return [2
|
|
851
|
+
return [2, Promise.resolve(response)];
|
|
852
852
|
}
|
|
853
853
|
});
|
|
854
854
|
}); };
|
|
@@ -860,31 +860,31 @@ var deserializeAws_json1_1CreateLocationSmbCommandError = function (output, cont
|
|
|
860
860
|
case 0:
|
|
861
861
|
_a = [__assign({}, output)];
|
|
862
862
|
_e = {};
|
|
863
|
-
return [4
|
|
863
|
+
return [4, parseBody(output.body, context)];
|
|
864
864
|
case 1:
|
|
865
865
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
866
866
|
errorCode = "UnknownError";
|
|
867
867
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
868
868
|
_b = errorCode;
|
|
869
869
|
switch (_b) {
|
|
870
|
-
case "InternalException": return [3
|
|
871
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
872
|
-
case "InvalidRequestException": return [3
|
|
873
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
870
|
+
case "InternalException": return [3, 2];
|
|
871
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
872
|
+
case "InvalidRequestException": return [3, 4];
|
|
873
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
874
874
|
}
|
|
875
|
-
return [3
|
|
875
|
+
return [3, 6];
|
|
876
876
|
case 2:
|
|
877
877
|
_c = [{}];
|
|
878
|
-
return [4
|
|
878
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
879
879
|
case 3:
|
|
880
880
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
881
|
-
return [3
|
|
881
|
+
return [3, 7];
|
|
882
882
|
case 4:
|
|
883
883
|
_d = [{}];
|
|
884
|
-
return [4
|
|
884
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
885
885
|
case 5:
|
|
886
886
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
887
|
-
return [3
|
|
887
|
+
return [3, 7];
|
|
888
888
|
case 6:
|
|
889
889
|
parsedBody = parsedOutput.body;
|
|
890
890
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -894,7 +894,7 @@ var deserializeAws_json1_1CreateLocationSmbCommandError = function (output, cont
|
|
|
894
894
|
message = response.message || response.Message || errorCode;
|
|
895
895
|
response.message = message;
|
|
896
896
|
delete response.Message;
|
|
897
|
-
return [2
|
|
897
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
898
898
|
}
|
|
899
899
|
});
|
|
900
900
|
}); };
|
|
@@ -904,15 +904,15 @@ export var deserializeAws_json1_1CreateTaskCommand = function (output, context)
|
|
|
904
904
|
switch (_a.label) {
|
|
905
905
|
case 0:
|
|
906
906
|
if (output.statusCode >= 300) {
|
|
907
|
-
return [2
|
|
907
|
+
return [2, deserializeAws_json1_1CreateTaskCommandError(output, context)];
|
|
908
908
|
}
|
|
909
|
-
return [4
|
|
909
|
+
return [4, parseBody(output.body, context)];
|
|
910
910
|
case 1:
|
|
911
911
|
data = _a.sent();
|
|
912
912
|
contents = {};
|
|
913
913
|
contents = deserializeAws_json1_1CreateTaskResponse(data, context);
|
|
914
914
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
915
|
-
return [2
|
|
915
|
+
return [2, Promise.resolve(response)];
|
|
916
916
|
}
|
|
917
917
|
});
|
|
918
918
|
}); };
|
|
@@ -924,31 +924,31 @@ var deserializeAws_json1_1CreateTaskCommandError = function (output, context) {
|
|
|
924
924
|
case 0:
|
|
925
925
|
_a = [__assign({}, output)];
|
|
926
926
|
_e = {};
|
|
927
|
-
return [4
|
|
927
|
+
return [4, parseBody(output.body, context)];
|
|
928
928
|
case 1:
|
|
929
929
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
930
930
|
errorCode = "UnknownError";
|
|
931
931
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
932
932
|
_b = errorCode;
|
|
933
933
|
switch (_b) {
|
|
934
|
-
case "InternalException": return [3
|
|
935
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
936
|
-
case "InvalidRequestException": return [3
|
|
937
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
934
|
+
case "InternalException": return [3, 2];
|
|
935
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
936
|
+
case "InvalidRequestException": return [3, 4];
|
|
937
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
938
938
|
}
|
|
939
|
-
return [3
|
|
939
|
+
return [3, 6];
|
|
940
940
|
case 2:
|
|
941
941
|
_c = [{}];
|
|
942
|
-
return [4
|
|
942
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
943
943
|
case 3:
|
|
944
944
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
945
|
-
return [3
|
|
945
|
+
return [3, 7];
|
|
946
946
|
case 4:
|
|
947
947
|
_d = [{}];
|
|
948
|
-
return [4
|
|
948
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
949
949
|
case 5:
|
|
950
950
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
951
|
-
return [3
|
|
951
|
+
return [3, 7];
|
|
952
952
|
case 6:
|
|
953
953
|
parsedBody = parsedOutput.body;
|
|
954
954
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -958,7 +958,7 @@ var deserializeAws_json1_1CreateTaskCommandError = function (output, context) {
|
|
|
958
958
|
message = response.message || response.Message || errorCode;
|
|
959
959
|
response.message = message;
|
|
960
960
|
delete response.Message;
|
|
961
|
-
return [2
|
|
961
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
964
|
}); };
|
|
@@ -968,15 +968,15 @@ export var deserializeAws_json1_1DeleteAgentCommand = function (output, context)
|
|
|
968
968
|
switch (_a.label) {
|
|
969
969
|
case 0:
|
|
970
970
|
if (output.statusCode >= 300) {
|
|
971
|
-
return [2
|
|
971
|
+
return [2, deserializeAws_json1_1DeleteAgentCommandError(output, context)];
|
|
972
972
|
}
|
|
973
|
-
return [4
|
|
973
|
+
return [4, parseBody(output.body, context)];
|
|
974
974
|
case 1:
|
|
975
975
|
data = _a.sent();
|
|
976
976
|
contents = {};
|
|
977
977
|
contents = deserializeAws_json1_1DeleteAgentResponse(data, context);
|
|
978
978
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
979
|
-
return [2
|
|
979
|
+
return [2, Promise.resolve(response)];
|
|
980
980
|
}
|
|
981
981
|
});
|
|
982
982
|
}); };
|
|
@@ -988,31 +988,31 @@ var deserializeAws_json1_1DeleteAgentCommandError = function (output, context) {
|
|
|
988
988
|
case 0:
|
|
989
989
|
_a = [__assign({}, output)];
|
|
990
990
|
_e = {};
|
|
991
|
-
return [4
|
|
991
|
+
return [4, parseBody(output.body, context)];
|
|
992
992
|
case 1:
|
|
993
993
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
994
994
|
errorCode = "UnknownError";
|
|
995
995
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
996
|
_b = errorCode;
|
|
997
997
|
switch (_b) {
|
|
998
|
-
case "InternalException": return [3
|
|
999
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1000
|
-
case "InvalidRequestException": return [3
|
|
1001
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
998
|
+
case "InternalException": return [3, 2];
|
|
999
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1000
|
+
case "InvalidRequestException": return [3, 4];
|
|
1001
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1002
1002
|
}
|
|
1003
|
-
return [3
|
|
1003
|
+
return [3, 6];
|
|
1004
1004
|
case 2:
|
|
1005
1005
|
_c = [{}];
|
|
1006
|
-
return [4
|
|
1006
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1007
1007
|
case 3:
|
|
1008
1008
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1009
|
-
return [3
|
|
1009
|
+
return [3, 7];
|
|
1010
1010
|
case 4:
|
|
1011
1011
|
_d = [{}];
|
|
1012
|
-
return [4
|
|
1012
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1013
1013
|
case 5:
|
|
1014
1014
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1015
|
-
return [3
|
|
1015
|
+
return [3, 7];
|
|
1016
1016
|
case 6:
|
|
1017
1017
|
parsedBody = parsedOutput.body;
|
|
1018
1018
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1022,7 +1022,7 @@ var deserializeAws_json1_1DeleteAgentCommandError = function (output, context) {
|
|
|
1022
1022
|
message = response.message || response.Message || errorCode;
|
|
1023
1023
|
response.message = message;
|
|
1024
1024
|
delete response.Message;
|
|
1025
|
-
return [2
|
|
1025
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
1028
|
}); };
|
|
@@ -1032,15 +1032,15 @@ export var deserializeAws_json1_1DeleteLocationCommand = function (output, conte
|
|
|
1032
1032
|
switch (_a.label) {
|
|
1033
1033
|
case 0:
|
|
1034
1034
|
if (output.statusCode >= 300) {
|
|
1035
|
-
return [2
|
|
1035
|
+
return [2, deserializeAws_json1_1DeleteLocationCommandError(output, context)];
|
|
1036
1036
|
}
|
|
1037
|
-
return [4
|
|
1037
|
+
return [4, parseBody(output.body, context)];
|
|
1038
1038
|
case 1:
|
|
1039
1039
|
data = _a.sent();
|
|
1040
1040
|
contents = {};
|
|
1041
1041
|
contents = deserializeAws_json1_1DeleteLocationResponse(data, context);
|
|
1042
1042
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1043
|
-
return [2
|
|
1043
|
+
return [2, Promise.resolve(response)];
|
|
1044
1044
|
}
|
|
1045
1045
|
});
|
|
1046
1046
|
}); };
|
|
@@ -1052,31 +1052,31 @@ var deserializeAws_json1_1DeleteLocationCommandError = function (output, context
|
|
|
1052
1052
|
case 0:
|
|
1053
1053
|
_a = [__assign({}, output)];
|
|
1054
1054
|
_e = {};
|
|
1055
|
-
return [4
|
|
1055
|
+
return [4, parseBody(output.body, context)];
|
|
1056
1056
|
case 1:
|
|
1057
1057
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1058
1058
|
errorCode = "UnknownError";
|
|
1059
1059
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1060
1060
|
_b = errorCode;
|
|
1061
1061
|
switch (_b) {
|
|
1062
|
-
case "InternalException": return [3
|
|
1063
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1064
|
-
case "InvalidRequestException": return [3
|
|
1065
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1062
|
+
case "InternalException": return [3, 2];
|
|
1063
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1064
|
+
case "InvalidRequestException": return [3, 4];
|
|
1065
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1066
1066
|
}
|
|
1067
|
-
return [3
|
|
1067
|
+
return [3, 6];
|
|
1068
1068
|
case 2:
|
|
1069
1069
|
_c = [{}];
|
|
1070
|
-
return [4
|
|
1070
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1071
1071
|
case 3:
|
|
1072
1072
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1073
|
-
return [3
|
|
1073
|
+
return [3, 7];
|
|
1074
1074
|
case 4:
|
|
1075
1075
|
_d = [{}];
|
|
1076
|
-
return [4
|
|
1076
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1077
1077
|
case 5:
|
|
1078
1078
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1079
|
-
return [3
|
|
1079
|
+
return [3, 7];
|
|
1080
1080
|
case 6:
|
|
1081
1081
|
parsedBody = parsedOutput.body;
|
|
1082
1082
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1086,7 +1086,7 @@ var deserializeAws_json1_1DeleteLocationCommandError = function (output, context
|
|
|
1086
1086
|
message = response.message || response.Message || errorCode;
|
|
1087
1087
|
response.message = message;
|
|
1088
1088
|
delete response.Message;
|
|
1089
|
-
return [2
|
|
1089
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1090
1090
|
}
|
|
1091
1091
|
});
|
|
1092
1092
|
}); };
|
|
@@ -1096,15 +1096,15 @@ export var deserializeAws_json1_1DeleteTaskCommand = function (output, context)
|
|
|
1096
1096
|
switch (_a.label) {
|
|
1097
1097
|
case 0:
|
|
1098
1098
|
if (output.statusCode >= 300) {
|
|
1099
|
-
return [2
|
|
1099
|
+
return [2, deserializeAws_json1_1DeleteTaskCommandError(output, context)];
|
|
1100
1100
|
}
|
|
1101
|
-
return [4
|
|
1101
|
+
return [4, parseBody(output.body, context)];
|
|
1102
1102
|
case 1:
|
|
1103
1103
|
data = _a.sent();
|
|
1104
1104
|
contents = {};
|
|
1105
1105
|
contents = deserializeAws_json1_1DeleteTaskResponse(data, context);
|
|
1106
1106
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1107
|
-
return [2
|
|
1107
|
+
return [2, Promise.resolve(response)];
|
|
1108
1108
|
}
|
|
1109
1109
|
});
|
|
1110
1110
|
}); };
|
|
@@ -1116,31 +1116,31 @@ var deserializeAws_json1_1DeleteTaskCommandError = function (output, context) {
|
|
|
1116
1116
|
case 0:
|
|
1117
1117
|
_a = [__assign({}, output)];
|
|
1118
1118
|
_e = {};
|
|
1119
|
-
return [4
|
|
1119
|
+
return [4, parseBody(output.body, context)];
|
|
1120
1120
|
case 1:
|
|
1121
1121
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1122
1122
|
errorCode = "UnknownError";
|
|
1123
1123
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1124
1124
|
_b = errorCode;
|
|
1125
1125
|
switch (_b) {
|
|
1126
|
-
case "InternalException": return [3
|
|
1127
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1128
|
-
case "InvalidRequestException": return [3
|
|
1129
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1126
|
+
case "InternalException": return [3, 2];
|
|
1127
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1128
|
+
case "InvalidRequestException": return [3, 4];
|
|
1129
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1130
1130
|
}
|
|
1131
|
-
return [3
|
|
1131
|
+
return [3, 6];
|
|
1132
1132
|
case 2:
|
|
1133
1133
|
_c = [{}];
|
|
1134
|
-
return [4
|
|
1134
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1135
1135
|
case 3:
|
|
1136
1136
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1137
|
-
return [3
|
|
1137
|
+
return [3, 7];
|
|
1138
1138
|
case 4:
|
|
1139
1139
|
_d = [{}];
|
|
1140
|
-
return [4
|
|
1140
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1141
1141
|
case 5:
|
|
1142
1142
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1143
|
-
return [3
|
|
1143
|
+
return [3, 7];
|
|
1144
1144
|
case 6:
|
|
1145
1145
|
parsedBody = parsedOutput.body;
|
|
1146
1146
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1150,7 +1150,7 @@ var deserializeAws_json1_1DeleteTaskCommandError = function (output, context) {
|
|
|
1150
1150
|
message = response.message || response.Message || errorCode;
|
|
1151
1151
|
response.message = message;
|
|
1152
1152
|
delete response.Message;
|
|
1153
|
-
return [2
|
|
1153
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1154
1154
|
}
|
|
1155
1155
|
});
|
|
1156
1156
|
}); };
|
|
@@ -1160,15 +1160,15 @@ export var deserializeAws_json1_1DescribeAgentCommand = function (output, contex
|
|
|
1160
1160
|
switch (_a.label) {
|
|
1161
1161
|
case 0:
|
|
1162
1162
|
if (output.statusCode >= 300) {
|
|
1163
|
-
return [2
|
|
1163
|
+
return [2, deserializeAws_json1_1DescribeAgentCommandError(output, context)];
|
|
1164
1164
|
}
|
|
1165
|
-
return [4
|
|
1165
|
+
return [4, parseBody(output.body, context)];
|
|
1166
1166
|
case 1:
|
|
1167
1167
|
data = _a.sent();
|
|
1168
1168
|
contents = {};
|
|
1169
1169
|
contents = deserializeAws_json1_1DescribeAgentResponse(data, context);
|
|
1170
1170
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1171
|
-
return [2
|
|
1171
|
+
return [2, Promise.resolve(response)];
|
|
1172
1172
|
}
|
|
1173
1173
|
});
|
|
1174
1174
|
}); };
|
|
@@ -1180,31 +1180,31 @@ var deserializeAws_json1_1DescribeAgentCommandError = function (output, context)
|
|
|
1180
1180
|
case 0:
|
|
1181
1181
|
_a = [__assign({}, output)];
|
|
1182
1182
|
_e = {};
|
|
1183
|
-
return [4
|
|
1183
|
+
return [4, parseBody(output.body, context)];
|
|
1184
1184
|
case 1:
|
|
1185
1185
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1186
1186
|
errorCode = "UnknownError";
|
|
1187
1187
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1188
1188
|
_b = errorCode;
|
|
1189
1189
|
switch (_b) {
|
|
1190
|
-
case "InternalException": return [3
|
|
1191
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1192
|
-
case "InvalidRequestException": return [3
|
|
1193
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1190
|
+
case "InternalException": return [3, 2];
|
|
1191
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1192
|
+
case "InvalidRequestException": return [3, 4];
|
|
1193
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1194
1194
|
}
|
|
1195
|
-
return [3
|
|
1195
|
+
return [3, 6];
|
|
1196
1196
|
case 2:
|
|
1197
1197
|
_c = [{}];
|
|
1198
|
-
return [4
|
|
1198
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1199
1199
|
case 3:
|
|
1200
1200
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1201
|
-
return [3
|
|
1201
|
+
return [3, 7];
|
|
1202
1202
|
case 4:
|
|
1203
1203
|
_d = [{}];
|
|
1204
|
-
return [4
|
|
1204
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1205
1205
|
case 5:
|
|
1206
1206
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1207
|
-
return [3
|
|
1207
|
+
return [3, 7];
|
|
1208
1208
|
case 6:
|
|
1209
1209
|
parsedBody = parsedOutput.body;
|
|
1210
1210
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1214,7 +1214,7 @@ var deserializeAws_json1_1DescribeAgentCommandError = function (output, context)
|
|
|
1214
1214
|
message = response.message || response.Message || errorCode;
|
|
1215
1215
|
response.message = message;
|
|
1216
1216
|
delete response.Message;
|
|
1217
|
-
return [2
|
|
1217
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1218
1218
|
}
|
|
1219
1219
|
});
|
|
1220
1220
|
}); };
|
|
@@ -1224,15 +1224,15 @@ export var deserializeAws_json1_1DescribeLocationEfsCommand = function (output,
|
|
|
1224
1224
|
switch (_a.label) {
|
|
1225
1225
|
case 0:
|
|
1226
1226
|
if (output.statusCode >= 300) {
|
|
1227
|
-
return [2
|
|
1227
|
+
return [2, deserializeAws_json1_1DescribeLocationEfsCommandError(output, context)];
|
|
1228
1228
|
}
|
|
1229
|
-
return [4
|
|
1229
|
+
return [4, parseBody(output.body, context)];
|
|
1230
1230
|
case 1:
|
|
1231
1231
|
data = _a.sent();
|
|
1232
1232
|
contents = {};
|
|
1233
1233
|
contents = deserializeAws_json1_1DescribeLocationEfsResponse(data, context);
|
|
1234
1234
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1235
|
-
return [2
|
|
1235
|
+
return [2, Promise.resolve(response)];
|
|
1236
1236
|
}
|
|
1237
1237
|
});
|
|
1238
1238
|
}); };
|
|
@@ -1244,31 +1244,31 @@ var deserializeAws_json1_1DescribeLocationEfsCommandError = function (output, co
|
|
|
1244
1244
|
case 0:
|
|
1245
1245
|
_a = [__assign({}, output)];
|
|
1246
1246
|
_e = {};
|
|
1247
|
-
return [4
|
|
1247
|
+
return [4, parseBody(output.body, context)];
|
|
1248
1248
|
case 1:
|
|
1249
1249
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1250
1250
|
errorCode = "UnknownError";
|
|
1251
1251
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1252
1252
|
_b = errorCode;
|
|
1253
1253
|
switch (_b) {
|
|
1254
|
-
case "InternalException": return [3
|
|
1255
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1256
|
-
case "InvalidRequestException": return [3
|
|
1257
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1254
|
+
case "InternalException": return [3, 2];
|
|
1255
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1256
|
+
case "InvalidRequestException": return [3, 4];
|
|
1257
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1258
1258
|
}
|
|
1259
|
-
return [3
|
|
1259
|
+
return [3, 6];
|
|
1260
1260
|
case 2:
|
|
1261
1261
|
_c = [{}];
|
|
1262
|
-
return [4
|
|
1262
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1263
1263
|
case 3:
|
|
1264
1264
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1265
|
-
return [3
|
|
1265
|
+
return [3, 7];
|
|
1266
1266
|
case 4:
|
|
1267
1267
|
_d = [{}];
|
|
1268
|
-
return [4
|
|
1268
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1269
1269
|
case 5:
|
|
1270
1270
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1271
|
-
return [3
|
|
1271
|
+
return [3, 7];
|
|
1272
1272
|
case 6:
|
|
1273
1273
|
parsedBody = parsedOutput.body;
|
|
1274
1274
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1278,7 +1278,7 @@ var deserializeAws_json1_1DescribeLocationEfsCommandError = function (output, co
|
|
|
1278
1278
|
message = response.message || response.Message || errorCode;
|
|
1279
1279
|
response.message = message;
|
|
1280
1280
|
delete response.Message;
|
|
1281
|
-
return [2
|
|
1281
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1282
1282
|
}
|
|
1283
1283
|
});
|
|
1284
1284
|
}); };
|
|
@@ -1288,15 +1288,15 @@ export var deserializeAws_json1_1DescribeLocationFsxWindowsCommand = function (o
|
|
|
1288
1288
|
switch (_a.label) {
|
|
1289
1289
|
case 0:
|
|
1290
1290
|
if (output.statusCode >= 300) {
|
|
1291
|
-
return [2
|
|
1291
|
+
return [2, deserializeAws_json1_1DescribeLocationFsxWindowsCommandError(output, context)];
|
|
1292
1292
|
}
|
|
1293
|
-
return [4
|
|
1293
|
+
return [4, parseBody(output.body, context)];
|
|
1294
1294
|
case 1:
|
|
1295
1295
|
data = _a.sent();
|
|
1296
1296
|
contents = {};
|
|
1297
1297
|
contents = deserializeAws_json1_1DescribeLocationFsxWindowsResponse(data, context);
|
|
1298
1298
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1299
|
-
return [2
|
|
1299
|
+
return [2, Promise.resolve(response)];
|
|
1300
1300
|
}
|
|
1301
1301
|
});
|
|
1302
1302
|
}); };
|
|
@@ -1308,31 +1308,31 @@ var deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = function (out
|
|
|
1308
1308
|
case 0:
|
|
1309
1309
|
_a = [__assign({}, output)];
|
|
1310
1310
|
_e = {};
|
|
1311
|
-
return [4
|
|
1311
|
+
return [4, parseBody(output.body, context)];
|
|
1312
1312
|
case 1:
|
|
1313
1313
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1314
1314
|
errorCode = "UnknownError";
|
|
1315
1315
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
1316
|
_b = errorCode;
|
|
1317
1317
|
switch (_b) {
|
|
1318
|
-
case "InternalException": return [3
|
|
1319
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1320
|
-
case "InvalidRequestException": return [3
|
|
1321
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1318
|
+
case "InternalException": return [3, 2];
|
|
1319
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1320
|
+
case "InvalidRequestException": return [3, 4];
|
|
1321
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1322
1322
|
}
|
|
1323
|
-
return [3
|
|
1323
|
+
return [3, 6];
|
|
1324
1324
|
case 2:
|
|
1325
1325
|
_c = [{}];
|
|
1326
|
-
return [4
|
|
1326
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1327
1327
|
case 3:
|
|
1328
1328
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1329
|
-
return [3
|
|
1329
|
+
return [3, 7];
|
|
1330
1330
|
case 4:
|
|
1331
1331
|
_d = [{}];
|
|
1332
|
-
return [4
|
|
1332
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1333
1333
|
case 5:
|
|
1334
1334
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1335
|
-
return [3
|
|
1335
|
+
return [3, 7];
|
|
1336
1336
|
case 6:
|
|
1337
1337
|
parsedBody = parsedOutput.body;
|
|
1338
1338
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1342,7 +1342,7 @@ var deserializeAws_json1_1DescribeLocationFsxWindowsCommandError = function (out
|
|
|
1342
1342
|
message = response.message || response.Message || errorCode;
|
|
1343
1343
|
response.message = message;
|
|
1344
1344
|
delete response.Message;
|
|
1345
|
-
return [2
|
|
1345
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1346
1346
|
}
|
|
1347
1347
|
});
|
|
1348
1348
|
}); };
|
|
@@ -1352,15 +1352,15 @@ export var deserializeAws_json1_1DescribeLocationNfsCommand = function (output,
|
|
|
1352
1352
|
switch (_a.label) {
|
|
1353
1353
|
case 0:
|
|
1354
1354
|
if (output.statusCode >= 300) {
|
|
1355
|
-
return [2
|
|
1355
|
+
return [2, deserializeAws_json1_1DescribeLocationNfsCommandError(output, context)];
|
|
1356
1356
|
}
|
|
1357
|
-
return [4
|
|
1357
|
+
return [4, parseBody(output.body, context)];
|
|
1358
1358
|
case 1:
|
|
1359
1359
|
data = _a.sent();
|
|
1360
1360
|
contents = {};
|
|
1361
1361
|
contents = deserializeAws_json1_1DescribeLocationNfsResponse(data, context);
|
|
1362
1362
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1363
|
-
return [2
|
|
1363
|
+
return [2, Promise.resolve(response)];
|
|
1364
1364
|
}
|
|
1365
1365
|
});
|
|
1366
1366
|
}); };
|
|
@@ -1372,31 +1372,31 @@ var deserializeAws_json1_1DescribeLocationNfsCommandError = function (output, co
|
|
|
1372
1372
|
case 0:
|
|
1373
1373
|
_a = [__assign({}, output)];
|
|
1374
1374
|
_e = {};
|
|
1375
|
-
return [4
|
|
1375
|
+
return [4, parseBody(output.body, context)];
|
|
1376
1376
|
case 1:
|
|
1377
1377
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1378
1378
|
errorCode = "UnknownError";
|
|
1379
1379
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
1380
|
_b = errorCode;
|
|
1381
1381
|
switch (_b) {
|
|
1382
|
-
case "InternalException": return [3
|
|
1383
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1384
|
-
case "InvalidRequestException": return [3
|
|
1385
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1382
|
+
case "InternalException": return [3, 2];
|
|
1383
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1384
|
+
case "InvalidRequestException": return [3, 4];
|
|
1385
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1386
1386
|
}
|
|
1387
|
-
return [3
|
|
1387
|
+
return [3, 6];
|
|
1388
1388
|
case 2:
|
|
1389
1389
|
_c = [{}];
|
|
1390
|
-
return [4
|
|
1390
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1391
1391
|
case 3:
|
|
1392
1392
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1393
|
-
return [3
|
|
1393
|
+
return [3, 7];
|
|
1394
1394
|
case 4:
|
|
1395
1395
|
_d = [{}];
|
|
1396
|
-
return [4
|
|
1396
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1397
1397
|
case 5:
|
|
1398
1398
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1399
|
-
return [3
|
|
1399
|
+
return [3, 7];
|
|
1400
1400
|
case 6:
|
|
1401
1401
|
parsedBody = parsedOutput.body;
|
|
1402
1402
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1406,7 +1406,7 @@ var deserializeAws_json1_1DescribeLocationNfsCommandError = function (output, co
|
|
|
1406
1406
|
message = response.message || response.Message || errorCode;
|
|
1407
1407
|
response.message = message;
|
|
1408
1408
|
delete response.Message;
|
|
1409
|
-
return [2
|
|
1409
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1410
1410
|
}
|
|
1411
1411
|
});
|
|
1412
1412
|
}); };
|
|
@@ -1416,15 +1416,15 @@ export var deserializeAws_json1_1DescribeLocationObjectStorageCommand = function
|
|
|
1416
1416
|
switch (_a.label) {
|
|
1417
1417
|
case 0:
|
|
1418
1418
|
if (output.statusCode >= 300) {
|
|
1419
|
-
return [2
|
|
1419
|
+
return [2, deserializeAws_json1_1DescribeLocationObjectStorageCommandError(output, context)];
|
|
1420
1420
|
}
|
|
1421
|
-
return [4
|
|
1421
|
+
return [4, parseBody(output.body, context)];
|
|
1422
1422
|
case 1:
|
|
1423
1423
|
data = _a.sent();
|
|
1424
1424
|
contents = {};
|
|
1425
1425
|
contents = deserializeAws_json1_1DescribeLocationObjectStorageResponse(data, context);
|
|
1426
1426
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1427
|
-
return [2
|
|
1427
|
+
return [2, Promise.resolve(response)];
|
|
1428
1428
|
}
|
|
1429
1429
|
});
|
|
1430
1430
|
}); };
|
|
@@ -1436,31 +1436,31 @@ var deserializeAws_json1_1DescribeLocationObjectStorageCommandError = function (
|
|
|
1436
1436
|
case 0:
|
|
1437
1437
|
_a = [__assign({}, output)];
|
|
1438
1438
|
_e = {};
|
|
1439
|
-
return [4
|
|
1439
|
+
return [4, parseBody(output.body, context)];
|
|
1440
1440
|
case 1:
|
|
1441
1441
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1442
1442
|
errorCode = "UnknownError";
|
|
1443
1443
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1444
1444
|
_b = errorCode;
|
|
1445
1445
|
switch (_b) {
|
|
1446
|
-
case "InternalException": return [3
|
|
1447
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1448
|
-
case "InvalidRequestException": return [3
|
|
1449
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1446
|
+
case "InternalException": return [3, 2];
|
|
1447
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1448
|
+
case "InvalidRequestException": return [3, 4];
|
|
1449
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1450
1450
|
}
|
|
1451
|
-
return [3
|
|
1451
|
+
return [3, 6];
|
|
1452
1452
|
case 2:
|
|
1453
1453
|
_c = [{}];
|
|
1454
|
-
return [4
|
|
1454
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1455
1455
|
case 3:
|
|
1456
1456
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1457
|
-
return [3
|
|
1457
|
+
return [3, 7];
|
|
1458
1458
|
case 4:
|
|
1459
1459
|
_d = [{}];
|
|
1460
|
-
return [4
|
|
1460
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1461
1461
|
case 5:
|
|
1462
1462
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1463
|
-
return [3
|
|
1463
|
+
return [3, 7];
|
|
1464
1464
|
case 6:
|
|
1465
1465
|
parsedBody = parsedOutput.body;
|
|
1466
1466
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1470,7 +1470,7 @@ var deserializeAws_json1_1DescribeLocationObjectStorageCommandError = function (
|
|
|
1470
1470
|
message = response.message || response.Message || errorCode;
|
|
1471
1471
|
response.message = message;
|
|
1472
1472
|
delete response.Message;
|
|
1473
|
-
return [2
|
|
1473
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1474
1474
|
}
|
|
1475
1475
|
});
|
|
1476
1476
|
}); };
|
|
@@ -1480,15 +1480,15 @@ export var deserializeAws_json1_1DescribeLocationS3Command = function (output, c
|
|
|
1480
1480
|
switch (_a.label) {
|
|
1481
1481
|
case 0:
|
|
1482
1482
|
if (output.statusCode >= 300) {
|
|
1483
|
-
return [2
|
|
1483
|
+
return [2, deserializeAws_json1_1DescribeLocationS3CommandError(output, context)];
|
|
1484
1484
|
}
|
|
1485
|
-
return [4
|
|
1485
|
+
return [4, parseBody(output.body, context)];
|
|
1486
1486
|
case 1:
|
|
1487
1487
|
data = _a.sent();
|
|
1488
1488
|
contents = {};
|
|
1489
1489
|
contents = deserializeAws_json1_1DescribeLocationS3Response(data, context);
|
|
1490
1490
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1491
|
-
return [2
|
|
1491
|
+
return [2, Promise.resolve(response)];
|
|
1492
1492
|
}
|
|
1493
1493
|
});
|
|
1494
1494
|
}); };
|
|
@@ -1500,31 +1500,31 @@ var deserializeAws_json1_1DescribeLocationS3CommandError = function (output, con
|
|
|
1500
1500
|
case 0:
|
|
1501
1501
|
_a = [__assign({}, output)];
|
|
1502
1502
|
_e = {};
|
|
1503
|
-
return [4
|
|
1503
|
+
return [4, parseBody(output.body, context)];
|
|
1504
1504
|
case 1:
|
|
1505
1505
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1506
1506
|
errorCode = "UnknownError";
|
|
1507
1507
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1508
1508
|
_b = errorCode;
|
|
1509
1509
|
switch (_b) {
|
|
1510
|
-
case "InternalException": return [3
|
|
1511
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1512
|
-
case "InvalidRequestException": return [3
|
|
1513
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1510
|
+
case "InternalException": return [3, 2];
|
|
1511
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1512
|
+
case "InvalidRequestException": return [3, 4];
|
|
1513
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1514
1514
|
}
|
|
1515
|
-
return [3
|
|
1515
|
+
return [3, 6];
|
|
1516
1516
|
case 2:
|
|
1517
1517
|
_c = [{}];
|
|
1518
|
-
return [4
|
|
1518
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1519
1519
|
case 3:
|
|
1520
1520
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1521
|
-
return [3
|
|
1521
|
+
return [3, 7];
|
|
1522
1522
|
case 4:
|
|
1523
1523
|
_d = [{}];
|
|
1524
|
-
return [4
|
|
1524
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1525
1525
|
case 5:
|
|
1526
1526
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1527
|
-
return [3
|
|
1527
|
+
return [3, 7];
|
|
1528
1528
|
case 6:
|
|
1529
1529
|
parsedBody = parsedOutput.body;
|
|
1530
1530
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1534,7 +1534,7 @@ var deserializeAws_json1_1DescribeLocationS3CommandError = function (output, con
|
|
|
1534
1534
|
message = response.message || response.Message || errorCode;
|
|
1535
1535
|
response.message = message;
|
|
1536
1536
|
delete response.Message;
|
|
1537
|
-
return [2
|
|
1537
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1538
1538
|
}
|
|
1539
1539
|
});
|
|
1540
1540
|
}); };
|
|
@@ -1544,15 +1544,15 @@ export var deserializeAws_json1_1DescribeLocationSmbCommand = function (output,
|
|
|
1544
1544
|
switch (_a.label) {
|
|
1545
1545
|
case 0:
|
|
1546
1546
|
if (output.statusCode >= 300) {
|
|
1547
|
-
return [2
|
|
1547
|
+
return [2, deserializeAws_json1_1DescribeLocationSmbCommandError(output, context)];
|
|
1548
1548
|
}
|
|
1549
|
-
return [4
|
|
1549
|
+
return [4, parseBody(output.body, context)];
|
|
1550
1550
|
case 1:
|
|
1551
1551
|
data = _a.sent();
|
|
1552
1552
|
contents = {};
|
|
1553
1553
|
contents = deserializeAws_json1_1DescribeLocationSmbResponse(data, context);
|
|
1554
1554
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1555
|
-
return [2
|
|
1555
|
+
return [2, Promise.resolve(response)];
|
|
1556
1556
|
}
|
|
1557
1557
|
});
|
|
1558
1558
|
}); };
|
|
@@ -1564,31 +1564,31 @@ var deserializeAws_json1_1DescribeLocationSmbCommandError = function (output, co
|
|
|
1564
1564
|
case 0:
|
|
1565
1565
|
_a = [__assign({}, output)];
|
|
1566
1566
|
_e = {};
|
|
1567
|
-
return [4
|
|
1567
|
+
return [4, parseBody(output.body, context)];
|
|
1568
1568
|
case 1:
|
|
1569
1569
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1570
1570
|
errorCode = "UnknownError";
|
|
1571
1571
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
1572
|
_b = errorCode;
|
|
1573
1573
|
switch (_b) {
|
|
1574
|
-
case "InternalException": return [3
|
|
1575
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1576
|
-
case "InvalidRequestException": return [3
|
|
1577
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1574
|
+
case "InternalException": return [3, 2];
|
|
1575
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1576
|
+
case "InvalidRequestException": return [3, 4];
|
|
1577
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1578
1578
|
}
|
|
1579
|
-
return [3
|
|
1579
|
+
return [3, 6];
|
|
1580
1580
|
case 2:
|
|
1581
1581
|
_c = [{}];
|
|
1582
|
-
return [4
|
|
1582
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1583
1583
|
case 3:
|
|
1584
1584
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1585
|
-
return [3
|
|
1585
|
+
return [3, 7];
|
|
1586
1586
|
case 4:
|
|
1587
1587
|
_d = [{}];
|
|
1588
|
-
return [4
|
|
1588
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1589
1589
|
case 5:
|
|
1590
1590
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1591
|
-
return [3
|
|
1591
|
+
return [3, 7];
|
|
1592
1592
|
case 6:
|
|
1593
1593
|
parsedBody = parsedOutput.body;
|
|
1594
1594
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1598,7 +1598,7 @@ var deserializeAws_json1_1DescribeLocationSmbCommandError = function (output, co
|
|
|
1598
1598
|
message = response.message || response.Message || errorCode;
|
|
1599
1599
|
response.message = message;
|
|
1600
1600
|
delete response.Message;
|
|
1601
|
-
return [2
|
|
1601
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1602
1602
|
}
|
|
1603
1603
|
});
|
|
1604
1604
|
}); };
|
|
@@ -1608,15 +1608,15 @@ export var deserializeAws_json1_1DescribeTaskCommand = function (output, context
|
|
|
1608
1608
|
switch (_a.label) {
|
|
1609
1609
|
case 0:
|
|
1610
1610
|
if (output.statusCode >= 300) {
|
|
1611
|
-
return [2
|
|
1611
|
+
return [2, deserializeAws_json1_1DescribeTaskCommandError(output, context)];
|
|
1612
1612
|
}
|
|
1613
|
-
return [4
|
|
1613
|
+
return [4, parseBody(output.body, context)];
|
|
1614
1614
|
case 1:
|
|
1615
1615
|
data = _a.sent();
|
|
1616
1616
|
contents = {};
|
|
1617
1617
|
contents = deserializeAws_json1_1DescribeTaskResponse(data, context);
|
|
1618
1618
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1619
|
-
return [2
|
|
1619
|
+
return [2, Promise.resolve(response)];
|
|
1620
1620
|
}
|
|
1621
1621
|
});
|
|
1622
1622
|
}); };
|
|
@@ -1628,31 +1628,31 @@ var deserializeAws_json1_1DescribeTaskCommandError = function (output, context)
|
|
|
1628
1628
|
case 0:
|
|
1629
1629
|
_a = [__assign({}, output)];
|
|
1630
1630
|
_e = {};
|
|
1631
|
-
return [4
|
|
1631
|
+
return [4, parseBody(output.body, context)];
|
|
1632
1632
|
case 1:
|
|
1633
1633
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1634
1634
|
errorCode = "UnknownError";
|
|
1635
1635
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1636
1636
|
_b = errorCode;
|
|
1637
1637
|
switch (_b) {
|
|
1638
|
-
case "InternalException": return [3
|
|
1639
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1640
|
-
case "InvalidRequestException": return [3
|
|
1641
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1638
|
+
case "InternalException": return [3, 2];
|
|
1639
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1640
|
+
case "InvalidRequestException": return [3, 4];
|
|
1641
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1642
1642
|
}
|
|
1643
|
-
return [3
|
|
1643
|
+
return [3, 6];
|
|
1644
1644
|
case 2:
|
|
1645
1645
|
_c = [{}];
|
|
1646
|
-
return [4
|
|
1646
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1647
1647
|
case 3:
|
|
1648
1648
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1649
|
-
return [3
|
|
1649
|
+
return [3, 7];
|
|
1650
1650
|
case 4:
|
|
1651
1651
|
_d = [{}];
|
|
1652
|
-
return [4
|
|
1652
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1653
1653
|
case 5:
|
|
1654
1654
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1655
|
-
return [3
|
|
1655
|
+
return [3, 7];
|
|
1656
1656
|
case 6:
|
|
1657
1657
|
parsedBody = parsedOutput.body;
|
|
1658
1658
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1662,7 +1662,7 @@ var deserializeAws_json1_1DescribeTaskCommandError = function (output, context)
|
|
|
1662
1662
|
message = response.message || response.Message || errorCode;
|
|
1663
1663
|
response.message = message;
|
|
1664
1664
|
delete response.Message;
|
|
1665
|
-
return [2
|
|
1665
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1666
1666
|
}
|
|
1667
1667
|
});
|
|
1668
1668
|
}); };
|
|
@@ -1672,15 +1672,15 @@ export var deserializeAws_json1_1DescribeTaskExecutionCommand = function (output
|
|
|
1672
1672
|
switch (_a.label) {
|
|
1673
1673
|
case 0:
|
|
1674
1674
|
if (output.statusCode >= 300) {
|
|
1675
|
-
return [2
|
|
1675
|
+
return [2, deserializeAws_json1_1DescribeTaskExecutionCommandError(output, context)];
|
|
1676
1676
|
}
|
|
1677
|
-
return [4
|
|
1677
|
+
return [4, parseBody(output.body, context)];
|
|
1678
1678
|
case 1:
|
|
1679
1679
|
data = _a.sent();
|
|
1680
1680
|
contents = {};
|
|
1681
1681
|
contents = deserializeAws_json1_1DescribeTaskExecutionResponse(data, context);
|
|
1682
1682
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1683
|
-
return [2
|
|
1683
|
+
return [2, Promise.resolve(response)];
|
|
1684
1684
|
}
|
|
1685
1685
|
});
|
|
1686
1686
|
}); };
|
|
@@ -1692,31 +1692,31 @@ var deserializeAws_json1_1DescribeTaskExecutionCommandError = function (output,
|
|
|
1692
1692
|
case 0:
|
|
1693
1693
|
_a = [__assign({}, output)];
|
|
1694
1694
|
_e = {};
|
|
1695
|
-
return [4
|
|
1695
|
+
return [4, parseBody(output.body, context)];
|
|
1696
1696
|
case 1:
|
|
1697
1697
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1698
1698
|
errorCode = "UnknownError";
|
|
1699
1699
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1700
1700
|
_b = errorCode;
|
|
1701
1701
|
switch (_b) {
|
|
1702
|
-
case "InternalException": return [3
|
|
1703
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1704
|
-
case "InvalidRequestException": return [3
|
|
1705
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1702
|
+
case "InternalException": return [3, 2];
|
|
1703
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1704
|
+
case "InvalidRequestException": return [3, 4];
|
|
1705
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1706
1706
|
}
|
|
1707
|
-
return [3
|
|
1707
|
+
return [3, 6];
|
|
1708
1708
|
case 2:
|
|
1709
1709
|
_c = [{}];
|
|
1710
|
-
return [4
|
|
1710
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1711
1711
|
case 3:
|
|
1712
1712
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1713
|
-
return [3
|
|
1713
|
+
return [3, 7];
|
|
1714
1714
|
case 4:
|
|
1715
1715
|
_d = [{}];
|
|
1716
|
-
return [4
|
|
1716
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1717
1717
|
case 5:
|
|
1718
1718
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1719
|
-
return [3
|
|
1719
|
+
return [3, 7];
|
|
1720
1720
|
case 6:
|
|
1721
1721
|
parsedBody = parsedOutput.body;
|
|
1722
1722
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1726,7 +1726,7 @@ var deserializeAws_json1_1DescribeTaskExecutionCommandError = function (output,
|
|
|
1726
1726
|
message = response.message || response.Message || errorCode;
|
|
1727
1727
|
response.message = message;
|
|
1728
1728
|
delete response.Message;
|
|
1729
|
-
return [2
|
|
1729
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1730
1730
|
}
|
|
1731
1731
|
});
|
|
1732
1732
|
}); };
|
|
@@ -1736,15 +1736,15 @@ export var deserializeAws_json1_1ListAgentsCommand = function (output, context)
|
|
|
1736
1736
|
switch (_a.label) {
|
|
1737
1737
|
case 0:
|
|
1738
1738
|
if (output.statusCode >= 300) {
|
|
1739
|
-
return [2
|
|
1739
|
+
return [2, deserializeAws_json1_1ListAgentsCommandError(output, context)];
|
|
1740
1740
|
}
|
|
1741
|
-
return [4
|
|
1741
|
+
return [4, parseBody(output.body, context)];
|
|
1742
1742
|
case 1:
|
|
1743
1743
|
data = _a.sent();
|
|
1744
1744
|
contents = {};
|
|
1745
1745
|
contents = deserializeAws_json1_1ListAgentsResponse(data, context);
|
|
1746
1746
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1747
|
-
return [2
|
|
1747
|
+
return [2, Promise.resolve(response)];
|
|
1748
1748
|
}
|
|
1749
1749
|
});
|
|
1750
1750
|
}); };
|
|
@@ -1756,31 +1756,31 @@ var deserializeAws_json1_1ListAgentsCommandError = function (output, context) {
|
|
|
1756
1756
|
case 0:
|
|
1757
1757
|
_a = [__assign({}, output)];
|
|
1758
1758
|
_e = {};
|
|
1759
|
-
return [4
|
|
1759
|
+
return [4, parseBody(output.body, context)];
|
|
1760
1760
|
case 1:
|
|
1761
1761
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1762
1762
|
errorCode = "UnknownError";
|
|
1763
1763
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1764
1764
|
_b = errorCode;
|
|
1765
1765
|
switch (_b) {
|
|
1766
|
-
case "InternalException": return [3
|
|
1767
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1768
|
-
case "InvalidRequestException": return [3
|
|
1769
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1766
|
+
case "InternalException": return [3, 2];
|
|
1767
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1768
|
+
case "InvalidRequestException": return [3, 4];
|
|
1769
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1770
1770
|
}
|
|
1771
|
-
return [3
|
|
1771
|
+
return [3, 6];
|
|
1772
1772
|
case 2:
|
|
1773
1773
|
_c = [{}];
|
|
1774
|
-
return [4
|
|
1774
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1775
1775
|
case 3:
|
|
1776
1776
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1777
|
-
return [3
|
|
1777
|
+
return [3, 7];
|
|
1778
1778
|
case 4:
|
|
1779
1779
|
_d = [{}];
|
|
1780
|
-
return [4
|
|
1780
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1781
1781
|
case 5:
|
|
1782
1782
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1783
|
-
return [3
|
|
1783
|
+
return [3, 7];
|
|
1784
1784
|
case 6:
|
|
1785
1785
|
parsedBody = parsedOutput.body;
|
|
1786
1786
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1790,7 +1790,7 @@ var deserializeAws_json1_1ListAgentsCommandError = function (output, context) {
|
|
|
1790
1790
|
message = response.message || response.Message || errorCode;
|
|
1791
1791
|
response.message = message;
|
|
1792
1792
|
delete response.Message;
|
|
1793
|
-
return [2
|
|
1793
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1794
1794
|
}
|
|
1795
1795
|
});
|
|
1796
1796
|
}); };
|
|
@@ -1800,15 +1800,15 @@ export var deserializeAws_json1_1ListLocationsCommand = function (output, contex
|
|
|
1800
1800
|
switch (_a.label) {
|
|
1801
1801
|
case 0:
|
|
1802
1802
|
if (output.statusCode >= 300) {
|
|
1803
|
-
return [2
|
|
1803
|
+
return [2, deserializeAws_json1_1ListLocationsCommandError(output, context)];
|
|
1804
1804
|
}
|
|
1805
|
-
return [4
|
|
1805
|
+
return [4, parseBody(output.body, context)];
|
|
1806
1806
|
case 1:
|
|
1807
1807
|
data = _a.sent();
|
|
1808
1808
|
contents = {};
|
|
1809
1809
|
contents = deserializeAws_json1_1ListLocationsResponse(data, context);
|
|
1810
1810
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1811
|
-
return [2
|
|
1811
|
+
return [2, Promise.resolve(response)];
|
|
1812
1812
|
}
|
|
1813
1813
|
});
|
|
1814
1814
|
}); };
|
|
@@ -1820,31 +1820,31 @@ var deserializeAws_json1_1ListLocationsCommandError = function (output, context)
|
|
|
1820
1820
|
case 0:
|
|
1821
1821
|
_a = [__assign({}, output)];
|
|
1822
1822
|
_e = {};
|
|
1823
|
-
return [4
|
|
1823
|
+
return [4, parseBody(output.body, context)];
|
|
1824
1824
|
case 1:
|
|
1825
1825
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1826
1826
|
errorCode = "UnknownError";
|
|
1827
1827
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1828
1828
|
_b = errorCode;
|
|
1829
1829
|
switch (_b) {
|
|
1830
|
-
case "InternalException": return [3
|
|
1831
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1832
|
-
case "InvalidRequestException": return [3
|
|
1833
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1830
|
+
case "InternalException": return [3, 2];
|
|
1831
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1832
|
+
case "InvalidRequestException": return [3, 4];
|
|
1833
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1834
1834
|
}
|
|
1835
|
-
return [3
|
|
1835
|
+
return [3, 6];
|
|
1836
1836
|
case 2:
|
|
1837
1837
|
_c = [{}];
|
|
1838
|
-
return [4
|
|
1838
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1839
1839
|
case 3:
|
|
1840
1840
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1841
|
-
return [3
|
|
1841
|
+
return [3, 7];
|
|
1842
1842
|
case 4:
|
|
1843
1843
|
_d = [{}];
|
|
1844
|
-
return [4
|
|
1844
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1845
1845
|
case 5:
|
|
1846
1846
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1847
|
-
return [3
|
|
1847
|
+
return [3, 7];
|
|
1848
1848
|
case 6:
|
|
1849
1849
|
parsedBody = parsedOutput.body;
|
|
1850
1850
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1854,7 +1854,7 @@ var deserializeAws_json1_1ListLocationsCommandError = function (output, context)
|
|
|
1854
1854
|
message = response.message || response.Message || errorCode;
|
|
1855
1855
|
response.message = message;
|
|
1856
1856
|
delete response.Message;
|
|
1857
|
-
return [2
|
|
1857
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1858
1858
|
}
|
|
1859
1859
|
});
|
|
1860
1860
|
}); };
|
|
@@ -1864,15 +1864,15 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
1864
1864
|
switch (_a.label) {
|
|
1865
1865
|
case 0:
|
|
1866
1866
|
if (output.statusCode >= 300) {
|
|
1867
|
-
return [2
|
|
1867
|
+
return [2, deserializeAws_json1_1ListTagsForResourceCommandError(output, context)];
|
|
1868
1868
|
}
|
|
1869
|
-
return [4
|
|
1869
|
+
return [4, parseBody(output.body, context)];
|
|
1870
1870
|
case 1:
|
|
1871
1871
|
data = _a.sent();
|
|
1872
1872
|
contents = {};
|
|
1873
1873
|
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1874
1874
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1875
|
-
return [2
|
|
1875
|
+
return [2, Promise.resolve(response)];
|
|
1876
1876
|
}
|
|
1877
1877
|
});
|
|
1878
1878
|
}); };
|
|
@@ -1884,31 +1884,31 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1884
1884
|
case 0:
|
|
1885
1885
|
_a = [__assign({}, output)];
|
|
1886
1886
|
_e = {};
|
|
1887
|
-
return [4
|
|
1887
|
+
return [4, parseBody(output.body, context)];
|
|
1888
1888
|
case 1:
|
|
1889
1889
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1890
1890
|
errorCode = "UnknownError";
|
|
1891
1891
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
1892
|
_b = errorCode;
|
|
1893
1893
|
switch (_b) {
|
|
1894
|
-
case "InternalException": return [3
|
|
1895
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1896
|
-
case "InvalidRequestException": return [3
|
|
1897
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1894
|
+
case "InternalException": return [3, 2];
|
|
1895
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1896
|
+
case "InvalidRequestException": return [3, 4];
|
|
1897
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1898
1898
|
}
|
|
1899
|
-
return [3
|
|
1899
|
+
return [3, 6];
|
|
1900
1900
|
case 2:
|
|
1901
1901
|
_c = [{}];
|
|
1902
|
-
return [4
|
|
1902
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1903
1903
|
case 3:
|
|
1904
1904
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1905
|
-
return [3
|
|
1905
|
+
return [3, 7];
|
|
1906
1906
|
case 4:
|
|
1907
1907
|
_d = [{}];
|
|
1908
|
-
return [4
|
|
1908
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1909
1909
|
case 5:
|
|
1910
1910
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1911
|
-
return [3
|
|
1911
|
+
return [3, 7];
|
|
1912
1912
|
case 6:
|
|
1913
1913
|
parsedBody = parsedOutput.body;
|
|
1914
1914
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1918,7 +1918,7 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
1918
1918
|
message = response.message || response.Message || errorCode;
|
|
1919
1919
|
response.message = message;
|
|
1920
1920
|
delete response.Message;
|
|
1921
|
-
return [2
|
|
1921
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1922
1922
|
}
|
|
1923
1923
|
});
|
|
1924
1924
|
}); };
|
|
@@ -1928,15 +1928,15 @@ export var deserializeAws_json1_1ListTaskExecutionsCommand = function (output, c
|
|
|
1928
1928
|
switch (_a.label) {
|
|
1929
1929
|
case 0:
|
|
1930
1930
|
if (output.statusCode >= 300) {
|
|
1931
|
-
return [2
|
|
1931
|
+
return [2, deserializeAws_json1_1ListTaskExecutionsCommandError(output, context)];
|
|
1932
1932
|
}
|
|
1933
|
-
return [4
|
|
1933
|
+
return [4, parseBody(output.body, context)];
|
|
1934
1934
|
case 1:
|
|
1935
1935
|
data = _a.sent();
|
|
1936
1936
|
contents = {};
|
|
1937
1937
|
contents = deserializeAws_json1_1ListTaskExecutionsResponse(data, context);
|
|
1938
1938
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1939
|
-
return [2
|
|
1939
|
+
return [2, Promise.resolve(response)];
|
|
1940
1940
|
}
|
|
1941
1941
|
});
|
|
1942
1942
|
}); };
|
|
@@ -1948,31 +1948,31 @@ var deserializeAws_json1_1ListTaskExecutionsCommandError = function (output, con
|
|
|
1948
1948
|
case 0:
|
|
1949
1949
|
_a = [__assign({}, output)];
|
|
1950
1950
|
_e = {};
|
|
1951
|
-
return [4
|
|
1951
|
+
return [4, parseBody(output.body, context)];
|
|
1952
1952
|
case 1:
|
|
1953
1953
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1954
1954
|
errorCode = "UnknownError";
|
|
1955
1955
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
1956
|
_b = errorCode;
|
|
1957
1957
|
switch (_b) {
|
|
1958
|
-
case "InternalException": return [3
|
|
1959
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
1960
|
-
case "InvalidRequestException": return [3
|
|
1961
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
1958
|
+
case "InternalException": return [3, 2];
|
|
1959
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
1960
|
+
case "InvalidRequestException": return [3, 4];
|
|
1961
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
1962
1962
|
}
|
|
1963
|
-
return [3
|
|
1963
|
+
return [3, 6];
|
|
1964
1964
|
case 2:
|
|
1965
1965
|
_c = [{}];
|
|
1966
|
-
return [4
|
|
1966
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1967
1967
|
case 3:
|
|
1968
1968
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1969
|
-
return [3
|
|
1969
|
+
return [3, 7];
|
|
1970
1970
|
case 4:
|
|
1971
1971
|
_d = [{}];
|
|
1972
|
-
return [4
|
|
1972
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1973
1973
|
case 5:
|
|
1974
1974
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1975
|
-
return [3
|
|
1975
|
+
return [3, 7];
|
|
1976
1976
|
case 6:
|
|
1977
1977
|
parsedBody = parsedOutput.body;
|
|
1978
1978
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1982,7 +1982,7 @@ var deserializeAws_json1_1ListTaskExecutionsCommandError = function (output, con
|
|
|
1982
1982
|
message = response.message || response.Message || errorCode;
|
|
1983
1983
|
response.message = message;
|
|
1984
1984
|
delete response.Message;
|
|
1985
|
-
return [2
|
|
1985
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1986
1986
|
}
|
|
1987
1987
|
});
|
|
1988
1988
|
}); };
|
|
@@ -1992,15 +1992,15 @@ export var deserializeAws_json1_1ListTasksCommand = function (output, context) {
|
|
|
1992
1992
|
switch (_a.label) {
|
|
1993
1993
|
case 0:
|
|
1994
1994
|
if (output.statusCode >= 300) {
|
|
1995
|
-
return [2
|
|
1995
|
+
return [2, deserializeAws_json1_1ListTasksCommandError(output, context)];
|
|
1996
1996
|
}
|
|
1997
|
-
return [4
|
|
1997
|
+
return [4, parseBody(output.body, context)];
|
|
1998
1998
|
case 1:
|
|
1999
1999
|
data = _a.sent();
|
|
2000
2000
|
contents = {};
|
|
2001
2001
|
contents = deserializeAws_json1_1ListTasksResponse(data, context);
|
|
2002
2002
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2003
|
-
return [2
|
|
2003
|
+
return [2, Promise.resolve(response)];
|
|
2004
2004
|
}
|
|
2005
2005
|
});
|
|
2006
2006
|
}); };
|
|
@@ -2012,31 +2012,31 @@ var deserializeAws_json1_1ListTasksCommandError = function (output, context) { r
|
|
|
2012
2012
|
case 0:
|
|
2013
2013
|
_a = [__assign({}, output)];
|
|
2014
2014
|
_e = {};
|
|
2015
|
-
return [4
|
|
2015
|
+
return [4, parseBody(output.body, context)];
|
|
2016
2016
|
case 1:
|
|
2017
2017
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2018
2018
|
errorCode = "UnknownError";
|
|
2019
2019
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2020
2020
|
_b = errorCode;
|
|
2021
2021
|
switch (_b) {
|
|
2022
|
-
case "InternalException": return [3
|
|
2023
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
2024
|
-
case "InvalidRequestException": return [3
|
|
2025
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
2022
|
+
case "InternalException": return [3, 2];
|
|
2023
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
2024
|
+
case "InvalidRequestException": return [3, 4];
|
|
2025
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
2026
2026
|
}
|
|
2027
|
-
return [3
|
|
2027
|
+
return [3, 6];
|
|
2028
2028
|
case 2:
|
|
2029
2029
|
_c = [{}];
|
|
2030
|
-
return [4
|
|
2030
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2031
2031
|
case 3:
|
|
2032
2032
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2033
|
-
return [3
|
|
2033
|
+
return [3, 7];
|
|
2034
2034
|
case 4:
|
|
2035
2035
|
_d = [{}];
|
|
2036
|
-
return [4
|
|
2036
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2037
2037
|
case 5:
|
|
2038
2038
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2039
|
-
return [3
|
|
2039
|
+
return [3, 7];
|
|
2040
2040
|
case 6:
|
|
2041
2041
|
parsedBody = parsedOutput.body;
|
|
2042
2042
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2046,7 +2046,7 @@ var deserializeAws_json1_1ListTasksCommandError = function (output, context) { r
|
|
|
2046
2046
|
message = response.message || response.Message || errorCode;
|
|
2047
2047
|
response.message = message;
|
|
2048
2048
|
delete response.Message;
|
|
2049
|
-
return [2
|
|
2049
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2050
2050
|
}
|
|
2051
2051
|
});
|
|
2052
2052
|
}); };
|
|
@@ -2056,15 +2056,15 @@ export var deserializeAws_json1_1StartTaskExecutionCommand = function (output, c
|
|
|
2056
2056
|
switch (_a.label) {
|
|
2057
2057
|
case 0:
|
|
2058
2058
|
if (output.statusCode >= 300) {
|
|
2059
|
-
return [2
|
|
2059
|
+
return [2, deserializeAws_json1_1StartTaskExecutionCommandError(output, context)];
|
|
2060
2060
|
}
|
|
2061
|
-
return [4
|
|
2061
|
+
return [4, parseBody(output.body, context)];
|
|
2062
2062
|
case 1:
|
|
2063
2063
|
data = _a.sent();
|
|
2064
2064
|
contents = {};
|
|
2065
2065
|
contents = deserializeAws_json1_1StartTaskExecutionResponse(data, context);
|
|
2066
2066
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2067
|
-
return [2
|
|
2067
|
+
return [2, Promise.resolve(response)];
|
|
2068
2068
|
}
|
|
2069
2069
|
});
|
|
2070
2070
|
}); };
|
|
@@ -2076,31 +2076,31 @@ var deserializeAws_json1_1StartTaskExecutionCommandError = function (output, con
|
|
|
2076
2076
|
case 0:
|
|
2077
2077
|
_a = [__assign({}, output)];
|
|
2078
2078
|
_e = {};
|
|
2079
|
-
return [4
|
|
2079
|
+
return [4, parseBody(output.body, context)];
|
|
2080
2080
|
case 1:
|
|
2081
2081
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2082
2082
|
errorCode = "UnknownError";
|
|
2083
2083
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
2084
|
_b = errorCode;
|
|
2085
2085
|
switch (_b) {
|
|
2086
|
-
case "InternalException": return [3
|
|
2087
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
2088
|
-
case "InvalidRequestException": return [3
|
|
2089
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
2086
|
+
case "InternalException": return [3, 2];
|
|
2087
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
2088
|
+
case "InvalidRequestException": return [3, 4];
|
|
2089
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
2090
2090
|
}
|
|
2091
|
-
return [3
|
|
2091
|
+
return [3, 6];
|
|
2092
2092
|
case 2:
|
|
2093
2093
|
_c = [{}];
|
|
2094
|
-
return [4
|
|
2094
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2095
2095
|
case 3:
|
|
2096
2096
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2097
|
-
return [3
|
|
2097
|
+
return [3, 7];
|
|
2098
2098
|
case 4:
|
|
2099
2099
|
_d = [{}];
|
|
2100
|
-
return [4
|
|
2100
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2101
2101
|
case 5:
|
|
2102
2102
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2103
|
-
return [3
|
|
2103
|
+
return [3, 7];
|
|
2104
2104
|
case 6:
|
|
2105
2105
|
parsedBody = parsedOutput.body;
|
|
2106
2106
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2110,7 +2110,7 @@ var deserializeAws_json1_1StartTaskExecutionCommandError = function (output, con
|
|
|
2110
2110
|
message = response.message || response.Message || errorCode;
|
|
2111
2111
|
response.message = message;
|
|
2112
2112
|
delete response.Message;
|
|
2113
|
-
return [2
|
|
2113
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2114
2114
|
}
|
|
2115
2115
|
});
|
|
2116
2116
|
}); };
|
|
@@ -2120,15 +2120,15 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
2120
2120
|
switch (_a.label) {
|
|
2121
2121
|
case 0:
|
|
2122
2122
|
if (output.statusCode >= 300) {
|
|
2123
|
-
return [2
|
|
2123
|
+
return [2, deserializeAws_json1_1TagResourceCommandError(output, context)];
|
|
2124
2124
|
}
|
|
2125
|
-
return [4
|
|
2125
|
+
return [4, parseBody(output.body, context)];
|
|
2126
2126
|
case 1:
|
|
2127
2127
|
data = _a.sent();
|
|
2128
2128
|
contents = {};
|
|
2129
2129
|
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
2130
2130
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2131
|
-
return [2
|
|
2131
|
+
return [2, Promise.resolve(response)];
|
|
2132
2132
|
}
|
|
2133
2133
|
});
|
|
2134
2134
|
}); };
|
|
@@ -2140,31 +2140,31 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2140
2140
|
case 0:
|
|
2141
2141
|
_a = [__assign({}, output)];
|
|
2142
2142
|
_e = {};
|
|
2143
|
-
return [4
|
|
2143
|
+
return [4, parseBody(output.body, context)];
|
|
2144
2144
|
case 1:
|
|
2145
2145
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2146
2146
|
errorCode = "UnknownError";
|
|
2147
2147
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2148
2148
|
_b = errorCode;
|
|
2149
2149
|
switch (_b) {
|
|
2150
|
-
case "InternalException": return [3
|
|
2151
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
2152
|
-
case "InvalidRequestException": return [3
|
|
2153
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
2150
|
+
case "InternalException": return [3, 2];
|
|
2151
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
2152
|
+
case "InvalidRequestException": return [3, 4];
|
|
2153
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
2154
2154
|
}
|
|
2155
|
-
return [3
|
|
2155
|
+
return [3, 6];
|
|
2156
2156
|
case 2:
|
|
2157
2157
|
_c = [{}];
|
|
2158
|
-
return [4
|
|
2158
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2159
2159
|
case 3:
|
|
2160
2160
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2161
|
-
return [3
|
|
2161
|
+
return [3, 7];
|
|
2162
2162
|
case 4:
|
|
2163
2163
|
_d = [{}];
|
|
2164
|
-
return [4
|
|
2164
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2165
2165
|
case 5:
|
|
2166
2166
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2167
|
-
return [3
|
|
2167
|
+
return [3, 7];
|
|
2168
2168
|
case 6:
|
|
2169
2169
|
parsedBody = parsedOutput.body;
|
|
2170
2170
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2174,7 +2174,7 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
2174
2174
|
message = response.message || response.Message || errorCode;
|
|
2175
2175
|
response.message = message;
|
|
2176
2176
|
delete response.Message;
|
|
2177
|
-
return [2
|
|
2177
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2178
2178
|
}
|
|
2179
2179
|
});
|
|
2180
2180
|
}); };
|
|
@@ -2184,15 +2184,15 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
2184
2184
|
switch (_a.label) {
|
|
2185
2185
|
case 0:
|
|
2186
2186
|
if (output.statusCode >= 300) {
|
|
2187
|
-
return [2
|
|
2187
|
+
return [2, deserializeAws_json1_1UntagResourceCommandError(output, context)];
|
|
2188
2188
|
}
|
|
2189
|
-
return [4
|
|
2189
|
+
return [4, parseBody(output.body, context)];
|
|
2190
2190
|
case 1:
|
|
2191
2191
|
data = _a.sent();
|
|
2192
2192
|
contents = {};
|
|
2193
2193
|
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
2194
2194
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2195
|
-
return [2
|
|
2195
|
+
return [2, Promise.resolve(response)];
|
|
2196
2196
|
}
|
|
2197
2197
|
});
|
|
2198
2198
|
}); };
|
|
@@ -2204,31 +2204,31 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2204
2204
|
case 0:
|
|
2205
2205
|
_a = [__assign({}, output)];
|
|
2206
2206
|
_e = {};
|
|
2207
|
-
return [4
|
|
2207
|
+
return [4, parseBody(output.body, context)];
|
|
2208
2208
|
case 1:
|
|
2209
2209
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2210
2210
|
errorCode = "UnknownError";
|
|
2211
2211
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
2212
|
_b = errorCode;
|
|
2213
2213
|
switch (_b) {
|
|
2214
|
-
case "InternalException": return [3
|
|
2215
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
2216
|
-
case "InvalidRequestException": return [3
|
|
2217
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
2214
|
+
case "InternalException": return [3, 2];
|
|
2215
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
2216
|
+
case "InvalidRequestException": return [3, 4];
|
|
2217
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
2218
2218
|
}
|
|
2219
|
-
return [3
|
|
2219
|
+
return [3, 6];
|
|
2220
2220
|
case 2:
|
|
2221
2221
|
_c = [{}];
|
|
2222
|
-
return [4
|
|
2222
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2223
2223
|
case 3:
|
|
2224
2224
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2225
|
-
return [3
|
|
2225
|
+
return [3, 7];
|
|
2226
2226
|
case 4:
|
|
2227
2227
|
_d = [{}];
|
|
2228
|
-
return [4
|
|
2228
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2229
2229
|
case 5:
|
|
2230
2230
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2231
|
-
return [3
|
|
2231
|
+
return [3, 7];
|
|
2232
2232
|
case 6:
|
|
2233
2233
|
parsedBody = parsedOutput.body;
|
|
2234
2234
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2238,7 +2238,7 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
2238
2238
|
message = response.message || response.Message || errorCode;
|
|
2239
2239
|
response.message = message;
|
|
2240
2240
|
delete response.Message;
|
|
2241
|
-
return [2
|
|
2241
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2242
2242
|
}
|
|
2243
2243
|
});
|
|
2244
2244
|
}); };
|
|
@@ -2248,15 +2248,15 @@ export var deserializeAws_json1_1UpdateAgentCommand = function (output, context)
|
|
|
2248
2248
|
switch (_a.label) {
|
|
2249
2249
|
case 0:
|
|
2250
2250
|
if (output.statusCode >= 300) {
|
|
2251
|
-
return [2
|
|
2251
|
+
return [2, deserializeAws_json1_1UpdateAgentCommandError(output, context)];
|
|
2252
2252
|
}
|
|
2253
|
-
return [4
|
|
2253
|
+
return [4, parseBody(output.body, context)];
|
|
2254
2254
|
case 1:
|
|
2255
2255
|
data = _a.sent();
|
|
2256
2256
|
contents = {};
|
|
2257
2257
|
contents = deserializeAws_json1_1UpdateAgentResponse(data, context);
|
|
2258
2258
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2259
|
-
return [2
|
|
2259
|
+
return [2, Promise.resolve(response)];
|
|
2260
2260
|
}
|
|
2261
2261
|
});
|
|
2262
2262
|
}); };
|
|
@@ -2268,31 +2268,31 @@ var deserializeAws_json1_1UpdateAgentCommandError = function (output, context) {
|
|
|
2268
2268
|
case 0:
|
|
2269
2269
|
_a = [__assign({}, output)];
|
|
2270
2270
|
_e = {};
|
|
2271
|
-
return [4
|
|
2271
|
+
return [4, parseBody(output.body, context)];
|
|
2272
2272
|
case 1:
|
|
2273
2273
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2274
2274
|
errorCode = "UnknownError";
|
|
2275
2275
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2276
2276
|
_b = errorCode;
|
|
2277
2277
|
switch (_b) {
|
|
2278
|
-
case "InternalException": return [3
|
|
2279
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
2280
|
-
case "InvalidRequestException": return [3
|
|
2281
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
2278
|
+
case "InternalException": return [3, 2];
|
|
2279
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
2280
|
+
case "InvalidRequestException": return [3, 4];
|
|
2281
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
2282
2282
|
}
|
|
2283
|
-
return [3
|
|
2283
|
+
return [3, 6];
|
|
2284
2284
|
case 2:
|
|
2285
2285
|
_c = [{}];
|
|
2286
|
-
return [4
|
|
2286
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2287
2287
|
case 3:
|
|
2288
2288
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2289
|
-
return [3
|
|
2289
|
+
return [3, 7];
|
|
2290
2290
|
case 4:
|
|
2291
2291
|
_d = [{}];
|
|
2292
|
-
return [4
|
|
2292
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2293
2293
|
case 5:
|
|
2294
2294
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2295
|
-
return [3
|
|
2295
|
+
return [3, 7];
|
|
2296
2296
|
case 6:
|
|
2297
2297
|
parsedBody = parsedOutput.body;
|
|
2298
2298
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2302,7 +2302,7 @@ var deserializeAws_json1_1UpdateAgentCommandError = function (output, context) {
|
|
|
2302
2302
|
message = response.message || response.Message || errorCode;
|
|
2303
2303
|
response.message = message;
|
|
2304
2304
|
delete response.Message;
|
|
2305
|
-
return [2
|
|
2305
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2306
2306
|
}
|
|
2307
2307
|
});
|
|
2308
2308
|
}); };
|
|
@@ -2312,15 +2312,15 @@ export var deserializeAws_json1_1UpdateLocationNfsCommand = function (output, co
|
|
|
2312
2312
|
switch (_a.label) {
|
|
2313
2313
|
case 0:
|
|
2314
2314
|
if (output.statusCode >= 300) {
|
|
2315
|
-
return [2
|
|
2315
|
+
return [2, deserializeAws_json1_1UpdateLocationNfsCommandError(output, context)];
|
|
2316
2316
|
}
|
|
2317
|
-
return [4
|
|
2317
|
+
return [4, parseBody(output.body, context)];
|
|
2318
2318
|
case 1:
|
|
2319
2319
|
data = _a.sent();
|
|
2320
2320
|
contents = {};
|
|
2321
2321
|
contents = deserializeAws_json1_1UpdateLocationNfsResponse(data, context);
|
|
2322
2322
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2323
|
-
return [2
|
|
2323
|
+
return [2, Promise.resolve(response)];
|
|
2324
2324
|
}
|
|
2325
2325
|
});
|
|
2326
2326
|
}); };
|
|
@@ -2332,31 +2332,31 @@ var deserializeAws_json1_1UpdateLocationNfsCommandError = function (output, cont
|
|
|
2332
2332
|
case 0:
|
|
2333
2333
|
_a = [__assign({}, output)];
|
|
2334
2334
|
_e = {};
|
|
2335
|
-
return [4
|
|
2335
|
+
return [4, parseBody(output.body, context)];
|
|
2336
2336
|
case 1:
|
|
2337
2337
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2338
2338
|
errorCode = "UnknownError";
|
|
2339
2339
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2340
2340
|
_b = errorCode;
|
|
2341
2341
|
switch (_b) {
|
|
2342
|
-
case "InternalException": return [3
|
|
2343
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
2344
|
-
case "InvalidRequestException": return [3
|
|
2345
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
2342
|
+
case "InternalException": return [3, 2];
|
|
2343
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
2344
|
+
case "InvalidRequestException": return [3, 4];
|
|
2345
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
2346
2346
|
}
|
|
2347
|
-
return [3
|
|
2347
|
+
return [3, 6];
|
|
2348
2348
|
case 2:
|
|
2349
2349
|
_c = [{}];
|
|
2350
|
-
return [4
|
|
2350
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2351
2351
|
case 3:
|
|
2352
2352
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2353
|
-
return [3
|
|
2353
|
+
return [3, 7];
|
|
2354
2354
|
case 4:
|
|
2355
2355
|
_d = [{}];
|
|
2356
|
-
return [4
|
|
2356
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2357
2357
|
case 5:
|
|
2358
2358
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2359
|
-
return [3
|
|
2359
|
+
return [3, 7];
|
|
2360
2360
|
case 6:
|
|
2361
2361
|
parsedBody = parsedOutput.body;
|
|
2362
2362
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2366,7 +2366,7 @@ var deserializeAws_json1_1UpdateLocationNfsCommandError = function (output, cont
|
|
|
2366
2366
|
message = response.message || response.Message || errorCode;
|
|
2367
2367
|
response.message = message;
|
|
2368
2368
|
delete response.Message;
|
|
2369
|
-
return [2
|
|
2369
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2370
2370
|
}
|
|
2371
2371
|
});
|
|
2372
2372
|
}); };
|
|
@@ -2376,15 +2376,15 @@ export var deserializeAws_json1_1UpdateLocationObjectStorageCommand = function (
|
|
|
2376
2376
|
switch (_a.label) {
|
|
2377
2377
|
case 0:
|
|
2378
2378
|
if (output.statusCode >= 300) {
|
|
2379
|
-
return [2
|
|
2379
|
+
return [2, deserializeAws_json1_1UpdateLocationObjectStorageCommandError(output, context)];
|
|
2380
2380
|
}
|
|
2381
|
-
return [4
|
|
2381
|
+
return [4, parseBody(output.body, context)];
|
|
2382
2382
|
case 1:
|
|
2383
2383
|
data = _a.sent();
|
|
2384
2384
|
contents = {};
|
|
2385
2385
|
contents = deserializeAws_json1_1UpdateLocationObjectStorageResponse(data, context);
|
|
2386
2386
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2387
|
-
return [2
|
|
2387
|
+
return [2, Promise.resolve(response)];
|
|
2388
2388
|
}
|
|
2389
2389
|
});
|
|
2390
2390
|
}); };
|
|
@@ -2396,31 +2396,31 @@ var deserializeAws_json1_1UpdateLocationObjectStorageCommandError = function (ou
|
|
|
2396
2396
|
case 0:
|
|
2397
2397
|
_a = [__assign({}, output)];
|
|
2398
2398
|
_e = {};
|
|
2399
|
-
return [4
|
|
2399
|
+
return [4, parseBody(output.body, context)];
|
|
2400
2400
|
case 1:
|
|
2401
2401
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2402
2402
|
errorCode = "UnknownError";
|
|
2403
2403
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2404
2404
|
_b = errorCode;
|
|
2405
2405
|
switch (_b) {
|
|
2406
|
-
case "InternalException": return [3
|
|
2407
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
2408
|
-
case "InvalidRequestException": return [3
|
|
2409
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
2406
|
+
case "InternalException": return [3, 2];
|
|
2407
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
2408
|
+
case "InvalidRequestException": return [3, 4];
|
|
2409
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
2410
2410
|
}
|
|
2411
|
-
return [3
|
|
2411
|
+
return [3, 6];
|
|
2412
2412
|
case 2:
|
|
2413
2413
|
_c = [{}];
|
|
2414
|
-
return [4
|
|
2414
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2415
2415
|
case 3:
|
|
2416
2416
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2417
|
-
return [3
|
|
2417
|
+
return [3, 7];
|
|
2418
2418
|
case 4:
|
|
2419
2419
|
_d = [{}];
|
|
2420
|
-
return [4
|
|
2420
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2421
2421
|
case 5:
|
|
2422
2422
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2423
|
-
return [3
|
|
2423
|
+
return [3, 7];
|
|
2424
2424
|
case 6:
|
|
2425
2425
|
parsedBody = parsedOutput.body;
|
|
2426
2426
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2430,7 +2430,7 @@ var deserializeAws_json1_1UpdateLocationObjectStorageCommandError = function (ou
|
|
|
2430
2430
|
message = response.message || response.Message || errorCode;
|
|
2431
2431
|
response.message = message;
|
|
2432
2432
|
delete response.Message;
|
|
2433
|
-
return [2
|
|
2433
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2434
2434
|
}
|
|
2435
2435
|
});
|
|
2436
2436
|
}); };
|
|
@@ -2440,15 +2440,15 @@ export var deserializeAws_json1_1UpdateLocationSmbCommand = function (output, co
|
|
|
2440
2440
|
switch (_a.label) {
|
|
2441
2441
|
case 0:
|
|
2442
2442
|
if (output.statusCode >= 300) {
|
|
2443
|
-
return [2
|
|
2443
|
+
return [2, deserializeAws_json1_1UpdateLocationSmbCommandError(output, context)];
|
|
2444
2444
|
}
|
|
2445
|
-
return [4
|
|
2445
|
+
return [4, parseBody(output.body, context)];
|
|
2446
2446
|
case 1:
|
|
2447
2447
|
data = _a.sent();
|
|
2448
2448
|
contents = {};
|
|
2449
2449
|
contents = deserializeAws_json1_1UpdateLocationSmbResponse(data, context);
|
|
2450
2450
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2451
|
-
return [2
|
|
2451
|
+
return [2, Promise.resolve(response)];
|
|
2452
2452
|
}
|
|
2453
2453
|
});
|
|
2454
2454
|
}); };
|
|
@@ -2460,31 +2460,31 @@ var deserializeAws_json1_1UpdateLocationSmbCommandError = function (output, cont
|
|
|
2460
2460
|
case 0:
|
|
2461
2461
|
_a = [__assign({}, output)];
|
|
2462
2462
|
_e = {};
|
|
2463
|
-
return [4
|
|
2463
|
+
return [4, parseBody(output.body, context)];
|
|
2464
2464
|
case 1:
|
|
2465
2465
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2466
2466
|
errorCode = "UnknownError";
|
|
2467
2467
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2468
2468
|
_b = errorCode;
|
|
2469
2469
|
switch (_b) {
|
|
2470
|
-
case "InternalException": return [3
|
|
2471
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
2472
|
-
case "InvalidRequestException": return [3
|
|
2473
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
2470
|
+
case "InternalException": return [3, 2];
|
|
2471
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
2472
|
+
case "InvalidRequestException": return [3, 4];
|
|
2473
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
2474
2474
|
}
|
|
2475
|
-
return [3
|
|
2475
|
+
return [3, 6];
|
|
2476
2476
|
case 2:
|
|
2477
2477
|
_c = [{}];
|
|
2478
|
-
return [4
|
|
2478
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2479
2479
|
case 3:
|
|
2480
2480
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2481
|
-
return [3
|
|
2481
|
+
return [3, 7];
|
|
2482
2482
|
case 4:
|
|
2483
2483
|
_d = [{}];
|
|
2484
|
-
return [4
|
|
2484
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2485
2485
|
case 5:
|
|
2486
2486
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2487
|
-
return [3
|
|
2487
|
+
return [3, 7];
|
|
2488
2488
|
case 6:
|
|
2489
2489
|
parsedBody = parsedOutput.body;
|
|
2490
2490
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2494,7 +2494,7 @@ var deserializeAws_json1_1UpdateLocationSmbCommandError = function (output, cont
|
|
|
2494
2494
|
message = response.message || response.Message || errorCode;
|
|
2495
2495
|
response.message = message;
|
|
2496
2496
|
delete response.Message;
|
|
2497
|
-
return [2
|
|
2497
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2498
2498
|
}
|
|
2499
2499
|
});
|
|
2500
2500
|
}); };
|
|
@@ -2504,15 +2504,15 @@ export var deserializeAws_json1_1UpdateTaskCommand = function (output, context)
|
|
|
2504
2504
|
switch (_a.label) {
|
|
2505
2505
|
case 0:
|
|
2506
2506
|
if (output.statusCode >= 300) {
|
|
2507
|
-
return [2
|
|
2507
|
+
return [2, deserializeAws_json1_1UpdateTaskCommandError(output, context)];
|
|
2508
2508
|
}
|
|
2509
|
-
return [4
|
|
2509
|
+
return [4, parseBody(output.body, context)];
|
|
2510
2510
|
case 1:
|
|
2511
2511
|
data = _a.sent();
|
|
2512
2512
|
contents = {};
|
|
2513
2513
|
contents = deserializeAws_json1_1UpdateTaskResponse(data, context);
|
|
2514
2514
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2515
|
-
return [2
|
|
2515
|
+
return [2, Promise.resolve(response)];
|
|
2516
2516
|
}
|
|
2517
2517
|
});
|
|
2518
2518
|
}); };
|
|
@@ -2524,31 +2524,31 @@ var deserializeAws_json1_1UpdateTaskCommandError = function (output, context) {
|
|
|
2524
2524
|
case 0:
|
|
2525
2525
|
_a = [__assign({}, output)];
|
|
2526
2526
|
_e = {};
|
|
2527
|
-
return [4
|
|
2527
|
+
return [4, parseBody(output.body, context)];
|
|
2528
2528
|
case 1:
|
|
2529
2529
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2530
2530
|
errorCode = "UnknownError";
|
|
2531
2531
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2532
2532
|
_b = errorCode;
|
|
2533
2533
|
switch (_b) {
|
|
2534
|
-
case "InternalException": return [3
|
|
2535
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
2536
|
-
case "InvalidRequestException": return [3
|
|
2537
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
2534
|
+
case "InternalException": return [3, 2];
|
|
2535
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
2536
|
+
case "InvalidRequestException": return [3, 4];
|
|
2537
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
2538
2538
|
}
|
|
2539
|
-
return [3
|
|
2539
|
+
return [3, 6];
|
|
2540
2540
|
case 2:
|
|
2541
2541
|
_c = [{}];
|
|
2542
|
-
return [4
|
|
2542
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2543
2543
|
case 3:
|
|
2544
2544
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2545
|
-
return [3
|
|
2545
|
+
return [3, 7];
|
|
2546
2546
|
case 4:
|
|
2547
2547
|
_d = [{}];
|
|
2548
|
-
return [4
|
|
2548
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2549
2549
|
case 5:
|
|
2550
2550
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2551
|
-
return [3
|
|
2551
|
+
return [3, 7];
|
|
2552
2552
|
case 6:
|
|
2553
2553
|
parsedBody = parsedOutput.body;
|
|
2554
2554
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2558,7 +2558,7 @@ var deserializeAws_json1_1UpdateTaskCommandError = function (output, context) {
|
|
|
2558
2558
|
message = response.message || response.Message || errorCode;
|
|
2559
2559
|
response.message = message;
|
|
2560
2560
|
delete response.Message;
|
|
2561
|
-
return [2
|
|
2561
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2562
2562
|
}
|
|
2563
2563
|
});
|
|
2564
2564
|
}); };
|
|
@@ -2568,15 +2568,15 @@ export var deserializeAws_json1_1UpdateTaskExecutionCommand = function (output,
|
|
|
2568
2568
|
switch (_a.label) {
|
|
2569
2569
|
case 0:
|
|
2570
2570
|
if (output.statusCode >= 300) {
|
|
2571
|
-
return [2
|
|
2571
|
+
return [2, deserializeAws_json1_1UpdateTaskExecutionCommandError(output, context)];
|
|
2572
2572
|
}
|
|
2573
|
-
return [4
|
|
2573
|
+
return [4, parseBody(output.body, context)];
|
|
2574
2574
|
case 1:
|
|
2575
2575
|
data = _a.sent();
|
|
2576
2576
|
contents = {};
|
|
2577
2577
|
contents = deserializeAws_json1_1UpdateTaskExecutionResponse(data, context);
|
|
2578
2578
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2579
|
-
return [2
|
|
2579
|
+
return [2, Promise.resolve(response)];
|
|
2580
2580
|
}
|
|
2581
2581
|
});
|
|
2582
2582
|
}); };
|
|
@@ -2588,31 +2588,31 @@ var deserializeAws_json1_1UpdateTaskExecutionCommandError = function (output, co
|
|
|
2588
2588
|
case 0:
|
|
2589
2589
|
_a = [__assign({}, output)];
|
|
2590
2590
|
_e = {};
|
|
2591
|
-
return [4
|
|
2591
|
+
return [4, parseBody(output.body, context)];
|
|
2592
2592
|
case 1:
|
|
2593
2593
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2594
2594
|
errorCode = "UnknownError";
|
|
2595
2595
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2596
2596
|
_b = errorCode;
|
|
2597
2597
|
switch (_b) {
|
|
2598
|
-
case "InternalException": return [3
|
|
2599
|
-
case "com.amazonaws.datasync#InternalException": return [3
|
|
2600
|
-
case "InvalidRequestException": return [3
|
|
2601
|
-
case "com.amazonaws.datasync#InvalidRequestException": return [3
|
|
2598
|
+
case "InternalException": return [3, 2];
|
|
2599
|
+
case "com.amazonaws.datasync#InternalException": return [3, 2];
|
|
2600
|
+
case "InvalidRequestException": return [3, 4];
|
|
2601
|
+
case "com.amazonaws.datasync#InvalidRequestException": return [3, 4];
|
|
2602
2602
|
}
|
|
2603
|
-
return [3
|
|
2603
|
+
return [3, 6];
|
|
2604
2604
|
case 2:
|
|
2605
2605
|
_c = [{}];
|
|
2606
|
-
return [4
|
|
2606
|
+
return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2607
2607
|
case 3:
|
|
2608
2608
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2609
|
-
return [3
|
|
2609
|
+
return [3, 7];
|
|
2610
2610
|
case 4:
|
|
2611
2611
|
_d = [{}];
|
|
2612
|
-
return [4
|
|
2612
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2613
2613
|
case 5:
|
|
2614
2614
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2615
|
-
return [3
|
|
2615
|
+
return [3, 7];
|
|
2616
2616
|
case 6:
|
|
2617
2617
|
parsedBody = parsedOutput.body;
|
|
2618
2618
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2622,7 +2622,7 @@ var deserializeAws_json1_1UpdateTaskExecutionCommandError = function (output, co
|
|
|
2622
2622
|
message = response.message || response.Message || errorCode;
|
|
2623
2623
|
response.message = message;
|
|
2624
2624
|
delete response.Message;
|
|
2625
|
-
return [2
|
|
2625
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2626
2626
|
}
|
|
2627
2627
|
});
|
|
2628
2628
|
}); };
|
|
@@ -2632,7 +2632,7 @@ var deserializeAws_json1_1InternalExceptionResponse = function (parsedOutput, co
|
|
|
2632
2632
|
body = parsedOutput.body;
|
|
2633
2633
|
deserialized = deserializeAws_json1_1InternalException(body, context);
|
|
2634
2634
|
contents = __assign({ name: "InternalException", $fault: "server", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2635
|
-
return [2
|
|
2635
|
+
return [2, contents];
|
|
2636
2636
|
});
|
|
2637
2637
|
}); };
|
|
2638
2638
|
var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2641,7 +2641,7 @@ var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutp
|
|
|
2641
2641
|
body = parsedOutput.body;
|
|
2642
2642
|
deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
2643
2643
|
contents = __assign({ name: "InvalidRequestException", $fault: "client", $metadata: deserializeMetadata(parsedOutput) }, deserialized);
|
|
2644
|
-
return [2
|
|
2644
|
+
return [2, contents];
|
|
2645
2645
|
});
|
|
2646
2646
|
}); };
|
|
2647
2647
|
var serializeAws_json1_1AgentArnList = function (input, context) {
|
|
@@ -3508,7 +3508,6 @@ var deserializeMetadata = function (output) {
|
|
|
3508
3508
|
cfId: output.headers["x-amz-cf-id"],
|
|
3509
3509
|
});
|
|
3510
3510
|
};
|
|
3511
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3512
3511
|
var collectBody = function (streamBody, context) {
|
|
3513
3512
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
3514
3513
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -3516,7 +3515,6 @@ var collectBody = function (streamBody, context) {
|
|
|
3516
3515
|
}
|
|
3517
3516
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3518
3517
|
};
|
|
3519
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3520
3518
|
var collectBodyString = function (streamBody, context) {
|
|
3521
3519
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
3522
3520
|
};
|
|
@@ -3524,7 +3522,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3524
3522
|
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
3525
3523
|
return __generator(this, function (_c) {
|
|
3526
3524
|
switch (_c.label) {
|
|
3527
|
-
case 0: return [4
|
|
3525
|
+
case 0: return [4, context.endpoint()];
|
|
3528
3526
|
case 1:
|
|
3529
3527
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3530
3528
|
contents = {
|
|
@@ -3541,7 +3539,7 @@ var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, bo
|
|
|
3541
3539
|
if (body !== undefined) {
|
|
3542
3540
|
contents.body = body;
|
|
3543
3541
|
}
|
|
3544
|
-
return [2
|
|
3542
|
+
return [2, new __HttpRequest(contents)];
|
|
3545
3543
|
}
|
|
3546
3544
|
});
|
|
3547
3545
|
}); };
|
|
@@ -3553,9 +3551,6 @@ var parseBody = function (streamBody, context) {
|
|
|
3553
3551
|
return {};
|
|
3554
3552
|
});
|
|
3555
3553
|
};
|
|
3556
|
-
/**
|
|
3557
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3558
|
-
*/
|
|
3559
3554
|
var loadRestJsonErrorCode = function (output, data) {
|
|
3560
3555
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
3561
3556
|
var sanitizeErrorCode = function (rawValue) {
|