@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
@@ -27,139 +27,59 @@ import { UpdateTrailCommandInput, UpdateTrailCommandOutput } from "./commands/Up
27
27
  export declare type ServiceInputTypes = AddTagsCommandInput | CreateTrailCommandInput | DeleteTrailCommandInput | DescribeTrailsCommandInput | GetEventSelectorsCommandInput | GetInsightSelectorsCommandInput | GetTrailCommandInput | GetTrailStatusCommandInput | ListPublicKeysCommandInput | ListTagsCommandInput | ListTrailsCommandInput | LookupEventsCommandInput | PutEventSelectorsCommandInput | PutInsightSelectorsCommandInput | RemoveTagsCommandInput | StartLoggingCommandInput | StopLoggingCommandInput | UpdateTrailCommandInput;
28
28
  export declare type ServiceOutputTypes = AddTagsCommandOutput | CreateTrailCommandOutput | DeleteTrailCommandOutput | DescribeTrailsCommandOutput | GetEventSelectorsCommandOutput | GetInsightSelectorsCommandOutput | GetTrailCommandOutput | GetTrailStatusCommandOutput | ListPublicKeysCommandOutput | ListTagsCommandOutput | ListTrailsCommandOutput | LookupEventsCommandOutput | PutEventSelectorsCommandOutput | PutInsightSelectorsCommandOutput | RemoveTagsCommandOutput | StartLoggingCommandOutput | StopLoggingCommandOutput | UpdateTrailCommandOutput;
29
29
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
30
- /**
31
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
32
- */
30
+
33
31
  requestHandler?: __HttpHandler;
34
- /**
35
- * A constructor for a class implementing the {@link __Hash} interface
36
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
37
- * @internal
38
- */
32
+
39
33
  sha256?: __HashConstructor;
40
- /**
41
- * The function that will be used to convert strings into HTTP endpoints.
42
- * @internal
43
- */
34
+
44
35
  urlParser?: __UrlParser;
45
- /**
46
- * A function that can calculate the length of a request body.
47
- * @internal
48
- */
36
+
49
37
  bodyLengthChecker?: (body: any) => number | undefined;
50
- /**
51
- * A function that converts a stream into an array of bytes.
52
- * @internal
53
- */
38
+
54
39
  streamCollector?: __StreamCollector;
55
- /**
56
- * The function that will be used to convert a base64-encoded string to a byte array.
57
- * @internal
58
- */
40
+
59
41
  base64Decoder?: __Decoder;
60
- /**
61
- * The function that will be used to convert binary data to a base64-encoded string.
62
- * @internal
63
- */
42
+
64
43
  base64Encoder?: __Encoder;
65
- /**
66
- * The function that will be used to convert a UTF8-encoded string to a byte array.
67
- * @internal
68
- */
44
+
69
45
  utf8Decoder?: __Decoder;
70
- /**
71
- * The function that will be used to convert binary data to a UTF-8 encoded string.
72
- * @internal
73
- */
46
+
74
47
  utf8Encoder?: __Encoder;
75
- /**
76
- * The runtime environment.
77
- * @internal
78
- */
48
+
79
49
  runtime?: string;
80
- /**
81
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
82
- * trait of an operation.
83
- */
50
+
84
51
  disableHostPrefix?: boolean;
85
- /**
86
- * Value for how many times a request will be made at most in case of retry.
87
- */
52
+
88
53
  maxAttempts?: number | __Provider<number>;
89
- /**
90
- * Specifies which retry algorithm to use.
91
- */
54
+
92
55
  retryMode?: string | __Provider<string>;
93
- /**
94
- * Optional logger for logging debug/info/warn/error.
95
- */
56
+
96
57
  logger?: __Logger;
97
- /**
98
- * Unique service identifier.
99
- * @internal
100
- */
58
+
101
59
  serviceId?: string;
102
- /**
103
- * The AWS region to which this client will send requests
104
- */
60
+
105
61
  region?: string | __Provider<string>;
106
- /**
107
- * Default credentials provider; Not available in browser runtime.
108
- * @internal
109
- */
62
+
110
63
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
111
- /**
112
- * Fetch related hostname, signing name or signing region with given region.
113
- * @internal
114
- */
64
+
115
65
  regionInfoProvider?: RegionInfoProvider;
116
- /**
117
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
118
- * @internal
119
- */
66
+
120
67
  defaultUserAgentProvider?: Provider<__UserAgent>;
