@aws-sdk/client-cloudtrail 3.33.0 → 3.36.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.
- package/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/CloudTrail.js +0 -19
- package/dist-cjs/CloudTrailClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/AddTagsCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/CreateTrailCommand.js +2 -28
- package/{dist/cjs → dist-cjs}/commands/DeleteTrailCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DescribeTrailsCommand.js +2 -27
- package/dist-cjs/commands/GetEventSelectorsCommand.js +36 -0
- package/dist-cjs/commands/GetInsightSelectorsCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/GetTrailCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetTrailStatusCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListPublicKeysCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/commands/ListTagsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListTrailsCommand.js +2 -27
- package/dist-cjs/commands/LookupEventsCommand.js +36 -0
- package/dist-cjs/commands/PutEventSelectorsCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/PutInsightSelectorsCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/RemoveTagsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/StartLoggingCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/StopLoggingCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/UpdateTrailCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -280
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListPublicKeysPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListTagsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListTrailsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/LookupEventsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/CloudTrail.js +1 -20
- package/dist-es/CloudTrailClient.js +37 -0
- package/{dist/es → dist-es}/commands/AddTagsCommand.js +4 -33
- package/{dist/es → dist-es}/commands/CreateTrailCommand.js +4 -31
- package/{dist/es → dist-es}/commands/DeleteTrailCommand.js +4 -32
- package/{dist/es → dist-es}/commands/DescribeTrailsCommand.js +4 -30
- package/dist-es/commands/GetEventSelectorsCommand.js +39 -0
- package/{dist/es → dist-es}/commands/GetInsightSelectorsCommand.js +4 -36
- package/{dist/es → dist-es}/commands/GetTrailCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetTrailStatusCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListPublicKeysCommand.js +4 -35
- package/{dist/es → dist-es}/commands/ListTagsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTrailsCommand.js +4 -30
- package/dist-es/commands/LookupEventsCommand.js +39 -0
- package/dist-es/commands/PutEventSelectorsCommand.js +39 -0
- package/{dist/es → dist-es}/commands/PutInsightSelectorsCommand.js +4 -33
- package/{dist/es → dist-es}/commands/RemoveTagsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/StartLoggingCommand.js +4 -30
- package/{dist/es → dist-es}/commands/StopLoggingCommand.js +4 -36
- package/{dist/es → dist-es}/commands/UpdateTrailCommand.js +4 -35
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -280
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListPublicKeysPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/ListTagsPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/ListTrailsPaginator.js +16 -29
- package/{dist/es → dist-es}/pagination/LookupEventsPaginator.js +16 -29
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +788 -794
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/CloudTrail.d.ts +1 -1
- package/{dist/types → dist-types}/CloudTrailClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AddTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateTrailCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteTrailCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeTrailsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetEventSelectorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetInsightSelectorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetTrailCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetTrailStatusCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListPublicKeysCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTrailsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/LookupEventsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutEventSelectorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutInsightSelectorsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/RemoveTagsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartLoggingCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopLoggingCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateTrailCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListPublicKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTagsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListTrailsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/LookupEventsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +95 -0
- package/{dist/types → dist-types}/ts3.4/CloudTrailClient.d.ts +32 -112
- package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateTrailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTrailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeTrailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEventSelectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTrailCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTrailStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTrailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/LookupEventsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutEventSelectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartLoggingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopLoggingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateTrailCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1181 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListPublicKeysPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTagsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListTrailsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/LookupEventsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/CloudTrail.ts +0 -730
- package/CloudTrailClient.ts +0 -310
- package/commands/AddTagsCommand.ts +0 -94
- package/commands/CreateTrailCommand.ts +0 -95
- package/commands/DeleteTrailCommand.ts +0 -96
- package/commands/DescribeTrailsCommand.ts +0 -94
- package/commands/GetEventSelectorsCommand.ts +0 -110
- package/commands/GetInsightSelectorsCommand.ts +0 -100
- package/commands/GetTrailCommand.ts +0 -91
- package/commands/GetTrailStatusCommand.ts +0 -94
- package/commands/ListPublicKeysCommand.ts +0 -99
- package/commands/ListTagsCommand.ts +0 -91
- package/commands/ListTrailsCommand.ts +0 -94
- package/commands/LookupEventsCommand.ts +0 -141
- package/commands/PutEventSelectorsCommand.ts +0 -138
- package/commands/PutInsightSelectorsCommand.ts +0 -97
- package/commands/RemoveTagsCommand.ts +0 -94
- package/commands/StartLoggingCommand.ts +0 -94
- package/commands/StopLoggingCommand.ts +0 -100
- package/commands/UpdateTrailCommand.ts +0 -99
- package/dist/cjs/CloudTrail.js.map +0 -1
- package/dist/cjs/CloudTrailClient.js +0 -59
- package/dist/cjs/CloudTrailClient.js.map +0 -1
- package/dist/cjs/commands/AddTagsCommand.js.map +0 -1
- package/dist/cjs/commands/CreateTrailCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteTrailCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeTrailsCommand.js.map +0 -1
- package/dist/cjs/commands/GetEventSelectorsCommand.js +0 -77
- package/dist/cjs/commands/GetEventSelectorsCommand.js.map +0 -1
- package/dist/cjs/commands/GetInsightSelectorsCommand.js +0 -67
- package/dist/cjs/commands/GetInsightSelectorsCommand.js.map +0 -1
- package/dist/cjs/commands/GetTrailCommand.js.map +0 -1
- package/dist/cjs/commands/GetTrailStatusCommand.js.map +0 -1
- package/dist/cjs/commands/ListPublicKeysCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTrailsCommand.js.map +0 -1
- package/dist/cjs/commands/LookupEventsCommand.js +0 -108
- package/dist/cjs/commands/LookupEventsCommand.js.map +0 -1
- package/dist/cjs/commands/PutEventSelectorsCommand.js +0 -105
- package/dist/cjs/commands/PutEventSelectorsCommand.js.map +0 -1
- package/dist/cjs/commands/PutInsightSelectorsCommand.js.map +0 -1
- package/dist/cjs/commands/RemoveTagsCommand.js.map +0 -1
- package/dist/cjs/commands/StartLoggingCommand.js.map +0 -1
- package/dist/cjs/commands/StopLoggingCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateTrailCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListPublicKeysPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListTagsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListTrailsPaginator.js.map +0 -1
- package/dist/cjs/pagination/LookupEventsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/CloudTrail.js.map +0 -1
- package/dist/es/CloudTrailClient.js +0 -61
- package/dist/es/CloudTrailClient.js.map +0 -1
- package/dist/es/commands/AddTagsCommand.js.map +0 -1
- package/dist/es/commands/CreateTrailCommand.js.map +0 -1
- package/dist/es/commands/DeleteTrailCommand.js.map +0 -1
- package/dist/es/commands/DescribeTrailsCommand.js.map +0 -1
- package/dist/es/commands/GetEventSelectorsCommand.js +0 -81
- package/dist/es/commands/GetEventSelectorsCommand.js.map +0 -1
- package/dist/es/commands/GetInsightSelectorsCommand.js.map +0 -1
- package/dist/es/commands/GetTrailCommand.js.map +0 -1
- package/dist/es/commands/GetTrailStatusCommand.js.map +0 -1
- package/dist/es/commands/ListPublicKeysCommand.js.map +0 -1
- package/dist/es/commands/ListTagsCommand.js.map +0 -1
- package/dist/es/commands/ListTrailsCommand.js.map +0 -1
- package/dist/es/commands/LookupEventsCommand.js +0 -112
- package/dist/es/commands/LookupEventsCommand.js.map +0 -1
- package/dist/es/commands/PutEventSelectorsCommand.js +0 -109
- package/dist/es/commands/PutEventSelectorsCommand.js.map +0 -1
- package/dist/es/commands/PutInsightSelectorsCommand.js.map +0 -1
- package/dist/es/commands/RemoveTagsCommand.js.map +0 -1
- package/dist/es/commands/StartLoggingCommand.js.map +0 -1
- package/dist/es/commands/StopLoggingCommand.js.map +0 -1
- package/dist/es/commands/UpdateTrailCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -27
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListPublicKeysPaginator.js.map +0 -1
- package/dist/es/pagination/ListTagsPaginator.js.map +0 -1
- package/dist/es/pagination/ListTrailsPaginator.js.map +0 -1
- package/dist/es/pagination/LookupEventsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/CloudTrail.d.ts +0 -286
- package/dist/types/ts3.4/commands/AddTagsCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/CreateTrailCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/DeleteTrailCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/DescribeTrailsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetEventSelectorsCommand.d.ts +0 -51
- package/dist/types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/GetTrailCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetTrailStatusCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListPublicKeysCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/ListTagsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListTrailsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/LookupEventsCommand.d.ts +0 -82
- package/dist/types/ts3.4/commands/PutEventSelectorsCommand.d.ts +0 -79
- package/dist/types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/RemoveTagsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/StartLoggingCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/StopLoggingCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/UpdateTrailCommand.d.ts +0 -40
- package/dist/types/ts3.4/models/models_0.d.ts +0 -2668
- package/endpoints.ts +0 -86
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -3167
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListPublicKeysPaginator.ts +0 -57
- package/pagination/ListTagsPaginator.ts +0 -53
- package/pagination/ListTrailsPaginator.ts +0 -53
- package/pagination/LookupEventsPaginator.ts +0 -58
- package/protocols/Aws_json1_1.ts +0 -4521
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
package/CloudTrail.ts
DELETED
|
@@ -1,730 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClient } from "./CloudTrailClient";
|
|
2
|
-
import { AddTagsCommand, AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
|
|
3
|
-
import { CreateTrailCommand, CreateTrailCommandInput, CreateTrailCommandOutput } from "./commands/CreateTrailCommand";
|
|
4
|
-
import { DeleteTrailCommand, DeleteTrailCommandInput, DeleteTrailCommandOutput } from "./commands/DeleteTrailCommand";
|
|
5
|
-
import {
|
|
6
|
-
DescribeTrailsCommand,
|
|
7
|
-
DescribeTrailsCommandInput,
|
|
8
|
-
DescribeTrailsCommandOutput,
|
|
9
|
-
} from "./commands/DescribeTrailsCommand";
|
|
10
|
-
import {
|
|
11
|
-
GetEventSelectorsCommand,
|
|
12
|
-
GetEventSelectorsCommandInput,
|
|
13
|
-
GetEventSelectorsCommandOutput,
|
|
14
|
-
} from "./commands/GetEventSelectorsCommand";
|
|
15
|
-
import {
|
|
16
|
-
GetInsightSelectorsCommand,
|
|
17
|
-
GetInsightSelectorsCommandInput,
|
|
18
|
-
GetInsightSelectorsCommandOutput,
|
|
19
|
-
} from "./commands/GetInsightSelectorsCommand";
|
|
20
|
-
import { GetTrailCommand, GetTrailCommandInput, GetTrailCommandOutput } from "./commands/GetTrailCommand";
|
|
21
|
-
import {
|
|
22
|
-
GetTrailStatusCommand,
|
|
23
|
-
GetTrailStatusCommandInput,
|
|
24
|
-
GetTrailStatusCommandOutput,
|
|
25
|
-
} from "./commands/GetTrailStatusCommand";
|
|
26
|
-
import {
|
|
27
|
-
ListPublicKeysCommand,
|
|
28
|
-
ListPublicKeysCommandInput,
|
|
29
|
-
ListPublicKeysCommandOutput,
|
|
30
|
-
} from "./commands/ListPublicKeysCommand";
|
|
31
|
-
import { ListTagsCommand, ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
|
|
32
|
-
import { ListTrailsCommand, ListTrailsCommandInput, ListTrailsCommandOutput } from "./commands/ListTrailsCommand";
|
|
33
|
-
import {
|
|
34
|
-
LookupEventsCommand,
|
|
35
|
-
LookupEventsCommandInput,
|
|
36
|
-
LookupEventsCommandOutput,
|
|
37
|
-
} from "./commands/LookupEventsCommand";
|
|
38
|
-
import {
|
|
39
|
-
PutEventSelectorsCommand,
|
|
40
|
-
PutEventSelectorsCommandInput,
|
|
41
|
-
PutEventSelectorsCommandOutput,
|
|
42
|
-
} from "./commands/PutEventSelectorsCommand";
|
|
43
|
-
import {
|
|
44
|
-
PutInsightSelectorsCommand,
|
|
45
|
-
PutInsightSelectorsCommandInput,
|
|
46
|
-
PutInsightSelectorsCommandOutput,
|
|
47
|
-
} from "./commands/PutInsightSelectorsCommand";
|
|
48
|
-
import { RemoveTagsCommand, RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
49
|
-
import {
|
|
50
|
-
StartLoggingCommand,
|
|
51
|
-
StartLoggingCommandInput,
|
|
52
|
-
StartLoggingCommandOutput,
|
|
53
|
-
} from "./commands/StartLoggingCommand";
|
|
54
|
-
import { StopLoggingCommand, StopLoggingCommandInput, StopLoggingCommandOutput } from "./commands/StopLoggingCommand";
|
|
55
|
-
import { UpdateTrailCommand, UpdateTrailCommandInput, UpdateTrailCommandOutput } from "./commands/UpdateTrailCommand";
|
|
56
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* <fullname>CloudTrail</fullname>
|
|
60
|
-
* <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
|
|
61
|
-
* <p>CloudTrail is a web service that records Amazon Web Services API calls for your Amazon Web Services account and delivers log files to an Amazon S3 bucket.
|
|
62
|
-
* The recorded information includes the identity of the user, the start time of the Amazon Web Services API call, the source IP address, the request parameters, and the response elements returned by the service.</p>
|
|
63
|
-
*
|
|
64
|
-
* <note>
|
|
65
|
-
* <p>As an alternative to the API,
|
|
66
|
-
* you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
|
|
67
|
-
* programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs
|
|
68
|
-
* provide programmatic access to CloudTrail. For example, the SDKs
|
|
69
|
-
* handle cryptographically signing requests, managing errors, and retrying requests
|
|
70
|
-
* automatically. For more information about the Amazon Web Services SDKs, including how to download and install
|
|
71
|
-
* them, see <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
|
|
72
|
-
* </note>
|
|
73
|
-
* <p>See the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html">CloudTrail User
|
|
74
|
-
* Guide</a> for information about the data that is included with each Amazon Web Services API call listed in the log files.</p>
|
|
75
|
-
*/
|
|
76
|
-
export class CloudTrail extends CloudTrailClient {
|
|
77
|
-
/**
|
|
78
|
-
* <p>Adds one or more tags to a trail, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key.
|
|
79
|
-
* Tag key names must be unique for a trail; you cannot have two keys with the same name but different values.
|
|
80
|
-
* If you specify a key without a value, the tag will be created with the specified key and a value of null.
|
|
81
|
-
* You can tag a trail that applies to all Amazon Web Services Regions only from the Region in which the trail was created (also known as its home region).</p>
|
|
82
|
-
*/
|
|
83
|
-
public addTags(args: AddTagsCommandInput, options?: __HttpHandlerOptions): Promise<AddTagsCommandOutput>;
|
|
84
|
-
public addTags(args: AddTagsCommandInput, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
|
|
85
|
-
public addTags(
|
|
86
|
-
args: AddTagsCommandInput,
|
|
87
|
-
options: __HttpHandlerOptions,
|
|
88
|
-
cb: (err: any, data?: AddTagsCommandOutput) => void
|
|
89
|
-
): void;
|
|
90
|
-
public addTags(
|
|
91
|
-
args: AddTagsCommandInput,
|
|
92
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AddTagsCommandOutput) => void),
|
|
93
|
-
cb?: (err: any, data?: AddTagsCommandOutput) => void
|
|
94
|
-
): Promise<AddTagsCommandOutput> | void {
|
|
95
|
-
const command = new AddTagsCommand(args);
|
|
96
|
-
if (typeof optionsOrCb === "function") {
|
|
97
|
-
this.send(command, optionsOrCb);
|
|
98
|
-
} else if (typeof cb === "function") {
|
|
99
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
100
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
101
|
-
} else {
|
|
102
|
-
return this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* <p>Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
|
|
108
|
-
* </p>
|
|
109
|
-
*/
|
|
110
|
-
public createTrail(args: CreateTrailCommandInput, options?: __HttpHandlerOptions): Promise<CreateTrailCommandOutput>;
|
|
111
|
-
public createTrail(args: CreateTrailCommandInput, cb: (err: any, data?: CreateTrailCommandOutput) => void): void;
|
|
112
|
-
public createTrail(
|
|
113
|
-
args: CreateTrailCommandInput,
|
|
114
|
-
options: __HttpHandlerOptions,
|
|
115
|
-
cb: (err: any, data?: CreateTrailCommandOutput) => void
|
|
116
|
-
): void;
|
|
117
|
-
public createTrail(
|
|
118
|
-
args: CreateTrailCommandInput,
|
|
119
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateTrailCommandOutput) => void),
|
|
120
|
-
cb?: (err: any, data?: CreateTrailCommandOutput) => void
|
|
121
|
-
): Promise<CreateTrailCommandOutput> | void {
|
|
122
|
-
const command = new CreateTrailCommand(args);
|
|
123
|
-
if (typeof optionsOrCb === "function") {
|
|
124
|
-
this.send(command, optionsOrCb);
|
|
125
|
-
} else if (typeof cb === "function") {
|
|
126
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
127
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
128
|
-
} else {
|
|
129
|
-
return this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* <p>Deletes a trail. This operation must be called from the region in which the trail was
|
|
135
|
-
* created. <code>DeleteTrail</code> cannot be called on the shadow trails (replicated trails
|
|
136
|
-
* in other regions) of a trail that is enabled in all regions.</p>
|
|
137
|
-
*/
|
|
138
|
-
public deleteTrail(args: DeleteTrailCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTrailCommandOutput>;
|
|
139
|
-
public deleteTrail(args: DeleteTrailCommandInput, cb: (err: any, data?: DeleteTrailCommandOutput) => void): void;
|
|
140
|
-
public deleteTrail(
|
|
141
|
-
args: DeleteTrailCommandInput,
|
|
142
|
-
options: __HttpHandlerOptions,
|
|
143
|
-
cb: (err: any, data?: DeleteTrailCommandOutput) => void
|
|
144
|
-
): void;
|
|
145
|
-
public deleteTrail(
|
|
146
|
-
args: DeleteTrailCommandInput,
|
|
147
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteTrailCommandOutput) => void),
|
|
148
|
-
cb?: (err: any, data?: DeleteTrailCommandOutput) => void
|
|
149
|
-
): Promise<DeleteTrailCommandOutput> | void {
|
|
150
|
-
const command = new DeleteTrailCommand(args);
|
|
151
|
-
if (typeof optionsOrCb === "function") {
|
|
152
|
-
this.send(command, optionsOrCb);
|
|
153
|
-
} else if (typeof cb === "function") {
|
|
154
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
155
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
156
|
-
} else {
|
|
157
|
-
return this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* <p>Retrieves settings for one or more trails associated with the current region for your account.</p>
|
|
163
|
-
*/
|
|
164
|
-
public describeTrails(
|
|
165
|
-
args: DescribeTrailsCommandInput,
|
|
166
|
-
options?: __HttpHandlerOptions
|
|
167
|
-
): Promise<DescribeTrailsCommandOutput>;
|
|
168
|
-
public describeTrails(
|
|
169
|
-
args: DescribeTrailsCommandInput,
|
|
170
|
-
cb: (err: any, data?: DescribeTrailsCommandOutput) => void
|
|
171
|
-
): void;
|
|
172
|
-
public describeTrails(
|
|
173
|
-
args: DescribeTrailsCommandInput,
|
|
174
|
-
options: __HttpHandlerOptions,
|
|
175
|
-
cb: (err: any, data?: DescribeTrailsCommandOutput) => void
|
|
176
|
-
): void;
|
|
177
|
-
public describeTrails(
|
|
178
|
-
args: DescribeTrailsCommandInput,
|
|
179
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeTrailsCommandOutput) => void),
|
|
180
|
-
cb?: (err: any, data?: DescribeTrailsCommandOutput) => void
|
|
181
|
-
): Promise<DescribeTrailsCommandOutput> | void {
|
|
182
|
-
const command = new DescribeTrailsCommand(args);
|
|
183
|
-
if (typeof optionsOrCb === "function") {
|
|
184
|
-
this.send(command, optionsOrCb);
|
|
185
|
-
} else if (typeof cb === "function") {
|
|
186
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
187
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
188
|
-
} else {
|
|
189
|
-
return this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* <p>Describes the settings for the event selectors that you configured for your trail.
|
|
195
|
-
* The information returned for your event selectors includes the following:</p>
|
|
196
|
-
* <ul>
|
|
197
|
-
* <li>
|
|
198
|
-
* <p>If your event selector includes read-only events, write-only events, or
|
|
199
|
-
* all events. This applies to both management events and data events.</p>
|
|
200
|
-
* </li>
|
|
201
|
-
* <li>
|
|
202
|
-
* <p>If your event selector includes management events.</p>
|
|
203
|
-
* </li>
|
|
204
|
-
* <li>
|
|
205
|
-
* <p>If your event selector includes data events, the resources on which you are logging data
|
|
206
|
-
* events.</p>
|
|
207
|
-
* </li>
|
|
208
|
-
* </ul>
|
|
209
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html">Logging Data and Management Events for Trails
|
|
210
|
-
* </a> in the <i>CloudTrail User Guide</i>.</p>
|
|
211
|
-
*/
|
|
212
|
-
public getEventSelectors(
|
|
213
|
-
args: GetEventSelectorsCommandInput,
|
|
214
|
-
options?: __HttpHandlerOptions
|
|
215
|
-
): Promise<GetEventSelectorsCommandOutput>;
|
|
216
|
-
public getEventSelectors(
|
|
217
|
-
args: GetEventSelectorsCommandInput,
|
|
218
|
-
cb: (err: any, data?: GetEventSelectorsCommandOutput) => void
|
|
219
|
-
): void;
|
|
220
|
-
public getEventSelectors(
|
|
221
|
-
args: GetEventSelectorsCommandInput,
|
|
222
|
-
options: __HttpHandlerOptions,
|
|
223
|
-
cb: (err: any, data?: GetEventSelectorsCommandOutput) => void
|
|
224
|
-
): void;
|
|
225
|
-
public getEventSelectors(
|
|
226
|
-
args: GetEventSelectorsCommandInput,
|
|
227
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetEventSelectorsCommandOutput) => void),
|
|
228
|
-
cb?: (err: any, data?: GetEventSelectorsCommandOutput) => void
|
|
229
|
-
): Promise<GetEventSelectorsCommandOutput> | void {
|
|
230
|
-
const command = new GetEventSelectorsCommand(args);
|
|
231
|
-
if (typeof optionsOrCb === "function") {
|
|
232
|
-
this.send(command, optionsOrCb);
|
|
233
|
-
} else if (typeof cb === "function") {
|
|
234
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
235
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
236
|
-
} else {
|
|
237
|
-
return this.send(command, optionsOrCb);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* <p>Describes the settings for the Insights event selectors that you configured for your trail. <code>GetInsightSelectors</code> shows
|
|
243
|
-
* if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled.
|
|
244
|
-
* If you run <code>GetInsightSelectors</code> on a trail that does not have Insights events enabled, the operation throws the exception
|
|
245
|
-
* <code>InsightNotEnabledException</code>
|
|
246
|
-
* </p>
|
|
247
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">Logging CloudTrail Insights Events for Trails
|
|
248
|
-
* </a> in the <i>CloudTrail User Guide</i>.</p>
|
|
249
|
-
*/
|
|
250
|
-
public getInsightSelectors(
|
|
251
|
-
args: GetInsightSelectorsCommandInput,
|
|
252
|
-
options?: __HttpHandlerOptions
|
|
253
|
-
): Promise<GetInsightSelectorsCommandOutput>;
|
|
254
|
-
public getInsightSelectors(
|
|
255
|
-
args: GetInsightSelectorsCommandInput,
|
|
256
|
-
cb: (err: any, data?: GetInsightSelectorsCommandOutput) => void
|
|
257
|
-
): void;
|
|
258
|
-
public getInsightSelectors(
|
|
259
|
-
args: GetInsightSelectorsCommandInput,
|
|
260
|
-
options: __HttpHandlerOptions,
|
|
261
|
-
cb: (err: any, data?: GetInsightSelectorsCommandOutput) => void
|
|
262
|
-
): void;
|
|
263
|
-
public getInsightSelectors(
|
|
264
|
-
args: GetInsightSelectorsCommandInput,
|
|
265
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetInsightSelectorsCommandOutput) => void),
|
|
266
|
-
cb?: (err: any, data?: GetInsightSelectorsCommandOutput) => void
|
|
267
|
-
): Promise<GetInsightSelectorsCommandOutput> | void {
|
|
268
|
-
const command = new GetInsightSelectorsCommand(args);
|
|
269
|
-
if (typeof optionsOrCb === "function") {
|
|
270
|
-
this.send(command, optionsOrCb);
|
|
271
|
-
} else if (typeof cb === "function") {
|
|
272
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
273
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
274
|
-
} else {
|
|
275
|
-
return this.send(command, optionsOrCb);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* <p>Returns settings information for a specified trail.</p>
|
|
281
|
-
*/
|
|
282
|
-
public getTrail(args: GetTrailCommandInput, options?: __HttpHandlerOptions): Promise<GetTrailCommandOutput>;
|
|
283
|
-
public getTrail(args: GetTrailCommandInput, cb: (err: any, data?: GetTrailCommandOutput) => void): void;
|
|
284
|
-
public getTrail(
|
|
285
|
-
args: GetTrailCommandInput,
|
|
286
|
-
options: __HttpHandlerOptions,
|
|
287
|
-
cb: (err: any, data?: GetTrailCommandOutput) => void
|
|
288
|
-
): void;
|
|
289
|
-
public getTrail(
|
|
290
|
-
args: GetTrailCommandInput,
|
|
291
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetTrailCommandOutput) => void),
|
|
292
|
-
cb?: (err: any, data?: GetTrailCommandOutput) => void
|
|
293
|
-
): Promise<GetTrailCommandOutput> | void {
|
|
294
|
-
const command = new GetTrailCommand(args);
|
|
295
|
-
if (typeof optionsOrCb === "function") {
|
|
296
|
-
this.send(command, optionsOrCb);
|
|
297
|
-
} else if (typeof cb === "function") {
|
|
298
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
299
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
300
|
-
} else {
|
|
301
|
-
return this.send(command, optionsOrCb);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* <p>Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.</p>
|
|
307
|
-
*/
|
|
308
|
-
public getTrailStatus(
|
|
309
|
-
args: GetTrailStatusCommandInput,
|
|
310
|
-
options?: __HttpHandlerOptions
|
|
311
|
-
): Promise<GetTrailStatusCommandOutput>;
|
|
312
|
-
public getTrailStatus(
|
|
313
|
-
args: GetTrailStatusCommandInput,
|
|
314
|
-
cb: (err: any, data?: GetTrailStatusCommandOutput) => void
|
|
315
|
-
): void;
|
|
316
|
-
public getTrailStatus(
|
|
317
|
-
args: GetTrailStatusCommandInput,
|
|
318
|
-
options: __HttpHandlerOptions,
|
|
319
|
-
cb: (err: any, data?: GetTrailStatusCommandOutput) => void
|
|
320
|
-
): void;
|
|
321
|
-
public getTrailStatus(
|
|
322
|
-
args: GetTrailStatusCommandInput,
|
|
323
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetTrailStatusCommandOutput) => void),
|
|
324
|
-
cb?: (err: any, data?: GetTrailStatusCommandOutput) => void
|
|
325
|
-
): Promise<GetTrailStatusCommandOutput> | void {
|
|
326
|
-
const command = new GetTrailStatusCommand(args);
|
|
327
|
-
if (typeof optionsOrCb === "function") {
|
|
328
|
-
this.send(command, optionsOrCb);
|
|
329
|
-
} else if (typeof cb === "function") {
|
|
330
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
331
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
332
|
-
} else {
|
|
333
|
-
return this.send(command, optionsOrCb);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* <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>
|
|
339
|
-
* <note>
|
|
340
|
-
* <p>CloudTrail uses different private and public key pairs per region. Each digest file is signed with a private key
|
|
341
|
-
* unique to its region. When you validate a digest file from a specific region, you must look in the same region for its
|
|
342
|
-
* corresponding public key.</p>
|
|
343
|
-
* </note>
|
|
344
|
-
*/
|
|
345
|
-
public listPublicKeys(
|
|
346
|
-
args: ListPublicKeysCommandInput,
|
|
347
|
-
options?: __HttpHandlerOptions
|
|
348
|
-
): Promise<ListPublicKeysCommandOutput>;
|
|
349
|
-
public listPublicKeys(
|
|
350
|
-
args: ListPublicKeysCommandInput,
|
|
351
|
-
cb: (err: any, data?: ListPublicKeysCommandOutput) => void
|
|
352
|
-
): void;
|
|
353
|
-
public listPublicKeys(
|
|
354
|
-
args: ListPublicKeysCommandInput,
|
|
355
|
-
options: __HttpHandlerOptions,
|
|
356
|
-
cb: (err: any, data?: ListPublicKeysCommandOutput) => void
|
|
357
|
-
): void;
|
|
358
|
-
public listPublicKeys(
|
|
359
|
-
args: ListPublicKeysCommandInput,
|
|
360
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPublicKeysCommandOutput) => void),
|
|
361
|
-
cb?: (err: any, data?: ListPublicKeysCommandOutput) => void
|
|
362
|
-
): Promise<ListPublicKeysCommandOutput> | void {
|
|
363
|
-
const command = new ListPublicKeysCommand(args);
|
|
364
|
-
if (typeof optionsOrCb === "function") {
|
|
365
|
-
this.send(command, optionsOrCb);
|
|
366
|
-
} else if (typeof cb === "function") {
|
|
367
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
368
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
369
|
-
} else {
|
|
370
|
-
return this.send(command, optionsOrCb);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* <p>Lists the tags for the trail in the current region.</p>
|
|
376
|
-
*/
|
|
377
|
-
public listTags(args: ListTagsCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsCommandOutput>;
|
|
378
|
-
public listTags(args: ListTagsCommandInput, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
|
|
379
|
-
public listTags(
|
|
380
|
-
args: ListTagsCommandInput,
|
|
381
|
-
options: __HttpHandlerOptions,
|
|
382
|
-
cb: (err: any, data?: ListTagsCommandOutput) => void
|
|
383
|
-
): void;
|
|
384
|
-
public listTags(
|
|
385
|
-
args: ListTagsCommandInput,
|
|
386
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsCommandOutput) => void),
|
|
387
|
-
cb?: (err: any, data?: ListTagsCommandOutput) => void
|
|
388
|
-
): Promise<ListTagsCommandOutput> | void {
|
|
389
|
-
const command = new ListTagsCommand(args);
|
|
390
|
-
if (typeof optionsOrCb === "function") {
|
|
391
|
-
this.send(command, optionsOrCb);
|
|
392
|
-
} else if (typeof cb === "function") {
|
|
393
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
394
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
395
|
-
} else {
|
|
396
|
-
return this.send(command, optionsOrCb);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* <p>Lists trails that are in the current account.</p>
|
|
402
|
-
*/
|
|
403
|
-
public listTrails(args: ListTrailsCommandInput, options?: __HttpHandlerOptions): Promise<ListTrailsCommandOutput>;
|
|
404
|
-
public listTrails(args: ListTrailsCommandInput, cb: (err: any, data?: ListTrailsCommandOutput) => void): void;
|
|
405
|
-
public listTrails(
|
|
406
|
-
args: ListTrailsCommandInput,
|
|
407
|
-
options: __HttpHandlerOptions,
|
|
408
|
-
cb: (err: any, data?: ListTrailsCommandOutput) => void
|
|
409
|
-
): void;
|
|
410
|
-
public listTrails(
|
|
411
|
-
args: ListTrailsCommandInput,
|
|
412
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTrailsCommandOutput) => void),
|
|
413
|
-
cb?: (err: any, data?: ListTrailsCommandOutput) => void
|
|
414
|
-
): Promise<ListTrailsCommandOutput> | void {
|
|
415
|
-
const command = new ListTrailsCommand(args);
|
|
416
|
-
if (typeof optionsOrCb === "function") {
|
|
417
|
-
this.send(command, optionsOrCb);
|
|
418
|
-
} else if (typeof cb === "function") {
|
|
419
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
420
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
421
|
-
} else {
|
|
422
|
-
return this.send(command, optionsOrCb);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* <p>Looks up <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events">management events</a> or
|
|
428
|
-
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-insights-events">CloudTrail Insights events</a> that are captured by CloudTrail.
|
|
429
|
-
* You can look up events that occurred in a region within the last 90 days. Lookup supports the following attributes for management events:</p>
|
|
430
|
-
* <ul>
|
|
431
|
-
* <li>
|
|
432
|
-
* <p>Amazon Web Services access key</p>
|
|
433
|
-
* </li>
|
|
434
|
-
* <li>
|
|
435
|
-
* <p>Event ID</p>
|
|
436
|
-
* </li>
|
|
437
|
-
* <li>
|
|
438
|
-
* <p>Event name</p>
|
|
439
|
-
* </li>
|
|
440
|
-
* <li>
|
|
441
|
-
* <p>Event source</p>
|
|
442
|
-
* </li>
|
|
443
|
-
* <li>
|
|
444
|
-
* <p>Read only</p>
|
|
445
|
-
* </li>
|
|
446
|
-
* <li>
|
|
447
|
-
* <p>Resource name</p>
|
|
448
|
-
* </li>
|
|
449
|
-
* <li>
|
|
450
|
-
* <p>Resource type</p>
|
|
451
|
-
* </li>
|
|
452
|
-
* <li>
|
|
453
|
-
* <p>User name</p>
|
|
454
|
-
* </li>
|
|
455
|
-
* </ul>
|
|
456
|
-
* <p>Lookup supports the following attributes for Insights events:</p>
|
|
457
|
-
* <ul>
|
|
458
|
-
* <li>
|
|
459
|
-
* <p>Event ID</p>
|
|
460
|
-
* </li>
|
|
461
|
-
* <li>
|
|
462
|
-
* <p>Event name</p>
|
|
463
|
-
* </li>
|
|
464
|
-
* <li>
|
|
465
|
-
* <p>Event source</p>
|
|
466
|
-
* </li>
|
|
467
|
-
* </ul>
|
|
468
|
-
* <p>All attributes are optional. The default number of results returned is 50, with a
|
|
469
|
-
* maximum of 50 possible. The response includes a token that you can use to get the next page
|
|
470
|
-
* of results.</p>
|
|
471
|
-
* <important>
|
|
472
|
-
* <p>The rate of lookup requests is limited to two per second, per account, per region. If this
|
|
473
|
-
* limit is exceeded, a throttling error occurs.</p>
|
|
474
|
-
* </important>
|
|
475
|
-
*/
|
|
476
|
-
public lookupEvents(
|
|
477
|
-
args: LookupEventsCommandInput,
|
|
478
|
-
options?: __HttpHandlerOptions
|
|
479
|
-
): Promise<LookupEventsCommandOutput>;
|
|
480
|
-
public lookupEvents(args: LookupEventsCommandInput, cb: (err: any, data?: LookupEventsCommandOutput) => void): void;
|
|
481
|
-
public lookupEvents(
|
|
482
|
-
args: LookupEventsCommandInput,
|
|
483
|
-
options: __HttpHandlerOptions,
|
|
484
|
-
cb: (err: any, data?: LookupEventsCommandOutput) => void
|
|
485
|
-
): void;
|
|
486
|
-
public lookupEvents(
|
|
487
|
-
args: LookupEventsCommandInput,
|
|
488
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: LookupEventsCommandOutput) => void),
|
|
489
|
-
cb?: (err: any, data?: LookupEventsCommandOutput) => void
|
|
490
|
-
): Promise<LookupEventsCommandOutput> | void {
|
|
491
|
-
const command = new LookupEventsCommand(args);
|
|
492
|
-
if (typeof optionsOrCb === "function") {
|
|
493
|
-
this.send(command, optionsOrCb);
|
|
494
|
-
} else if (typeof cb === "function") {
|
|
495
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
496
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
497
|
-
} else {
|
|
498
|
-
return this.send(command, optionsOrCb);
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* <p>Configures an event selector or advanced event selectors for your trail.
|
|
504
|
-
* Use event selectors or advanced event selectors to specify management and data event settings for your trail. By
|
|
505
|
-
* default, trails created without specific event selectors are configured to log all read and
|
|
506
|
-
* write management events, and no data events.</p>
|
|
507
|
-
* <p>When an event occurs in your account, CloudTrail
|
|
508
|
-
* evaluates the event selectors or advanced event selectors in all trails. For each trail, if the event matches
|
|
509
|
-
* any event selector, the trail processes and logs the event. If the event doesn't match any event
|
|
510
|
-
* selector, the trail doesn't log the event.</p>
|
|
511
|
-
* <p>Example</p>
|
|
512
|
-
* <ol>
|
|
513
|
-
* <li>
|
|
514
|
-
* <p>You create an event selector for a trail and specify that you want
|
|
515
|
-
* write-only events.</p>
|
|
516
|
-
* </li>
|
|
517
|
-
* <li>
|
|
518
|
-
* <p>The EC2 <code>GetConsoleOutput</code> and <code>RunInstances</code> API
|
|
519
|
-
* operations occur in your account.</p>
|
|
520
|
-
* </li>
|
|
521
|
-
* <li>
|
|
522
|
-
* <p>CloudTrail evaluates whether the events match your event
|
|
523
|
-
* selectors.</p>
|
|
524
|
-
* </li>
|
|
525
|
-
* <li>
|
|
526
|
-
* <p>The <code>RunInstances</code> is a write-only event and it matches your
|
|
527
|
-
* event selector. The trail logs the event.</p>
|
|
528
|
-
* </li>
|
|
529
|
-
* <li>
|
|
530
|
-
* <p>The <code>GetConsoleOutput</code> is a read-only event that doesn't
|
|
531
|
-
* match your event selector. The trail doesn't log the event.
|
|
532
|
-
* </p>
|
|
533
|
-
* </li>
|
|
534
|
-
* </ol>
|
|
535
|
-
* <p>The <code>PutEventSelectors</code> operation must be called from the region in which
|
|
536
|
-
* the trail was created; otherwise, an <code>InvalidHomeRegionException</code> exception is
|
|
537
|
-
* thrown.</p>
|
|
538
|
-
* <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-and-data-events-with-cloudtrail.html">Logging data and management events for trails
|
|
539
|
-
* </a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Quotas in CloudTrail</a>
|
|
540
|
-
* in the <i>CloudTrail User Guide</i>.</p>
|
|
541
|
-
* <p>You can add advanced event selectors, and conditions for your advanced
|
|
542
|
-
* event selectors, up to a maximum of 500 values for all conditions and selectors on a trail.
|
|
543
|
-
* You can use either <code>AdvancedEventSelectors</code> or <code>EventSelectors</code>, but not both. If you apply <code>AdvancedEventSelectors</code>
|
|
544
|
-
* to a trail, any existing <code>EventSelectors</code> are overwritten. For more information about
|
|
545
|
-
* advanced event selectors, see
|
|
546
|
-
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging
|
|
547
|
-
* data events for trails</a> in the <i>CloudTrail User Guide</i>.</p>
|
|
548
|
-
*/
|
|
549
|
-
public putEventSelectors(
|
|
550
|
-
args: PutEventSelectorsCommandInput,
|
|
551
|
-
options?: __HttpHandlerOptions
|
|
552
|
-
): Promise<PutEventSelectorsCommandOutput>;
|
|
553
|
-
public putEventSelectors(
|
|
554
|
-
args: PutEventSelectorsCommandInput,
|
|
555
|
-
cb: (err: any, data?: PutEventSelectorsCommandOutput) => void
|
|
556
|
-
): void;
|
|
557
|
-
public putEventSelectors(
|
|
558
|
-
args: PutEventSelectorsCommandInput,
|
|
559
|
-
options: __HttpHandlerOptions,
|
|
560
|
-
cb: (err: any, data?: PutEventSelectorsCommandOutput) => void
|
|
561
|
-
): void;
|
|
562
|
-
public putEventSelectors(
|
|
563
|
-
args: PutEventSelectorsCommandInput,
|
|
564
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutEventSelectorsCommandOutput) => void),
|
|
565
|
-
cb?: (err: any, data?: PutEventSelectorsCommandOutput) => void
|
|
566
|
-
): Promise<PutEventSelectorsCommandOutput> | void {
|
|
567
|
-
const command = new PutEventSelectorsCommand(args);
|
|
568
|
-
if (typeof optionsOrCb === "function") {
|
|
569
|
-
this.send(command, optionsOrCb);
|
|
570
|
-
} else if (typeof cb === "function") {
|
|
571
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
572
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
573
|
-
} else {
|
|
574
|
-
return this.send(command, optionsOrCb);
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
/**
|
|
579
|
-
* <p>Lets you enable Insights event logging by specifying the Insights
|
|
580
|
-
* selectors that you want to enable on an existing trail. You also use
|
|
581
|
-
* <code>PutInsightSelectors</code> to turn off Insights event logging, by passing an empty list of insight types.
|
|
582
|
-
* The valid Insights event type in this release is <code>ApiCallRateInsight</code>.</p>
|
|
583
|
-
*/
|
|
584
|
-
public putInsightSelectors(
|
|
585
|
-
args: PutInsightSelectorsCommandInput,
|
|
586
|
-
options?: __HttpHandlerOptions
|
|
587
|
-
): Promise<PutInsightSelectorsCommandOutput>;
|
|
588
|
-
public putInsightSelectors(
|
|
589
|
-
args: PutInsightSelectorsCommandInput,
|
|
590
|
-
cb: (err: any, data?: PutInsightSelectorsCommandOutput) => void
|
|
591
|
-
): void;
|
|
592
|
-
public putInsightSelectors(
|
|
593
|
-
args: PutInsightSelectorsCommandInput,
|
|
594
|
-
options: __HttpHandlerOptions,
|
|
595
|
-
cb: (err: any, data?: PutInsightSelectorsCommandOutput) => void
|
|
596
|
-
): void;
|
|
597
|
-
public putInsightSelectors(
|
|
598
|
-
args: PutInsightSelectorsCommandInput,
|
|
599
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutInsightSelectorsCommandOutput) => void),
|
|
600
|
-
cb?: (err: any, data?: PutInsightSelectorsCommandOutput) => void
|
|
601
|
-
): Promise<PutInsightSelectorsCommandOutput> | void {
|
|
602
|
-
const command = new PutInsightSelectorsCommand(args);
|
|
603
|
-
if (typeof optionsOrCb === "function") {
|
|
604
|
-
this.send(command, optionsOrCb);
|
|
605
|
-
} else if (typeof cb === "function") {
|
|
606
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
607
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
608
|
-
} else {
|
|
609
|
-
return this.send(command, optionsOrCb);
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
/**
|
|
614
|
-
* <p>Removes the specified tags from a trail.</p>
|
|
615
|
-
*/
|
|
616
|
-
public removeTags(args: RemoveTagsCommandInput, options?: __HttpHandlerOptions): Promise<RemoveTagsCommandOutput>;
|
|
617
|
-
public removeTags(args: RemoveTagsCommandInput, cb: (err: any, data?: RemoveTagsCommandOutput) => void): void;
|
|
618
|
-
public removeTags(
|
|
619
|
-
args: RemoveTagsCommandInput,
|
|
620
|
-
options: __HttpHandlerOptions,
|
|
621
|
-
cb: (err: any, data?: RemoveTagsCommandOutput) => void
|
|
622
|
-
): void;
|
|
623
|
-
public removeTags(
|
|
624
|
-
args: RemoveTagsCommandInput,
|
|
625
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RemoveTagsCommandOutput) => void),
|
|
626
|
-
cb?: (err: any, data?: RemoveTagsCommandOutput) => void
|
|
627
|
-
): Promise<RemoveTagsCommandOutput> | void {
|
|
628
|
-
const command = new RemoveTagsCommand(args);
|
|
629
|
-
if (typeof optionsOrCb === "function") {
|
|
630
|
-
this.send(command, optionsOrCb);
|
|
631
|
-
} else if (typeof cb === "function") {
|
|
632
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
633
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
634
|
-
} else {
|
|
635
|
-
return this.send(command, optionsOrCb);
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
* <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>
|
|
641
|
-
*/
|
|
642
|
-
public startLogging(
|
|
643
|
-
args: StartLoggingCommandInput,
|
|
644
|
-
options?: __HttpHandlerOptions
|
|
645
|
-
): Promise<StartLoggingCommandOutput>;
|
|
646
|
-
public startLogging(args: StartLoggingCommandInput, cb: (err: any, data?: StartLoggingCommandOutput) => void): void;
|
|
647
|
-
public startLogging(
|
|
648
|
-
args: StartLoggingCommandInput,
|
|
649
|
-
options: __HttpHandlerOptions,
|
|
650
|
-
cb: (err: any, data?: StartLoggingCommandOutput) => void
|
|
651
|
-
): void;
|
|
652
|
-
public startLogging(
|
|
653
|
-
args: StartLoggingCommandInput,
|
|
654
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartLoggingCommandOutput) => void),
|
|
655
|
-
cb?: (err: any, data?: StartLoggingCommandOutput) => void
|
|
656
|
-
): Promise<StartLoggingCommandOutput> | void {
|
|
657
|
-
const command = new StartLoggingCommand(args);
|
|
658
|
-
if (typeof optionsOrCb === "function") {
|
|
659
|
-
this.send(command, optionsOrCb);
|
|
660
|
-
} else if (typeof cb === "function") {
|
|
661
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
662
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
663
|
-
} else {
|
|
664
|
-
return this.send(command, optionsOrCb);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* <p>Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail.
|
|
670
|
-
* Under most circumstances, there is no need to use this action. You can update a trail
|
|
671
|
-
* without stopping it first. This action is the only way to stop recording. For a trail
|
|
672
|
-
* enabled in all regions, this operation must be called from the region in which the trail
|
|
673
|
-
* was created, or an <code>InvalidHomeRegionException</code> will occur. This operation
|
|
674
|
-
* cannot be called on the shadow trails (replicated trails in other regions) of a trail
|
|
675
|
-
* enabled in all regions.</p>
|
|
676
|
-
*/
|
|
677
|
-
public stopLogging(args: StopLoggingCommandInput, options?: __HttpHandlerOptions): Promise<StopLoggingCommandOutput>;
|
|
678
|
-
public stopLogging(args: StopLoggingCommandInput, cb: (err: any, data?: StopLoggingCommandOutput) => void): void;
|
|
679
|
-
public stopLogging(
|
|
680
|
-
args: StopLoggingCommandInput,
|
|
681
|
-
options: __HttpHandlerOptions,
|
|
682
|
-
cb: (err: any, data?: StopLoggingCommandOutput) => void
|
|
683
|
-
): void;
|
|
684
|
-
public stopLogging(
|
|
685
|
-
args: StopLoggingCommandInput,
|
|
686
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopLoggingCommandOutput) => void),
|
|
687
|
-
cb?: (err: any, data?: StopLoggingCommandOutput) => void
|
|
688
|
-
): Promise<StopLoggingCommandOutput> | void {
|
|
689
|
-
const command = new StopLoggingCommand(args);
|
|
690
|
-
if (typeof optionsOrCb === "function") {
|
|
691
|
-
this.send(command, optionsOrCb);
|
|
692
|
-
} else if (typeof cb === "function") {
|
|
693
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
694
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
695
|
-
} else {
|
|
696
|
-
return this.send(command, optionsOrCb);
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
/**
|
|
701
|
-
* <p>Updates trail settings that control what events you are logging, and how to handle log files. Changes to a trail do not require
|
|
702
|
-
* stopping the CloudTrail service. Use this action to designate an existing bucket for log
|
|
703
|
-
* delivery. If the existing bucket has previously been a target for CloudTrail log files,
|
|
704
|
-
* an IAM policy exists for the bucket. <code>UpdateTrail</code> must be called from the
|
|
705
|
-
* region in which the trail was created; otherwise, an
|
|
706
|
-
* <code>InvalidHomeRegionException</code> is thrown.</p>
|
|
707
|
-
*/
|
|
708
|
-
public updateTrail(args: UpdateTrailCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTrailCommandOutput>;
|
|
709
|
-
public updateTrail(args: UpdateTrailCommandInput, cb: (err: any, data?: UpdateTrailCommandOutput) => void): void;
|
|
710
|
-
public updateTrail(
|
|
711
|
-
args: UpdateTrailCommandInput,
|
|
712
|
-
options: __HttpHandlerOptions,
|
|
713
|
-
cb: (err: any, data?: UpdateTrailCommandOutput) => void
|
|
714
|
-
): void;
|
|
715
|
-
public updateTrail(
|
|
716
|
-
args: UpdateTrailCommandInput,
|
|
717
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateTrailCommandOutput) => void),
|
|
718
|
-
cb?: (err: any, data?: UpdateTrailCommandOutput) => void
|
|
719
|
-
): Promise<UpdateTrailCommandOutput> | void {
|
|
720
|
-
const command = new UpdateTrailCommand(args);
|
|
721
|
-
if (typeof optionsOrCb === "function") {
|
|
722
|
-
this.send(command, optionsOrCb);
|
|
723
|
-
} else if (typeof cb === "function") {
|
|
724
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
725
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
726
|
-
} else {
|
|
727
|
-
return this.send(command, optionsOrCb);
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
}
|