@aws-sdk/client-cloudtrail 3.43.0 → 3.47.1

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 (93) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist-cjs/CloudTrail.js +165 -0
  3. package/dist-cjs/commands/CancelQueryCommand.js +36 -0
  4. package/dist-cjs/commands/CreateEventDataStoreCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteEventDataStoreCommand.js +36 -0
  6. package/dist-cjs/commands/DescribeQueryCommand.js +36 -0
  7. package/dist-cjs/commands/GetEventDataStoreCommand.js +36 -0
  8. package/dist-cjs/commands/GetQueryResultsCommand.js +36 -0
  9. package/dist-cjs/commands/ListEventDataStoresCommand.js +36 -0
  10. package/dist-cjs/commands/ListQueriesCommand.js +36 -0
  11. package/dist-cjs/commands/RestoreEventDataStoreCommand.js +36 -0
  12. package/dist-cjs/commands/StartQueryCommand.js +36 -0
  13. package/dist-cjs/commands/UpdateEventDataStoreCommand.js +36 -0
  14. package/dist-cjs/commands/index.js +11 -0
  15. package/dist-cjs/endpoints.js +1 -16
  16. package/dist-cjs/models/models_0.js +158 -252
  17. package/dist-cjs/pagination/GetQueryResultsPaginator.js +34 -0
  18. package/dist-cjs/pagination/ListEventDataStoresPaginator.js +35 -0
  19. package/dist-cjs/pagination/ListQueriesPaginator.js +35 -0
  20. package/dist-cjs/pagination/index.js +3 -0
  21. package/dist-cjs/protocols/Aws_json1_1.js +2319 -389
  22. package/dist-cjs/runtimeConfig.browser.js +7 -2
  23. package/dist-cjs/runtimeConfig.js +9 -3
  24. package/dist-es/CloudTrail.js +165 -0
  25. package/dist-es/commands/CancelQueryCommand.js +39 -0
  26. package/dist-es/commands/CreateEventDataStoreCommand.js +39 -0
  27. package/dist-es/commands/DeleteEventDataStoreCommand.js +39 -0
  28. package/dist-es/commands/DescribeQueryCommand.js +39 -0
  29. package/dist-es/commands/GetEventDataStoreCommand.js +39 -0
  30. package/dist-es/commands/GetQueryResultsCommand.js +39 -0
  31. package/dist-es/commands/ListEventDataStoresCommand.js +39 -0
  32. package/dist-es/commands/ListQueriesCommand.js +39 -0
  33. package/dist-es/commands/RestoreEventDataStoreCommand.js +39 -0
  34. package/dist-es/commands/StartQueryCommand.js +39 -0
  35. package/dist-es/commands/UpdateEventDataStoreCommand.js +39 -0
  36. package/dist-es/commands/index.js +11 -0
  37. package/dist-es/endpoints.js +1 -16
  38. package/dist-es/models/models_0.js +118 -176
  39. package/dist-es/pagination/GetQueryResultsPaginator.js +73 -0
  40. package/dist-es/pagination/ListEventDataStoresPaginator.js +74 -0
  41. package/dist-es/pagination/ListQueriesPaginator.js +74 -0
  42. package/dist-es/pagination/index.js +3 -0
  43. package/dist-es/protocols/Aws_json1_1.js +2669 -704
  44. package/dist-es/runtimeConfig.browser.js +12 -3
  45. package/dist-es/runtimeConfig.js +13 -6
  46. package/dist-types/CloudTrail.d.ts +100 -1
  47. package/dist-types/CloudTrailClient.d.ts +18 -3
  48. package/dist-types/commands/CancelQueryCommand.d.ts +37 -0
  49. package/dist-types/commands/CreateEventDataStoreCommand.d.ts +35 -0
  50. package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +41 -0
  51. package/dist-types/commands/DescribeQueryCommand.d.ts +36 -0
  52. package/dist-types/commands/GetEventDataStoreCommand.d.ts +35 -0
  53. package/dist-types/commands/GetQueryResultsCommand.d.ts +36 -0
  54. package/dist-types/commands/ListEventDataStoresCommand.d.ts +35 -0
  55. package/dist-types/commands/ListQueriesCommand.d.ts +39 -0
  56. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +1 -1
  57. package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +37 -0
  58. package/dist-types/commands/StartQueryCommand.d.ts +36 -0
  59. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +40 -0
  60. package/dist-types/commands/index.d.ts +11 -0
  61. package/dist-types/models/models_0.d.ts +926 -328
  62. package/dist-types/pagination/GetQueryResultsPaginator.d.ts +4 -0
  63. package/dist-types/pagination/ListEventDataStoresPaginator.d.ts +4 -0
  64. package/dist-types/pagination/ListQueriesPaginator.d.ts +4 -0
  65. package/dist-types/pagination/index.d.ts +3 -0
  66. package/dist-types/protocols/Aws_json1_1.d.ts +33 -0
  67. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  68. package/dist-types/runtimeConfig.d.ts +4 -3
  69. package/dist-types/runtimeConfig.native.d.ts +1 -0
  70. package/dist-types/ts3.4/CloudTrail.d.ts +55 -0
  71. package/dist-types/ts3.4/CloudTrailClient.d.ts +16 -3
  72. package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +17 -0
  79. package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +17 -0
  80. package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +17 -0
  81. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +17 -0
  82. package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +17 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  84. package/dist-types/ts3.4/models/models_0.d.ts +523 -205
  85. package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +4 -0
  86. package/dist-types/ts3.4/pagination/ListEventDataStoresPaginator.d.ts +4 -0
  87. package/dist-types/ts3.4/pagination/ListQueriesPaginator.d.ts +4 -0
  88. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  89. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +33 -0
  90. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  91. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  92. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  93. package/package.json +39 -46
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartQueryCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class StartQueryCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudTrailClient";
18
+ const commandName = "StartQueryCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.StartQueryRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.StartQueryResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1StartQueryCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1StartQueryCommand(output, context);
34
+ }
35
+ }
36
+ exports.StartQueryCommand = StartQueryCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateEventDataStoreCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class UpdateEventDataStoreCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "CloudTrailClient";
18
+ const commandName = "UpdateEventDataStoreCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateEventDataStoreRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.UpdateEventDataStoreResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1UpdateEventDataStoreCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1UpdateEventDataStoreCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateEventDataStoreCommand = UpdateEventDataStoreCommand;
@@ -2,20 +2,31 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./AddTagsCommand"), exports);
5
+ tslib_1.__exportStar(require("./CancelQueryCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateEventDataStoreCommand"), exports);
5
7
  tslib_1.__exportStar(require("./CreateTrailCommand"), exports);