121
68
  }
122
69
  declare type CloudTrailClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
123
- /**
124
- * The configuration interface of CloudTrailClient class constructor that set the region, credentials and other options.
125
- */
70
+
126
71
  export interface CloudTrailClientConfig extends CloudTrailClientConfigType {
127
72
  }
128
73
  declare type CloudTrailClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
129
- /**
130
- * The resolved configuration interface of CloudTrailClient class. This is resolved and normalized from the {@link CloudTrailClientConfig | constructor configuration interface}.
131
- */
74
+
132
75
  export interface CloudTrailClientResolvedConfig extends CloudTrailClientResolvedConfigType {
133
76
  }
134
- /**
135
- * <fullname>CloudTrail</fullname>
136
- * <p>This is the CloudTrail API Reference. It provides descriptions of actions, data types, common parameters, and common errors for CloudTrail.</p>
137
- * <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.
138
- * 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>
139
- *
140
- * <note>
141
- * <p>As an alternative to the API,
142
- * you can use one of the Amazon Web Services SDKs, which consist of libraries and sample code for various
143
- * programming languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs
144
- * provide programmatic access to CloudTrail. For example, the SDKs
145
- * handle cryptographically signing requests, managing errors, and retrying requests
146
- * automatically. For more information about the Amazon Web Services SDKs, including how to download and install
147
- * them, see <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
148
- * </note>
149
- * <p>See the <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html">CloudTrail User
150
- * Guide</a> for information about the data that is included with each Amazon Web Services API call listed in the log files.</p>
151
- */
77
+
152
78
  export declare class CloudTrailClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, CloudTrailClientResolvedConfig> {
153
- /**
154
- * The resolved configuration of CloudTrailClient class. This is resolved and normalized from the {@link CloudTrailClientConfig | constructor configuration interface}.
155
- */
79
+
156
80
  readonly config: CloudTrailClientResolvedConfig;
157
81
  constructor(configuration: CloudTrailClientConfig);
158
- /**
159
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
160
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
161
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
162
- */
82
+
163
83
  destroy(): void;
164
84
  }
165
85
  export {};
@@ -6,32 +6,11 @@ export interface AddTagsCommandInput extends AddTagsRequest {
6
6
  }
7
7
  export interface AddTagsCommandOutput extends AddTagsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <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.
11
- * Tag key names must be unique for a trail; you cannot have two keys with the same name but different values.
12
- * If you specify a key without a value, the tag will be created with the specified key and a value of null.
13
- * 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>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { CloudTrailClient, AddTagsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
18
- * // const { CloudTrailClient, AddTagsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
19
- * const client = new CloudTrailClient(config);
20
- * const command = new AddTagsCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link AddTagsCommandInput} for command's `input` shape.
25
- * @see {@link AddTagsCommandOutput} for command's `response` shape.
26
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
9
+
29
10
  export declare class AddTagsCommand extends $Command<AddTagsCommandInput, AddTagsCommandOutput, CloudTrailClientResolvedConfig> {
30
11
  readonly input: AddTagsCommandInput;
31
12
  constructor(input: AddTagsCommandInput);
32
- /**
33
- * @internal
34
- */
13
+
35
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AddTagsCommandInput, AddTagsCommandOutput>;
36
15
  private serialize;
37
16
  private deserialize;
@@ -6,30 +6,11 @@ export interface CreateTrailCommandInput extends CreateTrailRequest {
6
6
  }
7
7
  export interface CreateTrailCommandOutput extends CreateTrailResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Creates a trail that specifies the settings for delivery of log data to an Amazon S3 bucket.
11
- * </p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CloudTrailClient, CreateTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
16
- * // const { CloudTrailClient, CreateTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
17
- * const client = new CloudTrailClient(config);
18
- * const command = new CreateTrailCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link CreateTrailCommandInput} for command's `input` shape.
23
- * @see {@link CreateTrailCommandOutput} for command's `response` shape.
24
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
9
+
27
10
  export declare class CreateTrailCommand extends $Command<CreateTrailCommandInput, CreateTrailCommandOutput, CloudTrailClientResolvedConfig> {
28
11
  readonly input: CreateTrailCommandInput;
29
12
  constructor(input: CreateTrailCommandInput);
30
- /**
31
- * @internal
32
- */
13
+
33
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateTrailCommandInput, CreateTrailCommandOutput>;
34
15
  private serialize;
35
16
  private deserialize;
@@ -6,31 +6,11 @@ export interface DeleteTrailCommandInput extends DeleteTrailRequest {
6
6
  }
7
7
  export interface DeleteTrailCommandOutput extends DeleteTrailResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Deletes a trail. This operation must be called from the region in which the trail was
11
- * created. <code>DeleteTrail</code> cannot be called on the shadow trails (replicated trails
12
- * in other regions) of a trail that is enabled in all regions.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CloudTrailClient, DeleteTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
17
- * // const { CloudTrailClient, DeleteTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
18
- * const client = new CloudTrailClient(config);
19
- * const command = new DeleteTrailCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link DeleteTrailCommandInput} for command's `input` shape.
24
- * @see {@link DeleteTrailCommandOutput} for command's `response` shape.
25
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
9
+
28
10
  export declare class DeleteTrailCommand extends $Command<DeleteTrailCommandInput, DeleteTrailCommandOutput, CloudTrailClientResolvedConfig> {
29
11
  readonly input: DeleteTrailCommandInput;
30
12
  constructor(input: DeleteTrailCommandInput);
31
- /**
32
- * @internal
33
- */
13
+
34
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteTrailCommandInput, DeleteTrailCommandOutput>;
35
15
  private serialize;
36
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface DescribeTrailsCommandInput extends DescribeTrailsRequest {
6
6
  }
7
7
  export interface DescribeTrailsCommandOutput extends DescribeTrailsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Retrieves settings for one or more trails associated with the current region for your account.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudTrailClient, DescribeTrailsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, DescribeTrailsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new DescribeTrailsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DescribeTrailsCommandInput} for command's `input` shape.
