@aws-sdk/client-cloudtrail-data 3.1136.0 → 3.1138.0

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.
package/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1135.0";
72
+ var version = "3.1137.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -244,10 +244,10 @@ const _m = "message";
244
244
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudtraildata";
245
245
  const _su = "successful";
246
246
  const n0 = "com.amazonaws.cloudtraildata";
247
- const _s_registry = TypeRegistry.for(_s);
247
+ const _s_registry = new TypeRegistry(_s);
248
248
  var CloudTrailDataServiceException$ = [-3, _s, "CloudTrailDataServiceException", 0, [], []];
249
249
  _s_registry.registerError(CloudTrailDataServiceException$, CloudTrailDataServiceException);
250
- const n0_registry = TypeRegistry.for(n0);
250
+ const n0_registry = new TypeRegistry(n0);
251
251
  var ChannelInsufficientPermission$ = [-3, n0, _CIP,
252
252
  { [_e]: _c },
253
253
  [_m],
@@ -34,10 +34,10 @@ const n0 = "com.amazonaws.cloudtraildata";
34
34
  import { TypeRegistry } from "@smithy/core/schema";
35
35
  import { CloudTrailDataServiceException } from "../models/CloudTrailDataServiceException";
36
36
  import { ChannelInsufficientPermission, ChannelNotFound, ChannelUnsupportedSchema, DuplicatedAuditEventId, InvalidChannelARN, UnsupportedOperationException, } from "../models/errors";
37
- const _s_registry = TypeRegistry.for(_s);
37
+ const _s_registry = new TypeRegistry(_s);
38
38
  export var CloudTrailDataServiceException$ = [-3, _s, "CloudTrailDataServiceException", 0, [], []];
39
39
  _s_registry.registerError(CloudTrailDataServiceException$, CloudTrailDataServiceException);
40
- const n0_registry = TypeRegistry.for(n0);
40
+ const n0_registry = new TypeRegistry(n0);
41
41
  export var ChannelInsufficientPermission$ = [-3, n0, _CIP,
42
42
  { [_e]: _c },
43
43
  [_m],
@@ -1,13 +1,19 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
2
2
  import { CloudTrailDataClient } from "./CloudTrailDataClient";
3
3
  import { type PutAuditEventsCommandInput, type PutAuditEventsCommandOutput } from "./commands/PutAuditEventsCommand";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface CloudTrailDataRequestOptions extends __HttpHandlerOptions {
8
+ metricsRecorder?: __MetricsRecorder<unknown>;
9
+ }
4
10
  export interface CloudTrailData {
5
11
  /**
6
12
  * @see {@link PutAuditEventsCommand}
7
13
  */
8
- putAuditEvents(args: PutAuditEventsCommandInput, options?: __HttpHandlerOptions): Promise<PutAuditEventsCommandOutput>;
14
+ putAuditEvents(args: PutAuditEventsCommandInput, options?: CloudTrailDataRequestOptions): Promise<PutAuditEventsCommandOutput>;
9
15
  putAuditEvents(args: PutAuditEventsCommandInput, cb: (err: any, data?: PutAuditEventsCommandOutput) => void): void;
10
- putAuditEvents(args: PutAuditEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutAuditEventsCommandOutput) => void): void;
16
+ putAuditEvents(args: PutAuditEventsCommandInput, options: CloudTrailDataRequestOptions, cb: (err: any, data?: PutAuditEventsCommandOutput) => void): void;
11
17
  }
12
18
  /**
13
19
  * <p>The CloudTrail Data Service lets you ingest events into CloudTrail from any source in your
@@ -1,13 +1,19 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
4
+ } from "@smithy/types";
2
5
  import { CloudTrailDataClient } from "./CloudTrailDataClient";
3
6
  import {
4
7
  PutAuditEventsCommandInput,
5
8
  PutAuditEventsCommandOutput,
6
9
  } from "./commands/PutAuditEventsCommand";
10
+ export interface CloudTrailDataRequestOptions extends __HttpHandlerOptions {
11
+ metricsRecorder?: __MetricsRecorder<unknown>;
12
+ }
7
13
  export interface CloudTrailData {
8
14
  putAuditEvents(
9
15
  args: PutAuditEventsCommandInput,
10
- options?: __HttpHandlerOptions,
16
+ options?: CloudTrailDataRequestOptions,
11
17
  ): Promise<PutAuditEventsCommandOutput>;
12
18
  putAuditEvents(
13
19
  args: PutAuditEventsCommandInput,
@@ -15,7 +21,7 @@ export interface CloudTrailData {
15
21
  ): void;
16
22
  putAuditEvents(
17
23
  args: PutAuditEventsCommandInput,
18
- options: __HttpHandlerOptions,
24
+ options: CloudTrailDataRequestOptions,
19
25
  cb: (err: any, data?: PutAuditEventsCommandOutput) => void,
20
26
  ): void;
21
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudtrail-data",
3
- "version": "3.1136.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Cloudtrail Data Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudtrail-data",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {