@aws-sdk/client-application-discovery-service 3.431.0 → 3.433.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/README.md +24 -0
- package/dist-cjs/ApplicationDiscoveryService.js +6 -0
- package/dist-cjs/commands/BatchDeleteAgentsCommand.js +51 -0
- package/dist-cjs/commands/DescribeBatchDeleteConfigurationTaskCommand.js +51 -0
- package/dist-cjs/commands/StartBatchDeleteConfigurationTaskCommand.js +51 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +29 -1
- package/dist-cjs/pagination/DescribeAgentsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeExportConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeExportTasksPaginator.js +29 -0
- package/dist-cjs/pagination/DescribeTagsPaginator.js +29 -0
- package/dist-cjs/pagination/ListConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_json1_1.js +182 -1
- package/dist-es/ApplicationDiscoveryService.js +6 -0
- package/dist-es/commands/BatchDeleteAgentsCommand.js +47 -0
- package/dist-es/commands/DescribeBatchDeleteConfigurationTaskCommand.js +47 -0
- package/dist-es/commands/StartBatchDeleteConfigurationTaskCommand.js +47 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +27 -0
- package/dist-es/pagination/DescribeAgentsPaginator.js +25 -0
- package/dist-es/pagination/DescribeExportConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/DescribeExportTasksPaginator.js +25 -0
- package/dist-es/pagination/DescribeTagsPaginator.js +25 -0
- package/dist-es/pagination/ListConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_json1_1.js +175 -1
- package/dist-types/ApplicationDiscoveryService.d.ts +21 -0
- package/dist-types/ApplicationDiscoveryServiceClient.d.ts +5 -2
- package/dist-types/commands/BatchDeleteAgentsCommand.d.ts +103 -0
- package/dist-types/commands/BatchDeleteImportDataCommand.d.ts +1 -0
- package/dist-types/commands/DescribeBatchDeleteConfigurationTaskCommand.d.ts +114 -0
- package/dist-types/commands/StartBatchDeleteConfigurationTaskCommand.d.ts +101 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +328 -0
- package/dist-types/pagination/DescribeAgentsPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeExportConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeExportTasksPaginator.d.ts +7 -0
- package/dist-types/pagination/DescribeTagsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
- package/dist-types/ts3.4/ApplicationDiscoveryService.d.ts +63 -0
- package/dist-types/ts3.4/ApplicationDiscoveryServiceClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/BatchDeleteAgentsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DescribeBatchDeleteConfigurationTaskCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartBatchDeleteConfigurationTaskCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +78 -0
- package/dist-types/ts3.4/pagination/DescribeAgentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeExportConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeExportTasksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/DescribeTagsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +31 -31
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_StartContinuousExportCommand = exports.de_StartBatchDeleteConfigurationTaskCommand = exports.de_ListServerNeighborsCommand = exports.de_ListConfigurationsCommand = exports.de_GetDiscoverySummaryCommand = exports.de_ExportConfigurationsCommand = exports.de_DisassociateConfigurationItemsFromApplicationCommand = exports.de_DescribeTagsCommand = exports.de_DescribeImportTasksCommand = exports.de_DescribeExportTasksCommand = exports.de_DescribeExportConfigurationsCommand = exports.de_DescribeContinuousExportsCommand = exports.de_DescribeConfigurationsCommand = exports.de_DescribeBatchDeleteConfigurationTaskCommand = exports.de_DescribeAgentsCommand = exports.de_DeleteTagsCommand = exports.de_DeleteApplicationsCommand = exports.de_CreateTagsCommand = exports.de_CreateApplicationCommand = exports.de_BatchDeleteImportDataCommand = exports.de_BatchDeleteAgentsCommand = exports.de_AssociateConfigurationItemsToApplicationCommand = exports.se_UpdateApplicationCommand = exports.se_StopDataCollectionByAgentIdsCommand = exports.se_StopContinuousExportCommand = exports.se_StartImportTaskCommand = exports.se_StartExportTaskCommand = exports.se_StartDataCollectionByAgentIdsCommand = exports.se_StartContinuousExportCommand = exports.se_StartBatchDeleteConfigurationTaskCommand = exports.se_ListServerNeighborsCommand = exports.se_ListConfigurationsCommand = exports.se_GetDiscoverySummaryCommand = exports.se_ExportConfigurationsCommand = exports.se_DisassociateConfigurationItemsFromApplicationCommand = exports.se_DescribeTagsCommand = exports.se_DescribeImportTasksCommand = exports.se_DescribeExportTasksCommand = exports.se_DescribeExportConfigurationsCommand = exports.se_DescribeContinuousExportsCommand = exports.se_DescribeConfigurationsCommand = exports.se_DescribeBatchDeleteConfigurationTaskCommand = exports.se_DescribeAgentsCommand = exports.se_DeleteTagsCommand = exports.se_DeleteApplicationsCommand = exports.se_CreateTagsCommand = exports.se_CreateApplicationCommand = exports.se_BatchDeleteImportDataCommand = exports.se_BatchDeleteAgentsCommand = exports.se_AssociateConfigurationItemsToApplicationCommand = void 0;
|
|
4
|
+
exports.de_UpdateApplicationCommand = exports.de_StopDataCollectionByAgentIdsCommand = exports.de_StopContinuousExportCommand = exports.de_StartImportTaskCommand = exports.de_StartExportTaskCommand = exports.de_StartDataCollectionByAgentIdsCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const uuid_1 = require("uuid");
|
|
@@ -13,6 +14,13 @@ const se_AssociateConfigurationItemsToApplicationCommand = async (input, context
|
|
|
13
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
15
|
};
|
|
15
16
|
exports.se_AssociateConfigurationItemsToApplicationCommand = se_AssociateConfigurationItemsToApplicationCommand;
|
|
17
|
+
const se_BatchDeleteAgentsCommand = async (input, context) => {
|
|
18
|
+
const headers = sharedHeaders("BatchDeleteAgents");
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
exports.se_BatchDeleteAgentsCommand = se_BatchDeleteAgentsCommand;
|
|
16
24
|
const se_BatchDeleteImportDataCommand = async (input, context) => {
|
|
17
25
|
const headers = sharedHeaders("BatchDeleteImportData");
|
|
18
26
|
let body;
|
|
@@ -55,6 +63,13 @@ const se_DescribeAgentsCommand = async (input, context) => {
|
|
|
55
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
64
|
};
|
|
57
65
|
exports.se_DescribeAgentsCommand = se_DescribeAgentsCommand;
|
|
66
|
+
const se_DescribeBatchDeleteConfigurationTaskCommand = async (input, context) => {
|
|
67
|
+
const headers = sharedHeaders("DescribeBatchDeleteConfigurationTask");
|
|
68
|
+
let body;
|
|
69
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
+
};
|
|
72
|
+
exports.se_DescribeBatchDeleteConfigurationTaskCommand = se_DescribeBatchDeleteConfigurationTaskCommand;
|
|
58
73
|
const se_DescribeConfigurationsCommand = async (input, context) => {
|
|
59
74
|
const headers = sharedHeaders("DescribeConfigurations");
|
|
60
75
|
let body;
|
|
@@ -131,6 +146,13 @@ const se_ListServerNeighborsCommand = async (input, context) => {
|
|
|
131
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
147
|
};
|
|
133
148
|
exports.se_ListServerNeighborsCommand = se_ListServerNeighborsCommand;
|
|
149
|
+
const se_StartBatchDeleteConfigurationTaskCommand = async (input, context) => {
|
|
150
|
+
const headers = sharedHeaders("StartBatchDeleteConfigurationTask");
|
|
151
|
+
let body;
|
|
152
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
+
};
|
|
155
|
+
exports.se_StartBatchDeleteConfigurationTaskCommand = se_StartBatchDeleteConfigurationTaskCommand;
|
|
134
156
|
const se_StartContinuousExportCommand = async (input, context) => {
|
|
135
157
|
const headers = sharedHeaders("StartContinuousExport");
|
|
136
158
|
let body;
|
|
@@ -225,6 +247,48 @@ const de_AssociateConfigurationItemsToApplicationCommandError = async (output, c
|
|
|
225
247
|
});
|
|
226
248
|
}
|
|
227
249
|
};
|
|
250
|
+
const de_BatchDeleteAgentsCommand = async (output, context) => {
|
|
251
|
+
if (output.statusCode >= 300) {
|
|
252
|
+
return de_BatchDeleteAgentsCommandError(output, context);
|
|
253
|
+
}
|
|
254
|
+
const data = await parseBody(output.body, context);
|
|
255
|
+
let contents = {};
|
|
256
|
+
contents = (0, smithy_client_1._json)(data);
|
|
257
|
+
const response = {
|
|
258
|
+
$metadata: deserializeMetadata(output),
|
|
259
|
+
...contents,
|
|
260
|
+
};
|
|
261
|
+
return response;
|
|
262
|
+
};
|
|
263
|
+
exports.de_BatchDeleteAgentsCommand = de_BatchDeleteAgentsCommand;
|
|
264
|
+
const de_BatchDeleteAgentsCommandError = async (output, context) => {
|
|
265
|
+
const parsedOutput = {
|
|
266
|
+
...output,
|
|
267
|
+
body: await parseErrorBody(output.body, context),
|
|
268
|
+
};
|
|
269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
270
|
+
switch (errorCode) {
|
|
271
|
+
case "AuthorizationErrorException":
|
|
272
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
273
|
+
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
274
|
+
case "InvalidParameterException":
|
|
275
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
276
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
277
|
+
case "InvalidParameterValueException":
|
|
278
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
279
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
280
|
+
case "ServerInternalErrorException":
|
|
281
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
282
|
+
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
283
|
+
default:
|
|
284
|
+
const parsedBody = parsedOutput.body;
|
|
285
|
+
return throwDefaultError({
|
|
286
|
+
output,
|
|
287
|
+
parsedBody,
|
|
288
|
+
errorCode,
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
};
|
|
228
292
|
const de_BatchDeleteImportDataCommand = async (output, context) => {
|
|
229
293
|
if (output.statusCode >= 300) {
|
|
230
294
|
return de_BatchDeleteImportDataCommandError(output, context);
|
|
@@ -501,6 +565,48 @@ const de_DescribeAgentsCommandError = async (output, context) => {
|
|
|
501
565
|
});
|
|
502
566
|
}
|
|
503
567
|
};
|
|
568
|
+
const de_DescribeBatchDeleteConfigurationTaskCommand = async (output, context) => {
|
|
569
|
+
if (output.statusCode >= 300) {
|
|
570
|
+
return de_DescribeBatchDeleteConfigurationTaskCommandError(output, context);
|
|
571
|
+
}
|
|
572
|
+
const data = await parseBody(output.body, context);
|
|
573
|
+
let contents = {};
|
|
574
|
+
contents = de_DescribeBatchDeleteConfigurationTaskResponse(data, context);
|
|
575
|
+
const response = {
|
|
576
|
+
$metadata: deserializeMetadata(output),
|
|
577
|
+
...contents,
|
|
578
|
+
};
|
|
579
|
+
return response;
|
|
580
|
+
};
|
|
581
|
+
exports.de_DescribeBatchDeleteConfigurationTaskCommand = de_DescribeBatchDeleteConfigurationTaskCommand;
|
|
582
|
+
const de_DescribeBatchDeleteConfigurationTaskCommandError = async (output, context) => {
|
|
583
|
+
const parsedOutput = {
|
|
584
|
+
...output,
|
|
585
|
+
body: await parseErrorBody(output.body, context),
|
|
586
|
+
};
|
|
587
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
588
|
+
switch (errorCode) {
|
|
589
|
+
case "AuthorizationErrorException":
|
|
590
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
591
|
+
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
592
|
+
case "HomeRegionNotSetException":
|
|
593
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
594
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
595
|
+
case "InvalidParameterValueException":
|
|
596
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
597
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
598
|
+
case "ServerInternalErrorException":
|
|
599
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
600
|
+
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
601
|
+
default:
|
|
602
|
+
const parsedBody = parsedOutput.body;
|
|
603
|
+
return throwDefaultError({
|
|
604
|
+
output,
|
|
605
|
+
parsedBody,
|
|
606
|
+
errorCode,
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
};
|
|
504
610
|
const de_DescribeConfigurationsCommand = async (output, context) => {
|
|
505
611
|
if (output.statusCode >= 300) {
|
|
506
612
|
return de_DescribeConfigurationsCommandError(output, context);
|
|
@@ -1014,6 +1120,54 @@ const de_ListServerNeighborsCommandError = async (output, context) => {
|
|
|
1014
1120
|
});
|
|
1015
1121
|
}
|
|
1016
1122
|
};
|
|
1123
|
+
const de_StartBatchDeleteConfigurationTaskCommand = async (output, context) => {
|
|
1124
|
+
if (output.statusCode >= 300) {
|
|
1125
|
+
return de_StartBatchDeleteConfigurationTaskCommandError(output, context);
|
|
1126
|
+
}
|
|
1127
|
+
const data = await parseBody(output.body, context);
|
|
1128
|
+
let contents = {};
|
|
1129
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1130
|
+
const response = {
|
|
1131
|
+
$metadata: deserializeMetadata(output),
|
|
1132
|
+
...contents,
|
|
1133
|
+
};
|
|
1134
|
+
return response;
|
|
1135
|
+
};
|
|
1136
|
+
exports.de_StartBatchDeleteConfigurationTaskCommand = de_StartBatchDeleteConfigurationTaskCommand;
|
|
1137
|
+
const de_StartBatchDeleteConfigurationTaskCommandError = async (output, context) => {
|
|
1138
|
+
const parsedOutput = {
|
|
1139
|
+
...output,
|
|
1140
|
+
body: await parseErrorBody(output.body, context),
|
|
1141
|
+
};
|
|
1142
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1143
|
+
switch (errorCode) {
|
|
1144
|
+
case "AuthorizationErrorException":
|
|
1145
|
+
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
1146
|
+
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
1147
|
+
case "HomeRegionNotSetException":
|
|
1148
|
+
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
1149
|
+
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1150
|
+
case "InvalidParameterValueException":
|
|
1151
|
+
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
1152
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1153
|
+
case "LimitExceededException":
|
|
1154
|
+
case "com.amazonaws.applicationdiscoveryservice#LimitExceededException":
|
|
1155
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "OperationNotPermittedException":
|
|
1157
|
+
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
1158
|
+
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
1159
|
+
case "ServerInternalErrorException":
|
|
1160
|
+
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
1161
|
+
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1162
|
+
default:
|
|
1163
|
+
const parsedBody = parsedOutput.body;
|
|
1164
|
+
return throwDefaultError({
|
|
1165
|
+
output,
|
|
1166
|
+
parsedBody,
|
|
1167
|
+
errorCode,
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1017
1171
|
const de_StartContinuousExportCommand = async (output, context) => {
|
|
1018
1172
|
if (output.statusCode >= 300) {
|
|
1019
1173
|
return de_StartContinuousExportCommandError(output, context);
|
|
@@ -1398,6 +1552,15 @@ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
|
1398
1552
|
});
|
|
1399
1553
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1400
1554
|
};
|
|
1555
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1556
|
+
const body = parsedOutput.body;
|
|
1557
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1558
|
+
const exception = new models_0_1.LimitExceededException({
|
|
1559
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1560
|
+
...deserialized,
|
|
1561
|
+
});
|
|
1562
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1563
|
+
};
|
|
1401
1564
|
const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
|
|
1402
1565
|
const body = parsedOutput.body;
|
|
1403
1566
|
const deserialized = (0, smithy_client_1._json)(body);
|
|
@@ -1475,6 +1638,19 @@ const se_UsageMetricBasis = (input, context) => {
|
|
|
1475
1638
|
percentageAdjust: smithy_client_1.serializeFloat,
|
|
1476
1639
|
});
|
|
1477
1640
|
};
|
|
1641
|
+
const de_BatchDeleteConfigurationTask = (output, context) => {
|
|
1642
|
+
return (0, smithy_client_1.take)(output, {
|
|
1643
|
+
configurationType: smithy_client_1.expectString,
|
|
1644
|
+
deletedConfigurations: smithy_client_1._json,
|
|
1645
|
+
deletionWarnings: smithy_client_1._json,
|
|
1646
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1647
|
+
failedConfigurations: smithy_client_1._json,
|
|
1648
|
+
requestedConfigurations: smithy_client_1._json,
|
|
1649
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1650
|
+
status: smithy_client_1.expectString,
|
|
1651
|
+
taskId: smithy_client_1.expectString,
|
|
1652
|
+
});
|
|
1653
|
+
};
|
|
1478
1654
|
const de_ConfigurationTag = (output, context) => {
|
|
1479
1655
|
return (0, smithy_client_1.take)(output, {
|
|
1480
1656
|
configurationId: smithy_client_1.expectString,
|
|
@@ -1512,6 +1688,11 @@ const de_ContinuousExportDescriptions = (output, context) => {
|
|
|
1512
1688
|
});
|
|
1513
1689
|
return retVal;
|
|
1514
1690
|
};
|
|
1691
|
+
const de_DescribeBatchDeleteConfigurationTaskResponse = (output, context) => {
|
|
1692
|
+
return (0, smithy_client_1.take)(output, {
|
|
1693
|
+
task: (_) => de_BatchDeleteConfigurationTask(_, context),
|
|
1694
|
+
});
|
|
1695
|
+
};
|
|
1515
1696
|
const de_DescribeContinuousExportsResponse = (output, context) => {
|
|
1516
1697
|
return (0, smithy_client_1.take)(output, {
|
|
1517
1698
|
descriptions: (_) => de_ContinuousExportDescriptions(_, context),
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { ApplicationDiscoveryServiceClient, } from "./ApplicationDiscoveryServiceClient";
|
|
3
3
|
import { AssociateConfigurationItemsToApplicationCommand, } from "./commands/AssociateConfigurationItemsToApplicationCommand";
|
|
4
|
+
import { BatchDeleteAgentsCommand, } from "./commands/BatchDeleteAgentsCommand";
|
|
4
5
|
import { BatchDeleteImportDataCommand, } from "./commands/BatchDeleteImportDataCommand";
|
|
5
6
|
import { CreateApplicationCommand, } from "./commands/CreateApplicationCommand";
|
|
6
7
|
import { CreateTagsCommand } from "./commands/CreateTagsCommand";
|
|
7
8
|
import { DeleteApplicationsCommand, } from "./commands/DeleteApplicationsCommand";
|
|
8
9
|
import { DeleteTagsCommand } from "./commands/DeleteTagsCommand";
|
|
9
10
|
import { DescribeAgentsCommand, } from "./commands/DescribeAgentsCommand";
|
|
11
|
+
import { DescribeBatchDeleteConfigurationTaskCommand, } from "./commands/DescribeBatchDeleteConfigurationTaskCommand";
|
|
10
12
|
import { DescribeConfigurationsCommand, } from "./commands/DescribeConfigurationsCommand";
|
|
11
13
|
import { DescribeContinuousExportsCommand, } from "./commands/DescribeContinuousExportsCommand";
|
|
12
14
|
import { DescribeExportConfigurationsCommand, } from "./commands/DescribeExportConfigurationsCommand";
|
|
@@ -18,6 +20,7 @@ import { ExportConfigurationsCommand, } from "./commands/ExportConfigurationsCom
|
|
|
18
20
|
import { GetDiscoverySummaryCommand, } from "./commands/GetDiscoverySummaryCommand";
|
|
19
21
|
import { ListConfigurationsCommand, } from "./commands/ListConfigurationsCommand";
|
|
20
22
|
import { ListServerNeighborsCommand, } from "./commands/ListServerNeighborsCommand";
|
|
23
|
+
import { StartBatchDeleteConfigurationTaskCommand, } from "./commands/StartBatchDeleteConfigurationTaskCommand";
|
|
21
24
|
import { StartContinuousExportCommand, } from "./commands/StartContinuousExportCommand";
|
|
22
25
|
import { StartDataCollectionByAgentIdsCommand, } from "./commands/StartDataCollectionByAgentIdsCommand";
|
|
23
26
|
import { StartExportTaskCommand, } from "./commands/StartExportTaskCommand";
|
|
@@ -27,12 +30,14 @@ import { StopDataCollectionByAgentIdsCommand, } from "./commands/StopDataCollect
|
|
|
27
30
|
import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
|
|
28
31
|
const commands = {
|
|
29
32
|
AssociateConfigurationItemsToApplicationCommand,
|
|
33
|
+
BatchDeleteAgentsCommand,
|
|
30
34
|
BatchDeleteImportDataCommand,
|
|
31
35
|
CreateApplicationCommand,
|
|
32
36
|
CreateTagsCommand,
|
|
33
37
|
DeleteApplicationsCommand,
|
|
34
38
|
DeleteTagsCommand,
|
|
35
39
|
DescribeAgentsCommand,
|
|
40
|
+
DescribeBatchDeleteConfigurationTaskCommand,
|
|
36
41
|
DescribeConfigurationsCommand,
|
|
37
42
|
DescribeContinuousExportsCommand,
|
|
38
43
|
DescribeExportConfigurationsCommand,
|
|
@@ -44,6 +49,7 @@ const commands = {
|
|
|
44
49
|
GetDiscoverySummaryCommand,
|
|
45
50
|
ListConfigurationsCommand,
|
|
46
51
|
ListServerNeighborsCommand,
|
|
52
|
+
StartBatchDeleteConfigurationTaskCommand,
|
|
47
53
|
StartContinuousExportCommand,
|
|
48
54
|
StartDataCollectionByAgentIdsCommand,
|
|
49
55
|
StartExportTaskCommand,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_BatchDeleteAgentsCommand, se_BatchDeleteAgentsCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchDeleteAgentsCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, BatchDeleteAgentsCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ApplicationDiscoveryServiceClient";
|
|
26
|
+
const commandName = "BatchDeleteAgentsCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSPoseidonService_V2015_11_01",
|
|
35
|
+
operation: "BatchDeleteAgents",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_BatchDeleteAgentsCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_BatchDeleteAgentsCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_DescribeBatchDeleteConfigurationTaskCommand, se_DescribeBatchDeleteConfigurationTaskCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribeBatchDeleteConfigurationTaskCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeBatchDeleteConfigurationTaskCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ApplicationDiscoveryServiceClient";
|
|
26
|
+
const commandName = "DescribeBatchDeleteConfigurationTaskCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSPoseidonService_V2015_11_01",
|
|
35
|
+
operation: "DescribeBatchDeleteConfigurationTask",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_DescribeBatchDeleteConfigurationTaskCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_DescribeBatchDeleteConfigurationTaskCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { de_StartBatchDeleteConfigurationTaskCommand, se_StartBatchDeleteConfigurationTaskCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class StartBatchDeleteConfigurationTaskCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, StartBatchDeleteConfigurationTaskCommand.getEndpointParameterInstructions()));
|
|
23
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
24
|
+
const { logger } = configuration;
|
|
25
|
+
const clientName = "ApplicationDiscoveryServiceClient";
|
|
26
|
+
const commandName = "StartBatchDeleteConfigurationTaskCommand";
|
|
27
|
+
const handlerExecutionContext = {
|
|
28
|
+
logger,
|
|
29
|
+
clientName,
|
|
30
|
+
commandName,
|
|
31
|
+
inputFilterSensitiveLog: (_) => _,
|
|
32
|
+
outputFilterSensitiveLog: (_) => _,
|
|
33
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
34
|
+
service: "AWSPoseidonService_V2015_11_01",
|
|
35
|
+
operation: "StartBatchDeleteConfigurationTask",
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
const { requestHandler } = configuration;
|
|
39
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
40
|
+
}
|
|
41
|
+
serialize(input, context) {
|
|
42
|
+
return se_StartBatchDeleteConfigurationTaskCommand(input, context);
|
|
43
|
+
}
|
|
44
|
+
deserialize(output, context) {
|
|
45
|
+
return de_StartBatchDeleteConfigurationTaskCommand(output, context);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from "./AssociateConfigurationItemsToApplicationCommand";
|
|
2
|
+
export * from "./BatchDeleteAgentsCommand";
|
|
2
3
|
export * from "./BatchDeleteImportDataCommand";
|
|
3
4
|
export * from "./CreateApplicationCommand";
|
|
4
5
|
export * from "./CreateTagsCommand";
|
|
5
6
|
export * from "./DeleteApplicationsCommand";
|
|
6
7
|
export * from "./DeleteTagsCommand";
|
|
7
8
|
export * from "./DescribeAgentsCommand";
|
|
9
|
+
export * from "./DescribeBatchDeleteConfigurationTaskCommand";
|
|
8
10
|
export * from "./DescribeConfigurationsCommand";
|
|
9
11
|
export * from "./DescribeContinuousExportsCommand";
|
|
10
12
|
export * from "./DescribeExportConfigurationsCommand";
|
|
@@ -16,6 +18,7 @@ export * from "./ExportConfigurationsCommand";
|
|
|
16
18
|
export * from "./GetDiscoverySummaryCommand";
|
|
17
19
|
export * from "./ListConfigurationsCommand";
|
|
18
20
|
export * from "./ListServerNeighborsCommand";
|
|
21
|
+
export * from "./StartBatchDeleteConfigurationTaskCommand";
|
|
19
22
|
export * from "./StartContinuousExportCommand";
|
|
20
23
|
export * from "./StartDataCollectionByAgentIdsCommand";
|
|
21
24
|
export * from "./StartExportTaskCommand";
|
|
@@ -68,6 +68,11 @@ export class ServerInternalErrorException extends __BaseException {
|
|
|
68
68
|
Object.setPrototypeOf(this, ServerInternalErrorException.prototype);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
export const DeleteAgentErrorCode = {
|
|
72
|
+
AGENT_IN_USE: "AGENT_IN_USE",
|
|
73
|
+
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
74
|
+
NOT_FOUND: "NOT_FOUND",
|
|
75
|
+
};
|
|
71
76
|
export const BatchDeleteImportDataErrorCode = {
|
|
72
77
|
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
73
78
|
NOT_FOUND: "NOT_FOUND",
|
|
@@ -85,6 +90,16 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
85
90
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
86
91
|
}
|
|
87
92
|
}
|
|
93
|
+
export const DeletionConfigurationItemType = {
|
|
94
|
+
SERVER: "SERVER",
|
|
95
|
+
};
|
|
96
|
+
export const BatchDeleteConfigurationTaskStatus = {
|
|
97
|
+
COMPLETED: "COMPLETED",
|
|
98
|
+
DELETING: "DELETING",
|
|
99
|
+
FAILED: "FAILED",
|
|
100
|
+
INITIALIZING: "INITIALIZING",
|
|
101
|
+
VALIDATING: "VALIDATING",
|
|
102
|
+
};
|
|
88
103
|
export const DataSource = {
|
|
89
104
|
AGENT: "AGENT",
|
|
90
105
|
};
|
|
@@ -142,6 +157,18 @@ export const OrderString = {
|
|
|
142
157
|
ASC: "ASC",
|
|
143
158
|
DESC: "DESC",
|
|
144
159
|
};
|
|
160
|
+
export class LimitExceededException extends __BaseException {
|
|
161
|
+
constructor(opts) {
|
|
162
|
+
super({
|
|
163
|
+
name: "LimitExceededException",
|
|
164
|
+
$fault: "client",
|
|
165
|
+
...opts,
|
|
166
|
+
});
|
|
167
|
+
this.name = "LimitExceededException";
|
|
168
|
+
this.$fault = "client";
|
|
169
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
145
172
|
export class ConflictErrorException extends __BaseException {
|
|
146
173
|
constructor(opts) {
|
|
147
174
|
super({
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ApplicationDiscoveryServiceClient } from "../ApplicationDiscoveryServiceClient";
|
|
2
|
+
import { DescribeAgentsCommand, } from "../commands/DescribeAgentsCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeAgentsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeAgents(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ApplicationDiscoveryServiceClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected ApplicationDiscoveryService | ApplicationDiscoveryServiceClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ApplicationDiscoveryServiceClient } from "../ApplicationDiscoveryServiceClient";
|
|
2
|
+
import { DescribeExportConfigurationsCommand, } from "../commands/DescribeExportConfigurationsCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeExportConfigurationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeExportConfigurations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ApplicationDiscoveryServiceClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected ApplicationDiscoveryService | ApplicationDiscoveryServiceClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ApplicationDiscoveryServiceClient } from "../ApplicationDiscoveryServiceClient";
|
|
2
|
+
import { DescribeExportTasksCommand, } from "../commands/DescribeExportTasksCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeExportTasksCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeExportTasks(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ApplicationDiscoveryServiceClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected ApplicationDiscoveryService | ApplicationDiscoveryServiceClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ApplicationDiscoveryServiceClient } from "../ApplicationDiscoveryServiceClient";
|
|
2
|
+
import { DescribeTagsCommand, } from "../commands/DescribeTagsCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new DescribeTagsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateDescribeTags(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ApplicationDiscoveryServiceClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected ApplicationDiscoveryService | ApplicationDiscoveryServiceClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ApplicationDiscoveryServiceClient } from "../ApplicationDiscoveryServiceClient";
|
|
2
|
+
import { ListConfigurationsCommand, } from "../commands/ListConfigurationsCommand";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListConfigurationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListConfigurations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof ApplicationDiscoveryServiceClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected ApplicationDiscoveryService | ApplicationDiscoveryServiceClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export * from "./DescribeAgentsPaginator";
|
|
1
2
|
export * from "./DescribeContinuousExportsPaginator";
|
|
3
|
+
export * from "./DescribeExportConfigurationsPaginator";
|
|
4
|
+
export * from "./DescribeExportTasksPaginator";
|
|
2
5
|
export * from "./DescribeImportTasksPaginator";
|
|
6
|
+
export * from "./DescribeTagsPaginator";
|
|
3
7
|
export * from "./Interfaces";
|
|
8
|
+
export * from "./ListConfigurationsPaginator";
|