@aws-sdk/client-cloudtrail-data 3.934.0 → 3.936.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-es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "./CloudTrailDataClient";
2
2
  export * from "./CloudTrailData";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/errors";
5
5
  export { CloudTrailDataServiceException } from "./models/CloudTrailDataServiceException";
@@ -0,0 +1,73 @@
1
+ import { CloudTrailDataServiceException as __BaseException } from "./CloudTrailDataServiceException";
2
+ export class ChannelInsufficientPermission extends __BaseException {
3
+ name = "ChannelInsufficientPermission";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "ChannelInsufficientPermission",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, ChannelInsufficientPermission.prototype);
12
+ }
13
+ }
14
+ export class ChannelNotFound extends __BaseException {
15
+ name = "ChannelNotFound";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "ChannelNotFound",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, ChannelNotFound.prototype);
24
+ }
25
+ }
26
+ export class ChannelUnsupportedSchema extends __BaseException {
27
+ name = "ChannelUnsupportedSchema";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "ChannelUnsupportedSchema",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, ChannelUnsupportedSchema.prototype);
36
+ }
37
+ }
38
+ export class DuplicatedAuditEventId extends __BaseException {
39
+ name = "DuplicatedAuditEventId";
40
+ $fault = "client";
41
+ constructor(opts) {
42
+ super({
43
+ name: "DuplicatedAuditEventId",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, DuplicatedAuditEventId.prototype);
48
+ }
49
+ }
50
+ export class InvalidChannelARN extends __BaseException {
51
+ name = "InvalidChannelARN";
52
+ $fault = "client";
53
+ constructor(opts) {
54
+ super({
55
+ name: "InvalidChannelARN",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, InvalidChannelARN.prototype);
60
+ }
61
+ }
62
+ export class UnsupportedOperationException extends __BaseException {
63
+ name = "UnsupportedOperationException";
64
+ $fault = "client";
65
+ constructor(opts) {
66
+ super({
67
+ name: "UnsupportedOperationException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
72
+ }
73
+ }
@@ -1,73 +1 @@
1
- import { CloudTrailDataServiceException as __BaseException } from "./CloudTrailDataServiceException";
2
- export class ChannelInsufficientPermission extends __BaseException {
3
- name = "ChannelInsufficientPermission";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "ChannelInsufficientPermission",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, ChannelInsufficientPermission.prototype);
12
- }
13
- }
14
- export class ChannelNotFound extends __BaseException {
15
- name = "ChannelNotFound";
16
- $fault = "client";
17
- constructor(opts) {
18
- super({
19
- name: "ChannelNotFound",
20
- $fault: "client",
21
- ...opts,
22
- });
23
- Object.setPrototypeOf(this, ChannelNotFound.prototype);
24
- }
25
- }
26
- export class ChannelUnsupportedSchema extends __BaseException {
27
- name = "ChannelUnsupportedSchema";
28
- $fault = "client";
29
- constructor(opts) {
30
- super({
31
- name: "ChannelUnsupportedSchema",
32
- $fault: "client",
33
- ...opts,
34
- });
35
- Object.setPrototypeOf(this, ChannelUnsupportedSchema.prototype);
36
- }
37
- }
38
- export class DuplicatedAuditEventId extends __BaseException {
39
- name = "DuplicatedAuditEventId";
40
- $fault = "client";
41
- constructor(opts) {
42
- super({
43
- name: "DuplicatedAuditEventId",
44
- $fault: "client",
45
- ...opts,
46
- });
47
- Object.setPrototypeOf(this, DuplicatedAuditEventId.prototype);
48
- }
49
- }
50
- export class InvalidChannelARN extends __BaseException {
51
- name = "InvalidChannelARN";
52
- $fault = "client";
53
- constructor(opts) {
54
- super({
55
- name: "InvalidChannelARN",
56
- $fault: "client",
57
- ...opts,
58
- });
59
- Object.setPrototypeOf(this, InvalidChannelARN.prototype);
60
- }
61
- }
62
- export class UnsupportedOperationException extends __BaseException {
63
- name = "UnsupportedOperationException";
64
- $fault = "client";
65
- constructor(opts) {
66
- super({
67
- name: "UnsupportedOperationException",
68
- $fault: "client",
69
- ...opts,
70
- });
71
- Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
72
- }
73
- }
1
+ export {};
@@ -33,7 +33,7 @@ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.cloudtraildata";
33
33
  const n0 = "com.amazonaws.cloudtraildata";
34
34
  import { TypeRegistry } from "@smithy/core/schema";
35
35
  import { CloudTrailDataServiceException as __CloudTrailDataServiceException } from "../models/CloudTrailDataServiceException";
36
- import { ChannelInsufficientPermission as __ChannelInsufficientPermission, ChannelNotFound as __ChannelNotFound, ChannelUnsupportedSchema as __ChannelUnsupportedSchema, DuplicatedAuditEventId as __DuplicatedAuditEventId, InvalidChannelARN as __InvalidChannelARN, UnsupportedOperationException as __UnsupportedOperationException, } from "../models/index";
36
+ import { ChannelInsufficientPermission as __ChannelInsufficientPermission, ChannelNotFound as __ChannelNotFound, ChannelUnsupportedSchema as __ChannelUnsupportedSchema, DuplicatedAuditEventId as __DuplicatedAuditEventId, InvalidChannelARN as __InvalidChannelARN, UnsupportedOperationException as __UnsupportedOperationException, } from "../models/errors";
37
37
  export var AuditEvent = [3, n0, _AE, 0, [_i, _eD, _eDC], [0, 0, 0]];
38
38
  export var AuditEventResultEntry = [3, n0, _AERE, 0, [_i, _eID], [0, 0]];
39
39
  export var ChannelInsufficientPermission = [
@@ -14,5 +14,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
14
14
  export type { RuntimeExtension } from "./runtimeExtensions";
15
15
  export type { CloudTrailDataExtensionConfiguration } from "./extensionConfiguration";
16
16
  export * from "./commands";
17
- export * from "./models";
17
+ export * from "./models/errors";
18
+ export type * from "./models/models_0";
18
19
  export { CloudTrailDataServiceException } from "./models/CloudTrailDataServiceException";
@@ -0,0 +1,75 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { CloudTrailDataServiceException as __BaseException } from "./CloudTrailDataServiceException";
3
+ /**
4
+ * <p>The caller's account ID must be the same as the channel owner's account ID.</p>
5
+ * @public
6
+ */
7
+ export declare class ChannelInsufficientPermission extends __BaseException {
8
+ readonly name: "ChannelInsufficientPermission";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<ChannelInsufficientPermission, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>The channel could not be found.</p>
17
+ * @public
18
+ */
19
+ export declare class ChannelNotFound extends __BaseException {
20
+ readonly name: "ChannelNotFound";
21
+ readonly $fault: "client";
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<ChannelNotFound, __BaseException>);
26
+ }
27
+ /**
28
+ * <p>The schema type of the event is not supported.</p>
29
+ * @public
30
+ */
31
+ export declare class ChannelUnsupportedSchema extends __BaseException {
32
+ readonly name: "ChannelUnsupportedSchema";
33
+ readonly $fault: "client";
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<ChannelUnsupportedSchema, __BaseException>);
38
+ }
39
+ /**
40
+ * <p>Two or more entries in the request have the same event ID.</p>
41
+ * @public
42
+ */
43
+ export declare class DuplicatedAuditEventId extends __BaseException {
44
+ readonly name: "DuplicatedAuditEventId";
45
+ readonly $fault: "client";
46
+ /**
47
+ * @internal
48
+ */
49
+ constructor(opts: __ExceptionOptionType<DuplicatedAuditEventId, __BaseException>);
50
+ }
51
+ /**
52
+ * <p>The specified channel ARN is not a valid
53
+ * channel ARN.</p>
54
+ * @public
55
+ */
56
+ export declare class InvalidChannelARN extends __BaseException {
57
+ readonly name: "InvalidChannelARN";
58
+ readonly $fault: "client";
59
+ /**
60
+ * @internal
61
+ */
62
+ constructor(opts: __ExceptionOptionType<InvalidChannelARN, __BaseException>);
63
+ }
64
+ /**
65
+ * <p>The operation requested is not supported in this region or account.</p>
66
+ * @public
67
+ */
68
+ export declare class UnsupportedOperationException extends __BaseException {
69
+ readonly name: "UnsupportedOperationException";
70
+ readonly $fault: "client";
71
+ /**
72
+ * @internal
73
+ */
74
+ constructor(opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>);
75
+ }
@@ -1,5 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { CloudTrailDataServiceException as __BaseException } from "./CloudTrailDataServiceException";
3
1
  /**
4
2
  * <p>An event from a source outside of Amazon Web Services that you want CloudTrail
5
3
  * to log.</p>
@@ -43,67 +41,6 @@ export interface AuditEventResultEntry {
43
41
  */
44
42
  eventID: string | undefined;
45
43
  }
46
- /**
47
- * <p>The caller's account ID must be the same as the channel owner's account ID.</p>
48
- * @public
49
- */
50
- export declare class ChannelInsufficientPermission extends __BaseException {
51
- readonly name: "ChannelInsufficientPermission";
52
- readonly $fault: "client";
53
- /**
54
- * @internal
55
- */
56
- constructor(opts: __ExceptionOptionType<ChannelInsufficientPermission, __BaseException>);
57
- }
58
- /**
59
- * <p>The channel could not be found.</p>
60
- * @public
61
- */
62
- export declare class ChannelNotFound extends __BaseException {
63
- readonly name: "ChannelNotFound";
64
- readonly $fault: "client";
65
- /**
66
- * @internal
67
- */
68
- constructor(opts: __ExceptionOptionType<ChannelNotFound, __BaseException>);
69
- }
70
- /**
71
- * <p>The schema type of the event is not supported.</p>
72
- * @public
73
- */
74
- export declare class ChannelUnsupportedSchema extends __BaseException {
75
- readonly name: "ChannelUnsupportedSchema";
76
- readonly $fault: "client";
77
- /**
78
- * @internal
79
- */
80
- constructor(opts: __ExceptionOptionType<ChannelUnsupportedSchema, __BaseException>);
81
- }
82
- /**
83
- * <p>Two or more entries in the request have the same event ID.</p>
84
- * @public
85
- */
86
- export declare class DuplicatedAuditEventId extends __BaseException {
87
- readonly name: "DuplicatedAuditEventId";
88
- readonly $fault: "client";
89
- /**
90
- * @internal
91
- */
92
- constructor(opts: __ExceptionOptionType<DuplicatedAuditEventId, __BaseException>);
93
- }
94
- /**
95
- * <p>The specified channel ARN is not a valid
96
- * channel ARN.</p>
97
- * @public
98
- */
99
- export declare class InvalidChannelARN extends __BaseException {
100
- readonly name: "InvalidChannelARN";
101
- readonly $fault: "client";
102
- /**
103
- * @internal
104
- */
105
- constructor(opts: __ExceptionOptionType<InvalidChannelARN, __BaseException>);
106
- }
107
44
  /**
108
45
  * @public
109
46
  */
@@ -168,15 +105,3 @@ export interface PutAuditEventsResponse {
168
105
  */
169
106
  failed: ResultErrorEntry[] | undefined;
170
107
  }
171
- /**
172
- * <p>The operation requested is not supported in this region or account.</p>
173
- * @public
174
- */
175
- export declare class UnsupportedOperationException extends __BaseException {
176
- readonly name: "UnsupportedOperationException";
177
- readonly $fault: "client";
178
- /**
179
- * @internal
180
- */
181
- constructor(opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>);
182
- }
@@ -4,5 +4,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { CloudTrailDataExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/errors";
8
+ export * from "./models/models_0";
8
9
  export { CloudTrailDataServiceException } from "./models/CloudTrailDataServiceException";
@@ -0,0 +1,40 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { CloudTrailDataServiceException as __BaseException } from "./CloudTrailDataServiceException";
3
+ export declare class ChannelInsufficientPermission extends __BaseException {
4
+ readonly name: "ChannelInsufficientPermission";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<ChannelInsufficientPermission, __BaseException>
8
+ );
9
+ }
10
+ export declare class ChannelNotFound extends __BaseException {
11
+ readonly name: "ChannelNotFound";
12
+ readonly $fault: "client";
13
+ constructor(opts: __ExceptionOptionType<ChannelNotFound, __BaseException>);
14
+ }
15
+ export declare class ChannelUnsupportedSchema extends __BaseException {
16
+ readonly name: "ChannelUnsupportedSchema";
17
+ readonly $fault: "client";
18
+ constructor(
19
+ opts: __ExceptionOptionType<ChannelUnsupportedSchema, __BaseException>
20
+ );
21
+ }
22
+ export declare class DuplicatedAuditEventId extends __BaseException {
23
+ readonly name: "DuplicatedAuditEventId";
24
+ readonly $fault: "client";
25
+ constructor(
26
+ opts: __ExceptionOptionType<DuplicatedAuditEventId, __BaseException>
27
+ );
28
+ }
29
+ export declare class InvalidChannelARN extends __BaseException {
30
+ readonly name: "InvalidChannelARN";
31
+ readonly $fault: "client";
32
+ constructor(opts: __ExceptionOptionType<InvalidChannelARN, __BaseException>);
33
+ }
34
+ export declare class UnsupportedOperationException extends __BaseException {
35
+ readonly name: "UnsupportedOperationException";
36
+ readonly $fault: "client";
37
+ constructor(
38
+ opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>
39
+ );
40
+ }
@@ -1,5 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { CloudTrailDataServiceException as __BaseException } from "./CloudTrailDataServiceException";
3
1
  export interface AuditEvent {
4
2
  id: string | undefined;
5
3
  eventData: string | undefined;
@@ -9,37 +7,6 @@ export interface AuditEventResultEntry {
9
7
  id: string | undefined;
10
8
  eventID: string | undefined;
11
9
  }
12
- export declare class ChannelInsufficientPermission extends __BaseException {
13
- readonly name: "ChannelInsufficientPermission";
14
- readonly $fault: "client";
15
- constructor(
16
- opts: __ExceptionOptionType<ChannelInsufficientPermission, __BaseException>
17
- );
18
- }
19
- export declare class ChannelNotFound extends __BaseException {
20
- readonly name: "ChannelNotFound";
21
- readonly $fault: "client";
22
- constructor(opts: __ExceptionOptionType<ChannelNotFound, __BaseException>);
23
- }
24
- export declare class ChannelUnsupportedSchema extends __BaseException {
25
- readonly name: "ChannelUnsupportedSchema";
26
- readonly $fault: "client";
27
- constructor(
28
- opts: __ExceptionOptionType<ChannelUnsupportedSchema, __BaseException>
29
- );
30
- }
31
- export declare class DuplicatedAuditEventId extends __BaseException {
32
- readonly name: "DuplicatedAuditEventId";
33
- readonly $fault: "client";
34
- constructor(
35
- opts: __ExceptionOptionType<DuplicatedAuditEventId, __BaseException>
36
- );
37
- }
38
- export declare class InvalidChannelARN extends __BaseException {
39
- readonly name: "InvalidChannelARN";
40
- readonly $fault: "client";
41
- constructor(opts: __ExceptionOptionType<InvalidChannelARN, __BaseException>);
42
- }
43
10
  export interface PutAuditEventsRequest {
44
11
  auditEvents: AuditEvent[] | undefined;
45
12
  channelArn: string | undefined;
@@ -54,10 +21,3 @@ export interface PutAuditEventsResponse {
54
21
  successful: AuditEventResultEntry[] | undefined;
55
22
  failed: ResultErrorEntry[] | undefined;
56
23
  }
57
- export declare class UnsupportedOperationException extends __BaseException {
58
- readonly name: "UnsupportedOperationException";
59
- readonly $fault: "client";
60
- constructor(
61
- opts: __ExceptionOptionType<UnsupportedOperationException, __BaseException>
62
- );
63
- }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudtrail-data",
3
3
  "description": "AWS SDK for JavaScript Cloudtrail Data Client for Node.js, Browser and React Native",
4
- "version": "3.934.0",
4
+ "version": "3.936.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudtrail-data",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
25
- "@aws-sdk/middleware-host-header": "3.930.0",
26
- "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
29
- "@aws-sdk/region-config-resolver": "3.930.0",
30
- "@aws-sdk/types": "3.930.0",
31
- "@aws-sdk/util-endpoints": "3.930.0",
32
- "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";