22
- * @see {@link DescribeTrailsCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class DescribeTrailsCommand extends $Command<DescribeTrailsCommandInput, DescribeTrailsCommandOutput, CloudTrailClientResolvedConfig> {
27
11
  readonly input: DescribeTrailsCommandInput;
28
12
  constructor(input: DescribeTrailsCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeTrailsCommandInput, DescribeTrailsCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -6,45 +6,11 @@ export interface GetEventSelectorsCommandInput extends GetEventSelectorsRequest
6
6
  }
7
7
  export interface GetEventSelectorsCommandOutput extends GetEventSelectorsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Describes the settings for the event selectors that you configured for your trail.
11
- * The information returned for your event selectors includes the following:</p>
12
- * <ul>
13
- * <li>
14
- * <p>If your event selector includes read-only events, write-only events, or
15
- * all events. This applies to both management events and data events.</p>
16
- * </li>
17
- * <li>
18
- * <p>If your event selector includes management events.</p>
19
- * </li>
20
- * <li>
21
- * <p>If your event selector includes data events, the resources on which you are logging data
22
- * events.</p>
23
- * </li>
24
- * </ul>
25
- * <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
26
- * </a> in the <i>CloudTrail User Guide</i>.</p>
27
- * @example
28
- * Use a bare-bones client and the command you need to make an API call.
29
- * ```javascript
30
- * import { CloudTrailClient, GetEventSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
31
- * // const { CloudTrailClient, GetEventSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
32
- * const client = new CloudTrailClient(config);
33
- * const command = new GetEventSelectorsCommand(input);
34
- * const response = await client.send(command);
35
- * ```
36
- *
37
- * @see {@link GetEventSelectorsCommandInput} for command's `input` shape.
38
- * @see {@link GetEventSelectorsCommandOutput} for command's `response` shape.
39
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
40
- *
41
- */
9
+
42
10
  export declare class GetEventSelectorsCommand extends $Command<GetEventSelectorsCommandInput, GetEventSelectorsCommandOutput, CloudTrailClientResolvedConfig> {
43
11
  readonly input: GetEventSelectorsCommandInput;
44
12
  constructor(input: GetEventSelectorsCommandInput);
45
- /**
46
- * @internal
47
- */
13
+
48
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetEventSelectorsCommandInput, GetEventSelectorsCommandOutput>;
49
15
  private serialize;
50
16
  private deserialize;
@@ -6,35 +6,11 @@ export interface GetInsightSelectorsCommandInput extends GetInsightSelectorsRequ
6
6
  }
7
7
  export interface GetInsightSelectorsCommandOutput extends GetInsightSelectorsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Describes the settings for the Insights event selectors that you configured for your trail. <code>GetInsightSelectors</code> shows
11
- * if CloudTrail Insights event logging is enabled on the trail, and if it is, which insight types are enabled.
12
- * If you run <code>GetInsightSelectors</code> on a trail that does not have Insights events enabled, the operation throws the exception
13
- * <code>InsightNotEnabledException</code>
14
- * </p>
15
- * <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
16
- * </a> in the <i>CloudTrail User Guide</i>.</p>
17
- * @example
18
- * Use a bare-bones client and the command you need to make an API call.
19
- * ```javascript
20
- * import { CloudTrailClient, GetInsightSelectorsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
21
- * // const { CloudTrailClient, GetInsightSelectorsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
22
- * const client = new CloudTrailClient(config);
23
- * const command = new GetInsightSelectorsCommand(input);
24
- * const response = await client.send(command);
25
- * ```
26
- *
27
- * @see {@link GetInsightSelectorsCommandInput} for command's `input` shape.
28
- * @see {@link GetInsightSelectorsCommandOutput} for command's `response` shape.
29
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
30
- *
31
- */
9
+
32
10
  export declare class GetInsightSelectorsCommand extends $Command<GetInsightSelectorsCommandInput, GetInsightSelectorsCommandOutput, CloudTrailClientResolvedConfig> {
33
11
  readonly input: GetInsightSelectorsCommandInput;
34
12
  constructor(input: GetInsightSelectorsCommandInput);
35
- /**
36
- * @internal
37
- */
13
+
38
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetInsightSelectorsCommandInput, GetInsightSelectorsCommandOutput>;
39
15
  private serialize;
40
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface GetTrailCommandInput extends GetTrailRequest {
6
6
  }
7
7
  export interface GetTrailCommandOutput extends GetTrailResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns settings information for a specified 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, GetTrailCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, GetTrailCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new GetTrailCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetTrailCommandInput} for command's `input` shape.
22
- * @see {@link GetTrailCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class GetTrailCommand extends $Command<GetTrailCommandInput, GetTrailCommandOutput, CloudTrailClientResolvedConfig> {
27
11
  readonly input: GetTrailCommandInput;
28
12
  constructor(input: GetTrailCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetTrailCommandInput, GetTrailCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface GetTrailStatusCommandInput extends GetTrailStatusRequest {
6
6
  }
7
7
  export interface GetTrailStatusCommandOutput extends GetTrailStatusResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <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>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudTrailClient, GetTrailStatusCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, GetTrailStatusCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new GetTrailStatusCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetTrailStatusCommandInput} for command's `input` shape.
22
- * @see {@link GetTrailStatusCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class GetTrailStatusCommand extends $Command<GetTrailStatusCommandInput, GetTrailStatusCommandOutput, CloudTrailClientResolvedConfig> {
27
11
  readonly input: GetTrailStatusCommandInput;
28
12
  constructor(input: GetTrailStatusCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetTrailStatusCommandInput, GetTrailStatusCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -6,34 +6,11 @@ export interface ListPublicKeysCommandInput extends ListPublicKeysRequest {
6
6
  }
7
7
  export interface ListPublicKeysCommandOutput extends ListPublicKeysResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <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>
11
- * <note>
12
- * <p>CloudTrail uses different private and public key pairs per region. Each digest file is signed with a private key
13
- * unique to its region. When you validate a digest file from a specific region, you must look in the same region for its
14
- * corresponding public key.</p>
15
- * </note>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { CloudTrailClient, ListPublicKeysCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
20
- * // const { CloudTrailClient, ListPublicKeysCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
21
- * const client = new CloudTrailClient(config);
22
- * const command = new ListPublicKeysCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link ListPublicKeysCommandInput} for command's `input` shape.
27
- * @see {@link ListPublicKeysCommandOutput} for command's `response` shape.
28
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
9
+
31
10
  export declare class ListPublicKeysCommand extends $Command<ListPublicKeysCommandInput, ListPublicKeysCommandOutput, CloudTrailClientResolvedConfig> {
32
11
  readonly input: ListPublicKeysCommandInput;
33
12
  constructor(input: ListPublicKeysCommandInput);
34
- /**
35
- * @internal
36
- */
13
+
37
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListPublicKeysCommandInput, ListPublicKeysCommandOutput>;
38
15
  private serialize;
39
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface ListTagsCommandInput extends ListTagsRequest {
6
6
  }
7
7
  export interface ListTagsCommandOutput extends ListTagsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Lists the tags for the trail in the current region.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudTrailClient, ListTagsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, ListTagsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new ListTagsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListTagsCommandInput} for command's `input` shape.
22
- * @see {@link ListTagsCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class ListTagsCommand extends $Command<ListTagsCommandInput, ListTagsCommandOutput, CloudTrailClientResolvedConfig> {
27
11
  readonly input: ListTagsCommandInput;
28
12
  constructor(input: ListTagsCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsCommandInput, ListTagsCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface ListTrailsCommandInput extends ListTrailsRequest {
6
6
  }
7
7
  export interface ListTrailsCommandOutput extends ListTrailsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Lists trails that are in the current account.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CloudTrailClient, ListTrailsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
15
- * // const { CloudTrailClient, ListTrailsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
16
- * const client = new CloudTrailClient(config);
17
- * const command = new ListTrailsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListTrailsCommandInput} for command's `input` shape.
22
- * @see {@link ListTrailsCommandOutput} for command's `response` shape.
23
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class ListTrailsCommand extends $Command<ListTrailsCommandInput, ListTrailsCommandOutput, CloudTrailClientResolvedConfig> {
27
11
  readonly input: ListTrailsCommandInput;
28
12
  constructor(input: ListTrailsCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTrailsCommandInput, ListTrailsCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -6,76 +6,11 @@ export interface LookupEventsCommandInput extends LookupEventsRequest {
6
6
  }
7
7
  export interface LookupEventsCommandOutput extends LookupEventsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Looks up <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html#cloudtrail-concepts-management-events">management events</a> or
11
- * <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.
12
- * You can look up events that occurred in a region within the last 90 days. Lookup supports the following attributes for management events:</p>
13
- * <ul>
14
- * <li>
15
- * <p>Amazon Web Services access key</p>
16
- * </li>
17
- * <li>
18
- * <p>Event ID</p>
19
- * </li>
20
- * <li>
21
- * <p>Event name</p>
22
- * </li>
23
- * <li>
24
- * <p>Event source</p>
25
- * </li>
26
- * <li>
27
- * <p>Read only</p>
28
- * </li>
29
- * <li>
30
- * <p>Resource name</p>
31
- * </li>
32
- * <li>
33
- * <p>Resource type</p>
34
- * </li>
35
- * <li>
36
- * <p>User name</p>
37
- * </li>
38
- * </ul>
39
- * <p>Lookup supports the following attributes for Insights events:</p>
40
- * <ul>
41
- * <li>
42
- * <p>Event ID</p>
43
- * </li>
44
- * <li>
45
- * <p>Event name</p>
46
- * </li>
47
- * <li>
48
- * <p>Event source</p>
49
- * </li>
50
- * </ul>
51
- * <p>All attributes are optional. The default number of results returned is 50, with a
52
- * maximum of 50 possible. The response includes a token that you can use to get the next page
53
- * of results.</p>
54
- * <important>
55
- * <p>The rate of lookup requests is limited to two per second, per account, per region. If this
56
- * limit is exceeded, a throttling error occurs.</p>
57
- * </important>
58
- * @example
59
- * Use a bare-bones client and the command you need to make an API call.
60
- * ```javascript
61
- * import { CloudTrailClient, LookupEventsCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import
62
- * // const { CloudTrailClient, LookupEventsCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import
63
- * const client = new CloudTrailClient(config);
64
- * const command = new LookupEventsCommand(input);
65
- * const response = await client.send(command);
66
- * ```
67
- *
68
- * @see {@link LookupEventsCommandInput} for command's `input` shape.
69
- * @see {@link LookupEventsCommandOutput} for command's `response` shape.
70
- * @see {@link CloudTrailClientResolvedConfig | config} for command's `input` shape.
71
- *
72
- */
9
+
73
10
  export declare class LookupEventsCommand extends $Command<LookupEventsCommandInput, LookupEventsCommandOutput, CloudTrailClientResolvedConfig> {
74
11
  readonly input: LookupEventsCommandInput;
75
12
  constructor(input: LookupEventsCommandInput);
76
- /**
77
- * @internal
78
- */
13
+
79
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudTrailClientResolvedConfig, options?: __HttpHandlerOptions): Handler<LookupEventsCommandInput, LookupEventsCommandOutput>;
80
15
  private serialize;
81
16
  private deserialize;