@aws-sdk/client-cloudtrail 3.45.0 → 3.47.2
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 +45 -0
- package/dist-cjs/CloudTrail.js +165 -0
- package/dist-cjs/commands/CancelQueryCommand.js +36 -0
- package/dist-cjs/commands/CreateEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/DeleteEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/DescribeQueryCommand.js +36 -0
- package/dist-cjs/commands/GetEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/GetQueryResultsCommand.js +36 -0
- package/dist-cjs/commands/ListEventDataStoresCommand.js +36 -0
- package/dist-cjs/commands/ListQueriesCommand.js +36 -0
- package/dist-cjs/commands/RestoreEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/StartQueryCommand.js +36 -0
- package/dist-cjs/commands/UpdateEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/endpoints.js +0 -16
- package/dist-cjs/models/models_0.js +158 -252
- package/dist-cjs/pagination/GetQueryResultsPaginator.js +34 -0
- package/dist-cjs/pagination/ListEventDataStoresPaginator.js +35 -0
- package/dist-cjs/pagination/ListQueriesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2319 -389
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/CloudTrail.js +165 -0
- package/dist-es/commands/CancelQueryCommand.js +39 -0
- package/dist-es/commands/CreateEventDataStoreCommand.js +39 -0
- package/dist-es/commands/DeleteEventDataStoreCommand.js +39 -0
- package/dist-es/commands/DescribeQueryCommand.js +39 -0
- package/dist-es/commands/GetEventDataStoreCommand.js +39 -0
- package/dist-es/commands/GetQueryResultsCommand.js +39 -0
- package/dist-es/commands/ListEventDataStoresCommand.js +39 -0
- package/dist-es/commands/ListQueriesCommand.js +39 -0
- package/dist-es/commands/RestoreEventDataStoreCommand.js +39 -0
- package/dist-es/commands/StartQueryCommand.js +39 -0
- package/dist-es/commands/UpdateEventDataStoreCommand.js +39 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoints.js +0 -16
- package/dist-es/models/models_0.js +118 -176
- package/dist-es/pagination/GetQueryResultsPaginator.js +73 -0
- package/dist-es/pagination/ListEventDataStoresPaginator.js +74 -0
- package/dist-es/pagination/ListQueriesPaginator.js +74 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +2669 -704
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/CloudTrail.d.ts +100 -1
- package/dist-types/CloudTrailClient.d.ts +18 -3
- package/dist-types/commands/CancelQueryCommand.d.ts +37 -0
- package/dist-types/commands/CreateEventDataStoreCommand.d.ts +35 -0
- package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +41 -0
- package/dist-types/commands/DescribeQueryCommand.d.ts +36 -0
- package/dist-types/commands/GetEventDataStoreCommand.d.ts +35 -0
- package/dist-types/commands/GetQueryResultsCommand.d.ts +36 -0
- package/dist-types/commands/ListEventDataStoresCommand.d.ts +35 -0
- package/dist-types/commands/ListQueriesCommand.d.ts +39 -0
- package/dist-types/commands/PutInsightSelectorsCommand.d.ts +1 -1
- package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +37 -0
- package/dist-types/commands/StartQueryCommand.d.ts +36 -0
- package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +40 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +926 -328
- package/dist-types/pagination/GetQueryResultsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListEventDataStoresPaginator.d.ts +4 -0
- package/dist-types/pagination/ListQueriesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +33 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +55 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +16 -3
- package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +523 -205
- package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListEventDataStoresPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListQueriesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +33 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
|
@@ -0,0 +1,39 @@
|
|
|
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 { ListQueriesRequest, ListQueriesResponse } from "../models/models_0";
|
|
5
|
+
export interface ListQueriesCommandInput extends ListQueriesRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListQueriesCommandOutput extends ListQueriesResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Returns a list of queries and query statuses for the past seven days. You must specify an ARN value for
|
|
11
|
+
* <code>EventDataStore</code>. Optionally, to shorten the list of results, you can specify a time range,
|
|
12
|
+
* formatted as timestamps, by adding <code>StartTime</code> and <code>EndTime</code> parameters, and a
|
|
13
|
+
* <code>QueryStatus</code> value. Valid values for <code>QueryStatus</code> include <code>QUEUED</code>, <code>RUNNING</code>,
|
|
14
|
+
* <code>FINISHED</code>, <code>FAILED</code>, or <code>CANCELLED</code>.</p>
|
|
15
|
+
* @example
|
|
16
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
+
* ```javascript
|
|
18
|
+
* import { CloudTrailClient, ListQueriesCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
19
|
+
* // const { CloudTrailClient, ListQueriesCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
20
|
+
* const client = new CloudTrailClient(config);
|
|
21
|
+
* const command = new ListQueriesCommand(input);
|
|
22
|
+
* const response = await client.send(command);
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @see {@link ListQueriesCommandInput} for command's `input` shape.
|
|
26
|
+
* @see {@link ListQueriesCommandOutput} for command's `response` shape.
|
|
27
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class ListQueriesCommand extends $Command<ListQueriesCommandInput, ListQueriesCommandOutput, CloudTrailClientResolvedConfig> {
|
|
31
|
+
readonly input: ListQueriesCommandInput;
|
|
32
|
+
constructor(input: ListQueriesCommandInput);
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListQueriesCommandInput, ListQueriesCommandOutput>;
|
|
37
|
+
private serialize;
|
|
38
|
+
private deserialize;
|
|
39
|
+
}
|
|
@@ -10,7 +10,7 @@ export interface PutInsightSelectorsCommandOutput extends PutInsightSelectorsRes
|
|
|
10
10
|
* <p>Lets you enable Insights event logging by specifying the Insights
|
|
11
11
|
* selectors that you want to enable on an existing trail. You also use
|
|
12
12
|
* <code>PutInsightSelectors</code> to turn off Insights event logging, by passing an empty list of insight types.
|
|
13
|
-
* The valid Insights event
|
|
13
|
+
* The valid Insights event types in this release are <code>ApiErrorRateInsight</code> and <code>ApiCallRateInsight</code>.</p>
|
|
14
14
|
* @example
|
|
15
15
|
* Use a bare-bones client and the command you need to make an API call.
|
|
16
16
|
* ```javascript
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { RestoreEventDataStoreRequest, RestoreEventDataStoreResponse } from "../models/models_0";
|
|
5
|
+
export interface RestoreEventDataStoreCommandInput extends RestoreEventDataStoreRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface RestoreEventDataStoreCommandOutput extends RestoreEventDataStoreResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Restores a deleted event data store specified by <code>EventDataStore</code>, which accepts an event data store ARN.
|
|
11
|
+
* You can only restore a deleted event data store within the seven-day wait period after deletion. Restoring an event data store
|
|
12
|
+
* can take several minutes, depending on the size of the event data store.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { CloudTrailClient, RestoreEventDataStoreCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
17
|
+
* // const { CloudTrailClient, RestoreEventDataStoreCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
18
|
+
* const client = new CloudTrailClient(config);
|
|
19
|
+
* const command = new RestoreEventDataStoreCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link RestoreEventDataStoreCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link RestoreEventDataStoreCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class RestoreEventDataStoreCommand extends $Command<RestoreEventDataStoreCommandInput, RestoreEventDataStoreCommandOutput, CloudTrailClientResolvedConfig> {
|
|
29
|
+
readonly input: RestoreEventDataStoreCommandInput;
|
|
30
|
+
constructor(input: RestoreEventDataStoreCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<RestoreEventDataStoreCommandInput, RestoreEventDataStoreCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -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";
|