@aws-sdk/client-cloudtrail 3.52.0 → 3.54.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.
@@ -58,7 +58,7 @@ export declare class CloudTrail extends CloudTrailClient {
58
58
  addTags(args: AddTagsCommandInput, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
59
59
  addTags(args: AddTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddTagsCommandOutput) => void): void;
60
60
  /**
61
- * <p>Cancels a query if the query is not in a terminated state, such as <code>CANCELLED</code>, <code>FAILED</code> or <code>FINISHED</code>. You must specify an ARN value for <code>EventDataStore</code>.
61
+ * <p>Cancels a query if the query is not in a terminated state, such as <code>CANCELLED</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>FINISHED</code>. You must specify an ARN value for <code>EventDataStore</code>.
62
62
  * The ID of the query that you want to cancel is also required. When you run <code>CancelQuery</code>, the query status might
63
63
  * show as <code>CANCELLED</code> even if the operation is not yet finished.</p>
64
64
  */
@@ -192,7 +192,7 @@ export declare class CloudTrail extends CloudTrailClient {
192
192
  * <code>EventDataStore</code>. Optionally, to shorten the list of results, you can specify a time range,
193
193
  * formatted as timestamps, by adding <code>StartTime</code> and <code>EndTime</code> parameters, and a
194
194
  * <code>QueryStatus</code> value. Valid values for <code>QueryStatus</code> include <code>QUEUED</code>, <code>RUNNING</code>,
195
- * <code>FINISHED</code>, <code>FAILED</code>, or <code>CANCELLED</code>.</p>
195
+ * <code>FINISHED</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>CANCELLED</code>.</p>
196
196
  */
197
197
  listQueries(args: ListQueriesCommandInput, options?: __HttpHandlerOptions): Promise<ListQueriesCommandOutput>;
198
198
  listQueries(args: ListQueriesCommandInput, cb: (err: any, data?: ListQueriesCommandOutput) => void): void;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { AddTagsCommandInput, AddTagsCommandOutput } from "./commands/AddTagsCommand";
10
10
  import { CancelQueryCommandInput, CancelQueryCommandOutput } from "./commands/CancelQueryCommand";
11
11
  import { CreateEventDataStoreCommandInput, CreateEventDataStoreCommandOutput } from "./commands/CreateEventDataStoreCommand";
@@ -57,7 +57,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
57
57
  * A function that can calculate the length of a request body.
58
58
  * @internal
59
59
  */
60
- bodyLengthChecker?: (body: any) => number | undefined;
60
+ bodyLengthChecker?: __BodyLengthCalculator;
61
61
  /**
62
62
  * A function that converts a stream into an array of bytes.
63
63
  * @internal
@@ -7,7 +7,7 @@ export interface CancelQueryCommandInput extends CancelQueryRequest {
7
7
  export interface CancelQueryCommandOutput extends CancelQueryResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Cancels a query if the query is not in a terminated state, such as <code>CANCELLED</code>, <code>FAILED</code> or <code>FINISHED</code>. You must specify an ARN value for <code>EventDataStore</code>.
10
+ * <p>Cancels a query if the query is not in a terminated state, such as <code>CANCELLED</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>FINISHED</code>. You must specify an ARN value for <code>EventDataStore</code>.
11
11
  * The ID of the query that you want to cancel is also required. When you run <code>CancelQuery</code>, the query status might
12
12
  * show as <code>CANCELLED</code> even if the operation is not yet finished.</p>
13
13
  * @example
@@ -11,7 +11,7 @@ export interface ListQueriesCommandOutput extends ListQueriesResponse, __Metadat
11
11
  * <code>EventDataStore</code>. Optionally, to shorten the list of results, you can specify a time range,
12
12
  * formatted as timestamps, by adding <code>StartTime</code> and <code>EndTime</code> parameters, and a
13
13
  * <code>QueryStatus</code> value. Valid values for <code>QueryStatus</code> include <code>QUEUED</code>, <code>RUNNING</code>,
14
- * <code>FINISHED</code>, <code>FAILED</code>, or <code>CANCELLED</code>.</p>
14
+ * <code>FINISHED</code>, <code>FAILED</code>, <code>TIMED_OUT</code>, or <code>CANCELLED</code>.</p>
15
15
  * @example
16
16
  * Use a bare-bones client and the command you need to make an API call.
17
17
  * ```javascript
@@ -3,3 +3,4 @@ export * from "./CloudTrailClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { CloudTrailServiceException } from "./models/CloudTrailServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from CloudTrail service.
4
+ */
5
+ export declare class CloudTrailServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }