@aws-sdk/client-cloudtrail 3.41.0 → 3.46.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 (85) 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 -0
  16. package/dist-cjs/models/models_0.js +292 -36
  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.js +0 -2
  23. package/dist-es/CloudTrail.js +165 -0
  24. package/dist-es/commands/CancelQueryCommand.js +39 -0
  25. package/dist-es/commands/CreateEventDataStoreCommand.js +39 -0
  26. package/dist-es/commands/DeleteEventDataStoreCommand.js +39 -0
  27. package/dist-es/commands/DescribeQueryCommand.js +39 -0
  28. package/dist-es/commands/GetEventDataStoreCommand.js +39 -0
  29. package/dist-es/commands/GetQueryResultsCommand.js +39 -0
  30. package/dist-es/commands/ListEventDataStoresCommand.js +39 -0
  31. package/dist-es/commands/ListQueriesCommand.js +39 -0
  32. package/dist-es/commands/RestoreEventDataStoreCommand.js +39 -0
  33. package/dist-es/commands/StartQueryCommand.js +39 -0
  34. package/dist-es/commands/UpdateEventDataStoreCommand.js +39 -0
  35. package/dist-es/commands/index.js +11 -0
  36. package/dist-es/endpoints.js +1 -0
  37. package/dist-es/models/models_0.js +199 -24
  38. package/dist-es/pagination/GetQueryResultsPaginator.js +73 -0
  39. package/dist-es/pagination/ListEventDataStoresPaginator.js +74 -0
  40. package/dist-es/pagination/ListQueriesPaginator.js +74 -0
  41. package/dist-es/pagination/index.js +3 -0
  42. package/dist-es/protocols/Aws_json1_1.js +2669 -704
  43. package/dist-es/runtimeConfig.js +0 -2
  44. package/dist-types/CloudTrail.d.ts +100 -1
  45. package/dist-types/CloudTrailClient.d.ts +13 -2
  46. package/dist-types/commands/CancelQueryCommand.d.ts +37 -0
  47. package/dist-types/commands/CreateEventDataStoreCommand.d.ts +35 -0
  48. package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +41 -0
  49. package/dist-types/commands/DescribeQueryCommand.d.ts +36 -0
  50. package/dist-types/commands/GetEventDataStoreCommand.d.ts +35 -0
  51. package/dist-types/commands/GetQueryResultsCommand.d.ts +36 -0
  52. package/dist-types/commands/ListEventDataStoresCommand.d.ts +35 -0
  53. package/dist-types/commands/ListQueriesCommand.d.ts +39 -0
  54. package/dist-types/commands/PutInsightSelectorsCommand.d.ts +1 -1
  55. package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +37 -0
  56. package/dist-types/commands/StartQueryCommand.d.ts +36 -0
  57. package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +40 -0
  58. package/dist-types/commands/index.d.ts +11 -0
  59. package/dist-types/models/models_0.d.ts +1184 -136
  60. package/dist-types/pagination/GetQueryResultsPaginator.d.ts +4 -0
  61. package/dist-types/pagination/ListEventDataStoresPaginator.d.ts +4 -0
  62. package/dist-types/pagination/ListQueriesPaginator.d.ts +4 -0
  63. package/dist-types/pagination/index.d.ts +3 -0
  64. package/dist-types/protocols/Aws_json1_1.d.ts +33 -0
  65. package/dist-types/ts3.4/CloudTrail.d.ts +55 -0
  66. package/dist-types/ts3.4/CloudTrailClient.d.ts +13 -2
  67. package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +17 -0
  77. package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +17 -0
  78. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  79. package/dist-types/ts3.4/models/models_0.d.ts +613 -62
  80. package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +4 -0
  81. package/dist-types/ts3.4/pagination/ListEventDataStoresPaginator.d.ts +4 -0
  82. package/dist-types/ts3.4/pagination/ListQueriesPaginator.d.ts +4 -0
  83. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  84. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +33 -0
  85. package/package.json +36 -43
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
4
+ import { StartQueryRequest, StartQueryResponse } from "../models/models_0";
5
+ export interface StartQueryCommandInput extends StartQueryRequest {
6
+ }
7
+ export interface StartQueryCommandOutput extends StartQueryResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Starts a CloudTrail Lake query. The required <code>QueryStatement</code>
11
+ * parameter provides your SQL query, enclosed in single quotation marks.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { CloudTrailClient, StartQueryCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
16
+ * // const { CloudTrailClient, StartQueryCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
17
+ * const client = new CloudTrailClient(config);
18
+ * const command = new StartQueryCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link StartQueryCommandInput} for command's `input` shape.
23
+ * @see {@link StartQueryCommandOutput} for command's `response` shape.
24
+ * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class StartQueryCommand extends $Command<StartQueryCommandInput, StartQueryCommandOutput, CloudTrailClientResolvedConfig> {
28
+ readonly input: StartQueryCommandInput;
29
+ constructor(input: StartQueryCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartQueryCommandInput, StartQueryCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -0,0 +1,40 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
4
+ import { UpdateEventDataStoreRequest, UpdateEventDataStoreResponse } from "../models/models_0";
5
+ export interface UpdateEventDataStoreCommandInput extends UpdateEventDataStoreRequest {
6
+ }
7
+ export interface UpdateEventDataStoreCommandOutput extends UpdateEventDataStoreResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates an event data store. The required <code>EventDataStore</code> value is an ARN or the ID portion of the ARN.
11
+ * Other parameters are optional, but at least one optional parameter must be specified, or CloudTrail throws an error.
12
+ * <code>RetentionPeriod</code> is in days, and valid values are integers between 90 and 2555.
13
+ * By default, <code>TerminationProtection</code> is enabled. <code>AdvancedEventSelectors</code> includes or excludes management
14
+ * and data events in your event data store; for more information about <code>AdvancedEventSelectors</code>, see
15
+ * <a>PutEventSelectorsRequest$AdvancedEventSelectors</a>.</p>
16
+ * @example
17
+ * Use a bare-bones client and the command you need to make an API call.
18
+ * ```javascript
19
+ * import { CloudTrailClient, UpdateEventDataStoreCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
20
+ * // const { CloudTrailClient, UpdateEventDataStoreCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
21
+ * const client = new CloudTrailClient(config);
22
+ * const command = new UpdateEventDataStoreCommand(input);
23
+ * const response = await client.send(command);
24
+ * ```
25
+ *
26
+ * @see {@link UpdateEventDataStoreCommandInput} for command's `input` shape.
27
+ * @see {@link UpdateEventDataStoreCommandOutput} for command's `response` shape.
28
+ * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
29
+ *
30
+ */
31
+ export declare class UpdateEventDataStoreCommand extends $Command<UpdateEventDataStoreCommandInput, UpdateEventDataStoreCommandOutput, CloudTrailClientResolvedConfig> {
32
+ readonly input: UpdateEventDataStoreCommandInput;
33
+ constructor(input: UpdateEventDataStoreCommandInput);
34
+ /**
35
+ * @internal
36
+ */
37
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateEventDataStoreCommandInput, UpdateEventDataStoreCommandOutput>;
38
+ private serialize;
39
+ private deserialize;
40
+ }
@@ -1,18 +1,29 @@
1
1
  export * from "./AddTagsCommand";
2
+ export * from "./CancelQueryCommand";
3
+ export * from "./CreateEventDataStoreCommand";
2
4
  export * from "./CreateTrailCommand";
5
+ export * from "./DeleteEventDataStoreCommand";
3
6
  export * from "./DeleteTrailCommand";
7
+ export * from "./DescribeQueryCommand";
4
8
  export * from "./DescribeTrailsCommand";
9
+ export * from "./GetEventDataStoreCommand";
5
10
  export * from "./GetEventSelectorsCommand";
6
11
  export * from "./GetInsightSelectorsCommand";
12
+ export * from "./GetQueryResultsCommand";
7
13
  export * from "./GetTrailCommand";
8
14
  export * from "./GetTrailStatusCommand";
15
+ export * from "./ListEventDataStoresCommand";
9
16
  export * from "./ListPublicKeysCommand";
17
+ export * from "./ListQueriesCommand";
10
18
  export * from "./ListTagsCommand";
11
19
  export * from "./ListTrailsCommand";
12
20
  export * from "./LookupEventsCommand";
13
21
  export * from "./PutEventSelectorsCommand";
14
22
  export * from "./PutInsightSelectorsCommand";
15
23
  export * from "./RemoveTagsCommand";
24
+ export * from "./RestoreEventDataStoreCommand";
16
25
  export * from "./StartLoggingCommand";
26
+ export * from "./StartQueryCommand";
17
27
  export * from "./StopLoggingCommand";
28
+ export * from "./UpdateEventDataStoreCommand";
18
29
  export * from "./UpdateTrailCommand";