@aws-sdk/client-fis 3.303.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/CreateExperimentTemplateCommand.js +2 -2
- package/dist-cjs/commands/DeleteExperimentTemplateCommand.js +2 -2
- package/dist-cjs/commands/GetActionCommand.js +2 -2
- package/dist-cjs/commands/GetExperimentCommand.js +2 -2
- package/dist-cjs/commands/GetExperimentTemplateCommand.js +2 -2
- package/dist-cjs/commands/GetTargetResourceTypeCommand.js +2 -2
- package/dist-cjs/commands/ListActionsCommand.js +2 -2
- package/dist-cjs/commands/ListExperimentTemplatesCommand.js +2 -2
- package/dist-cjs/commands/ListExperimentsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTargetResourceTypesCommand.js +2 -2
- package/dist-cjs/commands/StartExperimentCommand.js +2 -2
- package/dist-cjs/commands/StopExperimentCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateExperimentTemplateCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +314 -370
- package/dist-es/commands/CreateExperimentTemplateCommand.js +3 -3
- package/dist-es/commands/DeleteExperimentTemplateCommand.js +3 -3
- package/dist-es/commands/GetActionCommand.js +3 -3
- package/dist-es/commands/GetExperimentCommand.js +3 -3
- package/dist-es/commands/GetExperimentTemplateCommand.js +3 -3
- package/dist-es/commands/GetTargetResourceTypeCommand.js +3 -3
- package/dist-es/commands/ListActionsCommand.js +3 -3
- package/dist-es/commands/ListExperimentTemplatesCommand.js +3 -3
- package/dist-es/commands/ListExperimentsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTargetResourceTypesCommand.js +3 -3
- package/dist-es/commands/StartExperimentCommand.js +3 -3
- package/dist-es/commands/StopExperimentCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateExperimentTemplateCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +281 -337
- package/dist-types/protocols/Aws_restJson1.d.ts +128 -32
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +32 -32
- package/package.json +29 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateExperimentTemplateCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopExperimentCommand = exports.de_StartExperimentCommand = exports.de_ListTargetResourceTypesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListExperimentTemplatesCommand = exports.de_ListExperimentsCommand = exports.de_ListActionsCommand = exports.de_GetTargetResourceTypeCommand = exports.de_GetExperimentTemplateCommand = exports.de_GetExperimentCommand = exports.de_GetActionCommand = exports.de_DeleteExperimentTemplateCommand = exports.de_CreateExperimentTemplateCommand = exports.se_UpdateExperimentTemplateCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopExperimentCommand = exports.se_StartExperimentCommand = exports.se_ListTargetResourceTypesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListExperimentTemplatesCommand = exports.se_ListExperimentsCommand = exports.se_ListActionsCommand = exports.se_GetTargetResourceTypeCommand = exports.se_GetExperimentTemplateCommand = exports.se_GetExperimentCommand = exports.se_GetActionCommand = exports.se_DeleteExperimentTemplateCommand = exports.se_CreateExperimentTemplateCommand = 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 FisServiceException_1 = require("../models/FisServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateExperimentTemplateCommand = 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",
|
|
@@ -14,22 +14,18 @@ const serializeAws_restJson1CreateExperimentTemplateCommand = async (input, cont
|
|
|
14
14
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates";
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.actions != null && {
|
|
18
|
-
actions: serializeAws_restJson1CreateExperimentTemplateActionInputMap(input.actions, context),
|
|
19
|
-
}),
|
|
17
|
+
...(input.actions != null && { actions: se_CreateExperimentTemplateActionInputMap(input.actions, context) }),
|
|
20
18
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
21
19
|
...(input.description != null && { description: input.description }),
|
|
22
20
|
...(input.logConfiguration != null && {
|
|
23
|
-
logConfiguration:
|
|
21
|
+
logConfiguration: se_CreateExperimentTemplateLogConfigurationInput(input.logConfiguration, context),
|
|
24
22
|
}),
|
|
25
23
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
26
24
|
...(input.stopConditions != null && {
|
|
27
|
-
stopConditions:
|
|
28
|
-
}),
|
|
29
|
-
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
30
|
-
...(input.targets != null && {
|
|
31
|
-
targets: serializeAws_restJson1CreateExperimentTemplateTargetInputMap(input.targets, context),
|
|
25
|
+
stopConditions: se_CreateExperimentTemplateStopConditionInputList(input.stopConditions, context),
|
|
32
26
|
}),
|
|
27
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
28
|
+
...(input.targets != null && { targets: se_CreateExperimentTemplateTargetInputMap(input.targets, context) }),
|
|
33
29
|
});
|
|
34
30
|
return new protocol_http_1.HttpRequest({
|
|
35
31
|
protocol,
|
|
@@ -41,8 +37,8 @@ const serializeAws_restJson1CreateExperimentTemplateCommand = async (input, cont
|
|
|
41
37
|
body,
|
|
42
38
|
});
|
|
43
39
|
};
|
|
44
|
-
exports.
|
|
45
|
-
const
|
|
40
|
+
exports.se_CreateExperimentTemplateCommand = se_CreateExperimentTemplateCommand;
|
|
41
|
+
const se_DeleteExperimentTemplateCommand = async (input, context) => {
|
|
46
42
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
47
43
|
const headers = {};
|
|
48
44
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates/{id}";
|
|
@@ -58,8 +54,8 @@ const serializeAws_restJson1DeleteExperimentTemplateCommand = async (input, cont
|
|
|
58
54
|
body,
|
|
59
55
|
});
|
|
60
56
|
};
|
|
61
|
-
exports.
|
|
62
|
-
const
|
|
57
|
+
exports.se_DeleteExperimentTemplateCommand = se_DeleteExperimentTemplateCommand;
|
|
58
|
+
const se_GetActionCommand = async (input, context) => {
|
|
63
59
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
64
60
|
const headers = {};
|
|
65
61
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions/{id}";
|
|
@@ -75,8 +71,8 @@ const serializeAws_restJson1GetActionCommand = async (input, context) => {
|
|
|
75
71
|
body,
|
|
76
72
|
});
|
|
77
73
|
};
|
|
78
|
-
exports.
|
|
79
|
-
const
|
|
74
|
+
exports.se_GetActionCommand = se_GetActionCommand;
|
|
75
|
+
const se_GetExperimentCommand = async (input, context) => {
|
|
80
76
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
81
77
|
const headers = {};
|
|
82
78
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments/{id}";
|
|
@@ -92,8 +88,8 @@ const serializeAws_restJson1GetExperimentCommand = async (input, context) => {
|
|
|
92
88
|
body,
|
|
93
89
|
});
|
|
94
90
|
};
|
|
95
|
-
exports.
|
|
96
|
-
const
|
|
91
|
+
exports.se_GetExperimentCommand = se_GetExperimentCommand;
|
|
92
|
+
const se_GetExperimentTemplateCommand = async (input, context) => {
|
|
97
93
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
98
94
|
const headers = {};
|
|
99
95
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates/{id}";
|
|
@@ -109,8 +105,8 @@ const serializeAws_restJson1GetExperimentTemplateCommand = async (input, context
|
|
|
109
105
|
body,
|
|
110
106
|
});
|
|
111
107
|
};
|
|
112
|
-
exports.
|
|
113
|
-
const
|
|
108
|
+
exports.se_GetExperimentTemplateCommand = se_GetExperimentTemplateCommand;
|
|
109
|
+
const se_GetTargetResourceTypeCommand = async (input, context) => {
|
|
114
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
115
111
|
const headers = {};
|
|
116
112
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetResourceTypes/{resourceType}";
|
|
@@ -126,8 +122,8 @@ const serializeAws_restJson1GetTargetResourceTypeCommand = async (input, context
|
|
|
126
122
|
body,
|
|
127
123
|
});
|
|
128
124
|
};
|
|
129
|
-
exports.
|
|
130
|
-
const
|
|
125
|
+
exports.se_GetTargetResourceTypeCommand = se_GetTargetResourceTypeCommand;
|
|
126
|
+
const se_ListActionsCommand = async (input, context) => {
|
|
131
127
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
132
128
|
const headers = {};
|
|
133
129
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
|
|
@@ -147,8 +143,8 @@ const serializeAws_restJson1ListActionsCommand = async (input, context) => {
|
|
|
147
143
|
body,
|
|
148
144
|
});
|
|
149
145
|
};
|
|
150
|
-
exports.
|
|
151
|
-
const
|
|
146
|
+
exports.se_ListActionsCommand = se_ListActionsCommand;
|
|
147
|
+
const se_ListExperimentsCommand = async (input, context) => {
|
|
152
148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
153
149
|
const headers = {};
|
|
154
150
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments";
|
|
@@ -168,8 +164,8 @@ const serializeAws_restJson1ListExperimentsCommand = async (input, context) => {
|
|
|
168
164
|
body,
|
|
169
165
|
});
|
|
170
166
|
};
|
|
171
|
-
exports.
|
|
172
|
-
const
|
|
167
|
+
exports.se_ListExperimentsCommand = se_ListExperimentsCommand;
|
|
168
|
+
const se_ListExperimentTemplatesCommand = async (input, context) => {
|
|
173
169
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
174
170
|
const headers = {};
|
|
175
171
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates";
|
|
@@ -189,8 +185,8 @@ const serializeAws_restJson1ListExperimentTemplatesCommand = async (input, conte
|
|
|
189
185
|
body,
|
|
190
186
|
});
|
|
191
187
|
};
|
|
192
|
-
exports.
|
|
193
|
-
const
|
|
188
|
+
exports.se_ListExperimentTemplatesCommand = se_ListExperimentTemplatesCommand;
|
|
189
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
194
190
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
195
191
|
const headers = {};
|
|
196
192
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -206,8 +202,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
206
202
|
body,
|
|
207
203
|
});
|
|
208
204
|
};
|
|
209
|
-
exports.
|
|
210
|
-
const
|
|
205
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
206
|
+
const se_ListTargetResourceTypesCommand = async (input, context) => {
|
|
211
207
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
212
208
|
const headers = {};
|
|
213
209
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/targetResourceTypes";
|
|
@@ -227,8 +223,8 @@ const serializeAws_restJson1ListTargetResourceTypesCommand = async (input, conte
|
|
|
227
223
|
body,
|
|
228
224
|
});
|
|
229
225
|
};
|
|
230
|
-
exports.
|
|
231
|
-
const
|
|
226
|
+
exports.se_ListTargetResourceTypesCommand = se_ListTargetResourceTypesCommand;
|
|
227
|
+
const se_StartExperimentCommand = async (input, context) => {
|
|
232
228
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
233
229
|
const headers = {
|
|
234
230
|
"content-type": "application/json",
|
|
@@ -238,7 +234,7 @@ const serializeAws_restJson1StartExperimentCommand = async (input, context) => {
|
|
|
238
234
|
body = JSON.stringify({
|
|
239
235
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
240
236
|
...(input.experimentTemplateId != null && { experimentTemplateId: input.experimentTemplateId }),
|
|
241
|
-
...(input.tags != null && { tags:
|
|
237
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
242
238
|
});
|
|
243
239
|
return new protocol_http_1.HttpRequest({
|
|
244
240
|
protocol,
|
|
@@ -250,8 +246,8 @@ const serializeAws_restJson1StartExperimentCommand = async (input, context) => {
|
|
|
250
246
|
body,
|
|
251
247
|
});
|
|
252
248
|
};
|
|
253
|
-
exports.
|
|
254
|
-
const
|
|
249
|
+
exports.se_StartExperimentCommand = se_StartExperimentCommand;
|
|
250
|
+
const se_StopExperimentCommand = async (input, context) => {
|
|
255
251
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
256
252
|
const headers = {};
|
|
257
253
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/experiments/{id}";
|
|
@@ -267,8 +263,8 @@ const serializeAws_restJson1StopExperimentCommand = async (input, context) => {
|
|
|
267
263
|
body,
|
|
268
264
|
});
|
|
269
265
|
};
|
|
270
|
-
exports.
|
|
271
|
-
const
|
|
266
|
+
exports.se_StopExperimentCommand = se_StopExperimentCommand;
|
|
267
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
272
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
273
269
|
const headers = {
|
|
274
270
|
"content-type": "application/json",
|
|
@@ -277,7 +273,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
277
273
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
278
274
|
let body;
|
|
279
275
|
body = JSON.stringify({
|
|
280
|
-
...(input.tags != null && { tags:
|
|
276
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
281
277
|
});
|
|
282
278
|
return new protocol_http_1.HttpRequest({
|
|
283
279
|
protocol,
|
|
@@ -289,8 +285,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
289
285
|
body,
|
|
290
286
|
});
|
|
291
287
|
};
|
|
292
|
-
exports.
|
|
293
|
-
const
|
|
288
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
289
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
294
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
295
291
|
const headers = {};
|
|
296
292
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -310,8 +306,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
310
306
|
body,
|
|
311
307
|
});
|
|
312
308
|
};
|
|
313
|
-
exports.
|
|
314
|
-
const
|
|
309
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
310
|
+
const se_UpdateExperimentTemplateCommand = async (input, context) => {
|
|
315
311
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
316
312
|
const headers = {
|
|
317
313
|
"content-type": "application/json",
|
|
@@ -320,20 +316,16 @@ const serializeAws_restJson1UpdateExperimentTemplateCommand = async (input, cont
|
|
|
320
316
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
321
317
|
let body;
|
|
322
318
|
body = JSON.stringify({
|
|
323
|
-
...(input.actions != null && {
|
|
324
|
-
actions: serializeAws_restJson1UpdateExperimentTemplateActionInputMap(input.actions, context),
|
|
325
|
-
}),
|
|
319
|
+
...(input.actions != null && { actions: se_UpdateExperimentTemplateActionInputMap(input.actions, context) }),
|
|
326
320
|
...(input.description != null && { description: input.description }),
|
|
327
321
|
...(input.logConfiguration != null && {
|
|
328
|
-
logConfiguration:
|
|
322
|
+
logConfiguration: se_UpdateExperimentTemplateLogConfigurationInput(input.logConfiguration, context),
|
|
329
323
|
}),
|
|
330
324
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
331
325
|
...(input.stopConditions != null && {
|
|
332
|
-
stopConditions:
|
|
333
|
-
}),
|
|
334
|
-
...(input.targets != null && {
|
|
335
|
-
targets: serializeAws_restJson1UpdateExperimentTemplateTargetInputMap(input.targets, context),
|
|
326
|
+
stopConditions: se_UpdateExperimentTemplateStopConditionInputList(input.stopConditions, context),
|
|
336
327
|
}),
|
|
328
|
+
...(input.targets != null && { targets: se_UpdateExperimentTemplateTargetInputMap(input.targets, context) }),
|
|
337
329
|
});
|
|
338
330
|
return new protocol_http_1.HttpRequest({
|
|
339
331
|
protocol,
|
|
@@ -345,22 +337,22 @@ const serializeAws_restJson1UpdateExperimentTemplateCommand = async (input, cont
|
|
|
345
337
|
body,
|
|
346
338
|
});
|
|
347
339
|
};
|
|
348
|
-
exports.
|
|
349
|
-
const
|
|
340
|
+
exports.se_UpdateExperimentTemplateCommand = se_UpdateExperimentTemplateCommand;
|
|
341
|
+
const de_CreateExperimentTemplateCommand = async (output, context) => {
|
|
350
342
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
351
|
-
return
|
|
343
|
+
return de_CreateExperimentTemplateCommandError(output, context);
|
|
352
344
|
}
|
|
353
345
|
const contents = map({
|
|
354
346
|
$metadata: deserializeMetadata(output),
|
|
355
347
|
});
|
|
356
348
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
357
349
|
if (data.experimentTemplate != null) {
|
|
358
|
-
contents.experimentTemplate =
|
|
350
|
+
contents.experimentTemplate = de_ExperimentTemplate(data.experimentTemplate, context);
|
|
359
351
|
}
|
|
360
352
|
return contents;
|
|
361
353
|
};
|
|
362
|
-
exports.
|
|
363
|
-
const
|
|
354
|
+
exports.de_CreateExperimentTemplateCommand = de_CreateExperimentTemplateCommand;
|
|
355
|
+
const de_CreateExperimentTemplateCommandError = async (output, context) => {
|
|
364
356
|
const parsedOutput = {
|
|
365
357
|
...output,
|
|
366
358
|
body: await parseErrorBody(output.body, context),
|
|
@@ -369,16 +361,16 @@ const deserializeAws_restJson1CreateExperimentTemplateCommandError = async (outp
|
|
|
369
361
|
switch (errorCode) {
|
|
370
362
|
case "ConflictException":
|
|
371
363
|
case "com.amazonaws.fis#ConflictException":
|
|
372
|
-
throw await
|
|
364
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
373
365
|
case "ResourceNotFoundException":
|
|
374
366
|
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
375
|
-
throw await
|
|
367
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
376
368
|
case "ServiceQuotaExceededException":
|
|
377
369
|
case "com.amazonaws.fis#ServiceQuotaExceededException":
|
|
378
|
-
throw await
|
|
370
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
379
371
|
case "ValidationException":
|
|
380
372
|
case "com.amazonaws.fis#ValidationException":
|
|
381
|
-
throw await
|
|
373
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
382
374
|
default:
|
|
383
375
|
const parsedBody = parsedOutput.body;
|
|
384
376
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -389,21 +381,21 @@ const deserializeAws_restJson1CreateExperimentTemplateCommandError = async (outp
|
|
|
389
381
|
});
|
|
390
382
|
}
|
|
391
383
|
};
|
|
392
|
-
const
|
|
384
|
+
const de_DeleteExperimentTemplateCommand = async (output, context) => {
|
|
393
385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
394
|
-
return
|
|
386
|
+
return de_DeleteExperimentTemplateCommandError(output, context);
|
|
395
387
|
}
|
|
396
388
|
const contents = map({
|
|
397
389
|
$metadata: deserializeMetadata(output),
|
|
398
390
|
});
|
|
399
391
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
400
392
|
if (data.experimentTemplate != null) {
|
|
401
|
-
contents.experimentTemplate =
|
|
393
|
+
contents.experimentTemplate = de_ExperimentTemplate(data.experimentTemplate, context);
|
|
402
394
|
}
|
|
403
395
|
return contents;
|
|
404
396
|
};
|
|
405
|
-
exports.
|
|
406
|
-
const
|
|
397
|
+
exports.de_DeleteExperimentTemplateCommand = de_DeleteExperimentTemplateCommand;
|
|
398
|
+
const de_DeleteExperimentTemplateCommandError = async (output, context) => {
|
|
407
399
|
const parsedOutput = {
|
|
408
400
|
...output,
|
|
409
401
|
body: await parseErrorBody(output.body, context),
|
|
@@ -412,10 +404,10 @@ const deserializeAws_restJson1DeleteExperimentTemplateCommandError = async (outp
|
|
|
412
404
|
switch (errorCode) {
|
|
413
405
|
case "ResourceNotFoundException":
|
|
414
406
|
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
415
|
-
throw await
|
|
407
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
416
408
|
case "ValidationException":
|
|
417
409
|
case "com.amazonaws.fis#ValidationException":
|
|
418
|
-
throw await
|
|
410
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
419
411
|
default:
|
|
420
412
|
const parsedBody = parsedOutput.body;
|
|
421
413
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -426,21 +418,21 @@ const deserializeAws_restJson1DeleteExperimentTemplateCommandError = async (outp
|
|
|
426
418
|
});
|
|
427
419
|
}
|
|
428
420
|
};
|
|
429
|
-
const
|
|
421
|
+
const de_GetActionCommand = async (output, context) => {
|
|
430
422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
431
|
-
return
|
|
423
|
+
return de_GetActionCommandError(output, context);
|
|
432
424
|
}
|
|
433
425
|
const contents = map({
|
|
434
426
|
$metadata: deserializeMetadata(output),
|
|
435
427
|
});
|
|
436
428
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
437
429
|
if (data.action != null) {
|
|
438
|
-
contents.action =
|
|
430
|
+
contents.action = de_Action(data.action, context);
|
|
439
431
|
}
|
|
440
432
|
return contents;
|
|
441
433
|
};
|
|
442
|
-
exports.
|
|
443
|
-
const
|
|
434
|
+
exports.de_GetActionCommand = de_GetActionCommand;
|
|
435
|
+
const de_GetActionCommandError = async (output, context) => {
|
|
444
436
|
const parsedOutput = {
|
|
445
437
|
...output,
|
|
446
438
|
body: await parseErrorBody(output.body, context),
|
|
@@ -449,10 +441,10 @@ const deserializeAws_restJson1GetActionCommandError = async (output, context) =>
|
|
|
449
441
|
switch (errorCode) {
|
|
450
442
|
case "ResourceNotFoundException":
|
|
451
443
|
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
452
|
-
throw await
|
|
444
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
453
445
|
case "ValidationException":
|
|
454
446
|
case "com.amazonaws.fis#ValidationException":
|
|
455
|
-
throw await
|
|
447
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
456
448
|
default:
|
|
457
449
|
const parsedBody = parsedOutput.body;
|
|
458
450
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -463,21 +455,21 @@ const deserializeAws_restJson1GetActionCommandError = async (output, context) =>
|
|
|
463
455
|
});
|
|
464
456
|
}
|
|
465
457
|
};
|
|
466
|
-
const
|
|
458
|
+
const de_GetExperimentCommand = async (output, context) => {
|
|
467
459
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
468
|
-
return
|
|
460
|
+
return de_GetExperimentCommandError(output, context);
|
|
469
461
|
}
|
|
470
462
|
const contents = map({
|
|
471
463
|
$metadata: deserializeMetadata(output),
|
|
472
464
|
});
|
|
473
465
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
474
466
|
if (data.experiment != null) {
|
|
475
|
-
contents.experiment =
|
|
467
|
+
contents.experiment = de_Experiment(data.experiment, context);
|
|
476
468
|
}
|
|
477
469
|
return contents;
|
|
478
470
|
};
|
|
479
|
-
exports.
|
|
480
|
-
const
|
|
471
|
+
exports.de_GetExperimentCommand = de_GetExperimentCommand;
|
|
472
|
+
const de_GetExperimentCommandError = async (output, context) => {
|
|
481
473
|
const parsedOutput = {
|
|
482
474
|
...output,
|
|
483
475
|
body: await parseErrorBody(output.body, context),
|
|
@@ -486,10 +478,10 @@ const deserializeAws_restJson1GetExperimentCommandError = async (output, context
|
|
|
486
478
|
switch (errorCode) {
|
|
487
479
|
case "ResourceNotFoundException":
|
|
488
480
|
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
489
|
-
throw await
|
|
481
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
490
482
|
case "ValidationException":
|
|
491
483
|
case "com.amazonaws.fis#ValidationException":
|
|
492
|
-
throw await
|
|
484
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
493
485
|
default:
|
|
494
486
|
const parsedBody = parsedOutput.body;
|
|
495
487
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -500,21 +492,21 @@ const deserializeAws_restJson1GetExperimentCommandError = async (output, context
|
|
|
500
492
|
});
|
|
501
493
|
}
|
|
502
494
|
};
|
|
503
|
-
const
|
|
495
|
+
const de_GetExperimentTemplateCommand = async (output, context) => {
|
|
504
496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
505
|
-
return
|
|
497
|
+
return de_GetExperimentTemplateCommandError(output, context);
|
|
506
498
|
}
|
|
507
499
|
const contents = map({
|
|
508
500
|
$metadata: deserializeMetadata(output),
|
|
509
501
|
});
|
|
510
502
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
511
503
|
if (data.experimentTemplate != null) {
|
|
512
|
-
contents.experimentTemplate =
|
|
504
|
+
contents.experimentTemplate = de_ExperimentTemplate(data.experimentTemplate, context);
|
|
513
505
|
}
|
|
514
506
|
return contents;
|
|
515
507
|
};
|
|
516
|
-
exports.
|
|
517
|
-
const
|
|
508
|
+
exports.de_GetExperimentTemplateCommand = de_GetExperimentTemplateCommand;
|
|
509
|
+
const de_GetExperimentTemplateCommandError = async (output, context) => {
|
|
518
510
|
const parsedOutput = {
|
|
519
511
|
...output,
|
|
520
512
|
body: await parseErrorBody(output.body, context),
|
|
@@ -523,10 +515,10 @@ const deserializeAws_restJson1GetExperimentTemplateCommandError = async (output,
|
|
|
523
515
|
switch (errorCode) {
|
|
524
516
|
case "ResourceNotFoundException":
|
|
525
517
|
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
526
|
-
throw await
|
|
518
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
527
519
|
case "ValidationException":
|
|
528
520
|
case "com.amazonaws.fis#ValidationException":
|
|
529
|
-
throw await
|
|
521
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
530
522
|
default:
|
|
531
523
|
const parsedBody = parsedOutput.body;
|
|
532
524
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -537,21 +529,21 @@ const deserializeAws_restJson1GetExperimentTemplateCommandError = async (output,
|
|
|
537
529
|
});
|
|
538
530
|
}
|
|
539
531
|
};
|
|
540
|
-
const
|
|
532
|
+
const de_GetTargetResourceTypeCommand = async (output, context) => {
|
|
541
533
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
-
return
|
|
534
|
+
return de_GetTargetResourceTypeCommandError(output, context);
|
|
543
535
|
}
|
|
544
536
|
const contents = map({
|
|
545
537
|
$metadata: deserializeMetadata(output),
|
|
546
538
|
});
|
|
547
539
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
548
540
|
if (data.targetResourceType != null) {
|
|
549
|
-
contents.targetResourceType =
|
|
541
|
+
contents.targetResourceType = de_TargetResourceType(data.targetResourceType, context);
|
|
550
542
|
}
|
|
551
543
|
return contents;
|
|
552
544
|
};
|
|
553
|
-
exports.
|
|
554
|
-
const
|
|
545
|
+
exports.de_GetTargetResourceTypeCommand = de_GetTargetResourceTypeCommand;
|
|
546
|
+
const de_GetTargetResourceTypeCommandError = async (output, context) => {
|
|
555
547
|
const parsedOutput = {
|
|
556
548
|
...output,
|
|
557
549
|
body: await parseErrorBody(output.body, context),
|
|
@@ -560,10 +552,10 @@ const deserializeAws_restJson1GetTargetResourceTypeCommandError = async (output,
|
|
|
560
552
|
switch (errorCode) {
|
|
561
553
|
case "ResourceNotFoundException":
|
|
562
554
|
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
563
|
-
throw await
|
|
555
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
564
556
|
case "ValidationException":
|
|
565
557
|
case "com.amazonaws.fis#ValidationException":
|
|
566
|
-
throw await
|
|
558
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
567
559
|
default:
|
|
568
560
|
const parsedBody = parsedOutput.body;
|
|
569
561
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -574,24 +566,24 @@ const deserializeAws_restJson1GetTargetResourceTypeCommandError = async (output,
|
|
|
574
566
|
});
|
|
575
567
|
}
|
|
576
568
|
};
|
|
577
|
-
const
|
|
569
|
+
const de_ListActionsCommand = async (output, context) => {
|
|
578
570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
579
|
-
return
|
|
571
|
+
return de_ListActionsCommandError(output, context);
|
|
580
572
|
}
|
|
581
573
|
const contents = map({
|
|
582
574
|
$metadata: deserializeMetadata(output),
|
|
583
575
|
});
|
|
584
576
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
585
577
|
if (data.actions != null) {
|
|
586
|
-
contents.actions =
|
|
578
|
+
contents.actions = de_ActionSummaryList(data.actions, context);
|
|
587
579
|
}
|
|
588
580
|
if (data.nextToken != null) {
|
|
589
581
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
590
582
|
}
|
|
591
583
|
return contents;
|
|
592
584
|
};
|
|
593
|
-
exports.
|
|
594
|
-
const
|
|
585
|
+
exports.de_ListActionsCommand = de_ListActionsCommand;
|
|
586
|
+
const de_ListActionsCommandError = async (output, context) => {
|
|
595
587
|
const parsedOutput = {
|
|
596
588
|
...output,
|
|
597
589
|
body: await parseErrorBody(output.body, context),
|
|
@@ -600,7 +592,7 @@ const deserializeAws_restJson1ListActionsCommandError = async (output, context)
|
|
|
600
592
|
switch (errorCode) {
|
|
601
593
|
case "ValidationException":
|
|
602
594
|
case "com.amazonaws.fis#ValidationException":
|
|
603
|
-
throw await
|
|
595
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
604
596
|
default:
|
|
605
597
|
const parsedBody = parsedOutput.body;
|
|
606
598
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -611,24 +603,24 @@ const deserializeAws_restJson1ListActionsCommandError = async (output, context)
|
|
|
611
603
|
});
|
|
612
604
|
}
|
|
613
605
|
};
|
|
614
|
-
const
|
|
606
|
+
const de_ListExperimentsCommand = async (output, context) => {
|
|
615
607
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
616
|
-
return
|
|
608
|
+
return de_ListExperimentsCommandError(output, context);
|
|
617
609
|
}
|
|
618
610
|
const contents = map({
|
|
619
611
|
$metadata: deserializeMetadata(output),
|
|
620
612
|
});
|
|
621
613
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
622
614
|
if (data.experiments != null) {
|
|
623
|
-
contents.experiments =
|
|
615
|
+
contents.experiments = de_ExperimentSummaryList(data.experiments, context);
|
|
624
616
|
}
|
|
625
617
|
if (data.nextToken != null) {
|
|
626
618
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
627
619
|
}
|
|
628
620
|
return contents;
|
|
629
621
|
};
|
|
630
|
-
exports.
|
|
631
|
-
const
|
|
622
|
+
exports.de_ListExperimentsCommand = de_ListExperimentsCommand;
|
|
623
|
+
const de_ListExperimentsCommandError = async (output, context) => {
|
|
632
624
|
const parsedOutput = {
|
|
633
625
|
...output,
|
|
634
626
|
body: await parseErrorBody(output.body, context),
|
|
@@ -637,7 +629,7 @@ const deserializeAws_restJson1ListExperimentsCommandError = async (output, conte
|
|
|
637
629
|
switch (errorCode) {
|
|
638
630
|
case "ValidationException":
|
|
639
631
|
case "com.amazonaws.fis#ValidationException":
|
|
640
|
-
throw await
|
|
632
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
641
633
|
default:
|
|
642
634
|
const parsedBody = parsedOutput.body;
|
|
643
635
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -648,24 +640,24 @@ const deserializeAws_restJson1ListExperimentsCommandError = async (output, conte
|
|
|
648
640
|
});
|
|
649
641
|
}
|
|
650
642
|
};
|
|
651
|
-
const
|
|
643
|
+
const de_ListExperimentTemplatesCommand = async (output, context) => {
|
|
652
644
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
653
|
-
return
|
|
645
|
+
return de_ListExperimentTemplatesCommandError(output, context);
|
|
654
646
|
}
|
|
655
647
|
const contents = map({
|
|
656
648
|
$metadata: deserializeMetadata(output),
|
|
657
649
|
});
|
|
658
650
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
659
651
|
if (data.experimentTemplates != null) {
|
|
660
|
-
contents.experimentTemplates =
|
|
652
|
+
contents.experimentTemplates = de_ExperimentTemplateSummaryList(data.experimentTemplates, context);
|
|
661
653
|
}
|
|
662
654
|
if (data.nextToken != null) {
|
|
663
655
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
664
656
|
}
|
|
665
657
|
return contents;
|
|
666
658
|
};
|
|
667
|
-
exports.
|
|
668
|
-
const
|
|
659
|
+
exports.de_ListExperimentTemplatesCommand = de_ListExperimentTemplatesCommand;
|
|
660
|
+
const de_ListExperimentTemplatesCommandError = async (output, context) => {
|
|
669
661
|
const parsedOutput = {
|
|
670
662
|
...output,
|
|
671
663
|
body: await parseErrorBody(output.body, context),
|
|
@@ -674,7 +666,7 @@ const deserializeAws_restJson1ListExperimentTemplatesCommandError = async (outpu
|
|
|
674
666
|
switch (errorCode) {
|
|
675
667
|
case "ValidationException":
|
|
676
668
|
case "com.amazonaws.fis#ValidationException":
|
|
677
|
-
throw await
|
|
669
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
678
670
|
default:
|
|
679
671
|
const parsedBody = parsedOutput.body;
|
|
680
672
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -685,21 +677,21 @@ const deserializeAws_restJson1ListExperimentTemplatesCommandError = async (outpu
|
|
|
685
677
|
});
|
|
686
678
|
}
|
|
687
679
|
};
|
|
688
|
-
const
|
|
680
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
689
681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
690
|
-
return
|
|
682
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
691
683
|
}
|
|
692
684
|
const contents = map({
|
|
693
685
|
$metadata: deserializeMetadata(output),
|
|
694
686
|
});
|
|
695
687
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
696
688
|
if (data.tags != null) {
|
|
697
|
-
contents.tags =
|
|
689
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
698
690
|
}
|
|
699
691
|
return contents;
|
|
700
692
|
};
|
|
701
|
-
exports.
|
|
702
|
-
const
|
|
693
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
694
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
703
695
|
const parsedOutput = {
|
|
704
696
|
...output,
|
|
705
697
|
body: await parseErrorBody(output.body, context),
|
|
@@ -713,9 +705,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
713
705
|
errorCode,
|
|
714
706
|
});
|
|
715
707
|
};
|
|
716
|
-
const
|
|
708
|
+
const de_ListTargetResourceTypesCommand = async (output, context) => {
|
|
717
709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
718
|
-
return
|
|
710
|
+
return de_ListTargetResourceTypesCommandError(output, context);
|
|
719
711
|
}
|
|
720
712
|
const contents = map({
|
|
721
713
|
$metadata: deserializeMetadata(output),
|
|
@@ -725,12 +717,12 @@ const deserializeAws_restJson1ListTargetResourceTypesCommand = async (output, co
|
|
|
725
717
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
726
718
|
}
|
|
727
719
|
if (data.targetResourceTypes != null) {
|
|
728
|
-
contents.targetResourceTypes =
|
|
720
|
+
contents.targetResourceTypes = de_TargetResourceTypeSummaryList(data.targetResourceTypes, context);
|
|
729
721
|
}
|
|
730
722
|
return contents;
|
|
731
723
|
};
|
|
732
|
-
exports.
|
|
733
|
-
const
|
|
724
|
+
exports.de_ListTargetResourceTypesCommand = de_ListTargetResourceTypesCommand;
|
|
725
|
+
const de_ListTargetResourceTypesCommandError = async (output, context) => {
|
|
734
726
|
const parsedOutput = {
|
|
735
727
|
...output,
|
|
736
728
|
body: await parseErrorBody(output.body, context),
|
|
@@ -739,7 +731,7 @@ const deserializeAws_restJson1ListTargetResourceTypesCommandError = async (outpu
|
|
|
739
731
|
switch (errorCode) {
|
|
740
732
|
case "ValidationException":
|
|
741
733
|
case "com.amazonaws.fis#ValidationException":
|
|
742
|
-
throw await
|
|
734
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
743
735
|
default:
|
|
744
736
|
const parsedBody = parsedOutput.body;
|
|
745
737
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -750,21 +742,21 @@ const deserializeAws_restJson1ListTargetResourceTypesCommandError = async (outpu
|
|
|
750
742
|
});
|
|
751
743
|
}
|
|
752
744
|
};
|
|
753
|
-
const
|
|
745
|
+
const de_StartExperimentCommand = async (output, context) => {
|
|
754
746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
747
|
+
return de_StartExperimentCommandError(output, context);
|
|
756
748
|
}
|
|
757
749
|
const contents = map({
|
|
758
750
|
$metadata: deserializeMetadata(output),
|
|
759
751
|
});
|
|
760
752
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
761
753
|
if (data.experiment != null) {
|
|
762
|
-
contents.experiment =
|
|
754
|
+
contents.experiment = de_Experiment(data.experiment, context);
|
|
763
755
|
}
|
|
764
756
|
return contents;
|
|
765
757
|
};
|
|
766
|
-
exports.
|
|
767
|
-
const
|
|
758
|
+
exports.de_StartExperimentCommand = de_StartExperimentCommand;
|
|
759
|
+
const de_StartExperimentCommandError = async (output, context) => {
|
|
768
760
|
const parsedOutput = {
|
|
769
761
|
...output,
|
|
770
762
|
body: await parseErrorBody(output.body, context),
|
|
@@ -773,16 +765,16 @@ const deserializeAws_restJson1StartExperimentCommandError = async (output, conte
|
|
|
773
765
|
switch (errorCode) {
|
|
774
766
|
case "ConflictException":
|
|
775
767
|
case "com.amazonaws.fis#ConflictException":
|
|
776
|
-
throw await
|
|
768
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
777
769
|
case "ResourceNotFoundException":
|
|
778
770
|
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
779
|
-
throw await
|
|
771
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
780
772
|
case "ServiceQuotaExceededException":
|
|
781
773
|
case "com.amazonaws.fis#ServiceQuotaExceededException":
|
|
782
|
-
throw await
|
|
774
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
783
775
|
case "ValidationException":
|
|
784
776
|
case "com.amazonaws.fis#ValidationException":
|
|
785
|
-
throw await
|
|
777
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
786
778
|
default:
|
|
787
779
|
const parsedBody = parsedOutput.body;
|
|
788
780
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -793,21 +785,21 @@ const deserializeAws_restJson1StartExperimentCommandError = async (output, conte
|
|
|
793
785
|
});
|
|
794
786
|
}
|
|
795
787
|
};
|
|
796
|
-
const
|
|
788
|
+
const de_StopExperimentCommand = async (output, context) => {
|
|
797
789
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
798
|
-
return
|
|
790
|
+
return de_StopExperimentCommandError(output, context);
|
|
799
791
|
}
|
|
800
792
|
const contents = map({
|
|
801
793
|
$metadata: deserializeMetadata(output),
|
|
802
794
|
});
|
|
803
795
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
804
796
|
if (data.experiment != null) {
|
|
805
|
-
contents.experiment =
|
|
797
|
+
contents.experiment = de_Experiment(data.experiment, context);
|
|
806
798
|
}
|
|
807
799
|
return contents;
|
|
808
800
|
};
|
|
809
|
-
exports.
|
|
810
|
-
const
|
|
801
|
+
exports.de_StopExperimentCommand = de_StopExperimentCommand;
|
|
802
|
+
const de_StopExperimentCommandError = async (output, context) => {
|
|
811
803
|
const parsedOutput = {
|
|
812
804
|
...output,
|
|
813
805
|
body: await parseErrorBody(output.body, context),
|
|
@@ -816,10 +808,10 @@ const deserializeAws_restJson1StopExperimentCommandError = async (output, contex
|
|
|
816
808
|
switch (errorCode) {
|
|
817
809
|
case "ResourceNotFoundException":
|
|
818
810
|
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
819
|
-
throw await
|
|
811
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
820
812
|
case "ValidationException":
|
|
821
813
|
case "com.amazonaws.fis#ValidationException":
|
|
822
|
-
throw await
|
|
814
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
823
815
|
default:
|
|
824
816
|
const parsedBody = parsedOutput.body;
|
|
825
817
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -830,9 +822,9 @@ const deserializeAws_restJson1StopExperimentCommandError = async (output, contex
|
|
|
830
822
|
});
|
|
831
823
|
}
|
|
832
824
|
};
|
|
833
|
-
const
|
|
825
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
834
826
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
835
|
-
return
|
|
827
|
+
return de_TagResourceCommandError(output, context);
|
|
836
828
|
}
|
|
837
829
|
const contents = map({
|
|
838
830
|
$metadata: deserializeMetadata(output),
|
|
@@ -840,8 +832,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
840
832
|
await collectBody(output.body, context);
|
|
841
833
|
return contents;
|
|
842
834
|
};
|
|
843
|
-
exports.
|
|
844
|
-
const
|
|
835
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
836
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
845
837
|
const parsedOutput = {
|
|
846
838
|
...output,
|
|
847
839
|
body: await parseErrorBody(output.body, context),
|
|
@@ -855,9 +847,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
855
847
|
errorCode,
|
|
856
848
|
});
|
|
857
849
|
};
|
|
858
|
-
const
|
|
850
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
859
851
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
|
-
return
|
|
852
|
+
return de_UntagResourceCommandError(output, context);
|
|
861
853
|
}
|
|
862
854
|
const contents = map({
|
|
863
855
|
$metadata: deserializeMetadata(output),
|
|
@@ -865,8 +857,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
865
857
|
await collectBody(output.body, context);
|
|
866
858
|
return contents;
|
|
867
859
|
};
|
|
868
|
-
exports.
|
|
869
|
-
const
|
|
860
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
861
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
870
862
|
const parsedOutput = {
|
|
871
863
|
...output,
|
|
872
864
|
body: await parseErrorBody(output.body, context),
|
|
@@ -880,21 +872,21 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
880
872
|
errorCode,
|
|
881
873
|
});
|
|
882
874
|
};
|
|
883
|
-
const
|
|
875
|
+
const de_UpdateExperimentTemplateCommand = async (output, context) => {
|
|
884
876
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
885
|
-
return
|
|
877
|
+
return de_UpdateExperimentTemplateCommandError(output, context);
|
|
886
878
|
}
|
|
887
879
|
const contents = map({
|
|
888
880
|
$metadata: deserializeMetadata(output),
|
|
889
881
|
});
|
|
890
882
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
891
883
|
if (data.experimentTemplate != null) {
|
|
892
|
-
contents.experimentTemplate =
|
|
884
|
+
contents.experimentTemplate = de_ExperimentTemplate(data.experimentTemplate, context);
|
|
893
885
|
}
|
|
894
886
|
return contents;
|
|
895
887
|
};
|
|
896
|
-
exports.
|
|
897
|
-
const
|
|
888
|
+
exports.de_UpdateExperimentTemplateCommand = de_UpdateExperimentTemplateCommand;
|
|
889
|
+
const de_UpdateExperimentTemplateCommandError = async (output, context) => {
|
|
898
890
|
const parsedOutput = {
|
|
899
891
|
...output,
|
|
900
892
|
body: await parseErrorBody(output.body, context),
|
|
@@ -903,13 +895,13 @@ const deserializeAws_restJson1UpdateExperimentTemplateCommandError = async (outp
|
|
|
903
895
|
switch (errorCode) {
|
|
904
896
|
case "ResourceNotFoundException":
|
|
905
897
|
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
906
|
-
throw await
|
|
898
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
907
899
|
case "ServiceQuotaExceededException":
|
|
908
900
|
case "com.amazonaws.fis#ServiceQuotaExceededException":
|
|
909
|
-
throw await
|
|
901
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
910
902
|
case "ValidationException":
|
|
911
903
|
case "com.amazonaws.fis#ValidationException":
|
|
912
|
-
throw await
|
|
904
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
913
905
|
default:
|
|
914
906
|
const parsedBody = parsedOutput.body;
|
|
915
907
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -921,7 +913,7 @@ const deserializeAws_restJson1UpdateExperimentTemplateCommandError = async (outp
|
|
|
921
913
|
}
|
|
922
914
|
};
|
|
923
915
|
const map = smithy_client_1.map;
|
|
924
|
-
const
|
|
916
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
925
917
|
const contents = map({});
|
|
926
918
|
const data = parsedOutput.body;
|
|
927
919
|
if (data.message != null) {
|
|
@@ -933,7 +925,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
933
925
|
});
|
|
934
926
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
935
927
|
};
|
|
936
|
-
const
|
|
928
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
937
929
|
const contents = map({});
|
|
938
930
|
const data = parsedOutput.body;
|
|
939
931
|
if (data.message != null) {
|
|
@@ -945,7 +937,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
945
937
|
});
|
|
946
938
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
947
939
|
};
|
|
948
|
-
const
|
|
940
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
949
941
|
const contents = map({});
|
|
950
942
|
const data = parsedOutput.body;
|
|
951
943
|
if (data.message != null) {
|
|
@@ -957,7 +949,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
957
949
|
});
|
|
958
950
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
959
951
|
};
|
|
960
|
-
const
|
|
952
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
961
953
|
const contents = map({});
|
|
962
954
|
const data = parsedOutput.body;
|
|
963
955
|
if (data.message != null) {
|
|
@@ -969,80 +961,70 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
969
961
|
});
|
|
970
962
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
971
963
|
};
|
|
972
|
-
const
|
|
964
|
+
const se_CreateExperimentTemplateActionInput = (input, context) => {
|
|
973
965
|
return {
|
|
974
966
|
...(input.actionId != null && { actionId: input.actionId }),
|
|
975
967
|
...(input.description != null && { description: input.description }),
|
|
976
|
-
...(input.parameters != null && {
|
|
977
|
-
parameters: serializeAws_restJson1ExperimentTemplateActionParameterMap(input.parameters, context),
|
|
978
|
-
}),
|
|
968
|
+
...(input.parameters != null && { parameters: se_ExperimentTemplateActionParameterMap(input.parameters, context) }),
|
|
979
969
|
...(input.startAfter != null && {
|
|
980
|
-
startAfter:
|
|
981
|
-
}),
|
|
982
|
-
...(input.targets != null && {
|
|
983
|
-
targets: serializeAws_restJson1ExperimentTemplateActionTargetMap(input.targets, context),
|
|
970
|
+
startAfter: se_ExperimentTemplateActionStartAfterList(input.startAfter, context),
|
|
984
971
|
}),
|
|
972
|
+
...(input.targets != null && { targets: se_ExperimentTemplateActionTargetMap(input.targets, context) }),
|
|
985
973
|
};
|
|
986
974
|
};
|
|
987
|
-
const
|
|
975
|
+
const se_CreateExperimentTemplateActionInputMap = (input, context) => {
|
|
988
976
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
989
977
|
if (value === null) {
|
|
990
978
|
return acc;
|
|
991
979
|
}
|
|
992
|
-
acc[key] =
|
|
980
|
+
acc[key] = se_CreateExperimentTemplateActionInput(value, context);
|
|
993
981
|
return acc;
|
|
994
982
|
}, {});
|
|
995
983
|
};
|
|
996
|
-
const
|
|
984
|
+
const se_CreateExperimentTemplateLogConfigurationInput = (input, context) => {
|
|
997
985
|
return {
|
|
998
986
|
...(input.cloudWatchLogsConfiguration != null && {
|
|
999
|
-
cloudWatchLogsConfiguration:
|
|
987
|
+
cloudWatchLogsConfiguration: se_ExperimentTemplateCloudWatchLogsLogConfigurationInput(input.cloudWatchLogsConfiguration, context),
|
|
1000
988
|
}),
|
|
1001
989
|
...(input.logSchemaVersion != null && { logSchemaVersion: input.logSchemaVersion }),
|
|
1002
990
|
...(input.s3Configuration != null && {
|
|
1003
|
-
s3Configuration:
|
|
991
|
+
s3Configuration: se_ExperimentTemplateS3LogConfigurationInput(input.s3Configuration, context),
|
|
1004
992
|
}),
|
|
1005
993
|
};
|
|
1006
994
|
};
|
|
1007
|
-
const
|
|
995
|
+
const se_CreateExperimentTemplateStopConditionInput = (input, context) => {
|
|
1008
996
|
return {
|
|
1009
997
|
...(input.source != null && { source: input.source }),
|
|
1010
998
|
...(input.value != null && { value: input.value }),
|
|
1011
999
|
};
|
|
1012
1000
|
};
|
|
1013
|
-
const
|
|
1001
|
+
const se_CreateExperimentTemplateStopConditionInputList = (input, context) => {
|
|
1014
1002
|
return input
|
|
1015
1003
|
.filter((e) => e != null)
|
|
1016
1004
|
.map((entry) => {
|
|
1017
|
-
return
|
|
1005
|
+
return se_CreateExperimentTemplateStopConditionInput(entry, context);
|
|
1018
1006
|
});
|
|
1019
1007
|
};
|
|
1020
|
-
const
|
|
1008
|
+
const se_CreateExperimentTemplateTargetInput = (input, context) => {
|
|
1021
1009
|
return {
|
|
1022
|
-
...(input.filters != null && {
|
|
1023
|
-
|
|
1024
|
-
}),
|
|
1025
|
-
...(input.
|
|
1026
|
-
parameters: serializeAws_restJson1ExperimentTemplateTargetParameterMap(input.parameters, context),
|
|
1027
|
-
}),
|
|
1028
|
-
...(input.resourceArns != null && {
|
|
1029
|
-
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
1030
|
-
}),
|
|
1031
|
-
...(input.resourceTags != null && { resourceTags: serializeAws_restJson1TagMap(input.resourceTags, context) }),
|
|
1010
|
+
...(input.filters != null && { filters: se_ExperimentTemplateTargetFilterInputList(input.filters, context) }),
|
|
1011
|
+
...(input.parameters != null && { parameters: se_ExperimentTemplateTargetParameterMap(input.parameters, context) }),
|
|
1012
|
+
...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
|
|
1013
|
+
...(input.resourceTags != null && { resourceTags: se_TagMap(input.resourceTags, context) }),
|
|
1032
1014
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1033
1015
|
...(input.selectionMode != null && { selectionMode: input.selectionMode }),
|
|
1034
1016
|
};
|
|
1035
1017
|
};
|
|
1036
|
-
const
|
|
1018
|
+
const se_CreateExperimentTemplateTargetInputMap = (input, context) => {
|
|
1037
1019
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1038
1020
|
if (value === null) {
|
|
1039
1021
|
return acc;
|
|
1040
1022
|
}
|
|
1041
|
-
acc[key] =
|
|
1023
|
+
acc[key] = se_CreateExperimentTemplateTargetInput(value, context);
|
|
1042
1024
|
return acc;
|
|
1043
1025
|
}, {});
|
|
1044
1026
|
};
|
|
1045
|
-
const
|
|
1027
|
+
const se_ExperimentTemplateActionParameterMap = (input, context) => {
|
|
1046
1028
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1047
1029
|
if (value === null) {
|
|
1048
1030
|
return acc;
|
|
@@ -1051,14 +1033,14 @@ const serializeAws_restJson1ExperimentTemplateActionParameterMap = (input, conte
|
|
|
1051
1033
|
return acc;
|
|
1052
1034
|
}, {});
|
|
1053
1035
|
};
|
|
1054
|
-
const
|
|
1036
|
+
const se_ExperimentTemplateActionStartAfterList = (input, context) => {
|
|
1055
1037
|
return input
|
|
1056
1038
|
.filter((e) => e != null)
|
|
1057
1039
|
.map((entry) => {
|
|
1058
1040
|
return entry;
|
|
1059
1041
|
});
|
|
1060
1042
|
};
|
|
1061
|
-
const
|
|
1043
|
+
const se_ExperimentTemplateActionTargetMap = (input, context) => {
|
|
1062
1044
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1063
1045
|
if (value === null) {
|
|
1064
1046
|
return acc;
|
|
@@ -1067,40 +1049,38 @@ const serializeAws_restJson1ExperimentTemplateActionTargetMap = (input, context)
|
|
|
1067
1049
|
return acc;
|
|
1068
1050
|
}, {});
|
|
1069
1051
|
};
|
|
1070
|
-
const
|
|
1052
|
+
const se_ExperimentTemplateCloudWatchLogsLogConfigurationInput = (input, context) => {
|
|
1071
1053
|
return {
|
|
1072
1054
|
...(input.logGroupArn != null && { logGroupArn: input.logGroupArn }),
|
|
1073
1055
|
};
|
|
1074
1056
|
};
|
|
1075
|
-
const
|
|
1057
|
+
const se_ExperimentTemplateS3LogConfigurationInput = (input, context) => {
|
|
1076
1058
|
return {
|
|
1077
1059
|
...(input.bucketName != null && { bucketName: input.bucketName }),
|
|
1078
1060
|
...(input.prefix != null && { prefix: input.prefix }),
|
|
1079
1061
|
};
|
|
1080
1062
|
};
|
|
1081
|
-
const
|
|
1063
|
+
const se_ExperimentTemplateTargetFilterInputList = (input, context) => {
|
|
1082
1064
|
return input
|
|
1083
1065
|
.filter((e) => e != null)
|
|
1084
1066
|
.map((entry) => {
|
|
1085
|
-
return
|
|
1067
|
+
return se_ExperimentTemplateTargetInputFilter(entry, context);
|
|
1086
1068
|
});
|
|
1087
1069
|
};
|
|
1088
|
-
const
|
|
1070
|
+
const se_ExperimentTemplateTargetFilterValues = (input, context) => {
|
|
1089
1071
|
return input
|
|
1090
1072
|
.filter((e) => e != null)
|
|
1091
1073
|
.map((entry) => {
|
|
1092
1074
|
return entry;
|
|
1093
1075
|
});
|
|
1094
1076
|
};
|
|
1095
|
-
const
|
|
1077
|
+
const se_ExperimentTemplateTargetInputFilter = (input, context) => {
|
|
1096
1078
|
return {
|
|
1097
1079
|
...(input.path != null && { path: input.path }),
|
|
1098
|
-
...(input.values != null && {
|
|
1099
|
-
values: serializeAws_restJson1ExperimentTemplateTargetFilterValues(input.values, context),
|
|
1100
|
-
}),
|
|
1080
|
+
...(input.values != null && { values: se_ExperimentTemplateTargetFilterValues(input.values, context) }),
|
|
1101
1081
|
};
|
|
1102
1082
|
};
|
|
1103
|
-
const
|
|
1083
|
+
const se_ExperimentTemplateTargetParameterMap = (input, context) => {
|
|
1104
1084
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1105
1085
|
if (value === null) {
|
|
1106
1086
|
return acc;
|
|
@@ -1109,14 +1089,14 @@ const serializeAws_restJson1ExperimentTemplateTargetParameterMap = (input, conte
|
|
|
1109
1089
|
return acc;
|
|
1110
1090
|
}, {});
|
|
1111
1091
|
};
|
|
1112
|
-
const
|
|
1092
|
+
const se_ResourceArnList = (input, context) => {
|
|
1113
1093
|
return input
|
|
1114
1094
|
.filter((e) => e != null)
|
|
1115
1095
|
.map((entry) => {
|
|
1116
1096
|
return entry;
|
|
1117
1097
|
});
|
|
1118
1098
|
};
|
|
1119
|
-
const
|
|
1099
|
+
const se_TagMap = (input, context) => {
|
|
1120
1100
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1121
1101
|
if (value === null) {
|
|
1122
1102
|
return acc;
|
|
@@ -1125,184 +1105,166 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1125
1105
|
return acc;
|
|
1126
1106
|
}, {});
|
|
1127
1107
|
};
|
|
1128
|
-
const
|
|
1108
|
+
const se_UpdateExperimentTemplateActionInputItem = (input, context) => {
|
|
1129
1109
|
return {
|
|
1130
1110
|
...(input.actionId != null && { actionId: input.actionId }),
|
|
1131
1111
|
...(input.description != null && { description: input.description }),
|
|
1132
|
-
...(input.parameters != null && {
|
|
1133
|
-
parameters: serializeAws_restJson1ExperimentTemplateActionParameterMap(input.parameters, context),
|
|
1134
|
-
}),
|
|
1112
|
+
...(input.parameters != null && { parameters: se_ExperimentTemplateActionParameterMap(input.parameters, context) }),
|
|
1135
1113
|
...(input.startAfter != null && {
|
|
1136
|
-
startAfter:
|
|
1137
|
-
}),
|
|
1138
|
-
...(input.targets != null && {
|
|
1139
|
-
targets: serializeAws_restJson1ExperimentTemplateActionTargetMap(input.targets, context),
|
|
1114
|
+
startAfter: se_ExperimentTemplateActionStartAfterList(input.startAfter, context),
|
|
1140
1115
|
}),
|
|
1116
|
+
...(input.targets != null && { targets: se_ExperimentTemplateActionTargetMap(input.targets, context) }),
|
|
1141
1117
|
};
|
|
1142
1118
|
};
|
|
1143
|
-
const
|
|
1119
|
+
const se_UpdateExperimentTemplateActionInputMap = (input, context) => {
|
|
1144
1120
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1145
1121
|
if (value === null) {
|
|
1146
1122
|
return acc;
|
|
1147
1123
|
}
|
|
1148
|
-
acc[key] =
|
|
1124
|
+
acc[key] = se_UpdateExperimentTemplateActionInputItem(value, context);
|
|
1149
1125
|
return acc;
|
|
1150
1126
|
}, {});
|
|
1151
1127
|
};
|
|
1152
|
-
const
|
|
1128
|
+
const se_UpdateExperimentTemplateLogConfigurationInput = (input, context) => {
|
|
1153
1129
|
return {
|
|
1154
1130
|
...(input.cloudWatchLogsConfiguration != null && {
|
|
1155
|
-
cloudWatchLogsConfiguration:
|
|
1131
|
+
cloudWatchLogsConfiguration: se_ExperimentTemplateCloudWatchLogsLogConfigurationInput(input.cloudWatchLogsConfiguration, context),
|
|
1156
1132
|
}),
|
|
1157
1133
|
...(input.logSchemaVersion != null && { logSchemaVersion: input.logSchemaVersion }),
|
|
1158
1134
|
...(input.s3Configuration != null && {
|
|
1159
|
-
s3Configuration:
|
|
1135
|
+
s3Configuration: se_ExperimentTemplateS3LogConfigurationInput(input.s3Configuration, context),
|
|
1160
1136
|
}),
|
|
1161
1137
|
};
|
|
1162
1138
|
};
|
|
1163
|
-
const
|
|
1139
|
+
const se_UpdateExperimentTemplateStopConditionInput = (input, context) => {
|
|
1164
1140
|
return {
|
|
1165
1141
|
...(input.source != null && { source: input.source }),
|
|
1166
1142
|
...(input.value != null && { value: input.value }),
|
|
1167
1143
|
};
|
|
1168
1144
|
};
|
|
1169
|
-
const
|
|
1145
|
+
const se_UpdateExperimentTemplateStopConditionInputList = (input, context) => {
|
|
1170
1146
|
return input
|
|
1171
1147
|
.filter((e) => e != null)
|
|
1172
1148
|
.map((entry) => {
|
|
1173
|
-
return
|
|
1149
|
+
return se_UpdateExperimentTemplateStopConditionInput(entry, context);
|
|
1174
1150
|
});
|
|
1175
1151
|
};
|
|
1176
|
-
const
|
|
1152
|
+
const se_UpdateExperimentTemplateTargetInput = (input, context) => {
|
|
1177
1153
|
return {
|
|
1178
|
-
...(input.filters != null && {
|
|
1179
|
-
|
|
1180
|
-
}),
|
|
1181
|
-
...(input.
|
|
1182
|
-
parameters: serializeAws_restJson1ExperimentTemplateTargetParameterMap(input.parameters, context),
|
|
1183
|
-
}),
|
|
1184
|
-
...(input.resourceArns != null && {
|
|
1185
|
-
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
1186
|
-
}),
|
|
1187
|
-
...(input.resourceTags != null && { resourceTags: serializeAws_restJson1TagMap(input.resourceTags, context) }),
|
|
1154
|
+
...(input.filters != null && { filters: se_ExperimentTemplateTargetFilterInputList(input.filters, context) }),
|
|
1155
|
+
...(input.parameters != null && { parameters: se_ExperimentTemplateTargetParameterMap(input.parameters, context) }),
|
|
1156
|
+
...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
|
|
1157
|
+
...(input.resourceTags != null && { resourceTags: se_TagMap(input.resourceTags, context) }),
|
|
1188
1158
|
...(input.resourceType != null && { resourceType: input.resourceType }),
|
|
1189
1159
|
...(input.selectionMode != null && { selectionMode: input.selectionMode }),
|
|
1190
1160
|
};
|
|
1191
1161
|
};
|
|
1192
|
-
const
|
|
1162
|
+
const se_UpdateExperimentTemplateTargetInputMap = (input, context) => {
|
|
1193
1163
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1194
1164
|
if (value === null) {
|
|
1195
1165
|
return acc;
|
|
1196
1166
|
}
|
|
1197
|
-
acc[key] =
|
|
1167
|
+
acc[key] = se_UpdateExperimentTemplateTargetInput(value, context);
|
|
1198
1168
|
return acc;
|
|
1199
1169
|
}, {});
|
|
1200
1170
|
};
|
|
1201
|
-
const
|
|
1171
|
+
const de_Action = (output, context) => {
|
|
1202
1172
|
return {
|
|
1203
1173
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1204
1174
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1205
|
-
parameters: output.parameters != null ?
|
|
1206
|
-
tags: output.tags != null ?
|
|
1207
|
-
targets: output.targets != null ?
|
|
1175
|
+
parameters: output.parameters != null ? de_ActionParameterMap(output.parameters, context) : undefined,
|
|
1176
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1177
|
+
targets: output.targets != null ? de_ActionTargetMap(output.targets, context) : undefined,
|
|
1208
1178
|
};
|
|
1209
1179
|
};
|
|
1210
|
-
const
|
|
1180
|
+
const de_ActionParameter = (output, context) => {
|
|
1211
1181
|
return {
|
|
1212
1182
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1213
1183
|
required: (0, smithy_client_1.expectBoolean)(output.required),
|
|
1214
1184
|
};
|
|
1215
1185
|
};
|
|
1216
|
-
const
|
|
1186
|
+
const de_ActionParameterMap = (output, context) => {
|
|
1217
1187
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1218
1188
|
if (value === null) {
|
|
1219
1189
|
return acc;
|
|
1220
1190
|
}
|
|
1221
|
-
acc[key] =
|
|
1191
|
+
acc[key] = de_ActionParameter(value, context);
|
|
1222
1192
|
return acc;
|
|
1223
1193
|
}, {});
|
|
1224
1194
|
};
|
|
1225
|
-
const
|
|
1195
|
+
const de_ActionSummary = (output, context) => {
|
|
1226
1196
|
return {
|
|
1227
1197
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1228
1198
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1229
|
-
tags: output.tags != null ?
|
|
1230
|
-
targets: output.targets != null ?
|
|
1199
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1200
|
+
targets: output.targets != null ? de_ActionTargetMap(output.targets, context) : undefined,
|
|
1231
1201
|
};
|
|
1232
1202
|
};
|
|
1233
|
-
const
|
|
1203
|
+
const de_ActionSummaryList = (output, context) => {
|
|
1234
1204
|
const retVal = (output || [])
|
|
1235
1205
|
.filter((e) => e != null)
|
|
1236
1206
|
.map((entry) => {
|
|
1237
1207
|
if (entry === null) {
|
|
1238
1208
|
return null;
|
|
1239
1209
|
}
|
|
1240
|
-
return
|
|
1210
|
+
return de_ActionSummary(entry, context);
|
|
1241
1211
|
});
|
|
1242
1212
|
return retVal;
|
|
1243
1213
|
};
|
|
1244
|
-
const
|
|
1214
|
+
const de_ActionTarget = (output, context) => {
|
|
1245
1215
|
return {
|
|
1246
1216
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1247
1217
|
};
|
|
1248
1218
|
};
|
|
1249
|
-
const
|
|
1219
|
+
const de_ActionTargetMap = (output, context) => {
|
|
1250
1220
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1251
1221
|
if (value === null) {
|
|
1252
1222
|
return acc;
|
|
1253
1223
|
}
|
|
1254
|
-
acc[key] =
|
|
1224
|
+
acc[key] = de_ActionTarget(value, context);
|
|
1255
1225
|
return acc;
|
|
1256
1226
|
}, {});
|
|
1257
1227
|
};
|
|
1258
|
-
const
|
|
1228
|
+
const de_Experiment = (output, context) => {
|
|
1259
1229
|
return {
|
|
1260
|
-
actions: output.actions != null ?
|
|
1230
|
+
actions: output.actions != null ? de_ExperimentActionMap(output.actions, context) : undefined,
|
|
1261
1231
|
creationTime: output.creationTime != null
|
|
1262
1232
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1263
1233
|
: undefined,
|
|
1264
1234
|
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
1265
1235
|
experimentTemplateId: (0, smithy_client_1.expectString)(output.experimentTemplateId),
|
|
1266
1236
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1267
|
-
logConfiguration: output.logConfiguration != null
|
|
1268
|
-
? deserializeAws_restJson1ExperimentLogConfiguration(output.logConfiguration, context)
|
|
1269
|
-
: undefined,
|
|
1237
|
+
logConfiguration: output.logConfiguration != null ? de_ExperimentLogConfiguration(output.logConfiguration, context) : undefined,
|
|
1270
1238
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
1271
1239
|
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
1272
|
-
state: output.state != null ?
|
|
1273
|
-
stopConditions: output.stopConditions != null
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
1277
|
-
targets: output.targets != null ? deserializeAws_restJson1ExperimentTargetMap(output.targets, context) : undefined,
|
|
1240
|
+
state: output.state != null ? de_ExperimentState(output.state, context) : undefined,
|
|
1241
|
+
stopConditions: output.stopConditions != null ? de_ExperimentStopConditionList(output.stopConditions, context) : undefined,
|
|
1242
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1243
|
+
targets: output.targets != null ? de_ExperimentTargetMap(output.targets, context) : undefined,
|
|
1278
1244
|
};
|
|
1279
1245
|
};
|
|
1280
|
-
const
|
|
1246
|
+
const de_ExperimentAction = (output, context) => {
|
|
1281
1247
|
return {
|
|
1282
1248
|
actionId: (0, smithy_client_1.expectString)(output.actionId),
|
|
1283
1249
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1284
1250
|
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
1285
|
-
parameters: output.parameters != null
|
|
1286
|
-
|
|
1287
|
-
: undefined,
|
|
1288
|
-
startAfter: output.startAfter != null
|
|
1289
|
-
? deserializeAws_restJson1ExperimentActionStartAfterList(output.startAfter, context)
|
|
1290
|
-
: undefined,
|
|
1251
|
+
parameters: output.parameters != null ? de_ExperimentActionParameterMap(output.parameters, context) : undefined,
|
|
1252
|
+
startAfter: output.startAfter != null ? de_ExperimentActionStartAfterList(output.startAfter, context) : undefined,
|
|
1291
1253
|
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
1292
|
-
state: output.state != null ?
|
|
1293
|
-
targets: output.targets != null ?
|
|
1254
|
+
state: output.state != null ? de_ExperimentActionState(output.state, context) : undefined,
|
|
1255
|
+
targets: output.targets != null ? de_ExperimentActionTargetMap(output.targets, context) : undefined,
|
|
1294
1256
|
};
|
|
1295
1257
|
};
|
|
1296
|
-
const
|
|
1258
|
+
const de_ExperimentActionMap = (output, context) => {
|
|
1297
1259
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1298
1260
|
if (value === null) {
|
|
1299
1261
|
return acc;
|
|
1300
1262
|
}
|
|
1301
|
-
acc[key] =
|
|
1263
|
+
acc[key] = de_ExperimentAction(value, context);
|
|
1302
1264
|
return acc;
|
|
1303
1265
|
}, {});
|
|
1304
1266
|
};
|
|
1305
|
-
const
|
|
1267
|
+
const de_ExperimentActionParameterMap = (output, context) => {
|
|
1306
1268
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1307
1269
|
if (value === null) {
|
|
1308
1270
|
return acc;
|
|
@@ -1311,7 +1273,7 @@ const deserializeAws_restJson1ExperimentActionParameterMap = (output, context) =
|
|
|
1311
1273
|
return acc;
|
|
1312
1274
|
}, {});
|
|
1313
1275
|
};
|
|
1314
|
-
const
|
|
1276
|
+
const de_ExperimentActionStartAfterList = (output, context) => {
|
|
1315
1277
|
const retVal = (output || [])
|
|
1316
1278
|
.filter((e) => e != null)
|
|
1317
1279
|
.map((entry) => {
|
|
@@ -1322,13 +1284,13 @@ const deserializeAws_restJson1ExperimentActionStartAfterList = (output, context)
|
|
|
1322
1284
|
});
|
|
1323
1285
|
return retVal;
|
|
1324
1286
|
};
|
|
1325
|
-
const
|
|
1287
|
+
const de_ExperimentActionState = (output, context) => {
|
|
1326
1288
|
return {
|
|
1327
1289
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
1328
1290
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1329
1291
|
};
|
|
1330
1292
|
};
|
|
1331
|
-
const
|
|
1293
|
+
const de_ExperimentActionTargetMap = (output, context) => {
|
|
1332
1294
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1333
1295
|
if (value === null) {
|
|
1334
1296
|
return acc;
|
|
@@ -1337,103 +1299,99 @@ const deserializeAws_restJson1ExperimentActionTargetMap = (output, context) => {
|
|
|
1337
1299
|
return acc;
|
|
1338
1300
|
}, {});
|
|
1339
1301
|
};
|
|
1340
|
-
const
|
|
1302
|
+
const de_ExperimentCloudWatchLogsLogConfiguration = (output, context) => {
|
|
1341
1303
|
return {
|
|
1342
1304
|
logGroupArn: (0, smithy_client_1.expectString)(output.logGroupArn),
|
|
1343
1305
|
};
|
|
1344
1306
|
};
|
|
1345
|
-
const
|
|
1307
|
+
const de_ExperimentLogConfiguration = (output, context) => {
|
|
1346
1308
|
return {
|
|
1347
1309
|
cloudWatchLogsConfiguration: output.cloudWatchLogsConfiguration != null
|
|
1348
|
-
?
|
|
1310
|
+
? de_ExperimentCloudWatchLogsLogConfiguration(output.cloudWatchLogsConfiguration, context)
|
|
1349
1311
|
: undefined,
|
|
1350
1312
|
logSchemaVersion: (0, smithy_client_1.expectInt32)(output.logSchemaVersion),
|
|
1351
|
-
s3Configuration: output.s3Configuration != null
|
|
1352
|
-
? deserializeAws_restJson1ExperimentS3LogConfiguration(output.s3Configuration, context)
|
|
1353
|
-
: undefined,
|
|
1313
|
+
s3Configuration: output.s3Configuration != null ? de_ExperimentS3LogConfiguration(output.s3Configuration, context) : undefined,
|
|
1354
1314
|
};
|
|
1355
1315
|
};
|
|
1356
|
-
const
|
|
1316
|
+
const de_ExperimentS3LogConfiguration = (output, context) => {
|
|
1357
1317
|
return {
|
|
1358
1318
|
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
1359
1319
|
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
1360
1320
|
};
|
|
1361
1321
|
};
|
|
1362
|
-
const
|
|
1322
|
+
const de_ExperimentState = (output, context) => {
|
|
1363
1323
|
return {
|
|
1364
1324
|
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
1365
1325
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
1366
1326
|
};
|
|
1367
1327
|
};
|
|
1368
|
-
const
|
|
1328
|
+
const de_ExperimentStopCondition = (output, context) => {
|
|
1369
1329
|
return {
|
|
1370
1330
|
source: (0, smithy_client_1.expectString)(output.source),
|
|
1371
1331
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
1372
1332
|
};
|
|
1373
1333
|
};
|
|
1374
|
-
const
|
|
1334
|
+
const de_ExperimentStopConditionList = (output, context) => {
|
|
1375
1335
|
const retVal = (output || [])
|
|
1376
1336
|
.filter((e) => e != null)
|
|
1377
1337
|
.map((entry) => {
|
|
1378
1338
|
if (entry === null) {
|
|
1379
1339
|
return null;
|
|
1380
1340
|
}
|
|
1381
|
-
return
|
|
1341
|
+
return de_ExperimentStopCondition(entry, context);
|
|
1382
1342
|
});
|
|
1383
1343
|
return retVal;
|
|
1384
1344
|
};
|
|
1385
|
-
const
|
|
1345
|
+
const de_ExperimentSummary = (output, context) => {
|
|
1386
1346
|
return {
|
|
1387
1347
|
creationTime: output.creationTime != null
|
|
1388
1348
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1389
1349
|
: undefined,
|
|
1390
1350
|
experimentTemplateId: (0, smithy_client_1.expectString)(output.experimentTemplateId),
|
|
1391
1351
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
1392
|
-
state: output.state != null ?
|
|
1393
|
-
tags: output.tags != null ?
|
|
1352
|
+
state: output.state != null ? de_ExperimentState(output.state, context) : undefined,
|
|
1353
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1394
1354
|
};
|
|
1395
1355
|
};
|
|
1396
|
-
const
|
|
1356
|
+
const de_ExperimentSummaryList = (output, context) => {
|
|
1397
1357
|
const retVal = (output || [])
|
|
1398
1358
|
.filter((e) => e != null)
|
|
1399
1359
|
.map((entry) => {
|
|
1400
1360
|
if (entry === null) {
|
|
1401
1361
|
return null;
|
|
1402
1362
|
}
|
|
1403
|
-
return
|
|
1363
|
+
return de_ExperimentSummary(entry, context);
|
|
1404
1364
|
});
|
|
1405
1365
|
return retVal;
|
|
1406
1366
|
};
|
|
1407
|
-
const
|
|
1367
|
+
const de_ExperimentTarget = (output, context) => {
|
|
1408
1368
|
return {
|
|
1409
|
-
filters: output.filters != null ?
|
|
1410
|
-
parameters: output.parameters != null
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
resourceArns: output.resourceArns != null ? deserializeAws_restJson1ResourceArnList(output.resourceArns, context) : undefined,
|
|
1414
|
-
resourceTags: output.resourceTags != null ? deserializeAws_restJson1TagMap(output.resourceTags, context) : undefined,
|
|
1369
|
+
filters: output.filters != null ? de_ExperimentTargetFilterList(output.filters, context) : undefined,
|
|
1370
|
+
parameters: output.parameters != null ? de_ExperimentTargetParameterMap(output.parameters, context) : undefined,
|
|
1371
|
+
resourceArns: output.resourceArns != null ? de_ResourceArnList(output.resourceArns, context) : undefined,
|
|
1372
|
+
resourceTags: output.resourceTags != null ? de_TagMap(output.resourceTags, context) : undefined,
|
|
1415
1373
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1416
1374
|
selectionMode: (0, smithy_client_1.expectString)(output.selectionMode),
|
|
1417
1375
|
};
|
|
1418
1376
|
};
|
|
1419
|
-
const
|
|
1377
|
+
const de_ExperimentTargetFilter = (output, context) => {
|
|
1420
1378
|
return {
|
|
1421
1379
|
path: (0, smithy_client_1.expectString)(output.path),
|
|
1422
|
-
values: output.values != null ?
|
|
1380
|
+
values: output.values != null ? de_ExperimentTargetFilterValues(output.values, context) : undefined,
|
|
1423
1381
|
};
|
|
1424
1382
|
};
|
|
1425
|
-
const
|
|
1383
|
+
const de_ExperimentTargetFilterList = (output, context) => {
|
|
1426
1384
|
const retVal = (output || [])
|
|
1427
1385
|
.filter((e) => e != null)
|
|
1428
1386
|
.map((entry) => {
|
|
1429
1387
|
if (entry === null) {
|
|
1430
1388
|
return null;
|
|
1431
1389
|
}
|
|
1432
|
-
return
|
|
1390
|
+
return de_ExperimentTargetFilter(entry, context);
|
|
1433
1391
|
});
|
|
1434
1392
|
return retVal;
|
|
1435
1393
|
};
|
|
1436
|
-
const
|
|
1394
|
+
const de_ExperimentTargetFilterValues = (output, context) => {
|
|
1437
1395
|
const retVal = (output || [])
|
|
1438
1396
|
.filter((e) => e != null)
|
|
1439
1397
|
.map((entry) => {
|
|
@@ -1444,16 +1402,16 @@ const deserializeAws_restJson1ExperimentTargetFilterValues = (output, context) =
|
|
|
1444
1402
|
});
|
|
1445
1403
|
return retVal;
|
|
1446
1404
|
};
|
|
1447
|
-
const
|
|
1405
|
+
const de_ExperimentTargetMap = (output, context) => {
|
|
1448
1406
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1449
1407
|
if (value === null) {
|
|
1450
1408
|
return acc;
|
|
1451
1409
|
}
|
|
1452
|
-
acc[key] =
|
|
1410
|
+
acc[key] = de_ExperimentTarget(value, context);
|
|
1453
1411
|
return acc;
|
|
1454
1412
|
}, {});
|
|
1455
1413
|
};
|
|
1456
|
-
const
|
|
1414
|
+
const de_ExperimentTargetParameterMap = (output, context) => {
|
|
1457
1415
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1458
1416
|
if (value === null) {
|
|
1459
1417
|
return acc;
|
|
@@ -1462,9 +1420,9 @@ const deserializeAws_restJson1ExperimentTargetParameterMap = (output, context) =
|
|
|
1462
1420
|
return acc;
|
|
1463
1421
|
}, {});
|
|
1464
1422
|
};
|
|
1465
|
-
const
|
|
1423
|
+
const de_ExperimentTemplate = (output, context) => {
|
|
1466
1424
|
return {
|
|
1467
|
-
actions: output.actions != null ?
|
|
1425
|
+
actions: output.actions != null ? de_ExperimentTemplateActionMap(output.actions, context) : undefined,
|
|
1468
1426
|
creationTime: output.creationTime != null
|
|
1469
1427
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1470
1428
|
: undefined,
|
|
@@ -1474,41 +1432,35 @@ const deserializeAws_restJson1ExperimentTemplate = (output, context) => {
|
|
|
1474
1432
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1475
1433
|
: undefined,
|
|
1476
1434
|
logConfiguration: output.logConfiguration != null
|
|
1477
|
-
?
|
|
1435
|
+
? de_ExperimentTemplateLogConfiguration(output.logConfiguration, context)
|
|
1478
1436
|
: undefined,
|
|
1479
1437
|
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
1480
1438
|
stopConditions: output.stopConditions != null
|
|
1481
|
-
?
|
|
1439
|
+
? de_ExperimentTemplateStopConditionList(output.stopConditions, context)
|
|
1482
1440
|
: undefined,
|
|
1483
|
-
tags: output.tags != null ?
|
|
1484
|
-
targets: output.targets != null ?
|
|
1441
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1442
|
+
targets: output.targets != null ? de_ExperimentTemplateTargetMap(output.targets, context) : undefined,
|
|
1485
1443
|
};
|
|
1486
1444
|
};
|
|
1487
|
-
const
|
|
1445
|
+
const de_ExperimentTemplateAction = (output, context) => {
|
|
1488
1446
|
return {
|
|
1489
1447
|
actionId: (0, smithy_client_1.expectString)(output.actionId),
|
|
1490
1448
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1491
|
-
parameters: output.parameters != null
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
startAfter: output.startAfter != null
|
|
1495
|
-
? deserializeAws_restJson1ExperimentTemplateActionStartAfterList(output.startAfter, context)
|
|
1496
|
-
: undefined,
|
|
1497
|
-
targets: output.targets != null
|
|
1498
|
-
? deserializeAws_restJson1ExperimentTemplateActionTargetMap(output.targets, context)
|
|
1499
|
-
: undefined,
|
|
1449
|
+
parameters: output.parameters != null ? de_ExperimentTemplateActionParameterMap(output.parameters, context) : undefined,
|
|
1450
|
+
startAfter: output.startAfter != null ? de_ExperimentTemplateActionStartAfterList(output.startAfter, context) : undefined,
|
|
1451
|
+
targets: output.targets != null ? de_ExperimentTemplateActionTargetMap(output.targets, context) : undefined,
|
|
1500
1452
|
};
|
|
1501
1453
|
};
|
|
1502
|
-
const
|
|
1454
|
+
const de_ExperimentTemplateActionMap = (output, context) => {
|
|
1503
1455
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1504
1456
|
if (value === null) {
|
|
1505
1457
|
return acc;
|
|
1506
1458
|
}
|
|
1507
|
-
acc[key] =
|
|
1459
|
+
acc[key] = de_ExperimentTemplateAction(value, context);
|
|
1508
1460
|
return acc;
|
|
1509
1461
|
}, {});
|
|
1510
1462
|
};
|
|
1511
|
-
const
|
|
1463
|
+
const de_ExperimentTemplateActionParameterMap = (output, context) => {
|
|
1512
1464
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1513
1465
|
if (value === null) {
|
|
1514
1466
|
return acc;
|
|
@@ -1517,7 +1469,7 @@ const deserializeAws_restJson1ExperimentTemplateActionParameterMap = (output, co
|
|
|
1517
1469
|
return acc;
|
|
1518
1470
|
}, {});
|
|
1519
1471
|
};
|
|
1520
|
-
const
|
|
1472
|
+
const de_ExperimentTemplateActionStartAfterList = (output, context) => {
|
|
1521
1473
|
const retVal = (output || [])
|
|
1522
1474
|
.filter((e) => e != null)
|
|
1523
1475
|
.map((entry) => {
|
|
@@ -1528,7 +1480,7 @@ const deserializeAws_restJson1ExperimentTemplateActionStartAfterList = (output,
|
|
|
1528
1480
|
});
|
|
1529
1481
|
return retVal;
|
|
1530
1482
|
};
|
|
1531
|
-
const
|
|
1483
|
+
const de_ExperimentTemplateActionTargetMap = (output, context) => {
|
|
1532
1484
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1533
1485
|
if (value === null) {
|
|
1534
1486
|
return acc;
|
|
@@ -1537,46 +1489,46 @@ const deserializeAws_restJson1ExperimentTemplateActionTargetMap = (output, conte
|
|
|
1537
1489
|
return acc;
|
|
1538
1490
|
}, {});
|
|
1539
1491
|
};
|
|
1540
|
-
const
|
|
1492
|
+
const de_ExperimentTemplateCloudWatchLogsLogConfiguration = (output, context) => {
|
|
1541
1493
|
return {
|
|
1542
1494
|
logGroupArn: (0, smithy_client_1.expectString)(output.logGroupArn),
|
|
1543
1495
|
};
|
|
1544
1496
|
};
|
|
1545
|
-
const
|
|
1497
|
+
const de_ExperimentTemplateLogConfiguration = (output, context) => {
|
|
1546
1498
|
return {
|
|
1547
1499
|
cloudWatchLogsConfiguration: output.cloudWatchLogsConfiguration != null
|
|
1548
|
-
?
|
|
1500
|
+
? de_ExperimentTemplateCloudWatchLogsLogConfiguration(output.cloudWatchLogsConfiguration, context)
|
|
1549
1501
|
: undefined,
|
|
1550
1502
|
logSchemaVersion: (0, smithy_client_1.expectInt32)(output.logSchemaVersion),
|
|
1551
1503
|
s3Configuration: output.s3Configuration != null
|
|
1552
|
-
?
|
|
1504
|
+
? de_ExperimentTemplateS3LogConfiguration(output.s3Configuration, context)
|
|
1553
1505
|
: undefined,
|
|
1554
1506
|
};
|
|
1555
1507
|
};
|
|
1556
|
-
const
|
|
1508
|
+
const de_ExperimentTemplateS3LogConfiguration = (output, context) => {
|
|
1557
1509
|
return {
|
|
1558
1510
|
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
1559
1511
|
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
1560
1512
|
};
|
|
1561
1513
|
};
|
|
1562
|
-
const
|
|
1514
|
+
const de_ExperimentTemplateStopCondition = (output, context) => {
|
|
1563
1515
|
return {
|
|
1564
1516
|
source: (0, smithy_client_1.expectString)(output.source),
|
|
1565
1517
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
1566
1518
|
};
|
|
1567
1519
|
};
|
|
1568
|
-
const
|
|
1520
|
+
const de_ExperimentTemplateStopConditionList = (output, context) => {
|
|
1569
1521
|
const retVal = (output || [])
|
|
1570
1522
|
.filter((e) => e != null)
|
|
1571
1523
|
.map((entry) => {
|
|
1572
1524
|
if (entry === null) {
|
|
1573
1525
|
return null;
|
|
1574
1526
|
}
|
|
1575
|
-
return
|
|
1527
|
+
return de_ExperimentTemplateStopCondition(entry, context);
|
|
1576
1528
|
});
|
|
1577
1529
|
return retVal;
|
|
1578
1530
|
};
|
|
1579
|
-
const
|
|
1531
|
+
const de_ExperimentTemplateSummary = (output, context) => {
|
|
1580
1532
|
return {
|
|
1581
1533
|
creationTime: output.creationTime != null
|
|
1582
1534
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
@@ -1586,54 +1538,48 @@ const deserializeAws_restJson1ExperimentTemplateSummary = (output, context) => {
|
|
|
1586
1538
|
lastUpdateTime: output.lastUpdateTime != null
|
|
1587
1539
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1588
1540
|
: undefined,
|
|
1589
|
-
tags: output.tags != null ?
|
|
1541
|
+
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
1590
1542
|
};
|
|
1591
1543
|
};
|
|
1592
|
-
const
|
|
1544
|
+
const de_ExperimentTemplateSummaryList = (output, context) => {
|
|
1593
1545
|
const retVal = (output || [])
|
|
1594
1546
|
.filter((e) => e != null)
|
|
1595
1547
|
.map((entry) => {
|
|
1596
1548
|
if (entry === null) {
|
|
1597
1549
|
return null;
|
|
1598
1550
|
}
|
|
1599
|
-
return
|
|
1551
|
+
return de_ExperimentTemplateSummary(entry, context);
|
|
1600
1552
|
});
|
|
1601
1553
|
return retVal;
|
|
1602
1554
|
};
|
|
1603
|
-
const
|
|
1555
|
+
const de_ExperimentTemplateTarget = (output, context) => {
|
|
1604
1556
|
return {
|
|
1605
|
-
filters: output.filters != null
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
? deserializeAws_restJson1ExperimentTemplateTargetParameterMap(output.parameters, context)
|
|
1610
|
-
: undefined,
|
|
1611
|
-
resourceArns: output.resourceArns != null ? deserializeAws_restJson1ResourceArnList(output.resourceArns, context) : undefined,
|
|
1612
|
-
resourceTags: output.resourceTags != null ? deserializeAws_restJson1TagMap(output.resourceTags, context) : undefined,
|
|
1557
|
+
filters: output.filters != null ? de_ExperimentTemplateTargetFilterList(output.filters, context) : undefined,
|
|
1558
|
+
parameters: output.parameters != null ? de_ExperimentTemplateTargetParameterMap(output.parameters, context) : undefined,
|
|
1559
|
+
resourceArns: output.resourceArns != null ? de_ResourceArnList(output.resourceArns, context) : undefined,
|
|
1560
|
+
resourceTags: output.resourceTags != null ? de_TagMap(output.resourceTags, context) : undefined,
|
|
1613
1561
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1614
1562
|
selectionMode: (0, smithy_client_1.expectString)(output.selectionMode),
|
|
1615
1563
|
};
|
|
1616
1564
|
};
|
|
1617
|
-
const
|
|
1565
|
+
const de_ExperimentTemplateTargetFilter = (output, context) => {
|
|
1618
1566
|
return {
|
|
1619
1567
|
path: (0, smithy_client_1.expectString)(output.path),
|
|
1620
|
-
values: output.values != null
|
|
1621
|
-
? deserializeAws_restJson1ExperimentTemplateTargetFilterValues(output.values, context)
|
|
1622
|
-
: undefined,
|
|
1568
|
+
values: output.values != null ? de_ExperimentTemplateTargetFilterValues(output.values, context) : undefined,
|
|
1623
1569
|
};
|
|
1624
1570
|
};
|
|
1625
|
-
const
|
|
1571
|
+
const de_ExperimentTemplateTargetFilterList = (output, context) => {
|
|
1626
1572
|
const retVal = (output || [])
|
|
1627
1573
|
.filter((e) => e != null)
|
|
1628
1574
|
.map((entry) => {
|
|
1629
1575
|
if (entry === null) {
|
|
1630
1576
|
return null;
|
|
1631
1577
|
}
|
|
1632
|
-
return
|
|
1578
|
+
return de_ExperimentTemplateTargetFilter(entry, context);
|
|
1633
1579
|
});
|
|
1634
1580
|
return retVal;
|
|
1635
1581
|
};
|
|
1636
|
-
const
|
|
1582
|
+
const de_ExperimentTemplateTargetFilterValues = (output, context) => {
|
|
1637
1583
|
const retVal = (output || [])
|
|
1638
1584
|
.filter((e) => e != null)
|
|
1639
1585
|
.map((entry) => {
|
|
@@ -1644,16 +1590,16 @@ const deserializeAws_restJson1ExperimentTemplateTargetFilterValues = (output, co
|
|
|
1644
1590
|
});
|
|
1645
1591
|
return retVal;
|
|
1646
1592
|
};
|
|
1647
|
-
const
|
|
1593
|
+
const de_ExperimentTemplateTargetMap = (output, context) => {
|
|
1648
1594
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1649
1595
|
if (value === null) {
|
|
1650
1596
|
return acc;
|
|
1651
1597
|
}
|
|
1652
|
-
acc[key] =
|
|
1598
|
+
acc[key] = de_ExperimentTemplateTarget(value, context);
|
|
1653
1599
|
return acc;
|
|
1654
1600
|
}, {});
|
|
1655
1601
|
};
|
|
1656
|
-
const
|
|
1602
|
+
const de_ExperimentTemplateTargetParameterMap = (output, context) => {
|
|
1657
1603
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1658
1604
|
if (value === null) {
|
|
1659
1605
|
return acc;
|
|
@@ -1662,7 +1608,7 @@ const deserializeAws_restJson1ExperimentTemplateTargetParameterMap = (output, co
|
|
|
1662
1608
|
return acc;
|
|
1663
1609
|
}, {});
|
|
1664
1610
|
};
|
|
1665
|
-
const
|
|
1611
|
+
const de_ResourceArnList = (output, context) => {
|
|
1666
1612
|
const retVal = (output || [])
|
|
1667
1613
|
.filter((e) => e != null)
|
|
1668
1614
|
.map((entry) => {
|
|
@@ -1673,7 +1619,7 @@ const deserializeAws_restJson1ResourceArnList = (output, context) => {
|
|
|
1673
1619
|
});
|
|
1674
1620
|
return retVal;
|
|
1675
1621
|
};
|
|
1676
|
-
const
|
|
1622
|
+
const de_TagMap = (output, context) => {
|
|
1677
1623
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1678
1624
|
if (value === null) {
|
|
1679
1625
|
return acc;
|
|
@@ -1682,44 +1628,42 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1682
1628
|
return acc;
|
|
1683
1629
|
}, {});
|
|
1684
1630
|
};
|
|
1685
|
-
const
|
|
1631
|
+
const de_TargetResourceType = (output, context) => {
|
|
1686
1632
|
return {
|
|
1687
1633
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1688
|
-
parameters: output.parameters != null
|
|
1689
|
-
? deserializeAws_restJson1TargetResourceTypeParameterMap(output.parameters, context)
|
|
1690
|
-
: undefined,
|
|
1634
|
+
parameters: output.parameters != null ? de_TargetResourceTypeParameterMap(output.parameters, context) : undefined,
|
|
1691
1635
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1692
1636
|
};
|
|
1693
1637
|
};
|
|
1694
|
-
const
|
|
1638
|
+
const de_TargetResourceTypeParameter = (output, context) => {
|
|
1695
1639
|
return {
|
|
1696
1640
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1697
1641
|
required: (0, smithy_client_1.expectBoolean)(output.required),
|
|
1698
1642
|
};
|
|
1699
1643
|
};
|
|
1700
|
-
const
|
|
1644
|
+
const de_TargetResourceTypeParameterMap = (output, context) => {
|
|
1701
1645
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1702
1646
|
if (value === null) {
|
|
1703
1647
|
return acc;
|
|
1704
1648
|
}
|
|
1705
|
-
acc[key] =
|
|
1649
|
+
acc[key] = de_TargetResourceTypeParameter(value, context);
|
|
1706
1650
|
return acc;
|
|
1707
1651
|
}, {});
|
|
1708
1652
|
};
|
|
1709
|
-
const
|
|
1653
|
+
const de_TargetResourceTypeSummary = (output, context) => {
|
|
1710
1654
|
return {
|
|
1711
1655
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
1712
1656
|
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1713
1657
|
};
|
|
1714
1658
|
};
|
|
1715
|
-
const
|
|
1659
|
+
const de_TargetResourceTypeSummaryList = (output, context) => {
|
|
1716
1660
|
const retVal = (output || [])
|
|
1717
1661
|
.filter((e) => e != null)
|
|
1718
1662
|
.map((entry) => {
|
|
1719
1663
|
if (entry === null) {
|
|
1720
1664
|
return null;
|
|
1721
1665
|
}
|
|
1722
|
-
return
|
|
1666
|
+
return de_TargetResourceTypeSummary(entry, context);
|
|
1723
1667
|
});
|
|
1724
1668
|
return retVal;
|
|
1725
1669
|
};
|