@aws-sdk/client-cloudtrail 3.36.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/CloudTrail.js +0 -18
  3. package/dist-cjs/CloudTrailClient.js +0 -23
  4. package/dist-cjs/commands/AddTagsCommand.js +0 -27
  5. package/dist-cjs/commands/CreateTrailCommand.js +0 -25
  6. package/dist-cjs/commands/DeleteTrailCommand.js +0 -26
  7. package/dist-cjs/commands/DescribeTrailsCommand.js +0 -24
  8. package/dist-cjs/commands/GetEventSelectorsCommand.js +0 -40
  9. package/dist-cjs/commands/GetInsightSelectorsCommand.js +0 -30
  10. package/dist-cjs/commands/GetTrailCommand.js +0 -24
  11. package/dist-cjs/commands/GetTrailStatusCommand.js +0 -24
  12. package/dist-cjs/commands/ListPublicKeysCommand.js +0 -29
  13. package/dist-cjs/commands/ListTagsCommand.js +0 -24
  14. package/dist-cjs/commands/ListTrailsCommand.js +0 -24
  15. package/dist-cjs/commands/LookupEventsCommand.js +0 -71
  16. package/dist-cjs/commands/PutEventSelectorsCommand.js +0 -68
  17. package/dist-cjs/commands/PutInsightSelectorsCommand.js +0 -27
  18. package/dist-cjs/commands/RemoveTagsCommand.js +0 -24
  19. package/dist-cjs/commands/StartLoggingCommand.js +0 -24
  20. package/dist-cjs/commands/StopLoggingCommand.js +0 -30
  21. package/dist-cjs/commands/UpdateTrailCommand.js +0 -29
  22. package/dist-cjs/models/models_0.js +0 -279
  23. package/dist-cjs/pagination/ListPublicKeysPaginator.js +0 -10
  24. package/dist-cjs/pagination/ListTagsPaginator.js +0 -10
  25. package/dist-cjs/pagination/ListTrailsPaginator.js +0 -10
  26. package/dist-cjs/pagination/LookupEventsPaginator.js +0 -10
  27. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  28. package/dist-cjs/runtimeConfig.browser.js +1 -5
  29. package/dist-cjs/runtimeConfig.js +1 -5
  30. package/dist-cjs/runtimeConfig.native.js +0 -3
  31. package/dist-cjs/runtimeConfig.shared.js +0 -3
  32. package/dist-types/ts3.4/CloudTrail.d.ts +19 -210
  33. package/dist-types/ts3.4/CloudTrailClient.d.ts +24 -104
  34. package/dist-types/ts3.4/commands/AddTagsCommand.d.ts +2 -23
  35. package/dist-types/ts3.4/commands/CreateTrailCommand.d.ts +2 -21
  36. package/dist-types/ts3.4/commands/DeleteTrailCommand.d.ts +2 -22
  37. package/dist-types/ts3.4/commands/DescribeTrailsCommand.d.ts +2 -20
  38. package/dist-types/ts3.4/commands/GetEventSelectorsCommand.d.ts +2 -36
  39. package/dist-types/ts3.4/commands/GetInsightSelectorsCommand.d.ts +2 -26
  40. package/dist-types/ts3.4/commands/GetTrailCommand.d.ts +2 -20
  41. package/dist-types/ts3.4/commands/GetTrailStatusCommand.d.ts +2 -20
  42. package/dist-types/ts3.4/commands/ListPublicKeysCommand.d.ts +2 -25
  43. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +2 -20
  44. package/dist-types/ts3.4/commands/ListTrailsCommand.d.ts +2 -20
  45. package/dist-types/ts3.4/commands/LookupEventsCommand.d.ts +2 -67
  46. package/dist-types/ts3.4/commands/PutEventSelectorsCommand.d.ts +2 -64
  47. package/dist-types/ts3.4/commands/PutInsightSelectorsCommand.d.ts +2 -23
  48. package/dist-types/ts3.4/commands/RemoveTagsCommand.d.ts +2 -20
  49. package/dist-types/ts3.4/commands/StartLoggingCommand.d.ts +2 -20
  50. package/dist-types/ts3.4/commands/StopLoggingCommand.d.ts +2 -26
  51. package/dist-types/ts3.4/commands/UpdateTrailCommand.d.ts +2 -25
  52. package/dist-types/ts3.4/models/models_0.d.ts +390 -1877
  53. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  54. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  55. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  56. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  57. package/package.json +3 -3
