@aws-sdk/client-cloudtrail 3.171.0 → 3.178.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/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/CloudTrail.d.ts +85 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetImportCommand.d.ts +32 -0
- 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/StartImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/StopImportCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +197 -0
- 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 +3 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
- package/package.json +26 -26
|
@@ -11,12 +11,15 @@ import { DescribeTrailsCommandInput, DescribeTrailsCommandOutput } from "./comma
|
|
|
11
11
|
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
|
|
12
12
|
import { GetEventDataStoreCommandInput, GetEventDataStoreCommandOutput } from "./commands/GetEventDataStoreCommand";
|
|
13
13
|
import { GetEventSelectorsCommandInput, GetEventSelectorsCommandOutput } from "./commands/GetEventSelectorsCommand";
|
|
14
|
+
import { GetImportCommandInput, GetImportCommandOutput } from "./commands/GetImportCommand";
|
|
14
15
|
import { GetInsightSelectorsCommandInput, GetInsightSelectorsCommandOutput } from "./commands/GetInsightSelectorsCommand";
|
|
15
16
|
import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
|
|
16
17
|
import { GetTrailCommandInput, GetTrailCommandOutput } from "./commands/GetTrailCommand";
|
|
17
18
|
import { GetTrailStatusCommandInput, GetTrailStatusCommandOutput } from "./commands/GetTrailStatusCommand";
|
|
18
19
|
import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
|
|
19
20
|
import { ListEventDataStoresCommandInput, ListEventDataStoresCommandOutput } from "./commands/ListEventDataStoresCommand";
|
|
21
|
+
import { ListImportFailuresCommandInput, ListImportFailuresCommandOutput } from "./commands/ListImportFailuresCommand";
|
|
22
|
+
import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
|
|
20
23
|
import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "./commands/ListPublicKeysCommand";
|
|
21
24
|
import { ListQueriesCommandInput, ListQueriesCommandOutput } from "./commands/ListQueriesCommand";
|
|
22
25
|
import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
|
|
@@ -26,8 +29,10 @@ import { PutEventSelectorsCommandInput, PutEventSelectorsCommandOutput } from ".
|
|
|
26
29
|
import { PutInsightSelectorsCommandInput, PutInsightSelectorsCommandOutput } from "./commands/PutInsightSelectorsCommand";
|
|
27
30
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
28
31
|
import { RestoreEventDataStoreCommandInput, RestoreEventDataStoreCommandOutput } from "./commands/RestoreEventDataStoreCommand";
|
|
32
|
+
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
|
|
29
33
|
import { StartLoggingCommandInput, StartLoggingCommandOutput } from "./commands/StartLoggingCommand";
|
|
30
34
|
import { StartQueryCommandInput, StartQueryCommandOutput } from "./commands/StartQueryCommand";
|
|
35
|
+
import { StopImportCommandInput, StopImportCommandOutput } from "./commands/StopImportCommand";
|
|
31
36
|
import { StopLoggingCommandInput, StopLoggingCommandOutput } from "./commands/StopLoggingCommand";
|
|
32
37
|
import { UpdateEventDataStoreCommandInput, UpdateEventDataStoreCommandOutput } from "./commands/UpdateEventDataStoreCommand";
|
|
33
38
|
import { UpdateTrailCommandInput, UpdateTrailCommandOutput } from "./commands/UpdateTrailCommand";
|
|
@@ -148,12 +153,33 @@ export declare class CloudTrail extends CloudTrailClient {
|
|
|
148
153
|
* events.</p>
|
|
149
154
|
* </li>
|
|
150
155
|
* </ul>
|
|
151
|
-
* <p>For more information
|
|
152
|
-
*
|
|
156
|
+
* <p>For more information about logging management and data events, see the following topics in the <i>CloudTrail User Guide</i>:</p>
|
|
157
|
+
* <ul>
|
|
158
|
+
* <li>
|
|
159
|
+
* <p>
|
|
160
|
+
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html">Logging management events for trails
|
|
161
|
+
* </a>
|
|
162
|
+
* </p>
|
|
163
|
+
* </li>
|
|
164
|
+
* <li>
|
|
165
|
+
* <p>
|
|
166
|
+
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging data events for trails
|
|
167
|
+
* </a>
|
|
168
|
+
* </p>
|
|
169
|
+
* </li>
|
|
170
|
+
* </ul>
|
|
153
171
|
*/
|
|
154
172
|
getEventSelectors(args: GetEventSelectorsCommandInput, options?: __HttpHandlerOptions): Promise<GetEventSelectorsCommandOutput>;
|
|
155
173
|
getEventSelectors(args: GetEventSelectorsCommandInput, cb: (err: any, data?: GetEventSelectorsCommandOutput) => void): void;
|
|
156
174
|
getEventSelectors(args: GetEventSelectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEventSelectorsCommandOutput) => void): void;
|
|
175
|
+
/**
|
|
176
|
+
* <p>
|
|
177
|
+
* Returns information for the specified import.
|
|
178
|
+
* </p>
|
|
179
|
+
*/
|
|
180
|
+
getImport(args: GetImportCommandInput, options?: __HttpHandlerOptions): Promise<GetImportCommandOutput>;
|
|
181
|
+
getImport(args: GetImportCommandInput, cb: (err: any, data?: GetImportCommandOutput) => void): void;
|
|
182
|
+
getImport(args: GetImportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetImportCommandOutput) => void): void;
|
|
157
183
|
/**
|
|
158
184
|
* <p>Describes the settings for the Insights event selectors that you configured for your trail. <code>GetInsightSelectors</code> shows
|
|
159
185
|
* if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled.
|
|
@@ -199,6 +225,22 @@ export declare class CloudTrail extends CloudTrailClient {
|
|
|
199
225
|
listEventDataStores(args: ListEventDataStoresCommandInput, options?: __HttpHandlerOptions): Promise<ListEventDataStoresCommandOutput>;
|
|
200
226
|
listEventDataStores(args: ListEventDataStoresCommandInput, cb: (err: any, data?: ListEventDataStoresCommandOutput) => void): void;
|
|
201
227
|
listEventDataStores(args: ListEventDataStoresCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEventDataStoresCommandOutput) => void): void;
|
|
228
|
+
/**
|
|
229
|
+
* <p>
|
|
230
|
+
* Returns a list of failures for the specified import.
|
|
231
|
+
* </p>
|
|
232
|
+
*/
|
|
233
|
+
listImportFailures(args: ListImportFailuresCommandInput, options?: __HttpHandlerOptions): Promise<ListImportFailuresCommandOutput>;
|
|
234
|
+
listImportFailures(args: ListImportFailuresCommandInput, cb: (err: any, data?: ListImportFailuresCommandOutput) => void): void;
|
|
235
|
+
listImportFailures(args: ListImportFailuresCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListImportFailuresCommandOutput) => void): void;
|
|
236
|
+
/**
|
|
237
|
+
* <p>
|
|
238
|
+
* Returns information on all imports, or a select set of imports by <code>ImportStatus</code> or <code>Destination</code>.
|
|
239
|
+
* </p>
|
|
240
|
+
*/
|
|
241
|
+
listImports(args: ListImportsCommandInput, options?: __HttpHandlerOptions): Promise<ListImportsCommandOutput>;
|
|
242
|
+
listImports(args: ListImportsCommandInput, cb: (err: any, data?: ListImportsCommandOutput) => void): void;
|
|
243
|
+
listImports(args: ListImportsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListImportsCommandOutput) => void): void;
|
|
202
244
|
/**
|
|
203
245
|
* <p>Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.</p>
|
|
204
246
|
* <note>
|
|
@@ -321,8 +363,9 @@ export declare class CloudTrail extends CloudTrailClient {
|
|
|
321
363
|
* <p>The <code>PutEventSelectors</code> operation must be called from the region in which
|
|
322
364
|
* the trail was created; otherwise, an <code>InvalidHomeRegionException</code> exception is
|
|
323
365
|
* thrown.</p>
|
|
324
|
-
* <p>You can configure up to five event selectors for each trail. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-
|
|
325
|
-
* </a
|
|
366
|
+
* <p>You can configure up to five event selectors for each trail. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html">Logging management events for trails
|
|
367
|
+
* </a>, <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging data events for trails
|
|
368
|
+
* </a>, and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Quotas in CloudTrail</a>
|
|
326
369
|
* in the <i>CloudTrail User Guide</i>.</p>
|
|
327
370
|
* <p>You can add advanced event selectors, and conditions for your advanced
|
|
328
371
|
* event selectors, up to a maximum of 500 values for all conditions and selectors on a trail.
|
|
@@ -358,6 +401,22 @@ export declare class CloudTrail extends CloudTrailClient {
|
|
|
358
401
|
restoreEventDataStore(args: RestoreEventDataStoreCommandInput, options?: __HttpHandlerOptions): Promise<RestoreEventDataStoreCommandOutput>;
|
|
359
402
|
restoreEventDataStore(args: RestoreEventDataStoreCommandInput, cb: (err: any, data?: RestoreEventDataStoreCommandOutput) => void): void;
|
|
360
403
|
restoreEventDataStore(args: RestoreEventDataStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreEventDataStoreCommandOutput) => void): void;
|
|
404
|
+
/**
|
|
405
|
+
* <p>
|
|
406
|
+
* Starts an import of logged trail events from a source S3 bucket to a destination event data store.
|
|
407
|
+
* </p>
|
|
408
|
+
* <p>
|
|
409
|
+
* When you start a new import, the <code>Destinations</code> and
|
|
410
|
+
* <code>ImportSource</code> parameters are required. Before starting a new import, disable any access control lists (ACLs) attached to the source S3 bucket.
|
|
411
|
+
* For more information about disabling ACLs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling ownership of objects and disabling ACLs for your bucket</a>.
|
|
412
|
+
* </p>
|
|
413
|
+
* <p>
|
|
414
|
+
* When you retry an import, the <code>ImportID</code> parameter is required.
|
|
415
|
+
* </p>
|
|
416
|
+
*/
|
|
417
|
+
startImport(args: StartImportCommandInput, options?: __HttpHandlerOptions): Promise<StartImportCommandOutput>;
|
|
418
|
+
startImport(args: StartImportCommandInput, cb: (err: any, data?: StartImportCommandOutput) => void): void;
|
|
419
|
+
startImport(args: StartImportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartImportCommandOutput) => void): void;
|
|
361
420
|
/**
|
|
362
421
|
* <p>Starts the recording of Amazon Web Services API calls and log file delivery for a trail. For a trail that is enabled in all regions, this operation must be called from the region in which the trail was created. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.</p>
|
|
363
422
|
*/
|
|
@@ -371,6 +430,14 @@ export declare class CloudTrail extends CloudTrailClient {
|
|
|
371
430
|
startQuery(args: StartQueryCommandInput, options?: __HttpHandlerOptions): Promise<StartQueryCommandOutput>;
|
|
372
431
|
startQuery(args: StartQueryCommandInput, cb: (err: any, data?: StartQueryCommandOutput) => void): void;
|
|
373
432
|
startQuery(args: StartQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartQueryCommandOutput) => void): void;
|
|
433
|
+
/**
|
|
434
|
+
* <p>
|
|
435
|
+
* Stops a specified import.
|
|
436
|
+
* </p>
|
|
437
|
+
*/
|
|
438
|
+
stopImport(args: StopImportCommandInput, options?: __HttpHandlerOptions): Promise<StopImportCommandOutput>;
|
|
439
|
+
stopImport(args: StopImportCommandInput, cb: (err: any, data?: StopImportCommandOutput) => void): void;
|
|
440
|
+
stopImport(args: StopImportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopImportCommandOutput) => void): void;
|
|
374
441
|
/**
|
|
375
442
|
* <p>Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail.
|
|
376
443
|
* Under most circumstances, there is no need to use this action. You can update a trail
|
|
@@ -17,12 +17,15 @@ import { DescribeTrailsCommandInput, DescribeTrailsCommandOutput } from "./comma
|
|
|
17
17
|
import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
|
|
18
18
|
import { GetEventDataStoreCommandInput, GetEventDataStoreCommandOutput } from "./commands/GetEventDataStoreCommand";
|
|
19
19
|
import { GetEventSelectorsCommandInput, GetEventSelectorsCommandOutput } from "./commands/GetEventSelectorsCommand";
|
|
20
|
+
import { GetImportCommandInput, GetImportCommandOutput } from "./commands/GetImportCommand";
|
|
20
21
|
import { GetInsightSelectorsCommandInput, GetInsightSelectorsCommandOutput } from "./commands/GetInsightSelectorsCommand";
|
|
21
22
|
import { GetQueryResultsCommandInput, GetQueryResultsCommandOutput } from "./commands/GetQueryResultsCommand";
|
|
22
23
|
import { GetTrailCommandInput, GetTrailCommandOutput } from "./commands/GetTrailCommand";
|
|
23
24
|
import { GetTrailStatusCommandInput, GetTrailStatusCommandOutput } from "./commands/GetTrailStatusCommand";
|
|
24
25
|
import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
|
|
25
26
|
import { ListEventDataStoresCommandInput, ListEventDataStoresCommandOutput } from "./commands/ListEventDataStoresCommand";
|
|
27
|
+
import { ListImportFailuresCommandInput, ListImportFailuresCommandOutput } from "./commands/ListImportFailuresCommand";
|
|
28
|
+
import { ListImportsCommandInput, ListImportsCommandOutput } from "./commands/ListImportsCommand";
|
|
26
29
|
import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "./commands/ListPublicKeysCommand";
|
|
27
30
|
import { ListQueriesCommandInput, ListQueriesCommandOutput } from "./commands/ListQueriesCommand";
|
|
28
31
|
import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
|
|
@@ -32,13 +35,15 @@ import { PutEventSelectorsCommandInput, PutEventSelectorsCommandOutput } from ".
|
|
|
32
35
|
import { PutInsightSelectorsCommandInput, PutInsightSelectorsCommandOutput } from "./commands/PutInsightSelectorsCommand";
|
|
33
36
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
34
37
|
import { RestoreEventDataStoreCommandInput, RestoreEventDataStoreCommandOutput } from "./commands/RestoreEventDataStoreCommand";
|
|
38
|
+
import { StartImportCommandInput, StartImportCommandOutput } from "./commands/StartImportCommand";
|
|
35
39
|
import { StartLoggingCommandInput, StartLoggingCommandOutput } from "./commands/StartLoggingCommand";
|
|
36
40
|
import { StartQueryCommandInput, StartQueryCommandOutput } from "./commands/StartQueryCommand";
|
|
41
|
+
import { StopImportCommandInput, StopImportCommandOutput } from "./commands/StopImportCommand";
|
|
37
42
|
import { StopLoggingCommandInput, StopLoggingCommandOutput } from "./commands/StopLoggingCommand";
|
|
38
43
|
import { UpdateEventDataStoreCommandInput, UpdateEventDataStoreCommandOutput } from "./commands/UpdateEventDataStoreCommand";
|
|
39
44
|
import { UpdateTrailCommandInput, UpdateTrailCommandOutput } from "./commands/UpdateTrailCommand";
|
|
40
|
-
export declare type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteEventDataStoreCommandInput | DeleteTrailCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | GetChannelCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListEventDataStoresCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopLoggingCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
|
|
41
|
-
export declare type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteEventDataStoreCommandOutput | DeleteTrailCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | GetChannelCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListEventDataStoresCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopLoggingCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
|
|
45
|
+
export declare type ServiceInputTypes = AddTagsCommandInput | CancelQueryCommandInput | CreateEventDataStoreCommandInput | CreateTrailCommandInput | DeleteEventDataStoreCommandInput | DeleteTrailCommandInput | DescribeQueryCommandInput | DescribeTrailsCommandInput | GetChannelCommandInput | GetEventDataStoreCommandInput | GetEventSelectorsCommandInput | GetImportCommandInput | GetInsightSelectorsCommandInput | GetQueryResultsCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListChannelsCommandInput | ListEventDataStoresCommandInput | ListImportFailuresCommandInput | ListImportsCommandInput | ListPublicKeysCommandInput | ListQueriesCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | RemoveTagsCommandInput | RestoreEventDataStoreCommandInput | StartImportCommandInput | StartLoggingCommandInput | StartQueryCommandInput | StopImportCommandInput | StopLoggingCommandInput | UpdateEventDataStoreCommandInput | UpdateTrailCommandInput;
|
|
46
|
+
export declare type ServiceOutputTypes = AddTagsCommandOutput | CancelQueryCommandOutput | CreateEventDataStoreCommandOutput | CreateTrailCommandOutput | DeleteEventDataStoreCommandOutput | DeleteTrailCommandOutput | DescribeQueryCommandOutput | DescribeTrailsCommandOutput | GetChannelCommandOutput | GetEventDataStoreCommandOutput | GetEventSelectorsCommandOutput | GetImportCommandOutput | GetInsightSelectorsCommandOutput | GetQueryResultsCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListChannelsCommandOutput | ListEventDataStoresCommandOutput | ListImportFailuresCommandOutput | ListImportsCommandOutput | ListPublicKeysCommandOutput | ListQueriesCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | RemoveTagsCommandOutput | RestoreEventDataStoreCommandOutput | StartImportCommandOutput | StartLoggingCommandOutput | StartQueryCommandOutput | StopImportCommandOutput | StopLoggingCommandOutput | UpdateEventDataStoreCommandOutput | UpdateTrailCommandOutput;
|
|
42
47
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
43
48
|
/**
|
|
44
49
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -22,8 +22,21 @@ export interface GetEventSelectorsCommandOutput extends GetEventSelectorsRespons
|
|
|
22
22
|
* events.</p>
|
|
23
23
|
* </li>
|
|
24
24
|
* </ul>
|
|
25
|
-
* <p>For more information
|
|
26
|
-
*
|
|
25
|
+
* <p>For more information about logging management and data events, see the following topics in the <i>CloudTrail User Guide</i>:</p>
|
|
26
|
+
* <ul>
|
|
27
|
+
* <li>
|
|
28
|
+
* <p>
|
|
29
|
+
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html">Logging management events for trails
|
|
30
|
+
* </a>
|
|
31
|
+
* </p>
|
|
32
|
+
* </li>
|
|
33
|
+
* <li>
|
|
34
|
+
* <p>
|
|
35
|
+
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging data events for trails
|
|
36
|
+
* </a>
|
|
37
|
+
* </p>
|
|
38
|
+
* </li>
|
|
39
|
+
* </ul>
|
|
27
40
|
* @example
|
|
28
41
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
42
|
* ```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 { GetImportRequest, GetImportResponse } from "../models/models_0";
|
|
5
|
+
export interface GetImportCommandInput extends GetImportRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetImportCommandOutput extends GetImportResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>
|
|
11
|
+
* Returns information for the specified import.
|
|
12
|
+
* </p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { CloudTrailClient, GetImportCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
17
|
+
* // const { CloudTrailClient, GetImportCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
18
|
+
* const client = new CloudTrailClient(config);
|
|
19
|
+
* const command = new GetImportCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link GetImportCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link GetImportCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class GetImportCommand extends $Command<GetImportCommandInput, GetImportCommandOutput, CloudTrailClientResolvedConfig> {
|
|
29
|
+
readonly input: GetImportCommandInput;
|
|
30
|
+
constructor(input: GetImportCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetImportCommandInput, GetImportCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -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 { ListImportFailuresRequest, ListImportFailuresResponse } from "../models/models_0";
|
|
5
|
+
export interface ListImportFailuresCommandInput extends ListImportFailuresRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListImportFailuresCommandOutput extends ListImportFailuresResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>
|
|
11
|
+
* Returns a list of failures for the specified import.
|
|
12
|
+
* </p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { CloudTrailClient, ListImportFailuresCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
17
|
+
* // const { CloudTrailClient, ListImportFailuresCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
18
|
+
* const client = new CloudTrailClient(config);
|
|
19
|
+
* const command = new ListImportFailuresCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link ListImportFailuresCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link ListImportFailuresCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class ListImportFailuresCommand extends $Command<ListImportFailuresCommandInput, ListImportFailuresCommandOutput, CloudTrailClientResolvedConfig> {
|
|
29
|
+
readonly input: ListImportFailuresCommandInput;
|
|
30
|
+
constructor(input: ListImportFailuresCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListImportFailuresCommandInput, ListImportFailuresCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -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 { ListImportsRequest, ListImportsResponse } from "../models/models_0";
|
|
5
|
+
export interface ListImportsCommandInput extends ListImportsRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface ListImportsCommandOutput extends ListImportsResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>
|
|
11
|
+
* Returns information on all imports, or a select set of imports by <code>ImportStatus</code> or <code>Destination</code>.
|
|
12
|
+
* </p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { CloudTrailClient, ListImportsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
17
|
+
* // const { CloudTrailClient, ListImportsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
18
|
+
* const client = new CloudTrailClient(config);
|
|
19
|
+
* const command = new ListImportsCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link ListImportsCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link ListImportsCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class ListImportsCommand extends $Command<ListImportsCommandInput, ListImportsCommandOutput, CloudTrailClientResolvedConfig> {
|
|
29
|
+
readonly input: ListImportsCommandInput;
|
|
30
|
+
constructor(input: ListImportsCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListImportsCommandInput, ListImportsCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -42,8 +42,9 @@ export interface PutEventSelectorsCommandOutput extends PutEventSelectorsRespons
|
|
|
42
42
|
* <p>The <code>PutEventSelectors</code> operation must be called from the region in which
|
|
43
43
|
* the trail was created; otherwise, an <code>InvalidHomeRegionException</code> exception is
|
|
44
44
|
* thrown.</p>
|
|
45
|
-
* <p>You can configure up to five event selectors for each trail. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-
|
|
46
|
-
* </a
|
|
45
|
+
* <p>You can configure up to five event selectors for each trail. For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-events-with-cloudtrail.html">Logging management events for trails
|
|
46
|
+
* </a>, <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging data events for trails
|
|
47
|
+
* </a>, and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Quotas in CloudTrail</a>
|
|
47
48
|
* in the <i>CloudTrail User Guide</i>.</p>
|
|
48
49
|
* <p>You can add advanced event selectors, and conditions for your advanced
|
|
49
50
|
* event selectors, up to a maximum of 500 values for all conditions and selectors on a trail.
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { StartImportRequest, StartImportResponse } from "../models/models_0";
|
|
5
|
+
export interface StartImportCommandInput extends StartImportRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface StartImportCommandOutput extends StartImportResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>
|
|
11
|
+
* Starts an import of logged trail events from a source S3 bucket to a destination event data store.
|
|
12
|
+
* </p>
|
|
13
|
+
* <p>
|
|
14
|
+
* When you start a new import, the <code>Destinations</code> and
|
|
15
|
+
* <code>ImportSource</code> parameters are required. Before starting a new import, disable any access control lists (ACLs) attached to the source S3 bucket.
|
|
16
|
+
* For more information about disabling ACLs, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html">Controlling ownership of objects and disabling ACLs for your bucket</a>.
|
|
17
|
+
* </p>
|
|
18
|
+
* <p>
|
|
19
|
+
* When you retry an import, the <code>ImportID</code> parameter is required.
|
|
20
|
+
* </p>
|
|
21
|
+
* @example
|
|
22
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
23
|
+
* ```javascript
|
|
24
|
+
* import { CloudTrailClient, StartImportCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
25
|
+
* // const { CloudTrailClient, StartImportCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
26
|
+
* const client = new CloudTrailClient(config);
|
|
27
|
+
* const command = new StartImportCommand(input);
|
|
28
|
+
* const response = await client.send(command);
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @see {@link StartImportCommandInput} for command's `input` shape.
|
|
32
|
+
* @see {@link StartImportCommandOutput} for command's `response` shape.
|
|
33
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export declare class StartImportCommand extends $Command<StartImportCommandInput, StartImportCommandOutput, CloudTrailClientResolvedConfig> {
|
|
37
|
+
readonly input: StartImportCommandInput;
|
|
38
|
+
constructor(input: StartImportCommandInput);
|
|
39
|
+
/**
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartImportCommandInput, StartImportCommandOutput>;
|
|
43
|
+
private serialize;
|
|
44
|
+
private deserialize;
|
|
45
|
+
}
|
|
@@ -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 { StopImportRequest, StopImportResponse } from "../models/models_0";
|
|
5
|
+
export interface StopImportCommandInput extends StopImportRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface StopImportCommandOutput extends StopImportResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>
|
|
11
|
+
* Stops a specified import.
|
|
12
|
+
* </p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { CloudTrailClient, StopImportCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
17
|
+
* // const { CloudTrailClient, StopImportCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
18
|
+
* const client = new CloudTrailClient(config);
|
|
19
|
+
* const command = new StopImportCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link StopImportCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link StopImportCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class StopImportCommand extends $Command<StopImportCommandInput, StopImportCommandOutput, CloudTrailClientResolvedConfig> {
|
|
29
|
+
readonly input: StopImportCommandInput;
|
|
30
|
+
constructor(input: StopImportCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StopImportCommandInput, StopImportCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -9,12 +9,15 @@ export * from "./DescribeTrailsCommand";
|
|
|
9
9
|
export * from "./GetChannelCommand";
|
|
10
10
|
export * from "./GetEventDataStoreCommand";
|
|
11
11
|
export * from "./GetEventSelectorsCommand";
|
|
12
|
+
export * from "./GetImportCommand";
|
|
12
13
|
export * from "./GetInsightSelectorsCommand";
|
|
13
14
|
export * from "./GetQueryResultsCommand";
|
|
14
15
|
export * from "./GetTrailCommand";
|
|
15
16
|
export * from "./GetTrailStatusCommand";
|
|
16
17
|
export * from "./ListChannelsCommand";
|
|
17
18
|
export * from "./ListEventDataStoresCommand";
|
|
19
|
+
export * from "./ListImportFailuresCommand";
|
|
20
|
+
export * from "./ListImportsCommand";
|
|
18
21
|
export * from "./ListPublicKeysCommand";
|
|
19
22
|
export * from "./ListQueriesCommand";
|
|
20
23
|
export * from "./ListTagsCommand";
|
|
@@ -24,8 +27,10 @@ export * from "./PutEventSelectorsCommand";
|
|
|
24
27
|
export * from "./PutInsightSelectorsCommand";
|
|
25
28
|
export * from "./RemoveTagsCommand";
|
|
26
29
|
export * from "./RestoreEventDataStoreCommand";
|
|
30
|
+
export * from "./StartImportCommand";
|
|
27
31
|
export * from "./StartLoggingCommand";
|
|
28
32
|
export * from "./StartQueryCommand";
|
|
33
|
+
export * from "./StopImportCommand";
|
|
29
34
|
export * from "./StopLoggingCommand";
|
|
30
35
|
export * from "./UpdateEventDataStoreCommand";
|
|
31
36
|
export * from "./UpdateTrailCommand";
|