8
+ tslib_1.__exportStar(require("./DeleteEventDataStoreCommand"), exports);
6
9
  tslib_1.__exportStar(require("./DeleteTrailCommand"), exports);
10
+ tslib_1.__exportStar(require("./DescribeQueryCommand"), exports);
7
11
  tslib_1.__exportStar(require("./DescribeTrailsCommand"), exports);
12
+ tslib_1.__exportStar(require("./GetEventDataStoreCommand"), exports);
8
13
  tslib_1.__exportStar(require("./GetEventSelectorsCommand"), exports);
9
14
  tslib_1.__exportStar(require("./GetInsightSelectorsCommand"), exports);
15
+ tslib_1.__exportStar(require("./GetQueryResultsCommand"), exports);
10
16
  tslib_1.__exportStar(require("./GetTrailCommand"), exports);
11
17
  tslib_1.__exportStar(require("./GetTrailStatusCommand"), exports);
18
+ tslib_1.__exportStar(require("./ListEventDataStoresCommand"), exports);
12
19
  tslib_1.__exportStar(require("./ListPublicKeysCommand"), exports);
20
+ tslib_1.__exportStar(require("./ListQueriesCommand"), exports);
13
21
  tslib_1.__exportStar(require("./ListTagsCommand"), exports);
14
22
  tslib_1.__exportStar(require("./ListTrailsCommand"), exports);
15
23
  tslib_1.__exportStar(require("./LookupEventsCommand"), exports);
16
24
  tslib_1.__exportStar(require("./PutEventSelectorsCommand"), exports);
17
25
  tslib_1.__exportStar(require("./PutInsightSelectorsCommand"), exports);
18
26
  tslib_1.__exportStar(require("./RemoveTagsCommand"), exports);
27
+ tslib_1.__exportStar(require("./RestoreEventDataStoreCommand"), exports);
19
28
  tslib_1.__exportStar(require("./StartLoggingCommand"), exports);
29
+ tslib_1.__exportStar(require("./StartQueryCommand"), exports);
20
30
  tslib_1.__exportStar(require("./StopLoggingCommand"), exports);
31
+ tslib_1.__exportStar(require("./UpdateEventDataStoreCommand"), exports);
21
32
  tslib_1.__exportStar(require("./UpdateTrailCommand"), exports);
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "us-east-1": {
7
7
  variants: [
8
- {
9
- hostname: "cloudtrail.us-east-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "cloudtrail-fips.us-east-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "us-east-2": {
19
15
  variants: [
20
- {
21
- hostname: "cloudtrail.us-east-2.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "cloudtrail-fips.us-east-2.amazonaws.com",
26
18
  tags: ["fips"],
@@ -47,10 +39,6 @@ const regionHash = {
47
39
  },
48
40
  "us-west-1": {
49
41
  variants: [
50
- {
51
- hostname: "cloudtrail.us-west-1.amazonaws.com",
52
- tags: [],
53
- },
54
42
  {
55
43
  hostname: "cloudtrail-fips.us-west-1.amazonaws.com",
56
44
  tags: ["fips"],
@@ -59,10 +47,6 @@ const regionHash = {
59
47
  },
60
48
  "us-west-2": {
61
49
  variants: [
62
- {
63
- hostname: "cloudtrail.us-west-2.amazonaws.com",
64
- tags: [],
65
- },
66
50
  {
67
51
  hostname: "cloudtrail-fips.us-west-2.amazonaws.com",
68
52
  tags: ["fips"],
@@ -81,6 +65,7 @@ const partitionHash = {
81
65
  "ap-south-1",
82
66
  "ap-southeast-1",
83
67
  "ap-southeast-2",
68
+ "ap-southeast-3",
84
69
  "ca-central-1",
85
70
  "eu-central-1",
86
71
  "eu-north-1",