@@ -4,22 +4,13 @@ exports.paginateListPublicKeys = void 0;
4
4
  const CloudTrail_1 = require("../CloudTrail");
5
5
  const CloudTrailClient_1 = require("../CloudTrailClient");
6
6
  const ListPublicKeysCommand_1 = require("../commands/ListPublicKeysCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListPublicKeysCommand_1.ListPublicKeysCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listPublicKeys(input, ...args);
20
12
  };
21
13
  async function* paginateListPublicKeys(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateListPublicKeys(config, input, ...additionalArguments) {
38
29
  token = page.NextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateListPublicKeys = paginateListPublicKeys;
@@ -4,22 +4,13 @@ exports.paginateListTags = void 0;
4
4
  const CloudTrail_1 = require("../CloudTrail");
5
5
  const CloudTrailClient_1 = require("../CloudTrailClient");
6
6
  const ListTagsCommand_1 = require("../commands/ListTagsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListTagsCommand_1.ListTagsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listTags(input, ...args);
20
12
  };
21
13
  async function* paginateListTags(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateListTags(config, input, ...additionalArguments) {
38
29
  token = page.NextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateListTags = paginateListTags;
@@ -4,22 +4,13 @@ exports.paginateListTrails = void 0;
4
4
  const CloudTrail_1 = require("../CloudTrail");
5
5
  const CloudTrailClient_1 = require("../CloudTrailClient");
6
6
  const ListTrailsCommand_1 = require("../commands/ListTrailsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new ListTrailsCommand_1.ListTrailsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.listTrails(input, ...args);
20
12
  };
21
13
  async function* paginateListTrails(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -38,7 +29,6 @@ async function* paginateListTrails(config, input, ...additionalArguments) {
38
29
  token = page.NextToken;
39
30
  hasNext = !!token;
40
31
  }
41
- // @ts-ignore
42
32
  return undefined;
43
33
  }
44
34
  exports.paginateListTrails = paginateListTrails;
@@ -4,22 +4,13 @@ exports.paginateLookupEvents = void 0;
4
4
  const CloudTrail_1 = require("../CloudTrail");
5
5
  const CloudTrailClient_1 = require("../CloudTrailClient");
6
6
  const LookupEventsCommand_1 = require("../commands/LookupEventsCommand");
7
- /**
8
- * @private
9
- */
10
7
  const makePagedClientRequest = async (client, input, ...args) => {
11
- // @ts-ignore
12
8
  return await client.send(new LookupEventsCommand_1.LookupEventsCommand(input), ...args);
13
9
  };
14
- /**
15
- * @private
16
- */
17
10
  const makePagedRequest = async (client, input, ...args) => {
18
- // @ts-ignore
19
11
  return await client.lookupEvents(input, ...args);
20
12
  };
21
13
  async function* paginateLookupEvents(config, input, ...additionalArguments) {
22
- // ToDo: replace with actual type instead of typeof input.NextToken
23
14
  let token = config.startingToken || undefined;
24
15
  let hasNext = true;
25
16
  let page;
@@ -39,7 +30,6 @@ async function* paginateLookupEvents(config, input, ...additionalArguments) {
39
30
  token = page.NextToken;
40
31
  hasNext = !!token;
41
32
  }
42
- // @ts-ignore
43
33
  return undefined;
44
34
  }
45
35
  exports.paginateLookupEvents = paginateLookupEvents;
@@ -3627,14 +3627,12 @@ const deserializeMetadata = (output) => {
3627
3627
  cfId: output.headers["x-amz-cf-id"],
3628
3628
  });
3629
3629
  };
3630
- // Collect low-level response body stream to Uint8Array.
3631
3630
  const collectBody = (streamBody = new Uint8Array(), context) => {
3632
3631
  if (streamBody instanceof Uint8Array) {
3633
3632
  return Promise.resolve(streamBody);
3634
3633
  }
3635
3634
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3636
3635
  };
3637
- // Encode Uint8Array data into string with utf-8.
3638
3636
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3639
3637
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3640
3638
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -3660,9 +3658,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
3660
3658
  }
3661
3659
  return {};
3662
3660
  });
