@aws-sdk/client-fis 3.54.1 → 3.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist-cjs/FisClient.js +13 -13
- package/dist-cjs/commands/CreateExperimentTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteExperimentTemplateCommand.js +3 -3
- package/dist-cjs/commands/GetActionCommand.js +3 -3
- package/dist-cjs/commands/GetExperimentCommand.js +3 -3
- package/dist-cjs/commands/GetExperimentTemplateCommand.js +3 -3
- package/dist-cjs/commands/GetTargetResourceTypeCommand.js +3 -3
- package/dist-cjs/commands/ListActionsCommand.js +3 -3
- package/dist-cjs/commands/ListExperimentTemplatesCommand.js +3 -3
- package/dist-cjs/commands/ListExperimentsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListTargetResourceTypesCommand.js +3 -3
- package/dist-cjs/commands/StartExperimentCommand.js +3 -3
- package/dist-cjs/commands/StopExperimentCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateExperimentTemplateCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +125 -125
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Fis.js +16 -16
- package/dist-es/pagination/ListActionsPaginator.js +4 -4
- package/dist-es/pagination/ListExperimentTemplatesPaginator.js +4 -4
- package/dist-es/pagination/ListExperimentsPaginator.js +4 -4
- package/dist-es/pagination/ListTargetResourceTypesPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +16 -16
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -19,7 +19,7 @@ const serializeAws_restJson1CreateExperimentTemplateCommand = async (input, cont
|
|
|
19
19
|
input.actions !== null && {
|
|
20
20
|
actions: serializeAws_restJson1CreateExperimentTemplateActionInputMap(input.actions, context),
|
|
21
21
|
}),
|
|
22
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
22
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
23
23
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
24
24
|
...(input.logConfiguration !== undefined &&
|
|
25
25
|
input.logConfiguration !== null && {
|
|
@@ -56,7 +56,7 @@ const serializeAws_restJson1DeleteExperimentTemplateCommand = async (input, cont
|
|
|
56
56
|
if (labelValue.length <= 0) {
|
|
57
57
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
58
58
|
}
|
|
59
|
-
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
59
|
+
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
60
60
|
}
|
|
61
61
|
else {
|
|
62
62
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -82,7 +82,7 @@ const serializeAws_restJson1GetActionCommand = async (input, context) => {
|
|
|
82
82
|
if (labelValue.length <= 0) {
|
|
83
83
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
84
84
|
}
|
|
85
|
-
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
85
|
+
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
86
86
|
}
|
|
87
87
|
else {
|
|
88
88
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -108,7 +108,7 @@ const serializeAws_restJson1GetExperimentCommand = async (input, context) => {
|
|
|
108
108
|
if (labelValue.length <= 0) {
|
|
109
109
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
110
110
|
}
|
|
111
|
-
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
111
|
+
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
112
112
|
}
|
|
113
113
|
else {
|
|
114
114
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -134,7 +134,7 @@ const serializeAws_restJson1GetExperimentTemplateCommand = async (input, context
|
|
|
134
134
|
if (labelValue.length <= 0) {
|
|
135
135
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
136
136
|
}
|
|
137
|
-
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
137
|
+
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
138
138
|
}
|
|
139
139
|
else {
|
|
140
140
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -160,7 +160,7 @@ const serializeAws_restJson1GetTargetResourceTypeCommand = async (input, context
|
|
|
160
160
|
if (labelValue.length <= 0) {
|
|
161
161
|
throw new Error("Empty value provided for input HTTP label: resourceType.");
|
|
162
162
|
}
|
|
163
|
-
resolvedPath = resolvedPath.replace("{resourceType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
163
|
+
resolvedPath = resolvedPath.replace("{resourceType}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
164
164
|
}
|
|
165
165
|
else {
|
|
166
166
|
throw new Error("No value provided for input HTTP label: resourceType.");
|
|
@@ -249,7 +249,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
249
249
|
if (labelValue.length <= 0) {
|
|
250
250
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
251
251
|
}
|
|
252
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
252
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
253
253
|
}
|
|
254
254
|
else {
|
|
255
255
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -296,7 +296,7 @@ const serializeAws_restJson1StartExperimentCommand = async (input, context) => {
|
|
|
296
296
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/experiments";
|
|
297
297
|
let body;
|
|
298
298
|
body = JSON.stringify({
|
|
299
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
299
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
300
300
|
...(input.experimentTemplateId !== undefined &&
|
|
301
301
|
input.experimentTemplateId !== null && { experimentTemplateId: input.experimentTemplateId }),
|
|
302
302
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
@@ -321,7 +321,7 @@ const serializeAws_restJson1StopExperimentCommand = async (input, context) => {
|
|
|
321
321
|
if (labelValue.length <= 0) {
|
|
322
322
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
323
323
|
}
|
|
324
|
-
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
324
|
+
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
325
325
|
}
|
|
326
326
|
else {
|
|
327
327
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -349,7 +349,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
349
349
|
if (labelValue.length <= 0) {
|
|
350
350
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
351
351
|
}
|
|
352
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
352
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
353
353
|
}
|
|
354
354
|
else {
|
|
355
355
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -378,7 +378,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
378
378
|
if (labelValue.length <= 0) {
|
|
379
379
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
380
380
|
}
|
|
381
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
381
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
382
382
|
}
|
|
383
383
|
else {
|
|
384
384
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -410,7 +410,7 @@ const serializeAws_restJson1UpdateExperimentTemplateCommand = async (input, cont
|
|
|
410
410
|
if (labelValue.length <= 0) {
|
|
411
411
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
412
412
|
}
|
|
413
|
-
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
413
|
+
resolvedPath = resolvedPath.replace("{id}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
414
414
|
}
|
|
415
415
|
else {
|
|
416
416
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -455,7 +455,7 @@ const deserializeAws_restJson1CreateExperimentTemplateCommand = async (output, c
|
|
|
455
455
|
$metadata: deserializeMetadata(output),
|
|
456
456
|
experimentTemplate: undefined,
|
|
457
457
|
};
|
|
458
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
458
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
459
459
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
460
460
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
461
461
|
}
|
|
@@ -490,7 +490,7 @@ const deserializeAws_restJson1CreateExperimentTemplateCommandError = async (outp
|
|
|
490
490
|
$fault: "client",
|
|
491
491
|
$metadata: deserializeMetadata(output),
|
|
492
492
|
});
|
|
493
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
493
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
496
|
const deserializeAws_restJson1DeleteExperimentTemplateCommand = async (output, context) => {
|
|
@@ -501,7 +501,7 @@ const deserializeAws_restJson1DeleteExperimentTemplateCommand = async (output, c
|
|
|
501
501
|
$metadata: deserializeMetadata(output),
|
|
502
502
|
experimentTemplate: undefined,
|
|
503
503
|
};
|
|
504
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
504
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
505
505
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
506
506
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
507
507
|
}
|
|
@@ -530,7 +530,7 @@ const deserializeAws_restJson1DeleteExperimentTemplateCommandError = async (outp
|
|
|
530
530
|
$fault: "client",
|
|
531
531
|
$metadata: deserializeMetadata(output),
|
|
532
532
|
});
|
|
533
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
533
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
536
|
const deserializeAws_restJson1GetActionCommand = async (output, context) => {
|
|
@@ -541,7 +541,7 @@ const deserializeAws_restJson1GetActionCommand = async (output, context) => {
|
|
|
541
541
|
$metadata: deserializeMetadata(output),
|
|
542
542
|
action: undefined,
|
|
543
543
|
};
|
|
544
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
544
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
545
545
|
if (data.action !== undefined && data.action !== null) {
|
|
546
546
|
contents.action = deserializeAws_restJson1Action(data.action, context);
|
|
547
547
|
}
|
|
@@ -570,7 +570,7 @@ const deserializeAws_restJson1GetActionCommandError = async (output, context) =>
|
|
|
570
570
|
$fault: "client",
|
|
571
571
|
$metadata: deserializeMetadata(output),
|
|
572
572
|
});
|
|
573
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
573
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
574
574
|
}
|
|
575
575
|
};
|
|
576
576
|
const deserializeAws_restJson1GetExperimentCommand = async (output, context) => {
|
|
@@ -581,7 +581,7 @@ const deserializeAws_restJson1GetExperimentCommand = async (output, context) =>
|
|
|
581
581
|
$metadata: deserializeMetadata(output),
|
|
582
582
|
experiment: undefined,
|
|
583
583
|
};
|
|
584
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
584
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
585
585
|
if (data.experiment !== undefined && data.experiment !== null) {
|
|
586
586
|
contents.experiment = deserializeAws_restJson1Experiment(data.experiment, context);
|
|
587
587
|
}
|
|
@@ -610,7 +610,7 @@ const deserializeAws_restJson1GetExperimentCommandError = async (output, context
|
|
|
610
610
|
$fault: "client",
|
|
611
611
|
$metadata: deserializeMetadata(output),
|
|
612
612
|
});
|
|
613
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
613
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
614
614
|
}
|
|
615
615
|
};
|
|
616
616
|
const deserializeAws_restJson1GetExperimentTemplateCommand = async (output, context) => {
|
|
@@ -621,7 +621,7 @@ const deserializeAws_restJson1GetExperimentTemplateCommand = async (output, cont
|
|
|
621
621
|
$metadata: deserializeMetadata(output),
|
|
622
622
|
experimentTemplate: undefined,
|
|
623
623
|
};
|
|
624
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
624
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
625
625
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
626
626
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
627
627
|
}
|
|
@@ -650,7 +650,7 @@ const deserializeAws_restJson1GetExperimentTemplateCommandError = async (output,
|
|
|
650
650
|
$fault: "client",
|
|
651
651
|
$metadata: deserializeMetadata(output),
|
|
652
652
|
});
|
|
653
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
653
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
654
654
|
}
|
|
655
655
|
};
|
|
656
656
|
const deserializeAws_restJson1GetTargetResourceTypeCommand = async (output, context) => {
|
|
@@ -661,7 +661,7 @@ const deserializeAws_restJson1GetTargetResourceTypeCommand = async (output, cont
|
|
|
661
661
|
$metadata: deserializeMetadata(output),
|
|
662
662
|
targetResourceType: undefined,
|
|
663
663
|
};
|
|
664
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
664
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
665
665
|
if (data.targetResourceType !== undefined && data.targetResourceType !== null) {
|
|
666
666
|
contents.targetResourceType = deserializeAws_restJson1TargetResourceType(data.targetResourceType, context);
|
|
667
667
|
}
|
|
@@ -690,7 +690,7 @@ const deserializeAws_restJson1GetTargetResourceTypeCommandError = async (output,
|
|
|
690
690
|
$fault: "client",
|
|
691
691
|
$metadata: deserializeMetadata(output),
|
|
692
692
|
});
|
|
693
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
693
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
696
|
const deserializeAws_restJson1ListActionsCommand = async (output, context) => {
|
|
@@ -702,12 +702,12 @@ const deserializeAws_restJson1ListActionsCommand = async (output, context) => {
|
|
|
702
702
|
actions: undefined,
|
|
703
703
|
nextToken: undefined,
|
|
704
704
|
};
|
|
705
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
705
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
706
706
|
if (data.actions !== undefined && data.actions !== null) {
|
|
707
707
|
contents.actions = deserializeAws_restJson1ActionSummaryList(data.actions, context);
|
|
708
708
|
}
|
|
709
709
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
710
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
710
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
711
711
|
}
|
|
712
712
|
return Promise.resolve(contents);
|
|
713
713
|
};
|
|
@@ -731,7 +731,7 @@ const deserializeAws_restJson1ListActionsCommandError = async (output, context)
|
|
|
731
731
|
$fault: "client",
|
|
732
732
|
$metadata: deserializeMetadata(output),
|
|
733
733
|
});
|
|
734
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
734
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
735
735
|
}
|
|
736
736
|
};
|
|
737
737
|
const deserializeAws_restJson1ListExperimentsCommand = async (output, context) => {
|
|
@@ -743,12 +743,12 @@ const deserializeAws_restJson1ListExperimentsCommand = async (output, context) =
|
|
|
743
743
|
experiments: undefined,
|
|
744
744
|
nextToken: undefined,
|
|
745
745
|
};
|
|
746
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
746
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
747
747
|
if (data.experiments !== undefined && data.experiments !== null) {
|
|
748
748
|
contents.experiments = deserializeAws_restJson1ExperimentSummaryList(data.experiments, context);
|
|
749
749
|
}
|
|
750
750
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
751
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
751
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
752
752
|
}
|
|
753
753
|
return Promise.resolve(contents);
|
|
754
754
|
};
|
|
@@ -772,7 +772,7 @@ const deserializeAws_restJson1ListExperimentsCommandError = async (output, conte
|
|
|
772
772
|
$fault: "client",
|
|
773
773
|
$metadata: deserializeMetadata(output),
|
|
774
774
|
});
|
|
775
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
775
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
776
776
|
}
|
|
777
777
|
};
|
|
778
778
|
const deserializeAws_restJson1ListExperimentTemplatesCommand = async (output, context) => {
|
|
@@ -784,12 +784,12 @@ const deserializeAws_restJson1ListExperimentTemplatesCommand = async (output, co
|
|
|
784
784
|
experimentTemplates: undefined,
|
|
785
785
|
nextToken: undefined,
|
|
786
786
|
};
|
|
787
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
787
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
788
788
|
if (data.experimentTemplates !== undefined && data.experimentTemplates !== null) {
|
|
789
789
|
contents.experimentTemplates = deserializeAws_restJson1ExperimentTemplateSummaryList(data.experimentTemplates, context);
|
|
790
790
|
}
|
|
791
791
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
792
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
792
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
793
793
|
}
|
|
794
794
|
return Promise.resolve(contents);
|
|
795
795
|
};
|
|
@@ -813,7 +813,7 @@ const deserializeAws_restJson1ListExperimentTemplatesCommandError = async (outpu
|
|
|
813
813
|
$fault: "client",
|
|
814
814
|
$metadata: deserializeMetadata(output),
|
|
815
815
|
});
|
|
816
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
816
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
817
817
|
}
|
|
818
818
|
};
|
|
819
819
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -824,7 +824,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
824
824
|
$metadata: deserializeMetadata(output),
|
|
825
825
|
tags: undefined,
|
|
826
826
|
};
|
|
827
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
827
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
828
828
|
if (data.tags !== undefined && data.tags !== null) {
|
|
829
829
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
830
830
|
}
|
|
@@ -847,7 +847,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
847
847
|
$fault: "client",
|
|
848
848
|
$metadata: deserializeMetadata(output),
|
|
849
849
|
});
|
|
850
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
850
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
853
|
const deserializeAws_restJson1ListTargetResourceTypesCommand = async (output, context) => {
|
|
@@ -859,9 +859,9 @@ const deserializeAws_restJson1ListTargetResourceTypesCommand = async (output, co
|
|
|
859
859
|
nextToken: undefined,
|
|
860
860
|
targetResourceTypes: undefined,
|
|
861
861
|
};
|
|
862
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
862
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
863
863
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
864
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
864
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
865
865
|
}
|
|
866
866
|
if (data.targetResourceTypes !== undefined && data.targetResourceTypes !== null) {
|
|
867
867
|
contents.targetResourceTypes = deserializeAws_restJson1TargetResourceTypeSummaryList(data.targetResourceTypes, context);
|
|
@@ -888,7 +888,7 @@ const deserializeAws_restJson1ListTargetResourceTypesCommandError = async (outpu
|
|
|
888
888
|
$fault: "client",
|
|
889
889
|
$metadata: deserializeMetadata(output),
|
|
890
890
|
});
|
|
891
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
891
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
894
|
const deserializeAws_restJson1StartExperimentCommand = async (output, context) => {
|
|
@@ -899,7 +899,7 @@ const deserializeAws_restJson1StartExperimentCommand = async (output, context) =
|
|
|
899
899
|
$metadata: deserializeMetadata(output),
|
|
900
900
|
experiment: undefined,
|
|
901
901
|
};
|
|
902
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
902
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
903
903
|
if (data.experiment !== undefined && data.experiment !== null) {
|
|
904
904
|
contents.experiment = deserializeAws_restJson1Experiment(data.experiment, context);
|
|
905
905
|
}
|
|
@@ -934,7 +934,7 @@ const deserializeAws_restJson1StartExperimentCommandError = async (output, conte
|
|
|
934
934
|
$fault: "client",
|
|
935
935
|
$metadata: deserializeMetadata(output),
|
|
936
936
|
});
|
|
937
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
937
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
938
938
|
}
|
|
939
939
|
};
|
|
940
940
|
const deserializeAws_restJson1StopExperimentCommand = async (output, context) => {
|
|
@@ -945,7 +945,7 @@ const deserializeAws_restJson1StopExperimentCommand = async (output, context) =>
|
|
|
945
945
|
$metadata: deserializeMetadata(output),
|
|
946
946
|
experiment: undefined,
|
|
947
947
|
};
|
|
948
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
948
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
949
949
|
if (data.experiment !== undefined && data.experiment !== null) {
|
|
950
950
|
contents.experiment = deserializeAws_restJson1Experiment(data.experiment, context);
|
|
951
951
|
}
|
|
@@ -974,7 +974,7 @@ const deserializeAws_restJson1StopExperimentCommandError = async (output, contex
|
|
|
974
974
|
$fault: "client",
|
|
975
975
|
$metadata: deserializeMetadata(output),
|
|
976
976
|
});
|
|
977
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
977
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
980
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -1004,7 +1004,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1004
1004
|
$fault: "client",
|
|
1005
1005
|
$metadata: deserializeMetadata(output),
|
|
1006
1006
|
});
|
|
1007
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1007
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1008
1008
|
}
|
|
1009
1009
|
};
|
|
1010
1010
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -1034,7 +1034,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1034
1034
|
$fault: "client",
|
|
1035
1035
|
$metadata: deserializeMetadata(output),
|
|
1036
1036
|
});
|
|
1037
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1037
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1038
1038
|
}
|
|
1039
1039
|
};
|
|
1040
1040
|
const deserializeAws_restJson1UpdateExperimentTemplateCommand = async (output, context) => {
|
|
@@ -1045,7 +1045,7 @@ const deserializeAws_restJson1UpdateExperimentTemplateCommand = async (output, c
|
|
|
1045
1045
|
$metadata: deserializeMetadata(output),
|
|
1046
1046
|
experimentTemplate: undefined,
|
|
1047
1047
|
};
|
|
1048
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1048
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1049
1049
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
1050
1050
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
1051
1051
|
}
|
|
@@ -1077,56 +1077,56 @@ const deserializeAws_restJson1UpdateExperimentTemplateCommandError = async (outp
|
|
|
1077
1077
|
$fault: "client",
|
|
1078
1078
|
$metadata: deserializeMetadata(output),
|
|
1079
1079
|
});
|
|
1080
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1080
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1081
1081
|
}
|
|
1082
1082
|
};
|
|
1083
1083
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1084
1084
|
const contents = {};
|
|
1085
1085
|
const data = parsedOutput.body;
|
|
1086
1086
|
if (data.message !== undefined && data.message !== null) {
|
|
1087
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1087
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1088
1088
|
}
|
|
1089
1089
|
const exception = new models_0_1.ConflictException({
|
|
1090
1090
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1091
1091
|
...contents,
|
|
1092
1092
|
});
|
|
1093
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1093
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1094
1094
|
};
|
|
1095
1095
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1096
1096
|
const contents = {};
|
|
1097
1097
|
const data = parsedOutput.body;
|
|
1098
1098
|
if (data.message !== undefined && data.message !== null) {
|
|
1099
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1099
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1100
1100
|
}
|
|
1101
1101
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1102
1102
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1103
1103
|
...contents,
|
|
1104
1104
|
});
|
|
1105
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1105
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1106
1106
|
};
|
|
1107
1107
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1108
1108
|
const contents = {};
|
|
1109
1109
|
const data = parsedOutput.body;
|
|
1110
1110
|
if (data.message !== undefined && data.message !== null) {
|
|
1111
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1111
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1112
1112
|
}
|
|
1113
1113
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1114
1114
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1115
1115
|
...contents,
|
|
1116
1116
|
});
|
|
1117
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1117
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1118
1118
|
};
|
|
1119
1119
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1120
1120
|
const contents = {};
|
|
1121
1121
|
const data = parsedOutput.body;
|
|
1122
1122
|
if (data.message !== undefined && data.message !== null) {
|
|
1123
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1123
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1124
1124
|
}
|
|
1125
1125
|
const exception = new models_0_1.ValidationException({
|
|
1126
1126
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1127
1127
|
...contents,
|
|
1128
1128
|
});
|
|
1129
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1129
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1130
1130
|
};
|
|
1131
1131
|
const serializeAws_restJson1CreateExperimentTemplateActionInput = (input, context) => {
|
|
1132
1132
|
return {
|
|
@@ -1414,8 +1414,8 @@ const serializeAws_restJson1UpdateExperimentTemplateTargetInputMap = (input, con
|
|
|
1414
1414
|
};
|
|
1415
1415
|
const deserializeAws_restJson1Action = (output, context) => {
|
|
1416
1416
|
return {
|
|
1417
|
-
description: smithy_client_1.expectString(output.description),
|
|
1418
|
-
id: smithy_client_1.expectString(output.id),
|
|
1417
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1418
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
1419
1419
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1420
1420
|
? deserializeAws_restJson1ActionParameterMap(output.parameters, context)
|
|
1421
1421
|
: undefined,
|
|
@@ -1429,8 +1429,8 @@ const deserializeAws_restJson1Action = (output, context) => {
|
|
|
1429
1429
|
};
|
|
1430
1430
|
const deserializeAws_restJson1ActionParameter = (output, context) => {
|
|
1431
1431
|
return {
|
|
1432
|
-
description: smithy_client_1.expectString(output.description),
|
|
1433
|
-
required: smithy_client_1.expectBoolean(output.required),
|
|
1432
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1433
|
+
required: (0, smithy_client_1.expectBoolean)(output.required),
|
|
1434
1434
|
};
|
|
1435
1435
|
};
|
|
1436
1436
|
const deserializeAws_restJson1ActionParameterMap = (output, context) => {
|
|
@@ -1446,8 +1446,8 @@ const deserializeAws_restJson1ActionParameterMap = (output, context) => {
|
|
|
1446
1446
|
};
|
|
1447
1447
|
const deserializeAws_restJson1ActionSummary = (output, context) => {
|
|
1448
1448
|
return {
|
|
1449
|
-
description: smithy_client_1.expectString(output.description),
|
|
1450
|
-
id: smithy_client_1.expectString(output.id),
|
|
1449
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1450
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
1451
1451
|
tags: output.tags !== undefined && output.tags !== null
|
|
1452
1452
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
1453
1453
|
: undefined,
|
|
@@ -1469,7 +1469,7 @@ const deserializeAws_restJson1ActionSummaryList = (output, context) => {
|
|
|
1469
1469
|
};
|
|
1470
1470
|
const deserializeAws_restJson1ActionTarget = (output, context) => {
|
|
1471
1471
|
return {
|
|
1472
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
1472
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1473
1473
|
};
|
|
1474
1474
|
};
|
|
1475
1475
|
const deserializeAws_restJson1ActionTargetMap = (output, context) => {
|
|
@@ -1489,19 +1489,19 @@ const deserializeAws_restJson1Experiment = (output, context) => {
|
|
|
1489
1489
|
? deserializeAws_restJson1ExperimentActionMap(output.actions, context)
|
|
1490
1490
|
: undefined,
|
|
1491
1491
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1492
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
1492
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1493
1493
|
: undefined,
|
|
1494
1494
|
endTime: output.endTime !== undefined && output.endTime !== null
|
|
1495
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
|
|
1495
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
|
|
1496
1496
|
: undefined,
|
|
1497
|
-
experimentTemplateId: smithy_client_1.expectString(output.experimentTemplateId),
|
|
1498
|
-
id: smithy_client_1.expectString(output.id),
|
|
1497
|
+
experimentTemplateId: (0, smithy_client_1.expectString)(output.experimentTemplateId),
|
|
1498
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
1499
1499
|
logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
|
|
1500
1500
|
? deserializeAws_restJson1ExperimentLogConfiguration(output.logConfiguration, context)
|
|
1501
1501
|
: undefined,
|
|
1502
|
-
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
1502
|
+
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
1503
1503
|
startTime: output.startTime !== undefined && output.startTime !== null
|
|
1504
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
|
|
1504
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
1505
1505
|
: undefined,
|
|
1506
1506
|
state: output.state !== undefined && output.state !== null
|
|
1507
1507
|
? deserializeAws_restJson1ExperimentState(output.state, context)
|
|
@@ -1519,10 +1519,10 @@ const deserializeAws_restJson1Experiment = (output, context) => {
|
|
|
1519
1519
|
};
|
|
1520
1520
|
const deserializeAws_restJson1ExperimentAction = (output, context) => {
|
|
1521
1521
|
return {
|
|
1522
|
-
actionId: smithy_client_1.expectString(output.actionId),
|
|
1523
|
-
description: smithy_client_1.expectString(output.description),
|
|
1522
|
+
actionId: (0, smithy_client_1.expectString)(output.actionId),
|
|
1523
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1524
1524
|
endTime: output.endTime !== undefined && output.endTime !== null
|
|
1525
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
|
|
1525
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
|
|
1526
1526
|
: undefined,
|
|
1527
1527
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1528
1528
|
? deserializeAws_restJson1ExperimentActionParameterMap(output.parameters, context)
|
|
@@ -1531,7 +1531,7 @@ const deserializeAws_restJson1ExperimentAction = (output, context) => {
|
|
|
1531
1531
|
? deserializeAws_restJson1ExperimentActionStartAfterList(output.startAfter, context)
|
|
1532
1532
|
: undefined,
|
|
1533
1533
|
startTime: output.startTime !== undefined && output.startTime !== null
|
|
1534
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
|
|
1534
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
1535
1535
|
: undefined,
|
|
1536
1536
|
state: output.state !== undefined && output.state !== null
|
|
1537
1537
|
? deserializeAws_restJson1ExperimentActionState(output.state, context)
|
|
@@ -1559,7 +1559,7 @@ const deserializeAws_restJson1ExperimentActionParameterMap = (output, context) =
|
|
|
1559
1559
|
}
|
|
1560
1560
|
return {
|
|
1561
1561
|
...acc,
|
|
1562
|
-
[key]: smithy_client_1.expectString(value),
|
|
1562
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1563
1563
|
};
|
|
1564
1564
|
}, {});
|
|
1565
1565
|
};
|
|
@@ -1570,14 +1570,14 @@ const deserializeAws_restJson1ExperimentActionStartAfterList = (output, context)
|
|
|
1570
1570
|
if (entry === null) {
|
|
1571
1571
|
return null;
|
|
1572
1572
|
}
|
|
1573
|
-
return smithy_client_1.expectString(entry);
|
|
1573
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1574
1574
|
});
|
|
1575
1575
|
return retVal;
|
|
1576
1576
|
};
|
|
1577
1577
|
const deserializeAws_restJson1ExperimentActionState = (output, context) => {
|
|
1578
1578
|
return {
|
|
1579
|
-
reason: smithy_client_1.expectString(output.reason),
|
|
1580
|
-
status: smithy_client_1.expectString(output.status),
|
|
1579
|
+
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
1580
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1581
1581
|
};
|
|
1582
1582
|
};
|
|
1583
1583
|
const deserializeAws_restJson1ExperimentActionTargetMap = (output, context) => {
|
|
@@ -1587,13 +1587,13 @@ const deserializeAws_restJson1ExperimentActionTargetMap = (output, context) => {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
return {
|
|
1589
1589
|
...acc,
|
|
1590
|
-
[key]: smithy_client_1.expectString(value),
|
|
1590
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1591
1591
|
};
|
|
1592
1592
|
}, {});
|
|
1593
1593
|
};
|
|
1594
1594
|
const deserializeAws_restJson1ExperimentCloudWatchLogsLogConfiguration = (output, context) => {
|
|
1595
1595
|
return {
|
|
1596
|
-
logGroupArn: smithy_client_1.expectString(output.logGroupArn),
|
|
1596
|
+
logGroupArn: (0, smithy_client_1.expectString)(output.logGroupArn),
|
|
1597
1597
|
};
|
|
1598
1598
|
};
|
|
1599
1599
|
const deserializeAws_restJson1ExperimentLogConfiguration = (output, context) => {
|
|
@@ -1601,7 +1601,7 @@ const deserializeAws_restJson1ExperimentLogConfiguration = (output, context) =>
|
|
|
1601
1601
|
cloudWatchLogsConfiguration: output.cloudWatchLogsConfiguration !== undefined && output.cloudWatchLogsConfiguration !== null
|
|
1602
1602
|
? deserializeAws_restJson1ExperimentCloudWatchLogsLogConfiguration(output.cloudWatchLogsConfiguration, context)
|
|
1603
1603
|
: undefined,
|
|
1604
|
-
logSchemaVersion: smithy_client_1.expectInt32(output.logSchemaVersion),
|
|
1604
|
+
logSchemaVersion: (0, smithy_client_1.expectInt32)(output.logSchemaVersion),
|
|
1605
1605
|
s3Configuration: output.s3Configuration !== undefined && output.s3Configuration !== null
|
|
1606
1606
|
? deserializeAws_restJson1ExperimentS3LogConfiguration(output.s3Configuration, context)
|
|
1607
1607
|
: undefined,
|
|
@@ -1609,20 +1609,20 @@ const deserializeAws_restJson1ExperimentLogConfiguration = (output, context) =>
|
|
|
1609
1609
|
};
|
|
1610
1610
|
const deserializeAws_restJson1ExperimentS3LogConfiguration = (output, context) => {
|
|
1611
1611
|
return {
|
|
1612
|
-
bucketName: smithy_client_1.expectString(output.bucketName),
|
|
1613
|
-
prefix: smithy_client_1.expectString(output.prefix),
|
|
1612
|
+
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
1613
|
+
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
1614
1614
|
};
|
|
1615
1615
|
};
|
|
1616
1616
|
const deserializeAws_restJson1ExperimentState = (output, context) => {
|
|
1617
1617
|
return {
|
|
1618
|
-
reason: smithy_client_1.expectString(output.reason),
|
|
1619
|
-
status: smithy_client_1.expectString(output.status),
|
|
1618
|
+
reason: (0, smithy_client_1.expectString)(output.reason),
|
|
1619
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1620
1620
|
};
|
|
1621
1621
|
};
|
|
1622
1622
|
const deserializeAws_restJson1ExperimentStopCondition = (output, context) => {
|
|
1623
1623
|
return {
|
|
1624
|
-
source: smithy_client_1.expectString(output.source),
|
|
1625
|
-
value: smithy_client_1.expectString(output.value),
|
|
1624
|
+
source: (0, smithy_client_1.expectString)(output.source),
|
|
1625
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
1626
1626
|
};
|
|
1627
1627
|
};
|
|
1628
1628
|
const deserializeAws_restJson1ExperimentStopConditionList = (output, context) => {
|
|
@@ -1639,10 +1639,10 @@ const deserializeAws_restJson1ExperimentStopConditionList = (output, context) =>
|
|
|
1639
1639
|
const deserializeAws_restJson1ExperimentSummary = (output, context) => {
|
|
1640
1640
|
return {
|
|
1641
1641
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1642
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
1642
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1643
1643
|
: undefined,
|
|
1644
|
-
experimentTemplateId: smithy_client_1.expectString(output.experimentTemplateId),
|
|
1645
|
-
id: smithy_client_1.expectString(output.id),
|
|
1644
|
+
experimentTemplateId: (0, smithy_client_1.expectString)(output.experimentTemplateId),
|
|
1645
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
1646
1646
|
state: output.state !== undefined && output.state !== null
|
|
1647
1647
|
? deserializeAws_restJson1ExperimentState(output.state, context)
|
|
1648
1648
|
: undefined,
|
|
@@ -1676,13 +1676,13 @@ const deserializeAws_restJson1ExperimentTarget = (output, context) => {
|
|
|
1676
1676
|
resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
|
|
1677
1677
|
? deserializeAws_restJson1TagMap(output.resourceTags, context)
|
|
1678
1678
|
: undefined,
|
|
1679
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
1680
|
-
selectionMode: smithy_client_1.expectString(output.selectionMode),
|
|
1679
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1680
|
+
selectionMode: (0, smithy_client_1.expectString)(output.selectionMode),
|
|
1681
1681
|
};
|
|
1682
1682
|
};
|
|
1683
1683
|
const deserializeAws_restJson1ExperimentTargetFilter = (output, context) => {
|
|
1684
1684
|
return {
|
|
1685
|
-
path: smithy_client_1.expectString(output.path),
|
|
1685
|
+
path: (0, smithy_client_1.expectString)(output.path),
|
|
1686
1686
|
values: output.values !== undefined && output.values !== null
|
|
1687
1687
|
? deserializeAws_restJson1ExperimentTargetFilterValues(output.values, context)
|
|
1688
1688
|
: undefined,
|
|
@@ -1706,7 +1706,7 @@ const deserializeAws_restJson1ExperimentTargetFilterValues = (output, context) =
|
|
|
1706
1706
|
if (entry === null) {
|
|
1707
1707
|
return null;
|
|
1708
1708
|
}
|
|
1709
|
-
return smithy_client_1.expectString(entry);
|
|
1709
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1710
1710
|
});
|
|
1711
1711
|
return retVal;
|
|
1712
1712
|
};
|
|
@@ -1728,7 +1728,7 @@ const deserializeAws_restJson1ExperimentTargetParameterMap = (output, context) =
|
|
|
1728
1728
|
}
|
|
1729
1729
|
return {
|
|
1730
1730
|
...acc,
|
|
1731
|
-
[key]: smithy_client_1.expectString(value),
|
|
1731
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1732
1732
|
};
|
|
1733
1733
|
}, {});
|
|
1734
1734
|
};
|
|
@@ -1738,17 +1738,17 @@ const deserializeAws_restJson1ExperimentTemplate = (output, context) => {
|
|
|
1738
1738
|
? deserializeAws_restJson1ExperimentTemplateActionMap(output.actions, context)
|
|
1739
1739
|
: undefined,
|
|
1740
1740
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1741
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
1741
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1742
1742
|
: undefined,
|
|
1743
|
-
description: smithy_client_1.expectString(output.description),
|
|
1744
|
-
id: smithy_client_1.expectString(output.id),
|
|
1743
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1744
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
1745
1745
|
lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
|
|
1746
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateTime)))
|
|
1746
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1747
1747
|
: undefined,
|
|
1748
1748
|
logConfiguration: output.logConfiguration !== undefined && output.logConfiguration !== null
|
|
1749
1749
|
? deserializeAws_restJson1ExperimentTemplateLogConfiguration(output.logConfiguration, context)
|
|
1750
1750
|
: undefined,
|
|
1751
|
-
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
1751
|
+
roleArn: (0, smithy_client_1.expectString)(output.roleArn),
|
|
1752
1752
|
stopConditions: output.stopConditions !== undefined && output.stopConditions !== null
|
|
1753
1753
|
? deserializeAws_restJson1ExperimentTemplateStopConditionList(output.stopConditions, context)
|
|
1754
1754
|
: undefined,
|
|
@@ -1762,8 +1762,8 @@ const deserializeAws_restJson1ExperimentTemplate = (output, context) => {
|
|
|
1762
1762
|
};
|
|
1763
1763
|
const deserializeAws_restJson1ExperimentTemplateAction = (output, context) => {
|
|
1764
1764
|
return {
|
|
1765
|
-
actionId: smithy_client_1.expectString(output.actionId),
|
|
1766
|
-
description: smithy_client_1.expectString(output.description),
|
|
1765
|
+
actionId: (0, smithy_client_1.expectString)(output.actionId),
|
|
1766
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1767
1767
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1768
1768
|
? deserializeAws_restJson1ExperimentTemplateActionParameterMap(output.parameters, context)
|
|
1769
1769
|
: undefined,
|
|
@@ -1793,7 +1793,7 @@ const deserializeAws_restJson1ExperimentTemplateActionParameterMap = (output, co
|
|
|
1793
1793
|
}
|
|
1794
1794
|
return {
|
|
1795
1795
|
...acc,
|
|
1796
|
-
[key]: smithy_client_1.expectString(value),
|
|
1796
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1797
1797
|
};
|
|
1798
1798
|
}, {});
|
|
1799
1799
|
};
|
|
@@ -1804,7 +1804,7 @@ const deserializeAws_restJson1ExperimentTemplateActionStartAfterList = (output,
|
|
|
1804
1804
|
if (entry === null) {
|
|
1805
1805
|
return null;
|
|
1806
1806
|
}
|
|
1807
|
-
return smithy_client_1.expectString(entry);
|
|
1807
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1808
1808
|
});
|
|
1809
1809
|
return retVal;
|
|
1810
1810
|
};
|
|
@@ -1815,13 +1815,13 @@ const deserializeAws_restJson1ExperimentTemplateActionTargetMap = (output, conte
|
|
|
1815
1815
|
}
|
|
1816
1816
|
return {
|
|
1817
1817
|
...acc,
|
|
1818
|
-
[key]: smithy_client_1.expectString(value),
|
|
1818
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1819
1819
|
};
|
|
1820
1820
|
}, {});
|
|
1821
1821
|
};
|
|
1822
1822
|
const deserializeAws_restJson1ExperimentTemplateCloudWatchLogsLogConfiguration = (output, context) => {
|
|
1823
1823
|
return {
|
|
1824
|
-
logGroupArn: smithy_client_1.expectString(output.logGroupArn),
|
|
1824
|
+
logGroupArn: (0, smithy_client_1.expectString)(output.logGroupArn),
|
|
1825
1825
|
};
|
|
1826
1826
|
};
|
|
1827
1827
|
const deserializeAws_restJson1ExperimentTemplateLogConfiguration = (output, context) => {
|
|
@@ -1829,7 +1829,7 @@ const deserializeAws_restJson1ExperimentTemplateLogConfiguration = (output, cont
|
|
|
1829
1829
|
cloudWatchLogsConfiguration: output.cloudWatchLogsConfiguration !== undefined && output.cloudWatchLogsConfiguration !== null
|
|
1830
1830
|
? deserializeAws_restJson1ExperimentTemplateCloudWatchLogsLogConfiguration(output.cloudWatchLogsConfiguration, context)
|
|
1831
1831
|
: undefined,
|
|
1832
|
-
logSchemaVersion: smithy_client_1.expectInt32(output.logSchemaVersion),
|
|
1832
|
+
logSchemaVersion: (0, smithy_client_1.expectInt32)(output.logSchemaVersion),
|
|
1833
1833
|
s3Configuration: output.s3Configuration !== undefined && output.s3Configuration !== null
|
|
1834
1834
|
? deserializeAws_restJson1ExperimentTemplateS3LogConfiguration(output.s3Configuration, context)
|
|
1835
1835
|
: undefined,
|
|
@@ -1837,14 +1837,14 @@ const deserializeAws_restJson1ExperimentTemplateLogConfiguration = (output, cont
|
|
|
1837
1837
|
};
|
|
1838
1838
|
const deserializeAws_restJson1ExperimentTemplateS3LogConfiguration = (output, context) => {
|
|
1839
1839
|
return {
|
|
1840
|
-
bucketName: smithy_client_1.expectString(output.bucketName),
|
|
1841
|
-
prefix: smithy_client_1.expectString(output.prefix),
|
|
1840
|
+
bucketName: (0, smithy_client_1.expectString)(output.bucketName),
|
|
1841
|
+
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
1842
1842
|
};
|
|
1843
1843
|
};
|
|
1844
1844
|
const deserializeAws_restJson1ExperimentTemplateStopCondition = (output, context) => {
|
|
1845
1845
|
return {
|
|
1846
|
-
source: smithy_client_1.expectString(output.source),
|
|
1847
|
-
value: smithy_client_1.expectString(output.value),
|
|
1846
|
+
source: (0, smithy_client_1.expectString)(output.source),
|
|
1847
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
1848
1848
|
};
|
|
1849
1849
|
};
|
|
1850
1850
|
const deserializeAws_restJson1ExperimentTemplateStopConditionList = (output, context) => {
|
|
@@ -1861,12 +1861,12 @@ const deserializeAws_restJson1ExperimentTemplateStopConditionList = (output, con
|
|
|
1861
1861
|
const deserializeAws_restJson1ExperimentTemplateSummary = (output, context) => {
|
|
1862
1862
|
return {
|
|
1863
1863
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1864
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
1864
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationTime)))
|
|
1865
1865
|
: undefined,
|
|
1866
|
-
description: smithy_client_1.expectString(output.description),
|
|
1867
|
-
id: smithy_client_1.expectString(output.id),
|
|
1866
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1867
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
1868
1868
|
lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
|
|
1869
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateTime)))
|
|
1869
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdateTime)))
|
|
1870
1870
|
: undefined,
|
|
1871
1871
|
tags: output.tags !== undefined && output.tags !== null
|
|
1872
1872
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
@@ -1898,13 +1898,13 @@ const deserializeAws_restJson1ExperimentTemplateTarget = (output, context) => {
|
|
|
1898
1898
|
resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
|
|
1899
1899
|
? deserializeAws_restJson1TagMap(output.resourceTags, context)
|
|
1900
1900
|
: undefined,
|
|
1901
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
1902
|
-
selectionMode: smithy_client_1.expectString(output.selectionMode),
|
|
1901
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1902
|
+
selectionMode: (0, smithy_client_1.expectString)(output.selectionMode),
|
|
1903
1903
|
};
|
|
1904
1904
|
};
|
|
1905
1905
|
const deserializeAws_restJson1ExperimentTemplateTargetFilter = (output, context) => {
|
|
1906
1906
|
return {
|
|
1907
|
-
path: smithy_client_1.expectString(output.path),
|
|
1907
|
+
path: (0, smithy_client_1.expectString)(output.path),
|
|
1908
1908
|
values: output.values !== undefined && output.values !== null
|
|
1909
1909
|
? deserializeAws_restJson1ExperimentTemplateTargetFilterValues(output.values, context)
|
|
1910
1910
|
: undefined,
|
|
@@ -1928,7 +1928,7 @@ const deserializeAws_restJson1ExperimentTemplateTargetFilterValues = (output, co
|
|
|
1928
1928
|
if (entry === null) {
|
|
1929
1929
|
return null;
|
|
1930
1930
|
}
|
|
1931
|
-
return smithy_client_1.expectString(entry);
|
|
1931
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1932
1932
|
});
|
|
1933
1933
|
return retVal;
|
|
1934
1934
|
};
|
|
@@ -1950,7 +1950,7 @@ const deserializeAws_restJson1ExperimentTemplateTargetParameterMap = (output, co
|
|
|
1950
1950
|
}
|
|
1951
1951
|
return {
|
|
1952
1952
|
...acc,
|
|
1953
|
-
[key]: smithy_client_1.expectString(value),
|
|
1953
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1954
1954
|
};
|
|
1955
1955
|
}, {});
|
|
1956
1956
|
};
|
|
@@ -1961,7 +1961,7 @@ const deserializeAws_restJson1ResourceArnList = (output, context) => {
|
|
|
1961
1961
|
if (entry === null) {
|
|
1962
1962
|
return null;
|
|
1963
1963
|
}
|
|
1964
|
-
return smithy_client_1.expectString(entry);
|
|
1964
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1965
1965
|
});
|
|
1966
1966
|
return retVal;
|
|
1967
1967
|
};
|
|
@@ -1972,23 +1972,23 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
return {
|
|
1974
1974
|
...acc,
|
|
1975
|
-
[key]: smithy_client_1.expectString(value),
|
|
1975
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1976
1976
|
};
|
|
1977
1977
|
}, {});
|
|
1978
1978
|
};
|
|
1979
1979
|
const deserializeAws_restJson1TargetResourceType = (output, context) => {
|
|
1980
1980
|
return {
|
|
1981
|
-
description: smithy_client_1.expectString(output.description),
|
|
1981
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1982
1982
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1983
1983
|
? deserializeAws_restJson1TargetResourceTypeParameterMap(output.parameters, context)
|
|
1984
1984
|
: undefined,
|
|
1985
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
1985
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
1986
1986
|
};
|
|
1987
1987
|
};
|
|
1988
1988
|
const deserializeAws_restJson1TargetResourceTypeParameter = (output, context) => {
|
|
1989
1989
|
return {
|
|
1990
|
-
description: smithy_client_1.expectString(output.description),
|
|
1991
|
-
required: smithy_client_1.expectBoolean(output.required),
|
|
1990
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1991
|
+
required: (0, smithy_client_1.expectBoolean)(output.required),
|
|
1992
1992
|
};
|
|
1993
1993
|
};
|
|
1994
1994
|
const deserializeAws_restJson1TargetResourceTypeParameterMap = (output, context) => {
|
|
@@ -2004,8 +2004,8 @@ const deserializeAws_restJson1TargetResourceTypeParameterMap = (output, context)
|
|
|
2004
2004
|
};
|
|
2005
2005
|
const deserializeAws_restJson1TargetResourceTypeSummary = (output, context) => {
|
|
2006
2006
|
return {
|
|
2007
|
-
description: smithy_client_1.expectString(output.description),
|
|
2008
|
-
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2007
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
2008
|
+
resourceType: (0, smithy_client_1.expectString)(output.resourceType),
|
|
2009
2009
|
};
|
|
2010
2010
|
};
|
|
2011
2011
|
const deserializeAws_restJson1TargetResourceTypeSummaryList = (output, context) => {
|