@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.
Files changed (90) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/CloudTrail.js +75 -0
  3. package/dist-cjs/commands/GetImportCommand.js +36 -0
  4. package/dist-cjs/commands/ListImportFailuresCommand.js +36 -0
  5. package/dist-cjs/commands/ListImportsCommand.js +36 -0
  6. package/dist-cjs/commands/StartImportCommand.js +36 -0
  7. package/dist-cjs/commands/StopImportCommand.js +36 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +148 -3
  10. package/dist-cjs/pagination/ListImportFailuresPaginator.js +36 -0
  11. package/dist-cjs/pagination/ListImportsPaginator.js +36 -0
  12. package/dist-cjs/pagination/index.js +2 -0
  13. package/dist-cjs/protocols/Aws_json1_1.js +575 -2
  14. package/dist-es/CloudTrail.js +75 -0
  15. package/dist-es/commands/GetImportCommand.js +39 -0
  16. package/dist-es/commands/ListImportFailuresCommand.js +39 -0
  17. package/dist-es/commands/ListImportsCommand.js +39 -0
  18. package/dist-es/commands/StartImportCommand.js +39 -0
  19. package/dist-es/commands/StopImportCommand.js +39 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/models/models_0.js +94 -0
  22. package/dist-es/pagination/ListImportFailuresPaginator.js +75 -0
  23. package/dist-es/pagination/ListImportsPaginator.js +75 -0
  24. package/dist-es/pagination/index.js +2 -0
  25. package/dist-es/protocols/Aws_json1_1.js +722 -60
  26. package/dist-types/CloudTrail.d.ts +71 -4
  27. package/dist-types/CloudTrailClient.d.ts +7 -2
  28. package/dist-types/commands/GetEventSelectorsCommand.d.ts +15 -2
  29. package/dist-types/commands/GetImportCommand.d.ts +37 -0
  30. package/dist-types/commands/ListImportFailuresCommand.d.ts +37 -0
  31. package/dist-types/commands/ListImportsCommand.d.ts +37 -0
  32. package/dist-types/commands/PutEventSelectorsCommand.d.ts +3 -2
  33. package/dist-types/commands/StartImportCommand.d.ts +45 -0
  34. package/dist-types/commands/StopImportCommand.d.ts +37 -0
  35. package/dist-types/commands/index.d.ts +5 -0
  36. package/dist-types/models/models_0.d.ts +602 -4
  37. package/dist-types/pagination/ListImportFailuresPaginator.d.ts +4 -0
  38. package/dist-types/pagination/ListImportsPaginator.d.ts +4 -0
  39. package/dist-types/pagination/index.d.ts +2 -0
  40. package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
  41. package/dist-types/ts3.4/CloudTrail.d.ts +85 -31
  42. package/dist-types/ts3.4/CloudTrailClient.d.ts +30 -25
  43. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +0 -2
  44. package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +0 -2
  45. package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +0 -2
  46. package/dist-types/ts3.4/commands/CreateTrailCommand.d.ts +0 -2
  47. package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +0 -2
  48. package/dist-types/ts3.4/commands/DeleteTrailCommand.d.ts +0 -2
  49. package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +0 -2
  50. package/dist-types/ts3.4/commands/DescribeTrailsCommand.d.ts +0 -2
  51. package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +0 -2
  52. package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +0 -2
  53. package/dist-types/ts3.4/commands/GetEventSelectorsCommand.d.ts +0 -2
  54. package/dist-types/ts3.4/commands/GetImportCommand.d.ts +32 -0
  55. package/dist-types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +0 -2
  56. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +0 -2
  57. package/dist-types/ts3.4/commands/GetTrailCommand.d.ts +0 -2
  58. package/dist-types/ts3.4/commands/GetTrailStatusCommand.d.ts +0 -2
  59. package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +0 -2
  60. package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +0 -2
  61. package/dist-types/ts3.4/commands/ListImportFailuresCommand.d.ts +36 -0
  62. package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +32 -0
  63. package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +0 -2
  64. package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +0 -2
  65. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +0 -2
  66. package/dist-types/ts3.4/commands/ListTrailsCommand.d.ts +0 -2
  67. package/dist-types/ts3.4/commands/LookupEventsCommand.d.ts +0 -2
  68. package/dist-types/ts3.4/commands/PutEventSelectorsCommand.d.ts +0 -2
  69. package/dist-types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +0 -2
  70. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +0 -2
  71. package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +0 -2
  72. package/dist-types/ts3.4/commands/StartImportCommand.d.ts +32 -0
  73. package/dist-types/ts3.4/commands/StartLoggingCommand.d.ts +0 -2
  74. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +0 -2
  75. package/dist-types/ts3.4/commands/StopImportCommand.d.ts +32 -0
  76. package/dist-types/ts3.4/commands/StopLoggingCommand.d.ts +0 -2
  77. package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +0 -2
  78. package/dist-types/ts3.4/commands/UpdateTrailCommand.d.ts +0 -2
  79. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  80. package/dist-types/ts3.4/models/CloudTrailServiceException.d.ts +0 -1
  81. package/dist-types/ts3.4/models/models_0.d.ts +197 -531
  82. package/dist-types/ts3.4/pagination/ListImportFailuresPaginator.d.ts +11 -0
  83. package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +11 -0
  84. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  85. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +60 -0
  86. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -1
  87. package/dist-types/ts3.4/runtimeConfig.d.ts +0 -1
  88. package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -1
  89. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -1
  90. 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);