3663
- /**
3664
- * Load an error code for the aws.rest-json-1.1 protocol.
3665
- */
3666
3661
  const loadRestJsonErrorCode = (output, data) => {
3667
3662
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3668
3663
  const sanitizeErrorCode = (rawValue) => {
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
8
7
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
8
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
@@ -13,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
13
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
14
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
- /**
17
- * @internal
18
- */
19
15
  const getRuntimeConfig = (config) => {
20
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
21
17
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
@@ -2,8 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
- // @ts-ignore: package.json will be imported from dist folders
6
- const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
7
6
  const client_sts_1 = require("@aws-sdk/client-sts");
8
7
  const config_resolver_1 = require("@aws-sdk/config-resolver");
9
8
  const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
@@ -17,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
17
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
18
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
19
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
20
- /**
21
- * @internal
22
- */
23
19
  const getRuntimeConfig = (config) => {
24
20
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
25
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -18,268 +18,77 @@ import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/Remo
18
18
  import { StartLoggingCommandInput, StartLoggingCommandOutput } from "./commands/StartLoggingCommand";
19
19
  import { StopLoggingCommandInput, StopLoggingCommandOutput } from "./commands/StopLoggingCommand";
20
20
  import { UpdateTrailCommandInput, UpdateTrailCommandOutput } from "./commands/UpdateTrailCommand";
21
- /**
22
- * <fullname>CloudTrail</fullname>
23
- * <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
24
- * <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.
25
- * 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>
26
- *
27
- * <note>
28
- * <p>As an alternative to the API,
29
- * you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
30
- * programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs
31
- * provide programmatic access to CloudTrail. For example, the SDKs
32
- * handle cryptographically signing requests, managing errors, and retrying requests
33
- * automatically. For more information about the Amazon Web Services SDKs, including how to download and install
34
- * them, see <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
35
- * </note>
36
- * <p>See the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html">CloudTrail User
37
- * Guide</a> for information about the data that is included with each Amazon Web Services API call listed in the log files.</p>
38
- */
21
+
39
22
  export declare class CloudTrail extends CloudTrailClient {
40
- /**
41
- * <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.
42
- * Tag key names must be unique for a trail; you cannot have two keys with the same name but different values.
43
- * If you specify a key without a value, the tag will be created with the specified key and a value of null.
44
- * 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>
45
- */
23
+
46
24
  addTags(args: AddTagsCommandInput, options?: __HttpHandlerOptions): Promise<AddTagsCommandOutput>;
47
25
  addTags(args: AddTagsCommandInput, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
48
26
  addTags(args: AddTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
49
- /**
50
- * <p>Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
51
- * </p>
52
- */
27
+
53
28
  createTrail(args: CreateTrailCommandInput, options?: __HttpHandlerOptions): Promise<CreateTrailCommandOutput>;
54
29
  createTrail(args: CreateTrailCommandInput, cb: (err: any, data?: CreateTrailCommandOutput) => void): void;
55
30
  createTrail(args: CreateTrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateTrailCommandOutput) => void): void;
56
- /**
57
- * <p>Deletes a trail. This operation must be called from the region in which the trail was
58
- * created. <code>DeleteTrail</code> cannot be called on the shadow trails (replicated trails
59
- * in other regions) of a trail that is enabled in all regions.</p>
60
- */
31
+
61
32
  deleteTrail(args: DeleteTrailCommandInput, options?: __HttpHandlerOptions): Promise<DeleteTrailCommandOutput>;
62
33
  deleteTrail(args: DeleteTrailCommandInput, cb: (err: any, data?: DeleteTrailCommandOutput) => void): void;
63
34
  deleteTrail(args: DeleteTrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteTrailCommandOutput) => void): void;
64
- /**
65
- * <p>Retrieves settings for one or more trails associated with the current region for your account.</p>
66
- */
35
+
67
36
  describeTrails(args: DescribeTrailsCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTrailsCommandOutput>;
68
37
  describeTrails(args: DescribeTrailsCommandInput, cb: (err: any, data?: DescribeTrailsCommandOutput) => void): void;
69
38
  describeTrails(args: DescribeTrailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTrailsCommandOutput) => void): void;
70
- /**
71
- * <p>Describes the settings for the event selectors that you configured for your trail.
72
- * The information returned for your event selectors includes the following:</p>
73
- * <ul>
74
- * <li>
75
- * <p>If your event selector includes read-only events, write-only events, or
76
- * all events. This applies to both management events and data events.</p>
77
- * </li>
78
- * <li>
79
- * <p>If your event selector includes management events.</p>
80
- * </li>
81
- * <li>
82
- * <p>If your event selector includes data events, the resources on which you are logging data
83
- * events.</p>
84
- * </li>
85
- * </ul>
86
- * <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-management-and-data-events-with-cloudtrail.html">Logging Data and Management Events for Trails
87
- * </a> in the <i>CloudTrail User Guide</i>.</p>
88
- */
39
+
89
40
  getEventSelectors(args: GetEventSelectorsCommandInput, options?: __HttpHandlerOptions): Promise<GetEventSelectorsCommandOutput>;
90
41
  getEventSelectors(args: GetEventSelectorsCommandInput, cb: (err: any, data?: GetEventSelectorsCommandOutput) => void): void;
91
42
  getEventSelectors(args: GetEventSelectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEventSelectorsCommandOutput) => void): void;
92
- /**
93
- * <p>Describes the settings for the Insights event selectors that you configured for your trail. <code>GetInsightSelectors</code> shows
94
- * if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled.
95
- * If you run <code>GetInsightSelectors</code> on a trail that does not have Insights events enabled, the operation throws the exception
96
- * <code>InsightNotEnabledException</code>
97
- * </p>
98
- * <p>For more information, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-insights-events-with-cloudtrail.html">Logging CloudTrail Insights Events for Trails
99
- * </a> in the <i>CloudTrail User Guide</i>.</p>
100
- */
43
+
101
44
  getInsightSelectors(args: GetInsightSelectorsCommandInput, options?: __HttpHandlerOptions): Promise<GetInsightSelectorsCommandOutput>;
102
45
  getInsightSelectors(args: GetInsightSelectorsCommandInput, cb: (err: any, data?: GetInsightSelectorsCommandOutput) => void): void;
103
46
  getInsightSelectors(args: GetInsightSelectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInsightSelectorsCommandOutput) => void): void;
104
- /**
105
- * <p>Returns settings information for a specified trail.</p>
106
- */
47
+
107
48
  getTrail(args: GetTrailCommandInput, options?: __HttpHandlerOptions): Promise<GetTrailCommandOutput>;
108
49
  getTrail(args: GetTrailCommandInput, cb: (err: any, data?: GetTrailCommandOutput) => void): void;
109
50
  getTrail(args: GetTrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTrailCommandOutput) => void): void;
110
- /**
111
- * <p>Returns a JSON-formatted list of information about the specified trail. Fields include information on delivery errors, Amazon SNS and Amazon S3 errors, and start and stop logging times for each trail. This operation returns trail status from a single region. To return trail status from all regions, you must call the operation on each region.</p>
112
- */
51
+
113
52
  getTrailStatus(args: GetTrailStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetTrailStatusCommandOutput>;
114
53
  getTrailStatus(args: GetTrailStatusCommandInput, cb: (err: any, data?: GetTrailStatusCommandOutput) => void): void;
115
54
  getTrailStatus(args: GetTrailStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTrailStatusCommandOutput) => void): void;
116
- /**
117
- * <p>Returns all public keys whose private keys were used to sign the digest files within the specified time range. The public key is needed to validate digest files that were signed with its corresponding private key.</p>
118
- * <note>
119
- * <p>CloudTrail uses different private and public key pairs per region. Each digest file is signed with a private key
120
- * unique to its region. When you validate a digest file from a specific region, you must look in the same region for its
121
- * corresponding public key.</p>
122
- * </note>
123
- */
55
+
124
56
  listPublicKeys(args: ListPublicKeysCommandInput, options?: __HttpHandlerOptions): Promise<ListPublicKeysCommandOutput>;
125
57
  listPublicKeys(args: ListPublicKeysCommandInput, cb: (err: any, data?: ListPublicKeysCommandOutput) => void): void;
126
58
  listPublicKeys(args: ListPublicKeysCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPublicKeysCommandOutput) => void): void;
127
- /**
128
- * <p>Lists the tags for the trail in the current region.</p>
129
- */
59
+
130
60
  listTags(args: ListTagsCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsCommandOutput>;
131
61
  listTags(args: ListTagsCommandInput, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
132
62
  listTags(args: ListTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsCommandOutput) => void): void;
133
- /**
134
- * <p>Lists trails that are in the current account.</p>
135
- */
63
+
136
64
  listTrails(args: ListTrailsCommandInput, options?: __HttpHandlerOptions): Promise<ListTrailsCommandOutput>;
137
65
  listTrails(args: ListTrailsCommandInput, cb: (err: any, data?: ListTrailsCommandOutput) => void): void;
138
66
  listTrails(args: ListTrailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTrailsCommandOutput) => void): void;
139
- /**
140
- * <p>Looks up <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events">management events</a> or
141
- * <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.
142
- * You can look up events that occurred in a region within the last 90 days. Lookup supports the following attributes for management events:</p>
143
- * <ul>
144
- * <li>
145
- * <p>Amazon Web Services access key</p>
146
- * </li>
147
- * <li>
148
- * <p>Event ID</p>
149
- * </li>
150
- * <li>
151
- * <p>Event name</p>
152
- * </li>
153
- * <li>
154
- * <p>Event source</p>
155
- * </li>
156
- * <li>
157
- * <p>Read only</p>
158
- * </li>
159
- * <li>
160
- * <p>Resource name</p>
161
- * </li>
162
- * <li>
163
- * <p>Resource type</p>
164
- * </li>
165
- * <li>
166
- * <p>User name</p>
167
- * </li>
168
- * </ul>
169
- * <p>Lookup supports the following attributes for Insights events:</p>
170
- * <ul>
171
- * <li>
172
- * <p>Event ID</p>
173
- * </li>
174
- * <li>
175
- * <p>Event name</p>
176
- * </li>
177
- * <li>
178
- * <p>Event source</p>
179
- * </li>
180
- * </ul>
181
- * <p>All attributes are optional. The default number of results returned is 50, with a
182
- * maximum of 50 possible. The response includes a token that you can use to get the next page
183
- * of results.</p>
184
- * <important>
185
- * <p>The rate of lookup requests is limited to two per second, per account, per region. If this
186
- * limit is exceeded, a throttling error occurs.</p>
187
- * </important>
188
- */
67
+
189
68
  lookupEvents(args: LookupEventsCommandInput, options?: __HttpHandlerOptions): Promise<LookupEventsCommandOutput>;
190
69
  lookupEvents(args: LookupEventsCommandInput, cb: (err: any, data?: LookupEventsCommandOutput) => void): void;
191
70
  lookupEvents(args: LookupEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LookupEventsCommandOutput) => void): void;
