@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
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
2
|
-
import { LookupEventsRequest, LookupEventsResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1LookupEventsCommand,
|
|
5
|
-
serializeAws_json1_1LookupEventsCommand,
|
|
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 LookupEventsCommandInput extends LookupEventsRequest {}
|
|
21
|
-
export interface LookupEventsCommandOutput extends LookupEventsResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Looks up <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events">management events</a> or
|
|
25
|
-
* <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.
|
|
26
|
-
* You can look up events that occurred in a region within the last 90 days. Lookup supports the following attributes for management events:</p>
|
|
27
|
-
* <ul>
|
|
28
|
-
* <li>
|
|
29
|
-
* <p>Amazon Web Services access key</p>
|
|
30
|
-
* </li>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>Event ID</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>Event name</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>Event source</p>
|
|
39
|
-
* </li>
|
|
40
|
-
* <li>
|
|
41
|
-
* <p>Read only</p>
|
|
42
|
-
* </li>
|
|
43
|
-
* <li>
|
|
44
|
-
* <p>Resource name</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>Resource type</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>User name</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* </ul>
|
|
53
|
-
* <p>Lookup supports the following attributes for Insights events:</p>
|
|
54
|
-
* <ul>
|
|
55
|
-
* <li>
|
|
56
|
-
* <p>Event ID</p>
|
|
57
|
-
* </li>
|
|
58
|
-
* <li>
|
|
59
|
-
* <p>Event name</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>Event source</p>
|
|
63
|
-
* </li>
|
|
64
|
-
* </ul>
|
|
65
|
-
* <p>All attributes are optional. The default number of results returned is 50, with a
|
|
66
|
-
* maximum of 50 possible. The response includes a token that you can use to get the next page
|
|
67
|
-
* of results.</p>
|
|
68
|
-
* <important>
|
|
69
|
-
* <p>The rate of lookup requests is limited to two per second, per account, per region. If this
|
|
70
|
-
* limit is exceeded, a throttling error occurs.</p>
|
|
71
|
-
* </important>
|
|
72
|
-
* @example
|
|
73
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
74
|
-
* ```javascript
|
|
75
|
-
* import { CloudTrailClient, LookupEventsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
76
|
-
* // const { CloudTrailClient, LookupEventsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
77
|
-
* const client = new CloudTrailClient(config);
|
|
78
|
-
* const command = new LookupEventsCommand(input);
|
|
79
|
-
* const response = await client.send(command);
|
|
80
|
-
* ```
|
|
81
|
-
*
|
|
82
|
-
* @see {@link LookupEventsCommandInput} for command's `input` shape.
|
|
83
|
-
* @see {@link LookupEventsCommandOutput} for command's `response` shape.
|
|
84
|
-
* @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
|
-
export class LookupEventsCommand extends $Command<
|
|
88
|
-
LookupEventsCommandInput,
|
|
89
|
-
LookupEventsCommandOutput,
|
|
90
|
-
CloudTrailClientResolvedConfig
|
|
91
|
-
> {
|
|
92
|
-
// Start section: command_properties
|
|
93
|
-
// End section: command_properties
|
|
94
|
-
|
|
95
|
-
constructor(readonly input: LookupEventsCommandInput) {
|
|
96
|
-
// Start section: command_constructor
|
|
97
|
-
super();
|
|
98
|
-
// End section: command_constructor
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
resolveMiddleware(
|
|
105
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
106
|
-
configuration: CloudTrailClientResolvedConfig,
|
|
107
|
-
options?: __HttpHandlerOptions
|
|
108
|
-
): Handler<LookupEventsCommandInput, LookupEventsCommandOutput> {
|
|
109
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
110
|
-
|
|
111
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
112
|
-
|
|
113
|
-
const { logger } = configuration;
|
|
114
|
-
const clientName = "CloudTrailClient";
|
|
115
|
-
const commandName = "LookupEventsCommand";
|
|
116
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
117
|
-
logger,
|
|
118
|
-
clientName,
|
|
119
|
-
commandName,
|
|
120
|
-
inputFilterSensitiveLog: LookupEventsRequest.filterSensitiveLog,
|
|
121
|
-
outputFilterSensitiveLog: LookupEventsResponse.filterSensitiveLog,
|
|
122
|
-
};
|
|
123
|
-
const { requestHandler } = configuration;
|
|
124
|
-
return stack.resolve(
|
|
125
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
126
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
127
|
-
handlerExecutionContext
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
private serialize(input: LookupEventsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
132
|
-
return serializeAws_json1_1LookupEventsCommand(input, context);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<LookupEventsCommandOutput> {
|
|
136
|
-
return deserializeAws_json1_1LookupEventsCommand(output, context);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Start section: command_body_extra
|
|
140
|
-
// End section: command_body_extra
|
|
141
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
2
|
-
import { PutEventSelectorsRequest, PutEventSelectorsResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1PutEventSelectorsCommand,
|
|
5
|
-
serializeAws_json1_1PutEventSelectorsCommand,
|
|
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 PutEventSelectorsCommandInput extends PutEventSelectorsRequest {}
|
|
21
|
-
export interface PutEventSelectorsCommandOutput extends PutEventSelectorsResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Configures an event selector or advanced event selectors for your trail.
|
|
25
|
-
* Use event selectors or advanced event selectors to specify management and data event settings for your trail. By
|
|
26
|
-
* default, trails created without specific event selectors are configured to log all read and
|
|
27
|
-
* write management events, and no data events.</p>
|
|
28
|
-
* <p>When an event occurs in your account, CloudTrail
|
|
29
|
-
* evaluates the event selectors or advanced event selectors in all trails. For each trail, if the event matches
|
|
30
|
-
* any event selector, the trail processes and logs the event. If the event doesn't match any event
|
|
31
|
-
* selector, the trail doesn't log the event.</p>
|
|
32
|
-
* <p>Example</p>
|
|
33
|
-
* <ol>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>You create an event selector for a trail and specify that you want
|
|
36
|
-
* write-only events.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>The EC2 <code>GetConsoleOutput</code> and <code>RunInstances</code> API
|
|
40
|
-
* operations occur in your account.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>CloudTrail evaluates whether the events match your event
|
|
44
|
-
* selectors.</p>
|
|
45
|
-
* </li>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>The <code>RunInstances</code> is a write-only event and it matches your
|
|
48
|
-
* event selector. The trail logs the event.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>The <code>GetConsoleOutput</code> is a read-only event that doesn't
|
|
52
|
-
* match your event selector. The trail doesn't log the event.
|
|
53
|
-
* </p>
|
|
54
|
-
* </li>
|
|
55
|
-
* </ol>
|
|
56
|
-
* <p>The <code>PutEventSelectors</code> operation must be called from the region in which
|
|
57
|
-
* the trail was created; otherwise, an <code>InvalidHomeRegionException</code> exception is
|
|
58
|
-
* thrown.</p>
|
|
59
|
-
* <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
|
|
60
|
-
* </a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Quotas in CloudTrail</a>
|
|
61
|
-
* in the <i>CloudTrail User Guide</i>.</p>
|
|
62
|
-
* <p>You can add advanced event selectors, and conditions for your advanced
|
|
63
|
-
* event selectors, up to a maximum of 500 values for all conditions and selectors on a trail.
|
|
64
|
-
* You can use either <code>AdvancedEventSelectors</code> or <code>EventSelectors</code>, but not both. If you apply <code>AdvancedEventSelectors</code>
|
|
65
|
-
* to a trail, any existing <code>EventSelectors</code> are overwritten. For more information about
|
|
66
|
-
* advanced event selectors, see
|
|
67
|
-
* <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging
|
|
68
|
-
* data events for trails</a> in the <i>CloudTrail User Guide</i>.</p>
|
|
69
|
-
* @example
|
|
70
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
71
|
-
* ```javascript
|
|
72
|
-
* import { CloudTrailClient, PutEventSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
73
|
-
* // const { CloudTrailClient, PutEventSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
74
|
-
* const client = new CloudTrailClient(config);
|
|
75
|
-
* const command = new PutEventSelectorsCommand(input);
|
|
76
|
-
* const response = await client.send(command);
|
|
77
|
-
* ```
|
|
78
|
-
*
|
|
79
|
-
* @see {@link PutEventSelectorsCommandInput} for command's `input` shape.
|
|
80
|
-
* @see {@link PutEventSelectorsCommandOutput} for command's `response` shape.
|
|
81
|
-
* @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
|
|
82
|
-
*
|
|
83
|
-
*/
|
|
84
|
-
export class PutEventSelectorsCommand extends $Command<
|
|
85
|
-
PutEventSelectorsCommandInput,
|
|
86
|
-
PutEventSelectorsCommandOutput,
|
|
87
|
-
CloudTrailClientResolvedConfig
|
|
88
|
-
> {
|
|
89
|
-
// Start section: command_properties
|
|
90
|
-
// End section: command_properties
|
|
91
|
-
|
|
92
|
-
constructor(readonly input: PutEventSelectorsCommandInput) {
|
|
93
|
-
// Start section: command_constructor
|
|
94
|
-
super();
|
|
95
|
-
// End section: command_constructor
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* @internal
|
|
100
|
-
*/
|
|
101
|
-
resolveMiddleware(
|
|
102
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
103
|
-
configuration: CloudTrailClientResolvedConfig,
|
|
104
|
-
options?: __HttpHandlerOptions
|
|
105
|
-
): Handler<PutEventSelectorsCommandInput, PutEventSelectorsCommandOutput> {
|
|
106
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
107
|
-
|
|
108
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
109
|
-
|
|
110
|
-
const { logger } = configuration;
|
|
111
|
-
const clientName = "CloudTrailClient";
|
|
112
|
-
const commandName = "PutEventSelectorsCommand";
|
|
113
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
114
|
-
logger,
|
|
115
|
-
clientName,
|
|
116
|
-
commandName,
|
|
117
|
-
inputFilterSensitiveLog: PutEventSelectorsRequest.filterSensitiveLog,
|
|
118
|
-
outputFilterSensitiveLog: PutEventSelectorsResponse.filterSensitiveLog,
|
|
119
|
-
};
|
|
120
|
-
const { requestHandler } = configuration;
|
|
121
|
-
return stack.resolve(
|
|
122
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
123
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
124
|
-
handlerExecutionContext
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
private serialize(input: PutEventSelectorsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
129
|
-
return serializeAws_json1_1PutEventSelectorsCommand(input, context);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutEventSelectorsCommandOutput> {
|
|
133
|
-
return deserializeAws_json1_1PutEventSelectorsCommand(output, context);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// Start section: command_body_extra
|
|
137
|
-
// End section: command_body_extra
|
|
138
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
2
|
-
import { PutInsightSelectorsRequest, PutInsightSelectorsResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1PutInsightSelectorsCommand,
|
|
5
|
-
serializeAws_json1_1PutInsightSelectorsCommand,
|
|
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 PutInsightSelectorsCommandInput extends PutInsightSelectorsRequest {}
|
|
21
|
-
export interface PutInsightSelectorsCommandOutput extends PutInsightSelectorsResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Lets you enable Insights event logging by specifying the Insights
|
|
25
|
-
* selectors that you want to enable on an existing trail. You also use
|
|
26
|
-
* <code>PutInsightSelectors</code> to turn off Insights event logging, by passing an empty list of insight types.
|
|
27
|
-
* The valid Insights event type in this release is <code>ApiCallRateInsight</code>.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { CloudTrailClient, PutInsightSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
32
|
-
* // const { CloudTrailClient, PutInsightSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
33
|
-
* const client = new CloudTrailClient(config);
|
|
34
|
-
* const command = new PutInsightSelectorsCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link PutInsightSelectorsCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link PutInsightSelectorsCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class PutInsightSelectorsCommand extends $Command<
|
|
44
|
-
PutInsightSelectorsCommandInput,
|
|
45
|
-
PutInsightSelectorsCommandOutput,
|
|
46
|
-
CloudTrailClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: PutInsightSelectorsCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: CloudTrailClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<PutInsightSelectorsCommandInput, PutInsightSelectorsCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "CloudTrailClient";
|
|
71
|
-
const commandName = "PutInsightSelectorsCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: PutInsightSelectorsRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: PutInsightSelectorsResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: PutInsightSelectorsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_json1_1PutInsightSelectorsCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutInsightSelectorsCommandOutput> {
|
|
92
|
-
return deserializeAws_json1_1PutInsightSelectorsCommand(output, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Start section: command_body_extra
|
|
96
|
-
// End section: command_body_extra
|
|
97
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
2
|
-
import { RemoveTagsRequest, RemoveTagsResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1RemoveTagsCommand,
|
|
5
|
-
serializeAws_json1_1RemoveTagsCommand,
|
|
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 RemoveTagsCommandInput extends RemoveTagsRequest {}
|
|
21
|
-
export interface RemoveTagsCommandOutput extends RemoveTagsResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Removes the specified tags from a trail.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { CloudTrailClient, RemoveTagsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
29
|
-
* // const { CloudTrailClient, RemoveTagsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
30
|
-
* const client = new CloudTrailClient(config);
|
|
31
|
-
* const command = new RemoveTagsCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link RemoveTagsCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link RemoveTagsCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class RemoveTagsCommand extends $Command<
|
|
41
|
-
RemoveTagsCommandInput,
|
|
42
|
-
RemoveTagsCommandOutput,
|
|
43
|
-
CloudTrailClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: RemoveTagsCommandInput) {
|
|
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<RemoveTagsCommandInput, RemoveTagsCommandOutput> {
|
|
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 = "RemoveTagsCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: RemoveTagsRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: RemoveTagsResponse.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: RemoveTagsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_json1_1RemoveTagsCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<RemoveTagsCommandOutput> {
|
|
89
|
-
return deserializeAws_json1_1RemoveTagsCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
2
|
-
import { StartLoggingRequest, StartLoggingResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1StartLoggingCommand,
|
|
5
|
-
serializeAws_json1_1StartLoggingCommand,
|
|
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 StartLoggingCommandInput extends StartLoggingRequest {}
|
|
21
|
-
export interface StartLoggingCommandOutput extends StartLoggingResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <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>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { CloudTrailClient, StartLoggingCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
29
|
-
* // const { CloudTrailClient, StartLoggingCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
30
|
-
* const client = new CloudTrailClient(config);
|
|
31
|
-
* const command = new StartLoggingCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link StartLoggingCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link StartLoggingCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class StartLoggingCommand extends $Command<
|
|
41
|
-
StartLoggingCommandInput,
|
|
42
|
-
StartLoggingCommandOutput,
|
|
43
|
-
CloudTrailClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: StartLoggingCommandInput) {
|
|
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<StartLoggingCommandInput, StartLoggingCommandOutput> {
|
|
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 = "StartLoggingCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: StartLoggingRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: StartLoggingResponse.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: StartLoggingCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_json1_1StartLoggingCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StartLoggingCommandOutput> {
|
|
89
|
-
return deserializeAws_json1_1StartLoggingCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient";
|
|
2
|
-
import { StopLoggingRequest, StopLoggingResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1StopLoggingCommand,
|
|
5
|
-
serializeAws_json1_1StopLoggingCommand,
|
|
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 StopLoggingCommandInput extends StopLoggingRequest {}
|
|
21
|
-
export interface StopLoggingCommandOutput extends StopLoggingResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail.
|
|
25
|
-
* Under most circumstances, there is no need to use this action. You can update a trail
|
|
26
|
-
* without stopping it first. This action is the only way to stop recording. For a trail
|
|
27
|
-
* enabled in all regions, this operation must be called from the region in which the trail
|
|
28
|
-
* was created, or an <code>InvalidHomeRegionException</code> will occur. This operation
|
|
29
|
-
* cannot be called on the shadow trails (replicated trails in other regions) of a trail
|
|
30
|
-
* enabled in all regions.</p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { CloudTrailClient, StopLoggingCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
|
|
35
|
-
* // const { CloudTrailClient, StopLoggingCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
|
|
36
|
-
* const client = new CloudTrailClient(config);
|
|
37
|
-
* const command = new StopLoggingCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link StopLoggingCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link StopLoggingCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class StopLoggingCommand extends $Command<
|
|
47
|
-
StopLoggingCommandInput,
|
|
48
|
-
StopLoggingCommandOutput,
|
|
49
|
-
CloudTrailClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: StopLoggingCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: CloudTrailClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<StopLoggingCommandInput, StopLoggingCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "CloudTrailClient";
|
|
74
|
-
const commandName = "StopLoggingCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: StopLoggingRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: StopLoggingResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: StopLoggingCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_json1_1StopLoggingCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StopLoggingCommandOutput> {
|
|
95
|
-
return deserializeAws_json1_1StopLoggingCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|