@aws-sdk/client-cloudtrail 3.170.0 → 3.174.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 +19 -0
- package/dist-cjs/CloudTrail.js +75 -0
- package/dist-cjs/commands/GetImportCommand.js +36 -0
- package/dist-cjs/commands/ListImportFailuresCommand.js +36 -0
- package/dist-cjs/commands/ListImportsCommand.js +36 -0
- package/dist-cjs/commands/StartImportCommand.js +36 -0
- package/dist-cjs/commands/StopImportCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +148 -3
- package/dist-cjs/pagination/ListImportFailuresPaginator.js +36 -0
- package/dist-cjs/pagination/ListImportsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +575 -2
- package/dist-es/CloudTrail.js +75 -0
- package/dist-es/commands/GetImportCommand.js +39 -0
- package/dist-es/commands/ListImportFailuresCommand.js +39 -0
- package/dist-es/commands/ListImportsCommand.js +39 -0
- package/dist-es/commands/StartImportCommand.js +39 -0
- package/dist-es/commands/StopImportCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +94 -0
- package/dist-es/pagination/ListImportFailuresPaginator.js +75 -0
- package/dist-es/pagination/ListImportsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +722 -60
- package/dist-types/CloudTrail.d.ts +71 -4
- package/dist-types/CloudTrailClient.d.ts +7 -2
- package/dist-types/commands/GetEventSelectorsCommand.d.ts +15 -2
- package/dist-types/commands/GetImportCommand.d.ts +37 -0
- package/dist-types/commands/ListImportFailuresCommand.d.ts +37 -0
- package/dist-types/commands/ListImportsCommand.d.ts +37 -0
- package/dist-types/commands/PutEventSelectorsCommand.d.ts +3 -2
- package/dist-types/commands/StartImportCommand.d.ts +45 -0
- package/dist-types/commands/StopImportCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +602 -4
- package/dist-types/pagination/ListImportFailuresPaginator.d.ts +4 -0
- package/dist-types/pagination/ListImportsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +85 -31
- package/dist-types/ts3.4/CloudTrailClient.d.ts +30 -25
- package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/CreateTrailCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/DeleteTrailCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/DescribeTrailsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/GetEventSelectorsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/GetImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/GetTrailCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/GetTrailStatusCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ListImportFailuresCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ListTrailsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/LookupEventsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/PutEventSelectorsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/StartImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/StartLoggingCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/StopImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/StopLoggingCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/UpdateTrailCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/CloudTrailServiceException.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +197 -531
- package/dist-types/ts3.4/pagination/ListImportFailuresPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +0 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -1
- package/package.json +26 -26
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListImports = void 0;
|
|
4
|
+
const CloudTrail_1 = require("../CloudTrail");
|
|
5
|
+
const CloudTrailClient_1 = require("../CloudTrailClient");
|
|
6
|
+
const ListImportsCommand_1 = require("../commands/ListImportsCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListImportsCommand_1.ListImportsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listImports(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListImports(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof CloudTrail_1.CloudTrail) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof CloudTrailClient_1.CloudTrailClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListImports = paginateListImports;
|
|
@@ -5,6 +5,8 @@ tslib_1.__exportStar(require("./GetQueryResultsPaginator"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ListChannelsPaginator"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./ListEventDataStoresPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./ListImportFailuresPaginator"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ListImportsPaginator"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./ListPublicKeysPaginator"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./ListQueriesPaginator"), exports);
|
|
10
12
|
tslib_1.__exportStar(require("./ListTagsPaginator"), exports);
|