192
- /**
193
- * <p>Configures an event selector or advanced event selectors for your trail.
194
- * Use event selectors or advanced event selectors to specify management and data event settings for your trail. By
195
- * default, trails created without specific event selectors are configured to log all read and
196
- * write management events, and no data events.</p>
197
- * <p>When an event occurs in your account, CloudTrail
198
- * evaluates the event selectors or advanced event selectors in all trails. For each trail, if the event matches
199
- * any event selector, the trail processes and logs the event. If the event doesn't match any event
200
- * selector, the trail doesn't log the event.</p>
201
- * <p>Example</p>
202
- * <ol>
203
- * <li>
204
- * <p>You create an event selector for a trail and specify that you want
205
- * write-only events.</p>
206
- * </li>
207
- * <li>
208
- * <p>The EC2 <code>GetConsoleOutput</code> and <code>RunInstances</code> API
209
- * operations occur in your account.</p>
210
- * </li>
211
- * <li>
212
- * <p>CloudTrail evaluates whether the events match your event
213
- * selectors.</p>
214
- * </li>
215
- * <li>
216
- * <p>The <code>RunInstances</code> is a write-only event and it matches your
217
- * event selector. The trail logs the event.</p>
218
- * </li>
219
- * <li>
220
- * <p>The <code>GetConsoleOutput</code> is a read-only event that doesn't
221
- * match your event selector. The trail doesn't log the event.
222
- * </p>
223
- * </li>
224
- * </ol>
225
- * <p>The <code>PutEventSelectors</code> operation must be called from the region in which
226
- * the trail was created; otherwise, an <code>InvalidHomeRegionException</code> exception is
227
- * thrown.</p>
228
- * <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
229
- * </a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Quotas in CloudTrail</a>
230
- * in the <i>CloudTrail User Guide</i>.</p>
231
- * <p>You can add advanced event selectors, and conditions for your advanced
232
- * event selectors, up to a maximum of 500 values for all conditions and selectors on a trail.
233
- * You can use either <code>AdvancedEventSelectors</code> or <code>EventSelectors</code>, but not both. If you apply <code>AdvancedEventSelectors</code>
234
- * to a trail, any existing <code>EventSelectors</code> are overwritten. For more information about
235
- * advanced event selectors, see
236
- * <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging
237
- * data events for trails</a> in the <i>CloudTrail User Guide</i>.</p>
238
- */
71
+
239
72
  putEventSelectors(args: PutEventSelectorsCommandInput, options?: __HttpHandlerOptions): Promise<PutEventSelectorsCommandOutput>;
