@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
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
18
 
8
19
 
@@ -20,24 +20,6 @@ const RemoveTagsCommand_1 = require("./commands/RemoveTagsCommand");
20
20
  const StartLoggingCommand_1 = require("./commands/StartLoggingCommand");
21
21
  const StopLoggingCommand_1 = require("./commands/StopLoggingCommand");
22
22
  const UpdateTrailCommand_1 = require("./commands/UpdateTrailCommand");
23
- /**
24
- * <fullname>CloudTrail</fullname>
25
- * <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
26
- * <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.
27
- * 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>
28
- *
29
- * <note>
30
- * <p>As an alternative to the API,
31
- * you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
32
- * programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs
33
- * provide programmatic access to CloudTrail. For example, the SDKs
34
- * handle cryptographically signing requests, managing errors, and retrying requests
35
- * automatically. For more information about the Amazon Web Services SDKs, including how to download and install
36
- * them, see <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
37
- * </note>
38
- * <p>See the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html">CloudTrail User
39
- * Guide</a> for information about the data that is included with each Amazon Web Services API call listed in the log files.</p>
40
- */
41
23
  class CloudTrail extends CloudTrailClient_1.CloudTrailClient {
42
24
  addTags(args, optionsOrCb, cb) {
43
25
  const command = new AddTagsCommand_1.AddTagsCommand(args);
@@ -10,24 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <fullname>CloudTrail</fullname>
15
- * <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
16
- * <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.
17
- * 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>
18
- *
19
- * <note>
20
- * <p>As an alternative to the API,
21
- * you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
22
- * programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs
23
- * provide programmatic access to CloudTrail. For example, the SDKs
24
- * handle cryptographically signing requests, managing errors, and retrying requests
25
- * automatically. For more information about the Amazon Web Services SDKs, including how to download and install
26
- * them, see <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
27
- * </note>
28
- * <p>See the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html">CloudTrail User
29
- * Guide</a> for information about the data that is included with each Amazon Web Services API call listed in the log files.</p>
30
- */
31
13
  class CloudTrailClient extends smithy_client_1.Client {
32
14
  constructor(configuration) {
33
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -46,11 +28,6 @@ class CloudTrailClient extends smithy_client_1.Client {
46
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
47
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
48
30
  }
49
- /**
50
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
51
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
52
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
53
- */
54
31
  destroy() {
55
32
  super.destroy();
56
33
  }
@@ -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>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.
10
- * Tag key names must be unique for a trail; you cannot have two keys with the same name but different values.
11
- * If you specify a key without a value, the tag will be created with the specified key and a value of null.
12
- * 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>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CloudTrailClient, AddTagsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
17
- * // const { CloudTrailClient, AddTagsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
18
- * const client = new CloudTrailClient(config);
19
- * const command = new AddTagsCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link AddTagsCommandInput} for command's `input` shape.
24
- * @see {@link AddTagsCommandOutput} for command's `response` shape.
25
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
8
  class AddTagsCommand 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,36 +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>Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
10
- * </p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudTrailClient, CreateTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, CreateTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new CreateTrailCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link CreateTrailCommandInput} for command's `input` shape.
22
- * @see {@link CreateTrailCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class CreateTrailCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +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>Deletes a trail. This operation must be called from the region in which the trail was
10
- * created. <code>DeleteTrail</code> cannot be called on the shadow trails (replicated trails
11
- * in other regions) of a trail that is enabled in all regions.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CloudTrailClient, DeleteTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
16
- * // const { CloudTrailClient, DeleteTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
17
- * const client = new CloudTrailClient(config);
18
- * const command = new DeleteTrailCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link DeleteTrailCommandInput} for command's `input` shape.
23
- * @see {@link DeleteTrailCommandOutput} for command's `response` shape.
24
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class DeleteTrailCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
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>Retrieves settings for one or more trails associated with the current region for your account.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudTrailClient, DescribeTrailsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
14
- * // const { CloudTrailClient, DescribeTrailsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
15
- * const client = new CloudTrailClient(config);
16
- * const command = new DescribeTrailsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeTrailsCommandInput} for command's `input` shape.
21
- * @see {@link DescribeTrailsCommandOutput} for command's `response` shape.
22
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class DescribeTrailsCommand 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,51 +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>Describes the settings for the event selectors that you configured for your trail.
10
- * The information returned for your event selectors includes the following:</p>
11
- * <ul>
12
- * <li>
13
- * <p>If your event selector includes read-only events, write-only events, or
14
- * all events. This applies to both management events and data events.</p>
15
- * </li>
16
- * <li>
17
- * <p>If your event selector includes management events.</p>
18
- * </li>
19
- * <li>
20
- * <p>If your event selector includes data events, the resources on which you are logging data
21
- * events.</p>
22
- * </li>
23
- * </ul>
24
- * <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
25
- * </a> in the <i>CloudTrail User Guide</i>.</p>
26
- * @example
27
- * Use a bare-bones client and the command you need to make an API call.
28
- * ```javascript
29
- * import { CloudTrailClient, GetEventSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
30
- * // const { CloudTrailClient, GetEventSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
31
- * const client = new CloudTrailClient(config);
32
- * const command = new GetEventSelectorsCommand(input);
33
- * const response = await client.send(command);
34
- * ```
35
- *
36
- * @see {@link GetEventSelectorsCommandInput} for command's `input` shape.
37
- * @see {@link GetEventSelectorsCommandOutput} for command's `response` shape.
38
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
39
- *
40
- */
41
8
  class GetEventSelectorsCommand extends smithy_client_1.Command {
42
- // Start section: command_properties
43
- // End section: command_properties
44
9
  constructor(input) {
45
- // Start section: command_constructor
46
10
  super();
47
11
  this.input = input;
48
- // End section: command_constructor
49
12
  }
50
- /**
51
- * @internal
52
- */
53
13
  resolveMiddleware(clientStack, configuration, options) {
54
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
55
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>Describes the settings for the Insights event selectors that you configured for your trail. <code>GetInsightSelectors</code> shows
10
- * if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled.
11
- * If you run <code>GetInsightSelectors</code> on a trail that does not have Insights events enabled, the operation throws the exception
12
- * <code>InsightNotEnabledException</code>
13
- * </p>
14
- * <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
15
- * </a> in the <i>CloudTrail User Guide</i>.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { CloudTrailClient, GetInsightSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
20
- * // const { CloudTrailClient, GetInsightSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
21
- * const client = new CloudTrailClient(config);
22
- * const command = new GetInsightSelectorsCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link GetInsightSelectorsCommandInput} for command's `input` shape.
27
- * @see {@link GetInsightSelectorsCommandOutput} for command's `response` shape.
28
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
8
  class GetInsightSelectorsCommand 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,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>Returns settings information for a specified 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, GetTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
14
- * // const { CloudTrailClient, GetTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
15
- * const client = new CloudTrailClient(config);
16
- * const command = new GetTrailCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetTrailCommandInput} for command's `input` shape.
21
- * @see {@link GetTrailCommandOutput} for command's `response` shape.
22
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetTrailCommand 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>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>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudTrailClient, GetTrailStatusCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
14
- * // const { CloudTrailClient, GetTrailStatusCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
15
- * const client = new CloudTrailClient(config);
16
- * const command = new GetTrailStatusCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetTrailStatusCommandInput} for command's `input` shape.
21
- * @see {@link GetTrailStatusCommandOutput} for command's `response` shape.
22
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetTrailStatusCommand 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,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>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>
10
- * <note>
11
- * <p>CloudTrail uses different private and public key pairs per region. Each digest file is signed with a private key
12
- * unique to its region. When you validate a digest file from a specific region, you must look in the same region for its
13
- * corresponding public key.</p>
14
- * </note>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { CloudTrailClient, ListPublicKeysCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
19
- * // const { CloudTrailClient, ListPublicKeysCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
20
- * const client = new CloudTrailClient(config);
21
- * const command = new ListPublicKeysCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link ListPublicKeysCommandInput} for command's `input` shape.
26
- * @see {@link ListPublicKeysCommandOutput} for command's `response` shape.
27
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class ListPublicKeysCommand 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);
@@ -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>Lists the tags for the trail in the current region.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudTrailClient, ListTagsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
14
- * // const { CloudTrailClient, ListTagsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
15
- * const client = new CloudTrailClient(config);
16
- * const command = new ListTagsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListTagsCommandInput} for command's `input` shape.
21
- * @see {@link ListTagsCommandOutput} for command's `response` shape.
22
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListTagsCommand 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>Lists trails that are in the current account.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CloudTrailClient, ListTrailsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
14
- * // const { CloudTrailClient, ListTrailsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
15
- * const client = new CloudTrailClient(config);
16
- * const command = new ListTrailsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListTrailsCommandInput} for command's `input` shape.
21
- * @see {@link ListTrailsCommandOutput} for command's `response` shape.
22
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListTrailsCommand 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,82 +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>Looks up <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events">management events</a> or
10
- * <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.
11
- * You can look up events that occurred in a region within the last 90 days. Lookup supports the following attributes for management events:</p>
12
- * <ul>
13
- * <li>
14
- * <p>Amazon Web Services access key</p>
15
- * </li>
16
- * <li>
17
- * <p>Event ID</p>
18
- * </li>
19
- * <li>
20
- * <p>Event name</p>
21
- * </li>
22
- * <li>
23
- * <p>Event source</p>
24
- * </li>
25
- * <li>
26
- * <p>Read only</p>
27
- * </li>
28
- * <li>
29
- * <p>Resource name</p>
30
- * </li>
31
- * <li>
32
- * <p>Resource type</p>
33
- * </li>
34
- * <li>
35
- * <p>User name</p>
36
- * </li>
37
- * </ul>
38
- * <p>Lookup supports the following attributes for Insights events:</p>
39
- * <ul>
40
- * <li>
41
- * <p>Event ID</p>
42
- * </li>
43
- * <li>
44
- * <p>Event name</p>
45
- * </li>
46
- * <li>
47
- * <p>Event source</p>
48
- * </li>
49
- * </ul>
50
- * <p>All attributes are optional. The default number of results returned is 50, with a
51
- * maximum of 50 possible. The response includes a token that you can use to get the next page
52
- * of results.</p>
53
- * <important>
54
- * <p>The rate of lookup requests is limited to two per second, per account, per region. If this
55
- * limit is exceeded, a throttling error occurs.</p>
56
- * </important>
57
- * @example
58
- * Use a bare-bones client and the command you need to make an API call.
59
- * ```javascript
60
- * import { CloudTrailClient, LookupEventsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
61
- * // const { CloudTrailClient, LookupEventsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
62
- * const client = new CloudTrailClient(config);
63
- * const command = new LookupEventsCommand(input);
64
- * const response = await client.send(command);
65
- * ```
66
- *
67
- * @see {@link LookupEventsCommandInput} for command's `input` shape.
68
- * @see {@link LookupEventsCommandOutput} for command's `response` shape.
69
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
70
- *
71
- */
72
8
  class LookupEventsCommand extends smithy_client_1.Command {
73
- // Start section: command_properties
74
- // End section: command_properties
75
9
  constructor(input) {
76
- // Start section: command_constructor
77
10
  super();
78
11
  this.input = input;
79
- // End section: command_constructor
80
12
  }
81
- /**
82
- * @internal
83
- */
84
13
  resolveMiddleware(clientStack, configuration, options) {
85
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
86
15
  const stack = clientStack.concat(this.middlewareStack);