@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
@@ -5,79 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Configures an event selector or advanced event selectors for your trail.
10
- * Use event selectors or advanced event selectors to specify management and data event settings for your trail. By
11
- * default, trails created without specific event selectors are configured to log all read and
12
- * write management events, and no data events.</p>
13
- * <p>When an event occurs in your account, CloudTrail
14
- * evaluates the event selectors or advanced event selectors in all trails. For each trail, if the event matches
15
- * any event selector, the trail processes and logs the event. If the event doesn't match any event
16
- * selector, the trail doesn't log the event.</p>
17
- * <p>Example</p>
18
- * <ol>
19
- * <li>
20
- * <p>You create an event selector for a trail and specify that you want
21
- * write-only events.</p>
22
- * </li>
23
- * <li>
24
- * <p>The EC2 <code>GetConsoleOutput</code> and <code>RunInstances</code> API
25
- * operations occur in your account.</p>
26
- * </li>
27
- * <li>
28
- * <p>CloudTrail evaluates whether the events match your event
29
- * selectors.</p>
30
- * </li>
31
- * <li>
32
- * <p>The <code>RunInstances</code> is a write-only event and it matches your
33
- * event selector. The trail logs the event.</p>
34
- * </li>
35
- * <li>
36
- * <p>The <code>GetConsoleOutput</code> is a read-only event that doesn't
37
- * match your event selector. The trail doesn't log the event.
38
- * </p>
39
- * </li>
40
- * </ol>
41
- * <p>The <code>PutEventSelectors</code> operation must be called from the region in which
42
- * the trail was created; otherwise, an <code>InvalidHomeRegionException</code> exception is
43
- * thrown.</p>
44
- * <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
45
- * </a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/WhatIsCloudTrail-Limits.html">Quotas in CloudTrail</a>
46
- * in the <i>CloudTrail User Guide</i>.</p>
47
- * <p>You can add advanced event selectors, and conditions for your advanced
48
- * event selectors, up to a maximum of 500 values for all conditions and selectors on a trail.
49
- * You can use either <code>AdvancedEventSelectors</code> or <code>EventSelectors</code>, but not both. If you apply <code>AdvancedEventSelectors</code>
50
- * to a trail, any existing <code>EventSelectors</code> are overwritten. For more information about
51
- * advanced event selectors, see
52
- * <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html">Logging
53
- * data events for trails</a> in the <i>CloudTrail User Guide</i>.</p>
54
- * @example
55
- * Use a bare-bones client and the command you need to make an API call.
56
- * ```javascript
57
- * import { CloudTrailClient, PutEventSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
58
- * // const { CloudTrailClient, PutEventSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
59
- * const client = new CloudTrailClient(config);
60
- * const command = new PutEventSelectorsCommand(input);
61
- * const response = await client.send(command);
62
- * ```
63
- *
64
- * @see {@link PutEventSelectorsCommandInput} for command's `input` shape.
65
- * @see {@link PutEventSelectorsCommandOutput} for command's `response` shape.
66
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
67
- *
68
- */
69
8
  class PutEventSelectorsCommand extends smithy_client_1.Command {
70
- // Start section: command_properties
71
- // End section: command_properties
72
9
  constructor(input) {
73
- // Start section: command_constructor
74
10
  super();
75
11
  this.input = input;
76
- // End section: command_constructor
77
12
  }
78
- /**
79
- * @internal
80
- */
81
13
  resolveMiddleware(clientStack, configuration, options) {
82
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
83
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Lets you enable Insights event logging by specifying the Insights
10
- * selectors that you want to enable on an existing trail. You also use
11
- * <code>PutInsightSelectors</code> to turn off Insights event logging, by passing an empty list of insight types.
12
- * The valid Insights event type in this release is <code>ApiCallRateInsight</code>.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CloudTrailClient, PutInsightSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
17
- * // const { CloudTrailClient, PutInsightSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
18
- * const client = new CloudTrailClient(config);
19
- * const command = new PutInsightSelectorsCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link PutInsightSelectorsCommandInput} for command's `input` shape.
24
- * @see {@link PutInsightSelectorsCommandOutput} for command's `response` shape.
25
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class PutInsightSelectorsCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
9
  constructor(input) {
32
- // Start section: command_constructor
33
10
  super();
34
11
  this.input = input;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  resolveMiddleware(clientStack, configuration, options) {
41
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Removes the specified tags from a trail.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudTrailClient, RemoveTagsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
14
- * // const { CloudTrailClient, RemoveTagsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
15
- * const client = new CloudTrailClient(config);
16
- * const command = new RemoveTagsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link RemoveTagsCommandInput} for command's `input` shape.
21
- * @see {@link RemoveTagsCommandOutput} for command's `response` shape.
22
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class RemoveTagsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <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>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudTrailClient, StartLoggingCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
14
- * // const { CloudTrailClient, StartLoggingCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
15
- * const client = new CloudTrailClient(config);
16
- * const command = new StartLoggingCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link StartLoggingCommandInput} for command's `input` shape.
21
- * @see {@link StartLoggingCommandOutput} for command's `response` shape.
22
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class StartLoggingCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Suspends the recording of Amazon Web Services API calls and log file delivery for the specified trail.
10
- * Under most circumstances, there is no need to use this action. You can update a trail
11
- * without stopping it first. This action is the only way to stop recording. For a trail
12
- * enabled in all regions, this operation must be called from the region in which the trail
13
- * was created, or an <code>InvalidHomeRegionException</code> will occur. This operation
14
- * cannot be called on the shadow trails (replicated trails in other regions) of a trail
15
- * enabled in all regions.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { CloudTrailClient, StopLoggingCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
20
- * // const { CloudTrailClient, StopLoggingCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
21
- * const client = new CloudTrailClient(config);
22
- * const command = new StopLoggingCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link StopLoggingCommandInput} for command's `input` shape.
27
- * @see {@link StopLoggingCommandOutput} for command's `response` shape.
28
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
8
  class StopLoggingCommand extends smithy_client_1.Command {
32
- // Start section: command_properties
33
- // End section: command_properties
34
9
  constructor(input) {
35
- // Start section: command_constructor
36
10
  super();
37
11
  this.input = input;
38
- // End section: command_constructor
39
12
  }
40
- /**
41
- * @internal
42
- */
43
13
  resolveMiddleware(clientStack, configuration, options) {
44
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
45
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Updates trail settings that control what events you are logging, and how to handle log files. Changes to a trail do not require
10
- * stopping the CloudTrail service. Use this action to designate an existing bucket for log
11
- * delivery. If the existing bucket has previously been a target for CloudTrail log files,
12
- * an IAM policy exists for the bucket. <code>UpdateTrail</code> must be called from the
13
- * region in which the trail was created; otherwise, an
14
- * <code>InvalidHomeRegionException</code> is thrown.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { CloudTrailClient, UpdateTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
19
- * // const { CloudTrailClient, UpdateTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
20
- * const client = new CloudTrailClient(config);
21
- * const command = new UpdateTrailCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link UpdateTrailCommandInput} for command's `input` shape.
26
- * @see {@link UpdateTrailCommandOutput} for command's `response` shape.
27
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class UpdateTrailCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);