@aws-sdk/client-scheduler 3.306.0 → 3.309.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/dist-cjs/commands/CreateScheduleCommand.js +2 -2
- package/dist-cjs/commands/CreateScheduleGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteScheduleCommand.js +2 -2
- package/dist-cjs/commands/DeleteScheduleGroupCommand.js +2 -2
- package/dist-cjs/commands/GetScheduleCommand.js +2 -2
- package/dist-cjs/commands/GetScheduleGroupCommand.js +2 -2
- package/dist-cjs/commands/ListScheduleGroupsCommand.js +2 -2
- package/dist-cjs/commands/ListSchedulesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateScheduleCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +247 -269
- package/dist-es/commands/CreateScheduleCommand.js +3 -3
- package/dist-es/commands/CreateScheduleGroupCommand.js +3 -3
- package/dist-es/commands/DeleteScheduleCommand.js +3 -3
- package/dist-es/commands/DeleteScheduleGroupCommand.js +3 -3
- package/dist-es/commands/GetScheduleCommand.js +3 -3
- package/dist-es/commands/GetScheduleGroupCommand.js +3 -3
- package/dist-es/commands/ListScheduleGroupsCommand.js +3 -3
- package/dist-es/commands/ListSchedulesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateScheduleCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +222 -244
- package/dist-types/protocols/Aws_restJson1.d.ts +96 -24
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -24
- package/package.json +6 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateScheduleCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSchedulesCommand = exports.de_ListScheduleGroupsCommand = exports.de_GetScheduleGroupCommand = exports.de_GetScheduleCommand = exports.de_DeleteScheduleGroupCommand = exports.de_DeleteScheduleCommand = exports.de_CreateScheduleGroupCommand = exports.de_CreateScheduleCommand = exports.se_UpdateScheduleCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSchedulesCommand = exports.se_ListScheduleGroupsCommand = exports.se_GetScheduleGroupCommand = exports.se_GetScheduleCommand = exports.se_DeleteScheduleGroupCommand = exports.se_DeleteScheduleCommand = exports.se_CreateScheduleGroupCommand = exports.se_CreateScheduleCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const SchedulerServiceException_1 = require("../models/SchedulerServiceException");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateScheduleCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -19,7 +19,7 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
|
|
|
19
19
|
...(input.Description != null && { Description: input.Description }),
|
|
20
20
|
...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
|
|
21
21
|
...(input.FlexibleTimeWindow != null && {
|
|
22
|
-
FlexibleTimeWindow:
|
|
22
|
+
FlexibleTimeWindow: se_FlexibleTimeWindow(input.FlexibleTimeWindow, context),
|
|
23
23
|
}),
|
|
24
24
|
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
25
25
|
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
@@ -27,7 +27,7 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
|
|
|
27
27
|
...(input.ScheduleExpressionTimezone != null && { ScheduleExpressionTimezone: input.ScheduleExpressionTimezone }),
|
|
28
28
|
...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
|
|
29
29
|
...(input.State != null && { State: input.State }),
|
|
30
|
-
...(input.Target != null && { Target:
|
|
30
|
+
...(input.Target != null && { Target: se_Target(input.Target, context) }),
|
|
31
31
|
});
|
|
32
32
|
return new protocol_http_1.HttpRequest({
|
|
33
33
|
protocol,
|
|
@@ -39,8 +39,8 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
|
|
|
39
39
|
body,
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
-
exports.
|
|
43
|
-
const
|
|
42
|
+
exports.se_CreateScheduleCommand = se_CreateScheduleCommand;
|
|
43
|
+
const se_CreateScheduleGroupCommand = async (input, context) => {
|
|
44
44
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
45
45
|
const headers = {
|
|
46
46
|
"content-type": "application/json",
|
|
@@ -50,7 +50,7 @@ const serializeAws_restJson1CreateScheduleGroupCommand = async (input, context)
|
|
|
50
50
|
let body;
|
|
51
51
|
body = JSON.stringify({
|
|
52
52
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
53
|
-
...(input.Tags != null && { Tags:
|
|
53
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
54
54
|
});
|
|
55
55
|
return new protocol_http_1.HttpRequest({
|
|
56
56
|
protocol,
|
|
@@ -62,8 +62,8 @@ const serializeAws_restJson1CreateScheduleGroupCommand = async (input, context)
|
|
|
62
62
|
body,
|
|
63
63
|
});
|
|
64
64
|
};
|
|
65
|
-
exports.
|
|
66
|
-
const
|
|
65
|
+
exports.se_CreateScheduleGroupCommand = se_CreateScheduleGroupCommand;
|
|
66
|
+
const se_DeleteScheduleCommand = async (input, context) => {
|
|
67
67
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
68
68
|
const headers = {};
|
|
69
69
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
|
|
@@ -84,8 +84,8 @@ const serializeAws_restJson1DeleteScheduleCommand = async (input, context) => {
|
|
|
84
84
|
body,
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
87
|
+
exports.se_DeleteScheduleCommand = se_DeleteScheduleCommand;
|
|
88
|
+
const se_DeleteScheduleGroupCommand = async (input, context) => {
|
|
89
89
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
90
90
|
const headers = {};
|
|
91
91
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups/{Name}";
|
|
@@ -105,8 +105,8 @@ const serializeAws_restJson1DeleteScheduleGroupCommand = async (input, context)
|
|
|
105
105
|
body,
|
|
106
106
|
});
|
|
107
107
|
};
|
|
108
|
-
exports.
|
|
109
|
-
const
|
|
108
|
+
exports.se_DeleteScheduleGroupCommand = se_DeleteScheduleGroupCommand;
|
|
109
|
+
const se_GetScheduleCommand = async (input, context) => {
|
|
110
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
111
111
|
const headers = {};
|
|
112
112
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules/{Name}";
|
|
@@ -126,8 +126,8 @@ const serializeAws_restJson1GetScheduleCommand = async (input, context) => {
|
|
|
126
126
|
body,
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
|
-
exports.
|
|
130
|
-
const
|
|
129
|
+
exports.se_GetScheduleCommand = se_GetScheduleCommand;
|
|
130
|
+
const se_GetScheduleGroupCommand = async (input, context) => {
|
|
131
131
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
132
|
const headers = {};
|
|
133
133
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups/{Name}";
|
|
@@ -143,8 +143,8 @@ const serializeAws_restJson1GetScheduleGroupCommand = async (input, context) =>
|
|
|
143
143
|
body,
|
|
144
144
|
});
|
|
145
145
|
};
|
|
146
|
-
exports.
|
|
147
|
-
const
|
|
146
|
+
exports.se_GetScheduleGroupCommand = se_GetScheduleGroupCommand;
|
|
147
|
+
const se_ListScheduleGroupsCommand = async (input, context) => {
|
|
148
148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
149
149
|
const headers = {};
|
|
150
150
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedule-groups";
|
|
@@ -165,8 +165,8 @@ const serializeAws_restJson1ListScheduleGroupsCommand = async (input, context) =
|
|
|
165
165
|
body,
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
|
-
exports.
|
|
169
|
-
const
|
|
168
|
+
exports.se_ListScheduleGroupsCommand = se_ListScheduleGroupsCommand;
|
|
169
|
+
const se_ListSchedulesCommand = async (input, context) => {
|
|
170
170
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
171
171
|
const headers = {};
|
|
172
172
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
|
|
@@ -189,8 +189,8 @@ const serializeAws_restJson1ListSchedulesCommand = async (input, context) => {
|
|
|
189
189
|
body,
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
|
-
exports.
|
|
193
|
-
const
|
|
192
|
+
exports.se_ListSchedulesCommand = se_ListSchedulesCommand;
|
|
193
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
194
194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
195
195
|
const headers = {};
|
|
196
196
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -206,8 +206,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
206
206
|
body,
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
|
-
exports.
|
|
210
|
-
const
|
|
209
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
210
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
211
211
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
212
212
|
const headers = {
|
|
213
213
|
"content-type": "application/json",
|
|
@@ -216,7 +216,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
216
216
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
217
217
|
let body;
|
|
218
218
|
body = JSON.stringify({
|
|
219
|
-
...(input.Tags != null && { Tags:
|
|
219
|
+
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
220
220
|
});
|
|
221
221
|
return new protocol_http_1.HttpRequest({
|
|
222
222
|
protocol,
|
|
@@ -228,8 +228,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
228
228
|
body,
|
|
229
229
|
});
|
|
230
230
|
};
|
|
231
|
-
exports.
|
|
232
|
-
const
|
|
231
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
232
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
233
233
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
234
234
|
const headers = {};
|
|
235
235
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -252,8 +252,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
252
252
|
body,
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
|
-
exports.
|
|
256
|
-
const
|
|
255
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
256
|
+
const se_UpdateScheduleCommand = async (input, context) => {
|
|
257
257
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
258
258
|
const headers = {
|
|
259
259
|
"content-type": "application/json",
|
|
@@ -266,7 +266,7 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
|
|
|
266
266
|
...(input.Description != null && { Description: input.Description }),
|
|
267
267
|
...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
|
|
268
268
|
...(input.FlexibleTimeWindow != null && {
|
|
269
|
-
FlexibleTimeWindow:
|
|
269
|
+
FlexibleTimeWindow: se_FlexibleTimeWindow(input.FlexibleTimeWindow, context),
|
|
270
270
|
}),
|
|
271
271
|
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
272
272
|
...(input.KmsKeyArn != null && { KmsKeyArn: input.KmsKeyArn }),
|
|
@@ -274,7 +274,7 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
|
|
|
274
274
|
...(input.ScheduleExpressionTimezone != null && { ScheduleExpressionTimezone: input.ScheduleExpressionTimezone }),
|
|
275
275
|
...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
|
|
276
276
|
...(input.State != null && { State: input.State }),
|
|
277
|
-
...(input.Target != null && { Target:
|
|
277
|
+
...(input.Target != null && { Target: se_Target(input.Target, context) }),
|
|
278
278
|
});
|
|
279
279
|
return new protocol_http_1.HttpRequest({
|
|
280
280
|
protocol,
|
|
@@ -286,10 +286,10 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
|
|
|
286
286
|
body,
|
|
287
287
|
});
|
|
288
288
|
};
|
|
289
|
-
exports.
|
|
290
|
-
const
|
|
289
|
+
exports.se_UpdateScheduleCommand = se_UpdateScheduleCommand;
|
|
290
|
+
const de_CreateScheduleCommand = async (output, context) => {
|
|
291
291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
292
|
-
return
|
|
292
|
+
return de_CreateScheduleCommandError(output, context);
|
|
293
293
|
}
|
|
294
294
|
const contents = map({
|
|
295
295
|
$metadata: deserializeMetadata(output),
|
|
@@ -300,8 +300,8 @@ const deserializeAws_restJson1CreateScheduleCommand = async (output, context) =>
|
|
|
300
300
|
}
|
|
301
301
|
return contents;
|
|
302
302
|
};
|
|
303
|
-
exports.
|
|
304
|
-
const
|
|
303
|
+
exports.de_CreateScheduleCommand = de_CreateScheduleCommand;
|
|
304
|
+
const de_CreateScheduleCommandError = async (output, context) => {
|
|
305
305
|
const parsedOutput = {
|
|
306
306
|
...output,
|
|
307
307
|
body: await parseErrorBody(output.body, context),
|
|
@@ -310,22 +310,22 @@ const deserializeAws_restJson1CreateScheduleCommandError = async (output, contex
|
|
|
310
310
|
switch (errorCode) {
|
|
311
311
|
case "ConflictException":
|
|
312
312
|
case "com.amazonaws.scheduler#ConflictException":
|
|
313
|
-
throw await
|
|
313
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
314
314
|
case "InternalServerException":
|
|
315
315
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
316
|
-
throw await
|
|
316
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
317
317
|
case "ResourceNotFoundException":
|
|
318
318
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
319
|
-
throw await
|
|
319
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
320
320
|
case "ServiceQuotaExceededException":
|
|
321
321
|
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
322
|
-
throw await
|
|
322
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
323
323
|
case "ThrottlingException":
|
|
324
324
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
325
|
-
throw await
|
|
325
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
326
326
|
case "ValidationException":
|
|
327
327
|
case "com.amazonaws.scheduler#ValidationException":
|
|
328
|
-
throw await
|
|
328
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
329
329
|
default:
|
|
330
330
|
const parsedBody = parsedOutput.body;
|
|
331
331
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -336,9 +336,9 @@ const deserializeAws_restJson1CreateScheduleCommandError = async (output, contex
|
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
|
-
const
|
|
339
|
+
const de_CreateScheduleGroupCommand = async (output, context) => {
|
|
340
340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
341
|
-
return
|
|
341
|
+
return de_CreateScheduleGroupCommandError(output, context);
|
|
342
342
|
}
|
|
343
343
|
const contents = map({
|
|
344
344
|
$metadata: deserializeMetadata(output),
|
|
@@ -349,8 +349,8 @@ const deserializeAws_restJson1CreateScheduleGroupCommand = async (output, contex
|
|
|
349
349
|
}
|
|
350
350
|
return contents;
|
|
351
351
|
};
|
|
352
|
-
exports.
|
|
353
|
-
const
|
|
352
|
+
exports.de_CreateScheduleGroupCommand = de_CreateScheduleGroupCommand;
|
|
353
|
+
const de_CreateScheduleGroupCommandError = async (output, context) => {
|
|
354
354
|
const parsedOutput = {
|
|
355
355
|
...output,
|
|
356
356
|
body: await parseErrorBody(output.body, context),
|
|
@@ -359,19 +359,19 @@ const deserializeAws_restJson1CreateScheduleGroupCommandError = async (output, c
|
|
|
359
359
|
switch (errorCode) {
|
|
360
360
|
case "ConflictException":
|
|
361
361
|
case "com.amazonaws.scheduler#ConflictException":
|
|
362
|
-
throw await
|
|
362
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
363
363
|
case "InternalServerException":
|
|
364
364
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
365
|
-
throw await
|
|
365
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
366
366
|
case "ServiceQuotaExceededException":
|
|
367
367
|
case "com.amazonaws.scheduler#ServiceQuotaExceededException":
|
|
368
|
-
throw await
|
|
368
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
369
369
|
case "ThrottlingException":
|
|
370
370
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
371
|
-
throw await
|
|
371
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
372
372
|
case "ValidationException":
|
|
373
373
|
case "com.amazonaws.scheduler#ValidationException":
|
|
374
|
-
throw await
|
|
374
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
375
375
|
default:
|
|
376
376
|
const parsedBody = parsedOutput.body;
|
|
377
377
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -382,9 +382,9 @@ const deserializeAws_restJson1CreateScheduleGroupCommandError = async (output, c
|
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
|
-
const
|
|
385
|
+
const de_DeleteScheduleCommand = async (output, context) => {
|
|
386
386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
387
|
-
return
|
|
387
|
+
return de_DeleteScheduleCommandError(output, context);
|
|
388
388
|
}
|
|
389
389
|
const contents = map({
|
|
390
390
|
$metadata: deserializeMetadata(output),
|
|
@@ -392,8 +392,8 @@ const deserializeAws_restJson1DeleteScheduleCommand = async (output, context) =>
|
|
|
392
392
|
await collectBody(output.body, context);
|
|
393
393
|
return contents;
|
|
394
394
|
};
|
|
395
|
-
exports.
|
|
396
|
-
const
|
|
395
|
+
exports.de_DeleteScheduleCommand = de_DeleteScheduleCommand;
|
|
396
|
+
const de_DeleteScheduleCommandError = async (output, context) => {
|
|
397
397
|
const parsedOutput = {
|
|
398
398
|
...output,
|
|
399
399
|
body: await parseErrorBody(output.body, context),
|
|
@@ -402,19 +402,19 @@ const deserializeAws_restJson1DeleteScheduleCommandError = async (output, contex
|
|
|
402
402
|
switch (errorCode) {
|
|
403
403
|
case "ConflictException":
|
|
404
404
|
case "com.amazonaws.scheduler#ConflictException":
|
|
405
|
-
throw await
|
|
405
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
406
406
|
case "InternalServerException":
|
|
407
407
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
408
|
-
throw await
|
|
408
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
409
409
|
case "ResourceNotFoundException":
|
|
410
410
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
411
|
-
throw await
|
|
411
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
412
412
|
case "ThrottlingException":
|
|
413
413
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
414
|
-
throw await
|
|
414
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
415
415
|
case "ValidationException":
|
|
416
416
|
case "com.amazonaws.scheduler#ValidationException":
|
|
417
|
-
throw await
|
|
417
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
418
418
|
default:
|
|
419
419
|
const parsedBody = parsedOutput.body;
|
|
420
420
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -425,9 +425,9 @@ const deserializeAws_restJson1DeleteScheduleCommandError = async (output, contex
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
|
-
const
|
|
428
|
+
const de_DeleteScheduleGroupCommand = async (output, context) => {
|
|
429
429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
430
|
-
return
|
|
430
|
+
return de_DeleteScheduleGroupCommandError(output, context);
|
|
431
431
|
}
|
|
432
432
|
const contents = map({
|
|
433
433
|
$metadata: deserializeMetadata(output),
|
|
@@ -435,8 +435,8 @@ const deserializeAws_restJson1DeleteScheduleGroupCommand = async (output, contex
|
|
|
435
435
|
await collectBody(output.body, context);
|
|
436
436
|
return contents;
|
|
437
437
|
};
|
|
438
|
-
exports.
|
|
439
|
-
const
|
|
438
|
+
exports.de_DeleteScheduleGroupCommand = de_DeleteScheduleGroupCommand;
|
|
439
|
+
const de_DeleteScheduleGroupCommandError = async (output, context) => {
|
|
440
440
|
const parsedOutput = {
|
|
441
441
|
...output,
|
|
442
442
|
body: await parseErrorBody(output.body, context),
|
|
@@ -445,19 +445,19 @@ const deserializeAws_restJson1DeleteScheduleGroupCommandError = async (output, c
|
|
|
445
445
|
switch (errorCode) {
|
|
446
446
|
case "ConflictException":
|
|
447
447
|
case "com.amazonaws.scheduler#ConflictException":
|
|
448
|
-
throw await
|
|
448
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
449
449
|
case "InternalServerException":
|
|
450
450
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
451
|
-
throw await
|
|
451
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
452
452
|
case "ResourceNotFoundException":
|
|
453
453
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
454
|
-
throw await
|
|
454
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
455
455
|
case "ThrottlingException":
|
|
456
456
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
457
|
-
throw await
|
|
457
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
458
458
|
case "ValidationException":
|
|
459
459
|
case "com.amazonaws.scheduler#ValidationException":
|
|
460
|
-
throw await
|
|
460
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
461
461
|
default:
|
|
462
462
|
const parsedBody = parsedOutput.body;
|
|
463
463
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -468,9 +468,9 @@ const deserializeAws_restJson1DeleteScheduleGroupCommandError = async (output, c
|
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
|
-
const
|
|
471
|
+
const de_GetScheduleCommand = async (output, context) => {
|
|
472
472
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
473
|
-
return
|
|
473
|
+
return de_GetScheduleCommandError(output, context);
|
|
474
474
|
}
|
|
475
475
|
const contents = map({
|
|
476
476
|
$metadata: deserializeMetadata(output),
|
|
@@ -489,7 +489,7 @@ const deserializeAws_restJson1GetScheduleCommand = async (output, context) => {
|
|
|
489
489
|
contents.EndDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.EndDate)));
|
|
490
490
|
}
|
|
491
491
|
if (data.FlexibleTimeWindow != null) {
|
|
492
|
-
contents.FlexibleTimeWindow =
|
|
492
|
+
contents.FlexibleTimeWindow = de_FlexibleTimeWindow(data.FlexibleTimeWindow, context);
|
|
493
493
|
}
|
|
494
494
|
if (data.GroupName != null) {
|
|
495
495
|
contents.GroupName = (0, smithy_client_1.expectString)(data.GroupName);
|
|
@@ -516,12 +516,12 @@ const deserializeAws_restJson1GetScheduleCommand = async (output, context) => {
|
|
|
516
516
|
contents.State = (0, smithy_client_1.expectString)(data.State);
|
|
517
517
|
}
|
|
518
518
|
if (data.Target != null) {
|
|
519
|
-
contents.Target =
|
|
519
|
+
contents.Target = de_Target(data.Target, context);
|
|
520
520
|
}
|
|
521
521
|
return contents;
|
|
522
522
|
};
|
|
523
|
-
exports.
|
|
524
|
-
const
|
|
523
|
+
exports.de_GetScheduleCommand = de_GetScheduleCommand;
|
|
524
|
+
const de_GetScheduleCommandError = async (output, context) => {
|
|
525
525
|
const parsedOutput = {
|
|
526
526
|
...output,
|
|
527
527
|
body: await parseErrorBody(output.body, context),
|
|
@@ -530,16 +530,16 @@ const deserializeAws_restJson1GetScheduleCommandError = async (output, context)
|
|
|
530
530
|
switch (errorCode) {
|
|
531
531
|
case "InternalServerException":
|
|
532
532
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
533
|
-
throw await
|
|
533
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
534
534
|
case "ResourceNotFoundException":
|
|
535
535
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
536
|
-
throw await
|
|
536
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
537
537
|
case "ThrottlingException":
|
|
538
538
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
539
|
-
throw await
|
|
539
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
540
540
|
case "ValidationException":
|
|
541
541
|
case "com.amazonaws.scheduler#ValidationException":
|
|
542
|
-
throw await
|
|
542
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
543
543
|
default:
|
|
544
544
|
const parsedBody = parsedOutput.body;
|
|
545
545
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -550,9 +550,9 @@ const deserializeAws_restJson1GetScheduleCommandError = async (output, context)
|
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
552
|
};
|
|
553
|
-
const
|
|
553
|
+
const de_GetScheduleGroupCommand = async (output, context) => {
|
|
554
554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
555
|
-
return
|
|
555
|
+
return de_GetScheduleGroupCommandError(output, context);
|
|
556
556
|
}
|
|
557
557
|
const contents = map({
|
|
558
558
|
$metadata: deserializeMetadata(output),
|
|
@@ -575,8 +575,8 @@ const deserializeAws_restJson1GetScheduleGroupCommand = async (output, context)
|
|
|
575
575
|
}
|
|
576
576
|
return contents;
|
|
577
577
|
};
|
|
578
|
-
exports.
|
|
579
|
-
const
|
|
578
|
+
exports.de_GetScheduleGroupCommand = de_GetScheduleGroupCommand;
|
|
579
|
+
const de_GetScheduleGroupCommandError = async (output, context) => {
|
|
580
580
|
const parsedOutput = {
|
|
581
581
|
...output,
|
|
582
582
|
body: await parseErrorBody(output.body, context),
|
|
@@ -585,16 +585,16 @@ const deserializeAws_restJson1GetScheduleGroupCommandError = async (output, cont
|
|
|
585
585
|
switch (errorCode) {
|
|
586
586
|
case "InternalServerException":
|
|
587
587
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
588
|
-
throw await
|
|
588
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
589
589
|
case "ResourceNotFoundException":
|
|
590
590
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
591
|
-
throw await
|
|
591
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
592
592
|
case "ThrottlingException":
|
|
593
593
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
594
|
-
throw await
|
|
594
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
595
595
|
case "ValidationException":
|
|
596
596
|
case "com.amazonaws.scheduler#ValidationException":
|
|
597
|
-
throw await
|
|
597
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
598
598
|
default:
|
|
599
599
|
const parsedBody = parsedOutput.body;
|
|
600
600
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -605,9 +605,9 @@ const deserializeAws_restJson1GetScheduleGroupCommandError = async (output, cont
|
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
|
-
const
|
|
608
|
+
const de_ListScheduleGroupsCommand = async (output, context) => {
|
|
609
609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
|
-
return
|
|
610
|
+
return de_ListScheduleGroupsCommandError(output, context);
|
|
611
611
|
}
|
|
612
612
|
const contents = map({
|
|
613
613
|
$metadata: deserializeMetadata(output),
|
|
@@ -617,12 +617,12 @@ const deserializeAws_restJson1ListScheduleGroupsCommand = async (output, context
|
|
|
617
617
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
618
618
|
}
|
|
619
619
|
if (data.ScheduleGroups != null) {
|
|
620
|
-
contents.ScheduleGroups =
|
|
620
|
+
contents.ScheduleGroups = de_ScheduleGroupList(data.ScheduleGroups, context);
|
|
621
621
|
}
|
|
622
622
|
return contents;
|
|
623
623
|
};
|
|
624
|
-
exports.
|
|
625
|
-
const
|
|
624
|
+
exports.de_ListScheduleGroupsCommand = de_ListScheduleGroupsCommand;
|
|
625
|
+
const de_ListScheduleGroupsCommandError = async (output, context) => {
|
|
626
626
|
const parsedOutput = {
|
|
627
627
|
...output,
|
|
628
628
|
body: await parseErrorBody(output.body, context),
|
|
@@ -631,13 +631,13 @@ const deserializeAws_restJson1ListScheduleGroupsCommandError = async (output, co
|
|
|
631
631
|
switch (errorCode) {
|
|
632
632
|
case "InternalServerException":
|
|
633
633
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
634
|
-
throw await
|
|
634
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
635
635
|
case "ThrottlingException":
|
|
636
636
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
637
|
-
throw await
|
|
637
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
638
638
|
case "ValidationException":
|
|
639
639
|
case "com.amazonaws.scheduler#ValidationException":
|
|
640
|
-
throw await
|
|
640
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
641
641
|
default:
|
|
642
642
|
const parsedBody = parsedOutput.body;
|
|
643
643
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -648,9 +648,9 @@ const deserializeAws_restJson1ListScheduleGroupsCommandError = async (output, co
|
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
650
|
};
|
|
651
|
-
const
|
|
651
|
+
const de_ListSchedulesCommand = async (output, context) => {
|
|
652
652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
653
|
-
return
|
|
653
|
+
return de_ListSchedulesCommandError(output, context);
|
|
654
654
|
}
|
|
655
655
|
const contents = map({
|
|
656
656
|
$metadata: deserializeMetadata(output),
|
|
@@ -660,12 +660,12 @@ const deserializeAws_restJson1ListSchedulesCommand = async (output, context) =>
|
|
|
660
660
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
661
661
|
}
|
|
662
662
|
if (data.Schedules != null) {
|
|
663
|
-
contents.Schedules =
|
|
663
|
+
contents.Schedules = de_ScheduleList(data.Schedules, context);
|
|
664
664
|
}
|
|
665
665
|
return contents;
|
|
666
666
|
};
|
|
667
|
-
exports.
|
|
668
|
-
const
|
|
667
|
+
exports.de_ListSchedulesCommand = de_ListSchedulesCommand;
|
|
668
|
+
const de_ListSchedulesCommandError = async (output, context) => {
|
|
669
669
|
const parsedOutput = {
|
|
670
670
|
...output,
|
|
671
671
|
body: await parseErrorBody(output.body, context),
|
|
@@ -674,16 +674,16 @@ const deserializeAws_restJson1ListSchedulesCommandError = async (output, context
|
|
|
674
674
|
switch (errorCode) {
|
|
675
675
|
case "InternalServerException":
|
|
676
676
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
677
|
-
throw await
|
|
677
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
678
678
|
case "ResourceNotFoundException":
|
|
679
679
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
680
|
-
throw await
|
|
680
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
681
681
|
case "ThrottlingException":
|
|
682
682
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
683
|
-
throw await
|
|
683
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
684
684
|
case "ValidationException":
|
|
685
685
|
case "com.amazonaws.scheduler#ValidationException":
|
|
686
|
-
throw await
|
|
686
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
687
687
|
default:
|
|
688
688
|
const parsedBody = parsedOutput.body;
|
|
689
689
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -694,21 +694,21 @@ const deserializeAws_restJson1ListSchedulesCommandError = async (output, context
|
|
|
694
694
|
});
|
|
695
695
|
}
|
|
696
696
|
};
|
|
697
|
-
const
|
|
697
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
698
698
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
699
|
-
return
|
|
699
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
700
700
|
}
|
|
701
701
|
const contents = map({
|
|
702
702
|
$metadata: deserializeMetadata(output),
|
|
703
703
|
});
|
|
704
704
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
705
705
|
if (data.Tags != null) {
|
|
706
|
-
contents.Tags =
|
|
706
|
+
contents.Tags = de_TagList(data.Tags, context);
|
|
707
707
|
}
|
|
708
708
|
return contents;
|
|
709
709
|
};
|
|
710
|
-
exports.
|
|
711
|
-
const
|
|
710
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
711
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
712
712
|
const parsedOutput = {
|
|
713
713
|
...output,
|
|
714
714
|
body: await parseErrorBody(output.body, context),
|
|
@@ -717,16 +717,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
717
717
|
switch (errorCode) {
|
|
718
718
|
case "InternalServerException":
|
|
719
719
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
720
|
-
throw await
|
|
720
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
721
721
|
case "ResourceNotFoundException":
|
|
722
722
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
723
|
-
throw await
|
|
723
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
724
724
|
case "ThrottlingException":
|
|
725
725
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
726
|
-
throw await
|
|
726
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
727
727
|
case "ValidationException":
|
|
728
728
|
case "com.amazonaws.scheduler#ValidationException":
|
|
729
|
-
throw await
|
|
729
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
730
730
|
default:
|
|
731
731
|
const parsedBody = parsedOutput.body;
|
|
732
732
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -737,9 +737,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
739
|
};
|
|
740
|
-
const
|
|
740
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
741
741
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
742
|
-
return
|
|
742
|
+
return de_TagResourceCommandError(output, context);
|
|
743
743
|
}
|
|
744
744
|
const contents = map({
|
|
745
745
|
$metadata: deserializeMetadata(output),
|
|
@@ -747,8 +747,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
747
747
|
await collectBody(output.body, context);
|
|
748
748
|
return contents;
|
|
749
749
|
};
|
|
750
|
-
exports.
|
|
751
|
-
const
|
|
750
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
751
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
752
752
|
const parsedOutput = {
|
|
753
753
|
...output,
|
|
754
754
|
body: await parseErrorBody(output.body, context),
|
|
@@ -757,19 +757,19 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
757
757
|
switch (errorCode) {
|
|
758
758
|
case "ConflictException":
|
|
759
759
|
case "com.amazonaws.scheduler#ConflictException":
|
|
760
|
-
throw await
|
|
760
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
761
761
|
case "InternalServerException":
|
|
762
762
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
763
|
-
throw await
|
|
763
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
764
764
|
case "ResourceNotFoundException":
|
|
765
765
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
766
|
-
throw await
|
|
766
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
767
767
|
case "ThrottlingException":
|
|
768
768
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
769
|
-
throw await
|
|
769
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
770
770
|
case "ValidationException":
|
|
771
771
|
case "com.amazonaws.scheduler#ValidationException":
|
|
772
|
-
throw await
|
|
772
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
773
773
|
default:
|
|
774
774
|
const parsedBody = parsedOutput.body;
|
|
775
775
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -780,9 +780,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
|
-
const
|
|
783
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
784
784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
785
|
-
return
|
|
785
|
+
return de_UntagResourceCommandError(output, context);
|
|
786
786
|
}
|
|
787
787
|
const contents = map({
|
|
788
788
|
$metadata: deserializeMetadata(output),
|
|
@@ -790,8 +790,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
790
790
|
await collectBody(output.body, context);
|
|
791
791
|
return contents;
|
|
792
792
|
};
|
|
793
|
-
exports.
|
|
794
|
-
const
|
|
793
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
794
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
795
795
|
const parsedOutput = {
|
|
796
796
|
...output,
|
|
797
797
|
body: await parseErrorBody(output.body, context),
|
|
@@ -800,19 +800,19 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
800
800
|
switch (errorCode) {
|
|
801
801
|
case "ConflictException":
|
|
802
802
|
case "com.amazonaws.scheduler#ConflictException":
|
|
803
|
-
throw await
|
|
803
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
804
804
|
case "InternalServerException":
|
|
805
805
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
806
|
-
throw await
|
|
806
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
807
807
|
case "ResourceNotFoundException":
|
|
808
808
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
809
|
-
throw await
|
|
809
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
810
810
|
case "ThrottlingException":
|
|
811
811
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
812
|
-
throw await
|
|
812
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
813
813
|
case "ValidationException":
|
|
814
814
|
case "com.amazonaws.scheduler#ValidationException":
|
|
815
|
-
throw await
|
|
815
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
816
816
|
default:
|
|
817
817
|
const parsedBody = parsedOutput.body;
|
|
818
818
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -823,9 +823,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
825
|
};
|
|
826
|
-
const
|
|
826
|
+
const de_UpdateScheduleCommand = async (output, context) => {
|
|
827
827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
828
|
-
return
|
|
828
|
+
return de_UpdateScheduleCommandError(output, context);
|
|
829
829
|
}
|
|
830
830
|
const contents = map({
|
|
831
831
|
$metadata: deserializeMetadata(output),
|
|
@@ -836,8 +836,8 @@ const deserializeAws_restJson1UpdateScheduleCommand = async (output, context) =>
|
|
|
836
836
|
}
|
|
837
837
|
return contents;
|
|
838
838
|
};
|
|
839
|
-
exports.
|
|
840
|
-
const
|
|
839
|
+
exports.de_UpdateScheduleCommand = de_UpdateScheduleCommand;
|
|
840
|
+
const de_UpdateScheduleCommandError = async (output, context) => {
|
|
841
841
|
const parsedOutput = {
|
|
842
842
|
...output,
|
|
843
843
|
body: await parseErrorBody(output.body, context),
|
|
@@ -846,19 +846,19 @@ const deserializeAws_restJson1UpdateScheduleCommandError = async (output, contex
|
|
|
846
846
|
switch (errorCode) {
|
|
847
847
|
case "ConflictException":
|
|
848
848
|
case "com.amazonaws.scheduler#ConflictException":
|
|
849
|
-
throw await
|
|
849
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
850
850
|
case "InternalServerException":
|
|
851
851
|
case "com.amazonaws.scheduler#InternalServerException":
|
|
852
|
-
throw await
|
|
852
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
853
853
|
case "ResourceNotFoundException":
|
|
854
854
|
case "com.amazonaws.scheduler#ResourceNotFoundException":
|
|
855
|
-
throw await
|
|
855
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
856
856
|
case "ThrottlingException":
|
|
857
857
|
case "com.amazonaws.scheduler#ThrottlingException":
|
|
858
|
-
throw await
|
|
858
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
859
859
|
case "ValidationException":
|
|
860
860
|
case "com.amazonaws.scheduler#ValidationException":
|
|
861
|
-
throw await
|
|
861
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
862
862
|
default:
|
|
863
863
|
const parsedBody = parsedOutput.body;
|
|
864
864
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -870,7 +870,7 @@ const deserializeAws_restJson1UpdateScheduleCommandError = async (output, contex
|
|
|
870
870
|
}
|
|
871
871
|
};
|
|
872
872
|
const map = smithy_client_1.map;
|
|
873
|
-
const
|
|
873
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
874
874
|
const contents = map({});
|
|
875
875
|
const data = parsedOutput.body;
|
|
876
876
|
if (data.Message != null) {
|
|
@@ -882,7 +882,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
882
882
|
});
|
|
883
883
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
884
884
|
};
|
|
885
|
-
const
|
|
885
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
886
886
|
const contents = map({});
|
|
887
887
|
const data = parsedOutput.body;
|
|
888
888
|
if (data.Message != null) {
|
|
@@ -894,7 +894,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
894
894
|
});
|
|
895
895
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
896
896
|
};
|
|
897
|
-
const
|
|
897
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
898
898
|
const contents = map({});
|
|
899
899
|
const data = parsedOutput.body;
|
|
900
900
|
if (data.Message != null) {
|
|
@@ -906,7 +906,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
906
906
|
});
|
|
907
907
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
908
908
|
};
|
|
909
|
-
const
|
|
909
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
910
910
|
const contents = map({});
|
|
911
911
|
const data = parsedOutput.body;
|
|
912
912
|
if (data.Message != null) {
|
|
@@ -918,7 +918,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
918
918
|
});
|
|
919
919
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
920
920
|
};
|
|
921
|
-
const
|
|
921
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
922
922
|
const contents = map({});
|
|
923
923
|
const data = parsedOutput.body;
|
|
924
924
|
if (data.Message != null) {
|
|
@@ -930,7 +930,7 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
930
930
|
});
|
|
931
931
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
932
932
|
};
|
|
933
|
-
const
|
|
933
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
934
934
|
const contents = map({});
|
|
935
935
|
const data = parsedOutput.body;
|
|
936
936
|
if (data.Message != null) {
|
|
@@ -942,169 +942,167 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
942
942
|
});
|
|
943
943
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
944
944
|
};
|
|
945
|
-
const
|
|
945
|
+
const se_AwsVpcConfiguration = (input, context) => {
|
|
946
946
|
return {
|
|
947
947
|
...(input.AssignPublicIp != null && { AssignPublicIp: input.AssignPublicIp }),
|
|
948
|
-
...(input.SecurityGroups != null && {
|
|
949
|
-
|
|
950
|
-
}),
|
|
951
|
-
...(input.Subnets != null && { Subnets: serializeAws_restJson1Subnets(input.Subnets, context) }),
|
|
948
|
+
...(input.SecurityGroups != null && { SecurityGroups: se_SecurityGroups(input.SecurityGroups, context) }),
|
|
949
|
+
...(input.Subnets != null && { Subnets: se_Subnets(input.Subnets, context) }),
|
|
952
950
|
};
|
|
953
951
|
};
|
|
954
|
-
const
|
|
952
|
+
const se_CapacityProviderStrategy = (input, context) => {
|
|
955
953
|
return input
|
|
956
954
|
.filter((e) => e != null)
|
|
957
955
|
.map((entry) => {
|
|
958
|
-
return
|
|
956
|
+
return se_CapacityProviderStrategyItem(entry, context);
|
|
959
957
|
});
|
|
960
958
|
};
|
|
961
|
-
const
|
|
959
|
+
const se_CapacityProviderStrategyItem = (input, context) => {
|
|
962
960
|
return {
|
|
963
961
|
...(input.base != null && { base: input.base }),
|
|
964
962
|
...(input.capacityProvider != null && { capacityProvider: input.capacityProvider }),
|
|
965
963
|
...(input.weight != null && { weight: input.weight }),
|
|
966
964
|
};
|
|
967
965
|
};
|
|
968
|
-
const
|
|
966
|
+
const se_DeadLetterConfig = (input, context) => {
|
|
969
967
|
return {
|
|
970
968
|
...(input.Arn != null && { Arn: input.Arn }),
|
|
971
969
|
};
|
|
972
970
|
};
|
|
973
|
-
const
|
|
971
|
+
const se_EcsParameters = (input, context) => {
|
|
974
972
|
return {
|
|
975
973
|
...(input.CapacityProviderStrategy != null && {
|
|
976
|
-
CapacityProviderStrategy:
|
|
974
|
+
CapacityProviderStrategy: se_CapacityProviderStrategy(input.CapacityProviderStrategy, context),
|
|
977
975
|
}),
|
|
978
976
|
...(input.EnableECSManagedTags != null && { EnableECSManagedTags: input.EnableECSManagedTags }),
|
|
979
977
|
...(input.EnableExecuteCommand != null && { EnableExecuteCommand: input.EnableExecuteCommand }),
|
|
980
978
|
...(input.Group != null && { Group: input.Group }),
|
|
981
979
|
...(input.LaunchType != null && { LaunchType: input.LaunchType }),
|
|
982
980
|
...(input.NetworkConfiguration != null && {
|
|
983
|
-
NetworkConfiguration:
|
|
981
|
+
NetworkConfiguration: se_NetworkConfiguration(input.NetworkConfiguration, context),
|
|
984
982
|
}),
|
|
985
983
|
...(input.PlacementConstraints != null && {
|
|
986
|
-
PlacementConstraints:
|
|
984
|
+
PlacementConstraints: se_PlacementConstraints(input.PlacementConstraints, context),
|
|
987
985
|
}),
|
|
988
986
|
...(input.PlacementStrategy != null && {
|
|
989
|
-
PlacementStrategy:
|
|
987
|
+
PlacementStrategy: se_PlacementStrategies(input.PlacementStrategy, context),
|
|
990
988
|
}),
|
|
991
989
|
...(input.PlatformVersion != null && { PlatformVersion: input.PlatformVersion }),
|
|
992
990
|
...(input.PropagateTags != null && { PropagateTags: input.PropagateTags }),
|
|
993
991
|
...(input.ReferenceId != null && { ReferenceId: input.ReferenceId }),
|
|
994
|
-
...(input.Tags != null && { Tags:
|
|
992
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
995
993
|
...(input.TaskCount != null && { TaskCount: input.TaskCount }),
|
|
996
994
|
...(input.TaskDefinitionArn != null && { TaskDefinitionArn: input.TaskDefinitionArn }),
|
|
997
995
|
};
|
|
998
996
|
};
|
|
999
|
-
const
|
|
997
|
+
const se_EventBridgeParameters = (input, context) => {
|
|
1000
998
|
return {
|
|
1001
999
|
...(input.DetailType != null && { DetailType: input.DetailType }),
|
|
1002
1000
|
...(input.Source != null && { Source: input.Source }),
|
|
1003
1001
|
};
|
|
1004
1002
|
};
|
|
1005
|
-
const
|
|
1003
|
+
const se_FlexibleTimeWindow = (input, context) => {
|
|
1006
1004
|
return {
|
|
1007
1005
|
...(input.MaximumWindowInMinutes != null && { MaximumWindowInMinutes: input.MaximumWindowInMinutes }),
|
|
1008
1006
|
...(input.Mode != null && { Mode: input.Mode }),
|
|
1009
1007
|
};
|
|
1010
1008
|
};
|
|
1011
|
-
const
|
|
1009
|
+
const se_KinesisParameters = (input, context) => {
|
|
1012
1010
|
return {
|
|
1013
1011
|
...(input.PartitionKey != null && { PartitionKey: input.PartitionKey }),
|
|
1014
1012
|
};
|
|
1015
1013
|
};
|
|
1016
|
-
const
|
|
1014
|
+
const se_NetworkConfiguration = (input, context) => {
|
|
1017
1015
|
return {
|
|
1018
1016
|
...(input.awsvpcConfiguration != null && {
|
|
1019
|
-
awsvpcConfiguration:
|
|
1017
|
+
awsvpcConfiguration: se_AwsVpcConfiguration(input.awsvpcConfiguration, context),
|
|
1020
1018
|
}),
|
|
1021
1019
|
};
|
|
1022
1020
|
};
|
|
1023
|
-
const
|
|
1021
|
+
const se_PlacementConstraint = (input, context) => {
|
|
1024
1022
|
return {
|
|
1025
1023
|
...(input.expression != null && { expression: input.expression }),
|
|
1026
1024
|
...(input.type != null && { type: input.type }),
|
|
1027
1025
|
};
|
|
1028
1026
|
};
|
|
1029
|
-
const
|
|
1027
|
+
const se_PlacementConstraints = (input, context) => {
|
|
1030
1028
|
return input
|
|
1031
1029
|
.filter((e) => e != null)
|
|
1032
1030
|
.map((entry) => {
|
|
1033
|
-
return
|
|
1031
|
+
return se_PlacementConstraint(entry, context);
|
|
1034
1032
|
});
|
|
1035
1033
|
};
|
|
1036
|
-
const
|
|
1034
|
+
const se_PlacementStrategies = (input, context) => {
|
|
1037
1035
|
return input
|
|
1038
1036
|
.filter((e) => e != null)
|
|
1039
1037
|
.map((entry) => {
|
|
1040
|
-
return
|
|
1038
|
+
return se_PlacementStrategy(entry, context);
|
|
1041
1039
|
});
|
|
1042
1040
|
};
|
|
1043
|
-
const
|
|
1041
|
+
const se_PlacementStrategy = (input, context) => {
|
|
1044
1042
|
return {
|
|
1045
1043
|
...(input.field != null && { field: input.field }),
|
|
1046
1044
|
...(input.type != null && { type: input.type }),
|
|
1047
1045
|
};
|
|
1048
1046
|
};
|
|
1049
|
-
const
|
|
1047
|
+
const se_RetryPolicy = (input, context) => {
|
|
1050
1048
|
return {
|
|
1051
1049
|
...(input.MaximumEventAgeInSeconds != null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds }),
|
|
1052
1050
|
...(input.MaximumRetryAttempts != null && { MaximumRetryAttempts: input.MaximumRetryAttempts }),
|
|
1053
1051
|
};
|
|
1054
1052
|
};
|
|
1055
|
-
const
|
|
1053
|
+
const se_SageMakerPipelineParameter = (input, context) => {
|
|
1056
1054
|
return {
|
|
1057
1055
|
...(input.Name != null && { Name: input.Name }),
|
|
1058
1056
|
...(input.Value != null && { Value: input.Value }),
|
|
1059
1057
|
};
|
|
1060
1058
|
};
|
|
1061
|
-
const
|
|
1059
|
+
const se_SageMakerPipelineParameterList = (input, context) => {
|
|
1062
1060
|
return input
|
|
1063
1061
|
.filter((e) => e != null)
|
|
1064
1062
|
.map((entry) => {
|
|
1065
|
-
return
|
|
1063
|
+
return se_SageMakerPipelineParameter(entry, context);
|
|
1066
1064
|
});
|
|
1067
1065
|
};
|
|
1068
|
-
const
|
|
1066
|
+
const se_SageMakerPipelineParameters = (input, context) => {
|
|
1069
1067
|
return {
|
|
1070
1068
|
...(input.PipelineParameterList != null && {
|
|
1071
|
-
PipelineParameterList:
|
|
1069
|
+
PipelineParameterList: se_SageMakerPipelineParameterList(input.PipelineParameterList, context),
|
|
1072
1070
|
}),
|
|
1073
1071
|
};
|
|
1074
1072
|
};
|
|
1075
|
-
const
|
|
1073
|
+
const se_SecurityGroups = (input, context) => {
|
|
1076
1074
|
return input
|
|
1077
1075
|
.filter((e) => e != null)
|
|
1078
1076
|
.map((entry) => {
|
|
1079
1077
|
return entry;
|
|
1080
1078
|
});
|
|
1081
1079
|
};
|
|
1082
|
-
const
|
|
1080
|
+
const se_SqsParameters = (input, context) => {
|
|
1083
1081
|
return {
|
|
1084
1082
|
...(input.MessageGroupId != null && { MessageGroupId: input.MessageGroupId }),
|
|
1085
1083
|
};
|
|
1086
1084
|
};
|
|
1087
|
-
const
|
|
1085
|
+
const se_Subnets = (input, context) => {
|
|
1088
1086
|
return input
|
|
1089
1087
|
.filter((e) => e != null)
|
|
1090
1088
|
.map((entry) => {
|
|
1091
1089
|
return entry;
|
|
1092
1090
|
});
|
|
1093
1091
|
};
|
|
1094
|
-
const
|
|
1092
|
+
const se_Tag = (input, context) => {
|
|
1095
1093
|
return {
|
|
1096
1094
|
...(input.Key != null && { Key: input.Key }),
|
|
1097
1095
|
...(input.Value != null && { Value: input.Value }),
|
|
1098
1096
|
};
|
|
1099
1097
|
};
|
|
1100
|
-
const
|
|
1098
|
+
const se_TagList = (input, context) => {
|
|
1101
1099
|
return input
|
|
1102
1100
|
.filter((e) => e != null)
|
|
1103
1101
|
.map((entry) => {
|
|
1104
|
-
return
|
|
1102
|
+
return se_Tag(entry, context);
|
|
1105
1103
|
});
|
|
1106
1104
|
};
|
|
1107
|
-
const
|
|
1105
|
+
const se_TagMap = (input, context) => {
|
|
1108
1106
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1109
1107
|
if (value === null) {
|
|
1110
1108
|
return acc;
|
|
@@ -1113,197 +1111,181 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1113
1111
|
return acc;
|
|
1114
1112
|
}, {});
|
|
1115
1113
|
};
|
|
1116
|
-
const
|
|
1114
|
+
const se_Tags = (input, context) => {
|
|
1117
1115
|
return input
|
|
1118
1116
|
.filter((e) => e != null)
|
|
1119
1117
|
.map((entry) => {
|
|
1120
|
-
return
|
|
1118
|
+
return se_TagMap(entry, context);
|
|
1121
1119
|
});
|
|
1122
1120
|
};
|
|
1123
|
-
const
|
|
1121
|
+
const se_Target = (input, context) => {
|
|
1124
1122
|
return {
|
|
1125
1123
|
...(input.Arn != null && { Arn: input.Arn }),
|
|
1126
|
-
...(input.DeadLetterConfig != null && {
|
|
1127
|
-
|
|
1128
|
-
}),
|
|
1129
|
-
...(input.EcsParameters != null && {
|
|
1130
|
-
EcsParameters: serializeAws_restJson1EcsParameters(input.EcsParameters, context),
|
|
1131
|
-
}),
|
|
1124
|
+
...(input.DeadLetterConfig != null && { DeadLetterConfig: se_DeadLetterConfig(input.DeadLetterConfig, context) }),
|
|
1125
|
+
...(input.EcsParameters != null && { EcsParameters: se_EcsParameters(input.EcsParameters, context) }),
|
|
1132
1126
|
...(input.EventBridgeParameters != null && {
|
|
1133
|
-
EventBridgeParameters:
|
|
1127
|
+
EventBridgeParameters: se_EventBridgeParameters(input.EventBridgeParameters, context),
|
|
1134
1128
|
}),
|
|
1135
1129
|
...(input.Input != null && { Input: input.Input }),
|
|
1136
1130
|
...(input.KinesisParameters != null && {
|
|
1137
|
-
KinesisParameters:
|
|
1131
|
+
KinesisParameters: se_KinesisParameters(input.KinesisParameters, context),
|
|
1138
1132
|
}),
|
|
1139
|
-
...(input.RetryPolicy != null && { RetryPolicy:
|
|
1133
|
+
...(input.RetryPolicy != null && { RetryPolicy: se_RetryPolicy(input.RetryPolicy, context) }),
|
|
1140
1134
|
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
1141
1135
|
...(input.SageMakerPipelineParameters != null && {
|
|
1142
|
-
SageMakerPipelineParameters:
|
|
1143
|
-
}),
|
|
1144
|
-
...(input.SqsParameters != null && {
|
|
1145
|
-
SqsParameters: serializeAws_restJson1SqsParameters(input.SqsParameters, context),
|
|
1136
|
+
SageMakerPipelineParameters: se_SageMakerPipelineParameters(input.SageMakerPipelineParameters, context),
|
|
1146
1137
|
}),
|
|
1138
|
+
...(input.SqsParameters != null && { SqsParameters: se_SqsParameters(input.SqsParameters, context) }),
|
|
1147
1139
|
};
|
|
1148
1140
|
};
|
|
1149
|
-
const
|
|
1141
|
+
const de_AwsVpcConfiguration = (output, context) => {
|
|
1150
1142
|
return {
|
|
1151
1143
|
AssignPublicIp: (0, smithy_client_1.expectString)(output.AssignPublicIp),
|
|
1152
|
-
SecurityGroups: output.SecurityGroups != null
|
|
1153
|
-
|
|
1154
|
-
: undefined,
|
|
1155
|
-
Subnets: output.Subnets != null ? deserializeAws_restJson1Subnets(output.Subnets, context) : undefined,
|
|
1144
|
+
SecurityGroups: output.SecurityGroups != null ? de_SecurityGroups(output.SecurityGroups, context) : undefined,
|
|
1145
|
+
Subnets: output.Subnets != null ? de_Subnets(output.Subnets, context) : undefined,
|
|
1156
1146
|
};
|
|
1157
1147
|
};
|
|
1158
|
-
const
|
|
1148
|
+
const de_CapacityProviderStrategy = (output, context) => {
|
|
1159
1149
|
const retVal = (output || [])
|
|
1160
1150
|
.filter((e) => e != null)
|
|
1161
1151
|
.map((entry) => {
|
|
1162
1152
|
if (entry === null) {
|
|
1163
1153
|
return null;
|
|
1164
1154
|
}
|
|
1165
|
-
return
|
|
1155
|
+
return de_CapacityProviderStrategyItem(entry, context);
|
|
1166
1156
|
});
|
|
1167
1157
|
return retVal;
|
|
1168
1158
|
};
|
|
1169
|
-
const
|
|
1159
|
+
const de_CapacityProviderStrategyItem = (output, context) => {
|
|
1170
1160
|
return {
|
|
1171
1161
|
base: (0, smithy_client_1.expectInt32)(output.base),
|
|
1172
1162
|
capacityProvider: (0, smithy_client_1.expectString)(output.capacityProvider),
|
|
1173
1163
|
weight: (0, smithy_client_1.expectInt32)(output.weight),
|
|
1174
1164
|
};
|
|
1175
1165
|
};
|
|
1176
|
-
const
|
|
1166
|
+
const de_DeadLetterConfig = (output, context) => {
|
|
1177
1167
|
return {
|
|
1178
1168
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1179
1169
|
};
|
|
1180
1170
|
};
|
|
1181
|
-
const
|
|
1171
|
+
const de_EcsParameters = (output, context) => {
|
|
1182
1172
|
return {
|
|
1183
1173
|
CapacityProviderStrategy: output.CapacityProviderStrategy != null
|
|
1184
|
-
?
|
|
1174
|
+
? de_CapacityProviderStrategy(output.CapacityProviderStrategy, context)
|
|
1185
1175
|
: undefined,
|
|
1186
1176
|
EnableECSManagedTags: (0, smithy_client_1.expectBoolean)(output.EnableECSManagedTags),
|
|
1187
1177
|
EnableExecuteCommand: (0, smithy_client_1.expectBoolean)(output.EnableExecuteCommand),
|
|
1188
1178
|
Group: (0, smithy_client_1.expectString)(output.Group),
|
|
1189
1179
|
LaunchType: (0, smithy_client_1.expectString)(output.LaunchType),
|
|
1190
|
-
NetworkConfiguration: output.NetworkConfiguration != null
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
PlacementConstraints: output.PlacementConstraints != null
|
|
1194
|
-
? deserializeAws_restJson1PlacementConstraints(output.PlacementConstraints, context)
|
|
1195
|
-
: undefined,
|
|
1196
|
-
PlacementStrategy: output.PlacementStrategy != null
|
|
1197
|
-
? deserializeAws_restJson1PlacementStrategies(output.PlacementStrategy, context)
|
|
1198
|
-
: undefined,
|
|
1180
|
+
NetworkConfiguration: output.NetworkConfiguration != null ? de_NetworkConfiguration(output.NetworkConfiguration, context) : undefined,
|
|
1181
|
+
PlacementConstraints: output.PlacementConstraints != null ? de_PlacementConstraints(output.PlacementConstraints, context) : undefined,
|
|
1182
|
+
PlacementStrategy: output.PlacementStrategy != null ? de_PlacementStrategies(output.PlacementStrategy, context) : undefined,
|
|
1199
1183
|
PlatformVersion: (0, smithy_client_1.expectString)(output.PlatformVersion),
|
|
1200
1184
|
PropagateTags: (0, smithy_client_1.expectString)(output.PropagateTags),
|
|
1201
1185
|
ReferenceId: (0, smithy_client_1.expectString)(output.ReferenceId),
|
|
1202
|
-
Tags: output.Tags != null ?
|
|
1186
|
+
Tags: output.Tags != null ? de_Tags(output.Tags, context) : undefined,
|
|
1203
1187
|
TaskCount: (0, smithy_client_1.expectInt32)(output.TaskCount),
|
|
1204
1188
|
TaskDefinitionArn: (0, smithy_client_1.expectString)(output.TaskDefinitionArn),
|
|
1205
1189
|
};
|
|
1206
1190
|
};
|
|
1207
|
-
const
|
|
1191
|
+
const de_EventBridgeParameters = (output, context) => {
|
|
1208
1192
|
return {
|
|
1209
1193
|
DetailType: (0, smithy_client_1.expectString)(output.DetailType),
|
|
1210
1194
|
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
1211
1195
|
};
|
|
1212
1196
|
};
|
|
1213
|
-
const
|
|
1197
|
+
const de_FlexibleTimeWindow = (output, context) => {
|
|
1214
1198
|
return {
|
|
1215
1199
|
MaximumWindowInMinutes: (0, smithy_client_1.expectInt32)(output.MaximumWindowInMinutes),
|
|
1216
1200
|
Mode: (0, smithy_client_1.expectString)(output.Mode),
|
|
1217
1201
|
};
|
|
1218
1202
|
};
|
|
1219
|
-
const
|
|
1203
|
+
const de_KinesisParameters = (output, context) => {
|
|
1220
1204
|
return {
|
|
1221
1205
|
PartitionKey: (0, smithy_client_1.expectString)(output.PartitionKey),
|
|
1222
1206
|
};
|
|
1223
1207
|
};
|
|
1224
|
-
const
|
|
1208
|
+
const de_NetworkConfiguration = (output, context) => {
|
|
1225
1209
|
return {
|
|
1226
|
-
awsvpcConfiguration: output.awsvpcConfiguration != null
|
|
1227
|
-
? deserializeAws_restJson1AwsVpcConfiguration(output.awsvpcConfiguration, context)
|
|
1228
|
-
: undefined,
|
|
1210
|
+
awsvpcConfiguration: output.awsvpcConfiguration != null ? de_AwsVpcConfiguration(output.awsvpcConfiguration, context) : undefined,
|
|
1229
1211
|
};
|
|
1230
1212
|
};
|
|
1231
|
-
const
|
|
1213
|
+
const de_PlacementConstraint = (output, context) => {
|
|
1232
1214
|
return {
|
|
1233
1215
|
expression: (0, smithy_client_1.expectString)(output.expression),
|
|
1234
1216
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1235
1217
|
};
|
|
1236
1218
|
};
|
|
1237
|
-
const
|
|
1219
|
+
const de_PlacementConstraints = (output, context) => {
|
|
1238
1220
|
const retVal = (output || [])
|
|
1239
1221
|
.filter((e) => e != null)
|
|
1240
1222
|
.map((entry) => {
|
|
1241
1223
|
if (entry === null) {
|
|
1242
1224
|
return null;
|
|
1243
1225
|
}
|
|
1244
|
-
return
|
|
1226
|
+
return de_PlacementConstraint(entry, context);
|
|
1245
1227
|
});
|
|
1246
1228
|
return retVal;
|
|
1247
1229
|
};
|
|
1248
|
-
const
|
|
1230
|
+
const de_PlacementStrategies = (output, context) => {
|
|
1249
1231
|
const retVal = (output || [])
|
|
1250
1232
|
.filter((e) => e != null)
|
|
1251
1233
|
.map((entry) => {
|
|
1252
1234
|
if (entry === null) {
|
|
1253
1235
|
return null;
|
|
1254
1236
|
}
|
|
1255
|
-
return
|
|
1237
|
+
return de_PlacementStrategy(entry, context);
|
|
1256
1238
|
});
|
|
1257
1239
|
return retVal;
|
|
1258
1240
|
};
|
|
1259
|
-
const
|
|
1241
|
+
const de_PlacementStrategy = (output, context) => {
|
|
1260
1242
|
return {
|
|
1261
1243
|
field: (0, smithy_client_1.expectString)(output.field),
|
|
1262
1244
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
1263
1245
|
};
|
|
1264
1246
|
};
|
|
1265
|
-
const
|
|
1247
|
+
const de_RetryPolicy = (output, context) => {
|
|
1266
1248
|
return {
|
|
1267
1249
|
MaximumEventAgeInSeconds: (0, smithy_client_1.expectInt32)(output.MaximumEventAgeInSeconds),
|
|
1268
1250
|
MaximumRetryAttempts: (0, smithy_client_1.expectInt32)(output.MaximumRetryAttempts),
|
|
1269
1251
|
};
|
|
1270
1252
|
};
|
|
1271
|
-
const
|
|
1253
|
+
const de_SageMakerPipelineParameter = (output, context) => {
|
|
1272
1254
|
return {
|
|
1273
1255
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1274
1256
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1275
1257
|
};
|
|
1276
1258
|
};
|
|
1277
|
-
const
|
|
1259
|
+
const de_SageMakerPipelineParameterList = (output, context) => {
|
|
1278
1260
|
const retVal = (output || [])
|
|
1279
1261
|
.filter((e) => e != null)
|
|
1280
1262
|
.map((entry) => {
|
|
1281
1263
|
if (entry === null) {
|
|
1282
1264
|
return null;
|
|
1283
1265
|
}
|
|
1284
|
-
return
|
|
1266
|
+
return de_SageMakerPipelineParameter(entry, context);
|
|
1285
1267
|
});
|
|
1286
1268
|
return retVal;
|
|
1287
1269
|
};
|
|
1288
|
-
const
|
|
1270
|
+
const de_SageMakerPipelineParameters = (output, context) => {
|
|
1289
1271
|
return {
|
|
1290
1272
|
PipelineParameterList: output.PipelineParameterList != null
|
|
1291
|
-
?
|
|
1273
|
+
? de_SageMakerPipelineParameterList(output.PipelineParameterList, context)
|
|
1292
1274
|
: undefined,
|
|
1293
1275
|
};
|
|
1294
1276
|
};
|
|
1295
|
-
const
|
|
1277
|
+
const de_ScheduleGroupList = (output, context) => {
|
|
1296
1278
|
const retVal = (output || [])
|
|
1297
1279
|
.filter((e) => e != null)
|
|
1298
1280
|
.map((entry) => {
|
|
1299
1281
|
if (entry === null) {
|
|
1300
1282
|
return null;
|
|
1301
1283
|
}
|
|
1302
|
-
return
|
|
1284
|
+
return de_ScheduleGroupSummary(entry, context);
|
|
1303
1285
|
});
|
|
1304
1286
|
return retVal;
|
|
1305
1287
|
};
|
|
1306
|
-
const
|
|
1288
|
+
const de_ScheduleGroupSummary = (output, context) => {
|
|
1307
1289
|
return {
|
|
1308
1290
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1309
1291
|
CreationDate: output.CreationDate != null
|
|
@@ -1316,18 +1298,18 @@ const deserializeAws_restJson1ScheduleGroupSummary = (output, context) => {
|
|
|
1316
1298
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1317
1299
|
};
|
|
1318
1300
|
};
|
|
1319
|
-
const
|
|
1301
|
+
const de_ScheduleList = (output, context) => {
|
|
1320
1302
|
const retVal = (output || [])
|
|
1321
1303
|
.filter((e) => e != null)
|
|
1322
1304
|
.map((entry) => {
|
|
1323
1305
|
if (entry === null) {
|
|
1324
1306
|
return null;
|
|
1325
1307
|
}
|
|
1326
|
-
return
|
|
1308
|
+
return de_ScheduleSummary(entry, context);
|
|
1327
1309
|
});
|
|
1328
1310
|
return retVal;
|
|
1329
1311
|
};
|
|
1330
|
-
const
|
|
1312
|
+
const de_ScheduleSummary = (output, context) => {
|
|
1331
1313
|
return {
|
|
1332
1314
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1333
1315
|
CreationDate: output.CreationDate != null
|
|
@@ -1339,10 +1321,10 @@ const deserializeAws_restJson1ScheduleSummary = (output, context) => {
|
|
|
1339
1321
|
: undefined,
|
|
1340
1322
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1341
1323
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
1342
|
-
Target: output.Target != null ?
|
|
1324
|
+
Target: output.Target != null ? de_TargetSummary(output.Target, context) : undefined,
|
|
1343
1325
|
};
|
|
1344
1326
|
};
|
|
1345
|
-
const
|
|
1327
|
+
const de_SecurityGroups = (output, context) => {
|
|
1346
1328
|
const retVal = (output || [])
|
|
1347
1329
|
.filter((e) => e != null)
|
|
1348
1330
|
.map((entry) => {
|
|
@@ -1353,12 +1335,12 @@ const deserializeAws_restJson1SecurityGroups = (output, context) => {
|
|
|
1353
1335
|
});
|
|
1354
1336
|
return retVal;
|
|
1355
1337
|
};
|
|
1356
|
-
const
|
|
1338
|
+
const de_SqsParameters = (output, context) => {
|
|
1357
1339
|
return {
|
|
1358
1340
|
MessageGroupId: (0, smithy_client_1.expectString)(output.MessageGroupId),
|
|
1359
1341
|
};
|
|
1360
1342
|
};
|
|
1361
|
-
const
|
|
1343
|
+
const de_Subnets = (output, context) => {
|
|
1362
1344
|
const retVal = (output || [])
|
|
1363
1345
|
.filter((e) => e != null)
|
|
1364
1346
|
.map((entry) => {
|
|
@@ -1369,24 +1351,24 @@ const deserializeAws_restJson1Subnets = (output, context) => {
|
|
|
1369
1351
|
});
|
|
1370
1352
|
return retVal;
|
|
1371
1353
|
};
|
|
1372
|
-
const
|
|
1354
|
+
const de_Tag = (output, context) => {
|
|
1373
1355
|
return {
|
|
1374
1356
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1375
1357
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1376
1358
|
};
|
|
1377
1359
|
};
|
|
1378
|
-
const
|
|
1360
|
+
const de_TagList = (output, context) => {
|
|
1379
1361
|
const retVal = (output || [])
|
|
1380
1362
|
.filter((e) => e != null)
|
|
1381
1363
|
.map((entry) => {
|
|
1382
1364
|
if (entry === null) {
|
|
1383
1365
|
return null;
|
|
1384
1366
|
}
|
|
1385
|
-
return
|
|
1367
|
+
return de_Tag(entry, context);
|
|
1386
1368
|
});
|
|
1387
1369
|
return retVal;
|
|
1388
1370
|
};
|
|
1389
|
-
const
|
|
1371
|
+
const de_TagMap = (output, context) => {
|
|
1390
1372
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1391
1373
|
if (value === null) {
|
|
1392
1374
|
return acc;
|
|
@@ -1395,40 +1377,36 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1395
1377
|
return acc;
|
|
1396
1378
|
}, {});
|
|
1397
1379
|
};
|
|
1398
|
-
const
|
|
1380
|
+
const de_Tags = (output, context) => {
|
|
1399
1381
|
const retVal = (output || [])
|
|
1400
1382
|
.filter((e) => e != null)
|
|
1401
1383
|
.map((entry) => {
|
|
1402
1384
|
if (entry === null) {
|
|
1403
1385
|
return null;
|
|
1404
1386
|
}
|
|
1405
|
-
return
|
|
1387
|
+
return de_TagMap(entry, context);
|
|
1406
1388
|
});
|
|
1407
1389
|
return retVal;
|
|
1408
1390
|
};
|
|
1409
|
-
const
|
|
1391
|
+
const de_Target = (output, context) => {
|
|
1410
1392
|
return {
|
|
1411
1393
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1412
|
-
DeadLetterConfig: output.DeadLetterConfig != null
|
|
1413
|
-
|
|
1414
|
-
: undefined,
|
|
1415
|
-
EcsParameters: output.EcsParameters != null ? deserializeAws_restJson1EcsParameters(output.EcsParameters, context) : undefined,
|
|
1394
|
+
DeadLetterConfig: output.DeadLetterConfig != null ? de_DeadLetterConfig(output.DeadLetterConfig, context) : undefined,
|
|
1395
|
+
EcsParameters: output.EcsParameters != null ? de_EcsParameters(output.EcsParameters, context) : undefined,
|
|
1416
1396
|
EventBridgeParameters: output.EventBridgeParameters != null
|
|
1417
|
-
?
|
|
1397
|
+
? de_EventBridgeParameters(output.EventBridgeParameters, context)
|
|
1418
1398
|
: undefined,
|
|
1419
1399
|
Input: (0, smithy_client_1.expectString)(output.Input),
|
|
1420
|
-
KinesisParameters: output.KinesisParameters != null
|
|
1421
|
-
|
|
1422
|
-
: undefined,
|
|
1423
|
-
RetryPolicy: output.RetryPolicy != null ? deserializeAws_restJson1RetryPolicy(output.RetryPolicy, context) : undefined,
|
|
1400
|
+
KinesisParameters: output.KinesisParameters != null ? de_KinesisParameters(output.KinesisParameters, context) : undefined,
|
|
1401
|
+
RetryPolicy: output.RetryPolicy != null ? de_RetryPolicy(output.RetryPolicy, context) : undefined,
|
|
1424
1402
|
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
1425
1403
|
SageMakerPipelineParameters: output.SageMakerPipelineParameters != null
|
|
1426
|
-
?
|
|
1404
|
+
? de_SageMakerPipelineParameters(output.SageMakerPipelineParameters, context)
|
|
1427
1405
|
: undefined,
|
|
1428
|
-
SqsParameters: output.SqsParameters != null ?
|
|
1406
|
+
SqsParameters: output.SqsParameters != null ? de_SqsParameters(output.SqsParameters, context) : undefined,
|
|
1429
1407
|
};
|
|
1430
1408
|
};
|
|
1431
|
-
const
|
|
1409
|
+
const de_TargetSummary = (output, context) => {
|
|
1432
1410
|
return {
|
|
1433
1411
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1434
1412
|
};
|