240
73
  putEventSelectors(args: PutEventSelectorsCommandInput, cb: (err: any, data?: PutEventSelectorsCommandOutput) => void): void;
241
74
  putEventSelectors(args: PutEventSelectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutEventSelectorsCommandOutput) => void): void;
242
- /**
243
- * <p>Lets you enable Insights event logging by specifying the Insights
244
- * selectors that you want to enable on an existing trail. You also use
245
- * <code>PutInsightSelectors</code> to turn off Insights event logging, by passing an empty list of insight types.
246
- * The valid Insights event type in this release is <code>ApiCallRateInsight</code>.</p>
247
- */
75
+
248
76
  putInsightSelectors(args: PutInsightSelectorsCommandInput, options?: __HttpHandlerOptions): Promise<PutInsightSelectorsCommandOutput>;
249
77
  putInsightSelectors(args: PutInsightSelectorsCommandInput, cb: (err: any, data?: PutInsightSelectorsCommandOutput) => void): void;
250
78
  putInsightSelectors(args: PutInsightSelectorsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutInsightSelectorsCommandOutput) => void): void;
251
- /**
252
- * <p>Removes the specified tags from a trail.</p>
253
- */
79
+
254
80
  removeTags(args: RemoveTagsCommandInput, options?: __HttpHandlerOptions): Promise<RemoveTagsCommandOutput>;
