@aws-sdk/client-fis 3.47.1 → 3.50.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 +38 -0
- package/README.md +2 -2
- package/dist-cjs/Fis.js +30 -0
- package/dist-cjs/commands/GetTargetResourceTypeCommand.js +36 -0
- package/dist-cjs/commands/ListTargetResourceTypesCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +44 -2
- package/dist-cjs/pagination/ListTargetResourceTypesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +251 -1
- package/dist-es/Fis.js +30 -0
- package/dist-es/commands/GetTargetResourceTypeCommand.js +39 -0
- package/dist-es/commands/ListTargetResourceTypesCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/pagination/ListTargetResourceTypesPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +281 -2
- package/dist-types/Fis.d.ts +23 -8
- package/dist-types/FisClient.d.ts +6 -4
- package/dist-types/commands/CreateExperimentTemplateCommand.d.ts +5 -4
- package/dist-types/commands/GetActionCommand.d.ts +1 -1
- package/dist-types/commands/GetTargetResourceTypeCommand.d.ts +35 -0
- package/dist-types/commands/ListActionsCommand.d.ts +1 -1
- package/dist-types/commands/ListTargetResourceTypesCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +170 -12
- package/dist-types/pagination/ListTargetResourceTypesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +39 -33
- package/dist-types/ts3.4/Fis.d.ts +0 -75
- package/dist-types/ts3.4/FisClient.d.ts +0 -87
- package/dist-types/ts3.4/commands/CreateExperimentTemplateCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/DeleteExperimentTemplateCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetActionCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetExperimentCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/GetExperimentTemplateCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListActionsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListExperimentTemplatesCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListExperimentsCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StartExperimentCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/StopExperimentCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/UpdateExperimentTemplateCommand.d.ts +0 -17
- package/dist-types/ts3.4/commands/index.d.ts +0 -14
- package/dist-types/ts3.4/endpoints.d.ts +0 -2
- package/dist-types/ts3.4/index.d.ts +0 -5
- package/dist-types/ts3.4/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -749
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +0 -6
- package/dist-types/ts3.4/pagination/ListActionsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListExperimentTemplatesPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListExperimentsPaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/index.d.ts +0 -4
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -44
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -38
- package/dist-types/ts3.4/runtimeConfig.d.ts +0 -38
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -37
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateExperimentTemplateCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopExperimentCommand = exports.deserializeAws_restJson1StartExperimentCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListExperimentTemplatesCommand = exports.deserializeAws_restJson1ListExperimentsCommand = exports.deserializeAws_restJson1ListActionsCommand = exports.deserializeAws_restJson1GetExperimentTemplateCommand = exports.deserializeAws_restJson1GetExperimentCommand = exports.deserializeAws_restJson1GetActionCommand = exports.deserializeAws_restJson1DeleteExperimentTemplateCommand = exports.deserializeAws_restJson1CreateExperimentTemplateCommand = exports.serializeAws_restJson1UpdateExperimentTemplateCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopExperimentCommand = exports.serializeAws_restJson1StartExperimentCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListExperimentTemplatesCommand = exports.serializeAws_restJson1ListExperimentsCommand = exports.serializeAws_restJson1ListActionsCommand = exports.serializeAws_restJson1GetExperimentTemplateCommand = exports.serializeAws_restJson1GetExperimentCommand = exports.serializeAws_restJson1GetActionCommand = exports.serializeAws_restJson1DeleteExperimentTemplateCommand = exports.serializeAws_restJson1CreateExperimentTemplateCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateExperimentTemplateCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopExperimentCommand = exports.deserializeAws_restJson1StartExperimentCommand = exports.deserializeAws_restJson1ListTargetResourceTypesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListExperimentTemplatesCommand = exports.deserializeAws_restJson1ListExperimentsCommand = exports.deserializeAws_restJson1ListActionsCommand = exports.deserializeAws_restJson1GetTargetResourceTypeCommand = exports.deserializeAws_restJson1GetExperimentTemplateCommand = exports.deserializeAws_restJson1GetExperimentCommand = exports.deserializeAws_restJson1GetActionCommand = exports.deserializeAws_restJson1DeleteExperimentTemplateCommand = exports.deserializeAws_restJson1CreateExperimentTemplateCommand = exports.serializeAws_restJson1UpdateExperimentTemplateCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopExperimentCommand = exports.serializeAws_restJson1StartExperimentCommand = exports.serializeAws_restJson1ListTargetResourceTypesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListExperimentTemplatesCommand = exports.serializeAws_restJson1ListExperimentsCommand = exports.serializeAws_restJson1ListActionsCommand = exports.serializeAws_restJson1GetTargetResourceTypeCommand = exports.serializeAws_restJson1GetExperimentTemplateCommand = exports.serializeAws_restJson1GetExperimentCommand = exports.serializeAws_restJson1GetActionCommand = exports.serializeAws_restJson1DeleteExperimentTemplateCommand = exports.serializeAws_restJson1CreateExperimentTemplateCommand = 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");
|
|
@@ -145,6 +145,32 @@ const serializeAws_restJson1GetExperimentTemplateCommand = async (input, context
|
|
|
145
145
|
});
|
|
146
146
|
};
|
|
147
147
|
exports.serializeAws_restJson1GetExperimentTemplateCommand = serializeAws_restJson1GetExperimentTemplateCommand;
|
|
148
|
+
const serializeAws_restJson1GetTargetResourceTypeCommand = async (input, context) => {
|
|
149
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
|
+
const headers = {};
|
|
151
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/targetResourceTypes/{resourceType}";
|
|
152
|
+
if (input.resourceType !== undefined) {
|
|
153
|
+
const labelValue = input.resourceType;
|
|
154
|
+
if (labelValue.length <= 0) {
|
|
155
|
+
throw new Error("Empty value provided for input HTTP label: resourceType.");
|
|
156
|
+
}
|
|
157
|
+
resolvedPath = resolvedPath.replace("{resourceType}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
throw new Error("No value provided for input HTTP label: resourceType.");
|
|
161
|
+
}
|
|
162
|
+
let body;
|
|
163
|
+
return new protocol_http_1.HttpRequest({
|
|
164
|
+
protocol,
|
|
165
|
+
hostname,
|
|
166
|
+
port,
|
|
167
|
+
method: "GET",
|
|
168
|
+
headers,
|
|
169
|
+
path: resolvedPath,
|
|
170
|
+
body,
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
exports.serializeAws_restJson1GetTargetResourceTypeCommand = serializeAws_restJson1GetTargetResourceTypeCommand;
|
|
148
174
|
const serializeAws_restJson1ListActionsCommand = async (input, context) => {
|
|
149
175
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
176
|
const headers = {};
|
|
@@ -234,6 +260,27 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
234
260
|
});
|
|
235
261
|
};
|
|
236
262
|
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
263
|
+
const serializeAws_restJson1ListTargetResourceTypesCommand = async (input, context) => {
|
|
264
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
265
|
+
const headers = {};
|
|
266
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/targetResourceTypes";
|
|
267
|
+
const query = {
|
|
268
|
+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
269
|
+
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
270
|
+
};
|
|
271
|
+
let body;
|
|
272
|
+
return new protocol_http_1.HttpRequest({
|
|
273
|
+
protocol,
|
|
274
|
+
hostname,
|
|
275
|
+
port,
|
|
276
|
+
method: "GET",
|
|
277
|
+
headers,
|
|
278
|
+
path: resolvedPath,
|
|
279
|
+
query,
|
|
280
|
+
body,
|
|
281
|
+
});
|
|
282
|
+
};
|
|
283
|
+
exports.serializeAws_restJson1ListTargetResourceTypesCommand = serializeAws_restJson1ListTargetResourceTypesCommand;
|
|
237
284
|
const serializeAws_restJson1StartExperimentCommand = async (input, context) => {
|
|
238
285
|
var _a;
|
|
239
286
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -686,6 +733,62 @@ const deserializeAws_restJson1GetExperimentTemplateCommandError = async (output,
|
|
|
686
733
|
delete response.Message;
|
|
687
734
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
688
735
|
};
|
|
736
|
+
const deserializeAws_restJson1GetTargetResourceTypeCommand = async (output, context) => {
|
|
737
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
|
+
return deserializeAws_restJson1GetTargetResourceTypeCommandError(output, context);
|
|
739
|
+
}
|
|
740
|
+
const contents = {
|
|
741
|
+
$metadata: deserializeMetadata(output),
|
|
742
|
+
targetResourceType: undefined,
|
|
743
|
+
};
|
|
744
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
745
|
+
if (data.targetResourceType !== undefined && data.targetResourceType !== null) {
|
|
746
|
+
contents.targetResourceType = deserializeAws_restJson1TargetResourceType(data.targetResourceType, context);
|
|
747
|
+
}
|
|
748
|
+
return Promise.resolve(contents);
|
|
749
|
+
};
|
|
750
|
+
exports.deserializeAws_restJson1GetTargetResourceTypeCommand = deserializeAws_restJson1GetTargetResourceTypeCommand;
|
|
751
|
+
const deserializeAws_restJson1GetTargetResourceTypeCommandError = async (output, context) => {
|
|
752
|
+
const parsedOutput = {
|
|
753
|
+
...output,
|
|
754
|
+
body: await parseBody(output.body, context),
|
|
755
|
+
};
|
|
756
|
+
let response;
|
|
757
|
+
let errorCode = "UnknownError";
|
|
758
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
759
|
+
switch (errorCode) {
|
|
760
|
+
case "ResourceNotFoundException":
|
|
761
|
+
case "com.amazonaws.fis#ResourceNotFoundException":
|
|
762
|
+
response = {
|
|
763
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
764
|
+
name: errorCode,
|
|
765
|
+
$metadata: deserializeMetadata(output),
|
|
766
|
+
};
|
|
767
|
+
break;
|
|
768
|
+
case "ValidationException":
|
|
769
|
+
case "com.amazonaws.fis#ValidationException":
|
|
770
|
+
response = {
|
|
771
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
772
|
+
name: errorCode,
|
|
773
|
+
$metadata: deserializeMetadata(output),
|
|
774
|
+
};
|
|
775
|
+
break;
|
|
776
|
+
default:
|
|
777
|
+
const parsedBody = parsedOutput.body;
|
|
778
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
779
|
+
response = {
|
|
780
|
+
...parsedBody,
|
|
781
|
+
name: `${errorCode}`,
|
|
782
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
783
|
+
$fault: "client",
|
|
784
|
+
$metadata: deserializeMetadata(output),
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
const message = response.message || response.Message || errorCode;
|
|
788
|
+
response.message = message;
|
|
789
|
+
delete response.Message;
|
|
790
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
791
|
+
};
|
|
689
792
|
const deserializeAws_restJson1ListActionsCommand = async (output, context) => {
|
|
690
793
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
794
|
return deserializeAws_restJson1ListActionsCommandError(output, context);
|
|
@@ -882,6 +985,58 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
882
985
|
delete response.Message;
|
|
883
986
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
884
987
|
};
|
|
988
|
+
const deserializeAws_restJson1ListTargetResourceTypesCommand = async (output, context) => {
|
|
989
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
990
|
+
return deserializeAws_restJson1ListTargetResourceTypesCommandError(output, context);
|
|
991
|
+
}
|
|
992
|
+
const contents = {
|
|
993
|
+
$metadata: deserializeMetadata(output),
|
|
994
|
+
nextToken: undefined,
|
|
995
|
+
targetResourceTypes: undefined,
|
|
996
|
+
};
|
|
997
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
998
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
999
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1000
|
+
}
|
|
1001
|
+
if (data.targetResourceTypes !== undefined && data.targetResourceTypes !== null) {
|
|
1002
|
+
contents.targetResourceTypes = deserializeAws_restJson1TargetResourceTypeSummaryList(data.targetResourceTypes, context);
|
|
1003
|
+
}
|
|
1004
|
+
return Promise.resolve(contents);
|
|
1005
|
+
};
|
|
1006
|
+
exports.deserializeAws_restJson1ListTargetResourceTypesCommand = deserializeAws_restJson1ListTargetResourceTypesCommand;
|
|
1007
|
+
const deserializeAws_restJson1ListTargetResourceTypesCommandError = async (output, context) => {
|
|
1008
|
+
const parsedOutput = {
|
|
1009
|
+
...output,
|
|
1010
|
+
body: await parseBody(output.body, context),
|
|
1011
|
+
};
|
|
1012
|
+
let response;
|
|
1013
|
+
let errorCode = "UnknownError";
|
|
1014
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1015
|
+
switch (errorCode) {
|
|
1016
|
+
case "ValidationException":
|
|
1017
|
+
case "com.amazonaws.fis#ValidationException":
|
|
1018
|
+
response = {
|
|
1019
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1020
|
+
name: errorCode,
|
|
1021
|
+
$metadata: deserializeMetadata(output),
|
|
1022
|
+
};
|
|
1023
|
+
break;
|
|
1024
|
+
default:
|
|
1025
|
+
const parsedBody = parsedOutput.body;
|
|
1026
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1027
|
+
response = {
|
|
1028
|
+
...parsedBody,
|
|
1029
|
+
name: `${errorCode}`,
|
|
1030
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1031
|
+
$fault: "client",
|
|
1032
|
+
$metadata: deserializeMetadata(output),
|
|
1033
|
+
};
|
|
1034
|
+
}
|
|
1035
|
+
const message = response.message || response.Message || errorCode;
|
|
1036
|
+
response.message = message;
|
|
1037
|
+
delete response.Message;
|
|
1038
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1039
|
+
};
|
|
885
1040
|
const deserializeAws_restJson1StartExperimentCommand = async (output, context) => {
|
|
886
1041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
1042
|
return deserializeAws_restJson1StartExperimentCommandError(output, context);
|
|
@@ -1249,6 +1404,10 @@ const serializeAws_restJson1CreateExperimentTemplateTargetInput = (input, contex
|
|
|
1249
1404
|
input.filters !== null && {
|
|
1250
1405
|
filters: serializeAws_restJson1ExperimentTemplateTargetFilterInputList(input.filters, context),
|
|
1251
1406
|
}),
|
|
1407
|
+
...(input.parameters !== undefined &&
|
|
1408
|
+
input.parameters !== null && {
|
|
1409
|
+
parameters: serializeAws_restJson1ExperimentTemplateTargetParameterMap(input.parameters, context),
|
|
1410
|
+
}),
|
|
1252
1411
|
...(input.resourceArns !== undefined &&
|
|
1253
1412
|
input.resourceArns !== null && {
|
|
1254
1413
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
@@ -1331,6 +1490,17 @@ const serializeAws_restJson1ExperimentTemplateTargetInputFilter = (input, contex
|
|
|
1331
1490
|
}),
|
|
1332
1491
|
};
|
|
1333
1492
|
};
|
|
1493
|
+
const serializeAws_restJson1ExperimentTemplateTargetParameterMap = (input, context) => {
|
|
1494
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1495
|
+
if (value === null) {
|
|
1496
|
+
return acc;
|
|
1497
|
+
}
|
|
1498
|
+
return {
|
|
1499
|
+
...acc,
|
|
1500
|
+
[key]: value,
|
|
1501
|
+
};
|
|
1502
|
+
}, {});
|
|
1503
|
+
};
|
|
1334
1504
|
const serializeAws_restJson1ResourceArnList = (input, context) => {
|
|
1335
1505
|
return input
|
|
1336
1506
|
.filter((e) => e != null)
|
|
@@ -1403,6 +1573,10 @@ const serializeAws_restJson1UpdateExperimentTemplateTargetInput = (input, contex
|
|
|
1403
1573
|
input.filters !== null && {
|
|
1404
1574
|
filters: serializeAws_restJson1ExperimentTemplateTargetFilterInputList(input.filters, context),
|
|
1405
1575
|
}),
|
|
1576
|
+
...(input.parameters !== undefined &&
|
|
1577
|
+
input.parameters !== null && {
|
|
1578
|
+
parameters: serializeAws_restJson1ExperimentTemplateTargetParameterMap(input.parameters, context),
|
|
1579
|
+
}),
|
|
1406
1580
|
...(input.resourceArns !== undefined &&
|
|
1407
1581
|
input.resourceArns !== null && {
|
|
1408
1582
|
resourceArns: serializeAws_restJson1ResourceArnList(input.resourceArns, context),
|
|
@@ -1529,12 +1703,18 @@ const deserializeAws_restJson1ExperimentAction = (output, context) => {
|
|
|
1529
1703
|
return {
|
|
1530
1704
|
actionId: smithy_client_1.expectString(output.actionId),
|
|
1531
1705
|
description: smithy_client_1.expectString(output.description),
|
|
1706
|
+
endTime: output.endTime !== undefined && output.endTime !== null
|
|
1707
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
|
|
1708
|
+
: undefined,
|
|
1532
1709
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1533
1710
|
? deserializeAws_restJson1ExperimentActionParameterMap(output.parameters, context)
|
|
1534
1711
|
: undefined,
|
|
1535
1712
|
startAfter: output.startAfter !== undefined && output.startAfter !== null
|
|
1536
1713
|
? deserializeAws_restJson1ExperimentActionStartAfterList(output.startAfter, context)
|
|
1537
1714
|
: undefined,
|
|
1715
|
+
startTime: output.startTime !== undefined && output.startTime !== null
|
|
1716
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
|
|
1717
|
+
: undefined,
|
|
1538
1718
|
state: output.state !== undefined && output.state !== null
|
|
1539
1719
|
? deserializeAws_restJson1ExperimentActionState(output.state, context)
|
|
1540
1720
|
: undefined,
|
|
@@ -1644,6 +1824,9 @@ const deserializeAws_restJson1ExperimentTarget = (output, context) => {
|
|
|
1644
1824
|
filters: output.filters !== undefined && output.filters !== null
|
|
1645
1825
|
? deserializeAws_restJson1ExperimentTargetFilterList(output.filters, context)
|
|
1646
1826
|
: undefined,
|
|
1827
|
+
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1828
|
+
? deserializeAws_restJson1ExperimentTargetParameterMap(output.parameters, context)
|
|
1829
|
+
: undefined,
|
|
1647
1830
|
resourceArns: output.resourceArns !== undefined && output.resourceArns !== null
|
|
1648
1831
|
? deserializeAws_restJson1ResourceArnList(output.resourceArns, context)
|
|
1649
1832
|
: undefined,
|
|
@@ -1693,6 +1876,17 @@ const deserializeAws_restJson1ExperimentTargetMap = (output, context) => {
|
|
|
1693
1876
|
};
|
|
1694
1877
|
}, {});
|
|
1695
1878
|
};
|
|
1879
|
+
const deserializeAws_restJson1ExperimentTargetParameterMap = (output, context) => {
|
|
1880
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1881
|
+
if (value === null) {
|
|
1882
|
+
return acc;
|
|
1883
|
+
}
|
|
1884
|
+
return {
|
|
1885
|
+
...acc,
|
|
1886
|
+
[key]: smithy_client_1.expectString(value),
|
|
1887
|
+
};
|
|
1888
|
+
}, {});
|
|
1889
|
+
};
|
|
1696
1890
|
const deserializeAws_restJson1ExperimentTemplate = (output, context) => {
|
|
1697
1891
|
return {
|
|
1698
1892
|
actions: output.actions !== undefined && output.actions !== null
|
|
@@ -1822,6 +2016,9 @@ const deserializeAws_restJson1ExperimentTemplateTarget = (output, context) => {
|
|
|
1822
2016
|
filters: output.filters !== undefined && output.filters !== null
|
|
1823
2017
|
? deserializeAws_restJson1ExperimentTemplateTargetFilterList(output.filters, context)
|
|
1824
2018
|
: undefined,
|
|
2019
|
+
parameters: output.parameters !== undefined && output.parameters !== null
|
|
2020
|
+
? deserializeAws_restJson1ExperimentTemplateTargetParameterMap(output.parameters, context)
|
|
2021
|
+
: undefined,
|
|
1825
2022
|
resourceArns: output.resourceArns !== undefined && output.resourceArns !== null
|
|
1826
2023
|
? deserializeAws_restJson1ResourceArnList(output.resourceArns, context)
|
|
1827
2024
|
: undefined,
|
|
@@ -1871,6 +2068,17 @@ const deserializeAws_restJson1ExperimentTemplateTargetMap = (output, context) =>
|
|
|
1871
2068
|
};
|
|
1872
2069
|
}, {});
|
|
1873
2070
|
};
|
|
2071
|
+
const deserializeAws_restJson1ExperimentTemplateTargetParameterMap = (output, context) => {
|
|
2072
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2073
|
+
if (value === null) {
|
|
2074
|
+
return acc;
|
|
2075
|
+
}
|
|
2076
|
+
return {
|
|
2077
|
+
...acc,
|
|
2078
|
+
[key]: smithy_client_1.expectString(value),
|
|
2079
|
+
};
|
|
2080
|
+
}, {});
|
|
2081
|
+
};
|
|
1874
2082
|
const deserializeAws_restJson1ResourceArnList = (output, context) => {
|
|
1875
2083
|
return (output || [])
|
|
1876
2084
|
.filter((e) => e != null)
|
|
@@ -1892,6 +2100,48 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1892
2100
|
};
|
|
1893
2101
|
}, {});
|
|
1894
2102
|
};
|
|
2103
|
+
const deserializeAws_restJson1TargetResourceType = (output, context) => {
|
|
2104
|
+
return {
|
|
2105
|
+
description: smithy_client_1.expectString(output.description),
|
|
2106
|
+
parameters: output.parameters !== undefined && output.parameters !== null
|
|
2107
|
+
? deserializeAws_restJson1TargetResourceTypeParameterMap(output.parameters, context)
|
|
2108
|
+
: undefined,
|
|
2109
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2110
|
+
};
|
|
2111
|
+
};
|
|
2112
|
+
const deserializeAws_restJson1TargetResourceTypeParameter = (output, context) => {
|
|
2113
|
+
return {
|
|
2114
|
+
description: smithy_client_1.expectString(output.description),
|
|
2115
|
+
required: smithy_client_1.expectBoolean(output.required),
|
|
2116
|
+
};
|
|
2117
|
+
};
|
|
2118
|
+
const deserializeAws_restJson1TargetResourceTypeParameterMap = (output, context) => {
|
|
2119
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2120
|
+
if (value === null) {
|
|
2121
|
+
return acc;
|
|
2122
|
+
}
|
|
2123
|
+
return {
|
|
2124
|
+
...acc,
|
|
2125
|
+
[key]: deserializeAws_restJson1TargetResourceTypeParameter(value, context),
|
|
2126
|
+
};
|
|
2127
|
+
}, {});
|
|
2128
|
+
};
|
|
2129
|
+
const deserializeAws_restJson1TargetResourceTypeSummary = (output, context) => {
|
|
2130
|
+
return {
|
|
2131
|
+
description: smithy_client_1.expectString(output.description),
|
|
2132
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
2133
|
+
};
|
|
2134
|
+
};
|
|
2135
|
+
const deserializeAws_restJson1TargetResourceTypeSummaryList = (output, context) => {
|
|
2136
|
+
return (output || [])
|
|
2137
|
+
.filter((e) => e != null)
|
|
2138
|
+
.map((entry) => {
|
|
2139
|
+
if (entry === null) {
|
|
2140
|
+
return null;
|
|
2141
|
+
}
|
|
2142
|
+
return deserializeAws_restJson1TargetResourceTypeSummary(entry, context);
|
|
2143
|
+
});
|
|
2144
|
+
};
|
|
1895
2145
|
const deserializeMetadata = (output) => {
|
|
1896
2146
|
var _a;
|
|
1897
2147
|
return ({
|
package/dist-es/Fis.js
CHANGED
|
@@ -4,10 +4,12 @@ import { DeleteExperimentTemplateCommand, } from "./commands/DeleteExperimentTem
|
|
|
4
4
|
import { GetActionCommand } from "./commands/GetActionCommand";
|
|
5
5
|
import { GetExperimentCommand, } from "./commands/GetExperimentCommand";
|
|
6
6
|
import { GetExperimentTemplateCommand, } from "./commands/GetExperimentTemplateCommand";
|
|
7
|
+
import { GetTargetResourceTypeCommand, } from "./commands/GetTargetResourceTypeCommand";
|
|
7
8
|
import { ListActionsCommand } from "./commands/ListActionsCommand";
|
|
8
9
|
import { ListExperimentsCommand, } from "./commands/ListExperimentsCommand";
|
|
9
10
|
import { ListExperimentTemplatesCommand, } from "./commands/ListExperimentTemplatesCommand";
|
|
10
11
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
12
|
+
import { ListTargetResourceTypesCommand, } from "./commands/ListTargetResourceTypesCommand";
|
|
11
13
|
import { StartExperimentCommand, } from "./commands/StartExperimentCommand";
|
|
12
14
|
import { StopExperimentCommand, } from "./commands/StopExperimentCommand";
|
|
13
15
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
@@ -89,6 +91,20 @@ var Fis = (function (_super) {
|
|
|
89
91
|
return this.send(command, optionsOrCb);
|
|
90
92
|
}
|
|
91
93
|
};
|
|
94
|
+
Fis.prototype.getTargetResourceType = function (args, optionsOrCb, cb) {
|
|
95
|
+
var command = new GetTargetResourceTypeCommand(args);
|
|
96
|
+
if (typeof optionsOrCb === "function") {
|
|
97
|
+
this.send(command, optionsOrCb);
|
|
98
|
+
}
|
|
99
|
+
else if (typeof cb === "function") {
|
|
100
|
+
if (typeof optionsOrCb !== "object")
|
|
101
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
102
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
return this.send(command, optionsOrCb);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
92
108
|
Fis.prototype.listActions = function (args, optionsOrCb, cb) {
|
|
93
109
|
var command = new ListActionsCommand(args);
|
|
94
110
|
if (typeof optionsOrCb === "function") {
|
|
@@ -145,6 +161,20 @@ var Fis = (function (_super) {
|
|
|
145
161
|
return this.send(command, optionsOrCb);
|
|
146
162
|
}
|
|
147
163
|
};
|
|
164
|
+
Fis.prototype.listTargetResourceTypes = function (args, optionsOrCb, cb) {
|
|
165
|
+
var command = new ListTargetResourceTypesCommand(args);
|
|
166
|
+
if (typeof optionsOrCb === "function") {
|
|
167
|
+
this.send(command, optionsOrCb);
|
|
168
|
+
}
|
|
169
|
+
else if (typeof cb === "function") {
|
|
170
|
+
if (typeof optionsOrCb !== "object")
|
|
171
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
172
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
return this.send(command, optionsOrCb);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
148
178
|
Fis.prototype.startExperiment = function (args, optionsOrCb, cb) {
|
|
149
179
|
var command = new StartExperimentCommand(args);
|
|
150
180
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetTargetResourceTypeRequest, GetTargetResourceTypeResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetTargetResourceTypeCommand, serializeAws_restJson1GetTargetResourceTypeCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetTargetResourceTypeCommand = (function (_super) {
|
|
7
|
+
__extends(GetTargetResourceTypeCommand, _super);
|
|
8
|
+
function GetTargetResourceTypeCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetTargetResourceTypeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "FisClient";
|
|
18
|
+
var commandName = "GetTargetResourceTypeCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetTargetResourceTypeRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetTargetResourceTypeResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetTargetResourceTypeCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetTargetResourceTypeCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetTargetResourceTypeCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetTargetResourceTypeCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetTargetResourceTypeCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetTargetResourceTypeCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListTargetResourceTypesRequest, ListTargetResourceTypesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ListTargetResourceTypesCommand, serializeAws_restJson1ListTargetResourceTypesCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var ListTargetResourceTypesCommand = (function (_super) {
|
|
7
|
+
__extends(ListTargetResourceTypesCommand, _super);
|
|
8
|
+
function ListTargetResourceTypesCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListTargetResourceTypesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "FisClient";
|
|
18
|
+
var commandName = "ListTargetResourceTypesCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListTargetResourceTypesRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListTargetResourceTypesResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListTargetResourceTypesCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1ListTargetResourceTypesCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListTargetResourceTypesCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1ListTargetResourceTypesCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListTargetResourceTypesCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListTargetResourceTypesCommand };
|
|
@@ -3,10 +3,12 @@ export * from "./DeleteExperimentTemplateCommand";
|
|
|
3
3
|
export * from "./GetActionCommand";
|
|
4
4
|
export * from "./GetExperimentCommand";
|
|
5
5
|
export * from "./GetExperimentTemplateCommand";
|
|
6
|
+
export * from "./GetTargetResourceTypeCommand";
|
|
6
7
|
export * from "./ListActionsCommand";
|
|
7
8
|
export * from "./ListExperimentTemplatesCommand";
|
|
8
9
|
export * from "./ListExperimentsCommand";
|
|
9
10
|
export * from "./ListTagsForResourceCommand";
|
|
11
|
+
export * from "./ListTargetResourceTypesCommand";
|
|
10
12
|
export * from "./StartExperimentCommand";
|
|
11
13
|
export * from "./StopExperimentCommand";
|
|
12
14
|
export * from "./TagResourceCommand";
|
|
@@ -148,6 +148,22 @@ export var GetExperimentTemplateResponse;
|
|
|
148
148
|
(function (GetExperimentTemplateResponse) {
|
|
149
149
|
GetExperimentTemplateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
150
150
|
})(GetExperimentTemplateResponse || (GetExperimentTemplateResponse = {}));
|
|
151
|
+
export var GetTargetResourceTypeRequest;
|
|
152
|
+
(function (GetTargetResourceTypeRequest) {
|
|
153
|
+
GetTargetResourceTypeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
154
|
+
})(GetTargetResourceTypeRequest || (GetTargetResourceTypeRequest = {}));
|
|
155
|
+
export var TargetResourceTypeParameter;
|
|
156
|
+
(function (TargetResourceTypeParameter) {
|
|
157
|
+
TargetResourceTypeParameter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
158
|
+
})(TargetResourceTypeParameter || (TargetResourceTypeParameter = {}));
|
|
159
|
+
export var TargetResourceType;
|
|
160
|
+
(function (TargetResourceType) {
|
|
161
|
+
TargetResourceType.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
162
|
+
})(TargetResourceType || (TargetResourceType = {}));
|
|
163
|
+
export var GetTargetResourceTypeResponse;
|
|
164
|
+
(function (GetTargetResourceTypeResponse) {
|
|
165
|
+
GetTargetResourceTypeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
166
|
+
})(GetTargetResourceTypeResponse || (GetTargetResourceTypeResponse = {}));
|
|
151
167
|
export var ListActionsRequest;
|
|
152
168
|
(function (ListActionsRequest) {
|
|
153
169
|
ListActionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -180,6 +196,18 @@ export var ListTagsForResourceResponse;
|
|
|
180
196
|
(function (ListTagsForResourceResponse) {
|
|
181
197
|
ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
182
198
|
})(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
|
|
199
|
+
export var ListTargetResourceTypesRequest;
|
|
200
|
+
(function (ListTargetResourceTypesRequest) {
|
|
201
|
+
ListTargetResourceTypesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
202
|
+
})(ListTargetResourceTypesRequest || (ListTargetResourceTypesRequest = {}));
|
|
203
|
+
export var TargetResourceTypeSummary;
|
|
204
|
+
(function (TargetResourceTypeSummary) {
|
|
205
|
+
TargetResourceTypeSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
206
|
+
})(TargetResourceTypeSummary || (TargetResourceTypeSummary = {}));
|
|
207
|
+
export var ListTargetResourceTypesResponse;
|
|
208
|
+
(function (ListTargetResourceTypesResponse) {
|
|
209
|
+
ListTargetResourceTypesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
210
|
+
})(ListTargetResourceTypesResponse || (ListTargetResourceTypesResponse = {}));
|
|
183
211
|
export var StartExperimentRequest;
|
|
184
212
|
(function (StartExperimentRequest) {
|
|
185
213
|
StartExperimentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListTargetResourceTypesCommand, } from "../commands/ListTargetResourceTypesCommand";
|
|
3
|
+
import { Fis } from "../Fis";
|
|
4
|
+
import { FisClient } from "../FisClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListTargetResourceTypesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listTargetResourceTypes.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListTargetResourceTypes(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListTargetResourceTypes_1() {
|
|
39
|
+
var token, hasNext, page;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.nextToken = token;
|
|
49
|
+
input["maxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Fis)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof FisClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Fis | FisClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
token = page.nextToken;
|
|
67
|
+
hasNext = !!token;
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
}
|