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