255
81
  removeTags(args: RemoveTagsCommandInput, cb: (err: any, data?: RemoveTagsCommandOutput) => void): void;
256
82
  removeTags(args: RemoveTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveTagsCommandOutput) => void): void;
257
- /**
258
- * <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>
259
- */
83
+
260
84
  startLogging(args: StartLoggingCommandInput, options?: __HttpHandlerOptions): Promise<StartLoggingCommandOutput>;
261
85
  startLogging(args: StartLoggingCommandInput, cb: (err: any, data?: StartLoggingCommandOutput) => void): void;
262
86
  startLogging(args: StartLoggingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartLoggingCommandOutput) => void): void;
263
- /**
264
- * <p>Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail.
265
- * Under most circumstances, there is no need to use this action. You can update a trail
266
- * without stopping it first. This action is the only way to stop recording. For a trail
267
- * enabled in all regions, this operation must be called from the region in which the trail
268
- * was created, or an <code>InvalidHomeRegionException</code> will occur. This operation
269
- * cannot be called on the shadow trails (replicated trails in other regions) of a trail
270
- * enabled in all regions.</p>
271
- */
87
+
272
88
  stopLogging(args: StopLoggingCommandInput, options?: __HttpHandlerOptions): Promise<StopLoggingCommandOutput>;
273
89
  stopLogging(args: StopLoggingCommandInput, cb: (err: any, data?: StopLoggingCommandOutput) => void): void;
274
90
  stopLogging(args: StopLoggingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopLoggingCommandOutput) => void): void;
275
- /**
276
- * <p>Updates trail settings that control what events you are logging, and how to handle log files. Changes to a trail do not require
277
- * stopping the CloudTrail service. Use this action to designate an existing bucket for log
278
- * delivery. If the existing bucket has previously been a target for CloudTrail log files,
279
- * an IAM policy exists for the bucket. <code>UpdateTrail</code> must be called from the
280
- * region in which the trail was created; otherwise, an
281
- * <code>InvalidHomeRegionException</code> is thrown.</p>
282
- */
91
+
283
92
  updateTrail(args: UpdateTrailCommandInput, options?: __HttpHandlerOptions): Promise<UpdateTrailCommandOutput>;
284
93
  updateTrail(args: UpdateTrailCommandInput, cb: (err: any, data?: UpdateTrailCommandOutput) => void): void;
285
94
  updateTrail(args: UpdateTrailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateTrailCommandOutput) => void): void;