@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/CloudTrailClient.ts
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
|
|
2
|
-
import { CreateTrailCommandInput, CreateTrailCommandOutput } from "./commands/CreateTrailCommand";
|
|
3
|
-
import { DeleteTrailCommandInput, DeleteTrailCommandOutput } from "./commands/DeleteTrailCommand";
|
|
4
|
-
import { DescribeTrailsCommandInput, DescribeTrailsCommandOutput } from "./commands/DescribeTrailsCommand";
|
|
5
|
-
import { GetEventSelectorsCommandInput, GetEventSelectorsCommandOutput } from "./commands/GetEventSelectorsCommand";
|
|
6
|
-
import {
|
|
7
|
-
GetInsightSelectorsCommandInput,
|
|
8
|
-
GetInsightSelectorsCommandOutput,
|
|
9
|
-
} from "./commands/GetInsightSelectorsCommand";
|
|
10
|
-
import { GetTrailCommandInput, GetTrailCommandOutput } from "./commands/GetTrailCommand";
|
|
11
|
-
import { GetTrailStatusCommandInput, GetTrailStatusCommandOutput } from "./commands/GetTrailStatusCommand";
|
|
12
|
-
import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "./commands/ListPublicKeysCommand";
|
|
13
|
-
import { ListTagsCommandInput, ListTagsCommandOutput } from "./commands/ListTagsCommand";
|
|
14
|
-
import { ListTrailsCommandInput, ListTrailsCommandOutput } from "./commands/ListTrailsCommand";
|
|
15
|
-
import { LookupEventsCommandInput, LookupEventsCommandOutput } from "./commands/LookupEventsCommand";
|
|
16
|
-
import { PutEventSelectorsCommandInput, PutEventSelectorsCommandOutput } from "./commands/PutEventSelectorsCommand";
|
|
17
|
-
import {
|
|
18
|
-
PutInsightSelectorsCommandInput,
|
|
19
|
-
PutInsightSelectorsCommandOutput,
|
|
20
|
-
} from "./commands/PutInsightSelectorsCommand";
|
|
21
|
-
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
22
|
-
import { StartLoggingCommandInput, StartLoggingCommandOutput } from "./commands/StartLoggingCommand";
|
|
23
|
-
import { StopLoggingCommandInput, StopLoggingCommandOutput } from "./commands/StopLoggingCommand";
|
|
24
|
-
import { UpdateTrailCommandInput, UpdateTrailCommandOutput } from "./commands/UpdateTrailCommand";
|
|
25
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
26
|
-
import {
|
|
27
|
-
EndpointsInputConfig,
|
|
28
|
-
EndpointsResolvedConfig,
|
|
29
|
-
RegionInputConfig,
|
|
30
|
-
RegionResolvedConfig,
|
|
31
|
-
resolveEndpointsConfig,
|
|
32
|
-
resolveRegionConfig,
|
|
33
|
-
} from "@aws-sdk/config-resolver";
|
|
34
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
35
|
-
import {
|
|
36
|
-
HostHeaderInputConfig,
|
|
37
|
-
HostHeaderResolvedConfig,
|
|
38
|
-
getHostHeaderPlugin,
|
|
39
|
-
resolveHostHeaderConfig,
|
|
40
|
-
} from "@aws-sdk/middleware-host-header";
|
|
41
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
42
|
-
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
43
|
-
import {
|
|
44
|
-
AwsAuthInputConfig,
|
|
45
|
-
AwsAuthResolvedConfig,
|
|
46
|
-
getAwsAuthPlugin,
|
|
47
|
-
resolveAwsAuthConfig,
|
|
48
|
-
} from "@aws-sdk/middleware-signing";
|
|
49
|
-
import {
|
|
50
|
-
UserAgentInputConfig,
|
|
51
|
-
UserAgentResolvedConfig,
|
|
52
|
-
getUserAgentPlugin,
|
|
53
|
-
resolveUserAgentConfig,
|
|
54
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
55
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
56
|
-
import {
|
|
57
|
-
Client as __Client,
|
|
58
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
59
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
60
|
-
} from "@aws-sdk/smithy-client";
|
|
61
|
-
import {
|
|
62
|
-
Provider,
|
|
63
|
-
RegionInfoProvider,
|
|
64
|
-
Credentials as __Credentials,
|
|
65
|
-
Decoder as __Decoder,
|
|
66
|
-
Encoder as __Encoder,
|
|
67
|
-
Hash as __Hash,
|
|
68
|
-
HashConstructor as __HashConstructor,
|
|
69
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
70
|
-
Logger as __Logger,
|
|
71
|
-
Provider as __Provider,
|
|
72
|
-
StreamCollector as __StreamCollector,
|
|
73
|
-
UrlParser as __UrlParser,
|
|
74
|
-
UserAgent as __UserAgent,
|
|
75
|
-
} from "@aws-sdk/types";
|
|
76
|
-
|
|
77
|
-
export type ServiceInputTypes =
|
|
78
|
-
| AddTagsCommandInput
|
|
79
|
-
| CreateTrailCommandInput
|
|
80
|
-
| DeleteTrailCommandInput
|
|
81
|
-
| DescribeTrailsCommandInput
|
|
82
|
-
| GetEventSelectorsCommandInput
|
|
83
|
-
| GetInsightSelectorsCommandInput
|
|
84
|
-
| GetTrailCommandInput
|
|
85
|
-
| GetTrailStatusCommandInput
|
|
86
|
-
| ListPublicKeysCommandInput
|
|
87
|
-
| ListTagsCommandInput
|
|
88
|
-
| ListTrailsCommandInput
|
|
89
|
-
| LookupEventsCommandInput
|
|
90
|
-
| PutEventSelectorsCommandInput
|
|
91
|
-
| PutInsightSelectorsCommandInput
|
|
92
|
-
| RemoveTagsCommandInput
|
|
93
|
-
| StartLoggingCommandInput
|
|
94
|
-
| StopLoggingCommandInput
|
|
95
|
-
| UpdateTrailCommandInput;
|
|
96
|
-
|
|
97
|
-
export type ServiceOutputTypes =
|
|
98
|
-
| AddTagsCommandOutput
|
|
99
|
-
| CreateTrailCommandOutput
|
|
100
|
-
| DeleteTrailCommandOutput
|
|
101
|
-
| DescribeTrailsCommandOutput
|
|
102
|
-
| GetEventSelectorsCommandOutput
|
|
103
|
-
| GetInsightSelectorsCommandOutput
|
|
104
|
-
| GetTrailCommandOutput
|
|
105
|
-
| GetTrailStatusCommandOutput
|
|
106
|
-
| ListPublicKeysCommandOutput
|
|
107
|
-
| ListTagsCommandOutput
|
|
108
|
-
| ListTrailsCommandOutput
|
|
109
|
-
| LookupEventsCommandOutput
|
|
110
|
-
| PutEventSelectorsCommandOutput
|
|
111
|
-
| PutInsightSelectorsCommandOutput
|
|
112
|
-
| RemoveTagsCommandOutput
|
|
113
|
-
| StartLoggingCommandOutput
|
|
114
|
-
| StopLoggingCommandOutput
|
|
115
|
-
| UpdateTrailCommandOutput;
|
|
116
|
-
|
|
117
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
118
|
-
/**
|
|
119
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
120
|
-
*/
|
|
121
|
-
requestHandler?: __HttpHandler;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
125
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
128
|
-
sha256?: __HashConstructor;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
132
|
-
* @internal
|
|
133
|
-
*/
|
|
134
|
-
urlParser?: __UrlParser;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* A function that can calculate the length of a request body.
|
|
138
|
-
* @internal
|
|
139
|
-
*/
|
|
140
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* A function that converts a stream into an array of bytes.
|
|
144
|
-
* @internal
|
|
145
|
-
*/
|
|
146
|
-
streamCollector?: __StreamCollector;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
150
|
-
* @internal
|
|
151
|
-
*/
|
|
152
|
-
base64Decoder?: __Decoder;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
156
|
-
* @internal
|
|
157
|
-
*/
|
|
158
|
-
base64Encoder?: __Encoder;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
162
|
-
* @internal
|
|
163
|
-
*/
|
|
164
|
-
utf8Decoder?: __Decoder;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
168
|
-
* @internal
|
|
169
|
-
*/
|
|
170
|
-
utf8Encoder?: __Encoder;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* The runtime environment.
|
|
174
|
-
* @internal
|
|
175
|
-
*/
|
|
176
|
-
runtime?: string;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
180
|
-
* trait of an operation.
|
|
181
|
-
*/
|
|
182
|
-
disableHostPrefix?: boolean;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
186
|
-
*/
|
|
187
|
-
maxAttempts?: number | __Provider<number>;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Specifies which retry algorithm to use.
|
|
191
|
-
*/
|
|
192
|
-
retryMode?: string | __Provider<string>;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Optional logger for logging debug/info/warn/error.
|
|
196
|
-
*/
|
|
197
|
-
logger?: __Logger;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Unique service identifier.
|
|
201
|
-
* @internal
|
|
202
|
-
*/
|
|
203
|
-
serviceId?: string;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* The AWS region to which this client will send requests
|
|
207
|
-
*/
|
|
208
|
-
region?: string | __Provider<string>;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Default credentials provider; Not available in browser runtime.
|
|
212
|
-
* @internal
|
|
213
|
-
*/
|
|
214
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
218
|
-
* @internal
|
|
219
|
-
*/
|
|
220
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
224
|
-
* @internal
|
|
225
|
-
*/
|
|
226
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
type CloudTrailClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
230
|
-
ClientDefaults &
|
|
231
|
-
RegionInputConfig &
|
|
232
|
-
EndpointsInputConfig &
|
|
233
|
-
RetryInputConfig &
|
|
234
|
-
HostHeaderInputConfig &
|
|
235
|
-
AwsAuthInputConfig &
|
|
236
|
-
UserAgentInputConfig;
|
|
237
|
-
/**
|
|
238
|
-
* The configuration interface of CloudTrailClient class constructor that set the region, credentials and other options.
|
|
239
|
-
*/
|
|
240
|
-
export interface CloudTrailClientConfig extends CloudTrailClientConfigType {}
|
|
241
|
-
|
|
242
|
-
type CloudTrailClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
243
|
-
Required<ClientDefaults> &
|
|
244
|
-
RegionResolvedConfig &
|
|
245
|
-
EndpointsResolvedConfig &
|
|
246
|
-
RetryResolvedConfig &
|
|
247
|
-
HostHeaderResolvedConfig &
|
|
248
|
-
AwsAuthResolvedConfig &
|
|
249
|
-
UserAgentResolvedConfig;
|
|
250
|
-
/**
|
|
251
|
-
* The resolved configuration interface of CloudTrailClient class. This is resolved and normalized from the {@link CloudTrailClientConfig | constructor configuration interface}.
|
|
252
|
-
*/
|
|
253
|
-
export interface CloudTrailClientResolvedConfig extends CloudTrailClientResolvedConfigType {}
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* <fullname>CloudTrail</fullname>
|
|
257
|
-
* <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
|
|
258
|
-
* <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.
|
|
259
|
-
* 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>
|
|
260
|
-
*
|
|
261
|
-
* <note>
|
|
262
|
-
* <p>As an alternative to the API,
|
|
263
|
-
* you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
|
|
264
|
-
* programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs
|
|
265
|
-
* provide programmatic access to CloudTrail. For example, the SDKs
|
|
266
|
-
* handle cryptographically signing requests, managing errors, and retrying requests
|
|
267
|
-
* automatically. For more information about the Amazon Web Services SDKs, including how to download and install
|
|
268
|
-
* them, see <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
|
|
269
|
-
* </note>
|
|
270
|
-
* <p>See the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html">CloudTrail User
|
|
271
|
-
* Guide</a> for information about the data that is included with each Amazon Web Services API call listed in the log files.</p>
|
|
272
|
-
*/
|
|
273
|
-
export class CloudTrailClient extends __Client<
|
|
274
|
-
__HttpHandlerOptions,
|
|
275
|
-
ServiceInputTypes,
|
|
276
|
-
ServiceOutputTypes,
|
|
277
|
-
CloudTrailClientResolvedConfig
|
|
278
|
-
> {
|
|
279
|
-
/**
|
|
280
|
-
* The resolved configuration of CloudTrailClient class. This is resolved and normalized from the {@link CloudTrailClientConfig | constructor configuration interface}.
|
|
281
|
-
*/
|
|
282
|
-
readonly config: CloudTrailClientResolvedConfig;
|
|
283
|
-
|
|
284
|
-
constructor(configuration: CloudTrailClientConfig) {
|
|
285
|
-
let _config_0 = __getRuntimeConfig(configuration);
|
|
286
|
-
let _config_1 = resolveRegionConfig(_config_0);
|
|
287
|
-
let _config_2 = resolveEndpointsConfig(_config_1);
|
|
288
|
-
let _config_3 = resolveRetryConfig(_config_2);
|
|
289
|
-
let _config_4 = resolveHostHeaderConfig(_config_3);
|
|
290
|
-
let _config_5 = resolveAwsAuthConfig(_config_4);
|
|
291
|
-
let _config_6 = resolveUserAgentConfig(_config_5);
|
|
292
|
-
super(_config_6);
|
|
293
|
-
this.config = _config_6;
|
|
294
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
295
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
296
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
297
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
298
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
299
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
304
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
305
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
306
|
-
*/
|
|
307
|
-
destroy(): void {
|
|
308
|
-
super.destroy();
|
|
309
|
-
}
|
|
310
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
2
|
-
import { AddTagsRequest, AddTagsResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1AddTagsCommand, serializeAws_json1_1AddTagsCommand } from "../protocols/Aws_json1_1";
|
|
4
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
6
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
7
|
-
import {
|
|
8
|
-
FinalizeHandlerArguments,
|
|
9
|
-
Handler,
|
|
10
|
-
HandlerExecutionContext,
|
|
11
|
-
MiddlewareStack,
|
|
12
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
13
|
-
MetadataBearer as __MetadataBearer,
|
|
14
|
-
SerdeContext as __SerdeContext,
|
|
15
|
-
} from "@aws-sdk/types";
|
|
16
|
-
|
|
17
|
-
export interface AddTagsCommandInput extends AddTagsRequest {}
|
|
18
|
-
export interface AddTagsCommandOutput extends AddTagsResponse, __MetadataBearer {}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* <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.
|
|
22
|
-
* Tag key names must be unique for a trail; you cannot have two keys with the same name but different values.
|
|
23
|
-
* If you specify a key without a value, the tag will be created with the specified key and a value of null.
|
|
24
|
-
* 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>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { CloudTrailClient, AddTagsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
29
|
-
* // const { CloudTrailClient, AddTagsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
30
|
-
* const client = new CloudTrailClient(config);
|
|
31
|
-
* const command = new AddTagsCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link AddTagsCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link AddTagsCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class AddTagsCommand extends $Command<
|
|
41
|
-
AddTagsCommandInput,
|
|
42
|
-
AddTagsCommandOutput,
|
|
43
|
-
CloudTrailClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: AddTagsCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: CloudTrailClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<AddTagsCommandInput, AddTagsCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "CloudTrailClient";
|
|
68
|
-
const commandName = "AddTagsCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: AddTagsRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: AddTagsResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: AddTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_json1_1AddTagsCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<AddTagsCommandOutput> {
|
|
89
|
-
return deserializeAws_json1_1AddTagsCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
2
|
-
import { CreateTrailRequest, CreateTrailResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1CreateTrailCommand,
|
|
5
|
-
serializeAws_json1_1CreateTrailCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface CreateTrailCommandInput extends CreateTrailRequest {}
|
|
21
|
-
export interface CreateTrailCommandOutput extends CreateTrailResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
|
|
25
|
-
* </p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { CloudTrailClient, CreateTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
30
|
-
* // const { CloudTrailClient, CreateTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
31
|
-
* const client = new CloudTrailClient(config);
|
|
32
|
-
* const command = new CreateTrailCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link CreateTrailCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link CreateTrailCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class CreateTrailCommand extends $Command<
|
|
42
|
-
CreateTrailCommandInput,
|
|
43
|
-
CreateTrailCommandOutput,
|
|
44
|
-
CloudTrailClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: CreateTrailCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: CloudTrailClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<CreateTrailCommandInput, CreateTrailCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "CloudTrailClient";
|
|
69
|
-
const commandName = "CreateTrailCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: CreateTrailRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: CreateTrailResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: CreateTrailCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_json1_1CreateTrailCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateTrailCommandOutput> {
|
|
90
|
-
return deserializeAws_json1_1CreateTrailCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
2
|
-
import { DeleteTrailRequest, DeleteTrailResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1DeleteTrailCommand,
|
|
5
|
-
serializeAws_json1_1DeleteTrailCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface DeleteTrailCommandInput extends DeleteTrailRequest {}
|
|
21
|
-
export interface DeleteTrailCommandOutput extends DeleteTrailResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Deletes a trail. This operation must be called from the region in which the trail was
|
|
25
|
-
* created. <code>DeleteTrail</code> cannot be called on the shadow trails (replicated trails
|
|
26
|
-
* in other regions) of a trail that is enabled in all regions.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { CloudTrailClient, DeleteTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
31
|
-
* // const { CloudTrailClient, DeleteTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
32
|
-
* const client = new CloudTrailClient(config);
|
|
33
|
-
* const command = new DeleteTrailCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link DeleteTrailCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link DeleteTrailCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class DeleteTrailCommand extends $Command<
|
|
43
|
-
DeleteTrailCommandInput,
|
|
44
|
-
DeleteTrailCommandOutput,
|
|
45
|
-
CloudTrailClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: DeleteTrailCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: CloudTrailClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<DeleteTrailCommandInput, DeleteTrailCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "CloudTrailClient";
|
|
70
|
-
const commandName = "DeleteTrailCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: DeleteTrailRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: DeleteTrailResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: DeleteTrailCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_json1_1DeleteTrailCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteTrailCommandOutput> {
|
|
91
|
-
return deserializeAws_json1_1DeleteTrailCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
2
|
-
import { DescribeTrailsRequest, DescribeTrailsResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1DescribeTrailsCommand,
|
|
5
|
-
serializeAws_json1_1DescribeTrailsCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface DescribeTrailsCommandInput extends DescribeTrailsRequest {}
|
|
21
|
-
export interface DescribeTrailsCommandOutput extends DescribeTrailsResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves settings for one or more trails associated with the current region for your account.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { CloudTrailClient, DescribeTrailsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
29
|
-
* // const { CloudTrailClient, DescribeTrailsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
30
|
-
* const client = new CloudTrailClient(config);
|
|
31
|
-
* const command = new DescribeTrailsCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link DescribeTrailsCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link DescribeTrailsCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class DescribeTrailsCommand extends $Command<
|
|
41
|
-
DescribeTrailsCommandInput,
|
|
42
|
-
DescribeTrailsCommandOutput,
|
|
43
|
-
CloudTrailClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: DescribeTrailsCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: CloudTrailClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<DescribeTrailsCommandInput, DescribeTrailsCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "CloudTrailClient";
|
|
68
|
-
const commandName = "DescribeTrailsCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: DescribeTrailsRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: DescribeTrailsResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: DescribeTrailsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_json1_1DescribeTrailsCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeTrailsCommandOutput> {
|
|
89
|
-
return deserializeAws_json1_1DescribeTrailsCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|