@aws-sdk/client-cloudtrail-data 3.986.0 → 3.988.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 +20 -210
- package/dist-cjs/models/CloudTrailDataServiceException.js +12 -0
- package/dist-cjs/models/errors.js +82 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +120 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +32 -26
- package/dist-types/schemas/schemas_0.d.ts +11 -4
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -4
- package/package.json +13 -13
package/dist-cjs/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
18
|
+
var schemas_0 = require('./schemas/schemas_0');
|
|
19
|
+
var errors = require('./models/errors');
|
|
20
|
+
var CloudTrailDataServiceException = require('./models/CloudTrailDataServiceException');
|
|
18
21
|
|
|
19
22
|
const resolveClientEndpointParameters = (options) => {
|
|
20
23
|
return Object.assign(options, {
|
|
@@ -110,195 +113,6 @@ class CloudTrailDataClient extends smithyClient.Client {
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
|
|
113
|
-
class CloudTrailDataServiceException extends smithyClient.ServiceException {
|
|
114
|
-
constructor(options) {
|
|
115
|
-
super(options);
|
|
116
|
-
Object.setPrototypeOf(this, CloudTrailDataServiceException.prototype);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
class ChannelInsufficientPermission extends CloudTrailDataServiceException {
|
|
121
|
-
name = "ChannelInsufficientPermission";
|
|
122
|
-
$fault = "client";
|
|
123
|
-
constructor(opts) {
|
|
124
|
-
super({
|
|
125
|
-
name: "ChannelInsufficientPermission",
|
|
126
|
-
$fault: "client",
|
|
127
|
-
...opts,
|
|
128
|
-
});
|
|
129
|
-
Object.setPrototypeOf(this, ChannelInsufficientPermission.prototype);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
class ChannelNotFound extends CloudTrailDataServiceException {
|
|
133
|
-
name = "ChannelNotFound";
|
|
134
|
-
$fault = "client";
|
|
135
|
-
constructor(opts) {
|
|
136
|
-
super({
|
|
137
|
-
name: "ChannelNotFound",
|
|
138
|
-
$fault: "client",
|
|
139
|
-
...opts,
|
|
140
|
-
});
|
|
141
|
-
Object.setPrototypeOf(this, ChannelNotFound.prototype);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
class ChannelUnsupportedSchema extends CloudTrailDataServiceException {
|
|
145
|
-
name = "ChannelUnsupportedSchema";
|
|
146
|
-
$fault = "client";
|
|
147
|
-
constructor(opts) {
|
|
148
|
-
super({
|
|
149
|
-
name: "ChannelUnsupportedSchema",
|
|
150
|
-
$fault: "client",
|
|
151
|
-
...opts,
|
|
152
|
-
});
|
|
153
|
-
Object.setPrototypeOf(this, ChannelUnsupportedSchema.prototype);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
class DuplicatedAuditEventId extends CloudTrailDataServiceException {
|
|
157
|
-
name = "DuplicatedAuditEventId";
|
|
158
|
-
$fault = "client";
|
|
159
|
-
constructor(opts) {
|
|
160
|
-
super({
|
|
161
|
-
name: "DuplicatedAuditEventId",
|
|
162
|
-
$fault: "client",
|
|
163
|
-
...opts,
|
|
164
|
-
});
|
|
165
|
-
Object.setPrototypeOf(this, DuplicatedAuditEventId.prototype);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
class InvalidChannelARN extends CloudTrailDataServiceException {
|
|
169
|
-
name = "InvalidChannelARN";
|
|
170
|
-
$fault = "client";
|
|
171
|
-
constructor(opts) {
|
|
172
|
-
super({
|
|
173
|
-
name: "InvalidChannelARN",
|
|
174
|
-
$fault: "client",
|
|
175
|
-
...opts,
|
|
176
|
-
});
|
|
177
|
-
Object.setPrototypeOf(this, InvalidChannelARN.prototype);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
class UnsupportedOperationException extends CloudTrailDataServiceException {
|
|
181
|
-
name = "UnsupportedOperationException";
|
|
182
|
-
$fault = "client";
|
|
183
|
-
constructor(opts) {
|
|
184
|
-
super({
|
|
185
|
-
name: "UnsupportedOperationException",
|
|
186
|
-
$fault: "client",
|
|
187
|
-
...opts,
|
|
188
|
-
});
|
|
189
|
-
Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
const _AE = "AuditEvent";
|
|
194
|
-
const _AERE = "AuditEventResultEntry";
|
|
195
|
-
const _AEREu = "AuditEventResultEntries";
|
|
196
|
-
const _AEu = "AuditEvents";
|
|
197
|
-
const _CIP = "ChannelInsufficientPermission";
|
|
198
|
-
const _CNF = "ChannelNotFound";
|
|
199
|
-
const _CUS = "ChannelUnsupportedSchema";
|
|
200
|
-
const _DAEI = "DuplicatedAuditEventId";
|
|
201
|
-
const _ICARN = "InvalidChannelARN";
|
|
202
|
-
const _PAE = "PutAuditEvents";
|
|
203
|
-
const _PAER = "PutAuditEventsRequest";
|
|
204
|
-
const _PAERu = "PutAuditEventsResponse";
|
|
205
|
-
const _REE = "ResultErrorEntry";
|
|
206
|
-
const _REEe = "ResultErrorEntries";
|
|
207
|
-
const _UOE = "UnsupportedOperationException";
|
|
208
|
-
const _aE = "auditEvents";
|
|
209
|
-
const _c = "client";
|
|
210
|
-
const _cA = "channelArn";
|
|
211
|
-
const _e = "error";
|
|
212
|
-
const _eC = "errorCode";
|
|
213
|
-
const _eD = "eventData";
|
|
214
|
-
const _eDC = "eventDataChecksum";
|
|
215
|
-
const _eI = "externalId";
|
|
216
|
-
const _eID = "eventID";
|
|
217
|
-
const _eM = "errorMessage";
|
|
218
|
-
const _f = "failed";
|
|
219
|
-
const _h = "http";
|
|
220
|
-
const _hQ = "httpQuery";
|
|
221
|
-
const _i = "id";
|
|
222
|
-
const _m = "message";
|
|
223
|
-
const _s = "successful";
|
|
224
|
-
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.cloudtraildata";
|
|
225
|
-
const n0 = "com.amazonaws.cloudtraildata";
|
|
226
|
-
var AuditEvent$ = [3, n0, _AE,
|
|
227
|
-
0,
|
|
228
|
-
[_i, _eD, _eDC],
|
|
229
|
-
[0, 0, 0], 2
|
|
230
|
-
];
|
|
231
|
-
var AuditEventResultEntry$ = [3, n0, _AERE,
|
|
232
|
-
0,
|
|
233
|
-
[_i, _eID],
|
|
234
|
-
[0, 0], 2
|
|
235
|
-
];
|
|
236
|
-
var ChannelInsufficientPermission$ = [-3, n0, _CIP,
|
|
237
|
-
{ [_e]: _c },
|
|
238
|
-
[_m],
|
|
239
|
-
[0]
|
|
240
|
-
];
|
|
241
|
-
schema.TypeRegistry.for(n0).registerError(ChannelInsufficientPermission$, ChannelInsufficientPermission);
|
|
242
|
-
var ChannelNotFound$ = [-3, n0, _CNF,
|
|
243
|
-
{ [_e]: _c },
|
|
244
|
-
[_m],
|
|
245
|
-
[0]
|
|
246
|
-
];
|
|
247
|
-
schema.TypeRegistry.for(n0).registerError(ChannelNotFound$, ChannelNotFound);
|
|
248
|
-
var ChannelUnsupportedSchema$ = [-3, n0, _CUS,
|
|
249
|
-
{ [_e]: _c },
|
|
250
|
-
[_m],
|
|
251
|
-
[0]
|
|
252
|
-
];
|
|
253
|
-
schema.TypeRegistry.for(n0).registerError(ChannelUnsupportedSchema$, ChannelUnsupportedSchema);
|
|
254
|
-
var DuplicatedAuditEventId$ = [-3, n0, _DAEI,
|
|
255
|
-
{ [_e]: _c },
|
|
256
|
-
[_m],
|
|
257
|
-
[0]
|
|
258
|
-
];
|
|
259
|
-
schema.TypeRegistry.for(n0).registerError(DuplicatedAuditEventId$, DuplicatedAuditEventId);
|
|
260
|
-
var InvalidChannelARN$ = [-3, n0, _ICARN,
|
|
261
|
-
{ [_e]: _c },
|
|
262
|
-
[_m],
|
|
263
|
-
[0]
|
|
264
|
-
];
|
|
265
|
-
schema.TypeRegistry.for(n0).registerError(InvalidChannelARN$, InvalidChannelARN);
|
|
266
|
-
var PutAuditEventsRequest$ = [3, n0, _PAER,
|
|
267
|
-
0,
|
|
268
|
-
[_aE, _cA, _eI],
|
|
269
|
-
[() => AuditEvents, [0, { [_hQ]: _cA }], [0, { [_hQ]: _eI }]], 2
|
|
270
|
-
];
|
|
271
|
-
var PutAuditEventsResponse$ = [3, n0, _PAERu,
|
|
272
|
-
0,
|
|
273
|
-
[_s, _f],
|
|
274
|
-
[() => AuditEventResultEntries, () => ResultErrorEntries], 2
|
|
275
|
-
];
|
|
276
|
-
var ResultErrorEntry$ = [3, n0, _REE,
|
|
277
|
-
0,
|
|
278
|
-
[_i, _eC, _eM],
|
|
279
|
-
[0, 0, 0], 3
|
|
280
|
-
];
|
|
281
|
-
var UnsupportedOperationException$ = [-3, n0, _UOE,
|
|
282
|
-
{ [_e]: _c },
|
|
283
|
-
[_m],
|
|
284
|
-
[0]
|
|
285
|
-
];
|
|
286
|
-
schema.TypeRegistry.for(n0).registerError(UnsupportedOperationException$, UnsupportedOperationException);
|
|
287
|
-
var CloudTrailDataServiceException$ = [-3, _sm, "CloudTrailDataServiceException", 0, [], []];
|
|
288
|
-
schema.TypeRegistry.for(_sm).registerError(CloudTrailDataServiceException$, CloudTrailDataServiceException);
|
|
289
|
-
var AuditEventResultEntries = [1, n0, _AEREu,
|
|
290
|
-
0, () => AuditEventResultEntry$
|
|
291
|
-
];
|
|
292
|
-
var AuditEvents = [1, n0, _AEu,
|
|
293
|
-
0, () => AuditEvent$
|
|
294
|
-
];
|
|
295
|
-
var ResultErrorEntries = [1, n0, _REEe,
|
|
296
|
-
0, () => ResultErrorEntry$
|
|
297
|
-
];
|
|
298
|
-
var PutAuditEvents$ = [9, n0, _PAE,
|
|
299
|
-
{ [_h]: ["POST", "/PutAuditEvents", 200] }, () => PutAuditEventsRequest$, () => PutAuditEventsResponse$
|
|
300
|
-
];
|
|
301
|
-
|
|
302
116
|
class PutAuditEventsCommand extends smithyClient.Command
|
|
303
117
|
.classBuilder()
|
|
304
118
|
.ep(commonParams)
|
|
@@ -307,7 +121,7 @@ class PutAuditEventsCommand extends smithyClient.Command
|
|
|
307
121
|
})
|
|
308
122
|
.s("CloudTrailDataService", "PutAuditEvents", {})
|
|
309
123
|
.n("CloudTrailDataClient", "PutAuditEventsCommand")
|
|
310
|
-
.sc(PutAuditEvents$)
|
|
124
|
+
.sc(schemas_0.PutAuditEvents$)
|
|
311
125
|
.build() {
|
|
312
126
|
}
|
|
313
127
|
|
|
@@ -326,26 +140,22 @@ Object.defineProperty(exports, "__Client", {
|
|
|
326
140
|
enumerable: true,
|
|
327
141
|
get: function () { return smithyClient.Client; }
|
|
328
142
|
});
|
|
329
|
-
exports
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
exports.ChannelNotFound = ChannelNotFound;
|
|
334
|
-
exports.ChannelNotFound$ = ChannelNotFound$;
|
|
335
|
-
exports.ChannelUnsupportedSchema = ChannelUnsupportedSchema;
|
|
336
|
-
exports.ChannelUnsupportedSchema$ = ChannelUnsupportedSchema$;
|
|
143
|
+
Object.defineProperty(exports, "CloudTrailDataServiceException", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function () { return CloudTrailDataServiceException.CloudTrailDataServiceException; }
|
|
146
|
+
});
|
|
337
147
|
exports.CloudTrailData = CloudTrailData;
|
|
338
148
|
exports.CloudTrailDataClient = CloudTrailDataClient;
|
|
339
|
-
exports.CloudTrailDataServiceException = CloudTrailDataServiceException;
|
|
340
|
-
exports.CloudTrailDataServiceException$ = CloudTrailDataServiceException$;
|
|
341
|
-
exports.DuplicatedAuditEventId = DuplicatedAuditEventId;
|
|
342
|
-
exports.DuplicatedAuditEventId$ = DuplicatedAuditEventId$;
|
|
343
|
-
exports.InvalidChannelARN = InvalidChannelARN;
|
|
344
|
-
exports.InvalidChannelARN$ = InvalidChannelARN$;
|
|
345
|
-
exports.PutAuditEvents$ = PutAuditEvents$;
|
|
346
149
|
exports.PutAuditEventsCommand = PutAuditEventsCommand;
|
|
347
|
-
|
|
348
|
-
exports.
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
150
|
+
Object.keys(schemas_0).forEach(function (k) {
|
|
151
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function () { return schemas_0[k]; }
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
Object.keys(errors).forEach(function (k) {
|
|
157
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function () { return errors[k]; }
|
|
160
|
+
});
|
|
161
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CloudTrailDataServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class CloudTrailDataServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, CloudTrailDataServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.CloudTrailDataServiceException = CloudTrailDataServiceException;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnsupportedOperationException = exports.InvalidChannelARN = exports.DuplicatedAuditEventId = exports.ChannelUnsupportedSchema = exports.ChannelNotFound = exports.ChannelInsufficientPermission = void 0;
|
|
4
|
+
const CloudTrailDataServiceException_1 = require("./CloudTrailDataServiceException");
|
|
5
|
+
class ChannelInsufficientPermission extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
6
|
+
name = "ChannelInsufficientPermission";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "ChannelInsufficientPermission",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, ChannelInsufficientPermission.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ChannelInsufficientPermission = ChannelInsufficientPermission;
|
|
18
|
+
class ChannelNotFound extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
19
|
+
name = "ChannelNotFound";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ChannelNotFound",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ChannelNotFound.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ChannelNotFound = ChannelNotFound;
|
|
31
|
+
class ChannelUnsupportedSchema extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
32
|
+
name = "ChannelUnsupportedSchema";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ChannelUnsupportedSchema",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ChannelUnsupportedSchema.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ChannelUnsupportedSchema = ChannelUnsupportedSchema;
|
|
44
|
+
class DuplicatedAuditEventId extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
45
|
+
name = "DuplicatedAuditEventId";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "DuplicatedAuditEventId",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, DuplicatedAuditEventId.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.DuplicatedAuditEventId = DuplicatedAuditEventId;
|
|
57
|
+
class InvalidChannelARN extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
58
|
+
name = "InvalidChannelARN";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "InvalidChannelARN",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, InvalidChannelARN.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.InvalidChannelARN = InvalidChannelARN;
|
|
70
|
+
class UnsupportedOperationException extends CloudTrailDataServiceException_1.CloudTrailDataServiceException {
|
|
71
|
+
name = "UnsupportedOperationException";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "UnsupportedOperationException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.UnsupportedOperationException = UnsupportedOperationException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2021-08-11",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.cloudtraildata",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
version: "2021-08-11",
|
|
33
35
|
serviceTarget: "CloudTrailDataService",
|
|
34
36
|
},
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutAuditEvents$ = exports.ResultErrorEntry$ = exports.PutAuditEventsResponse$ = exports.PutAuditEventsRequest$ = exports.AuditEventResultEntry$ = exports.AuditEvent$ = exports.errorTypeRegistries = exports.UnsupportedOperationException$ = exports.InvalidChannelARN$ = exports.DuplicatedAuditEventId$ = exports.ChannelUnsupportedSchema$ = exports.ChannelNotFound$ = exports.ChannelInsufficientPermission$ = exports.CloudTrailDataServiceException$ = void 0;
|
|
4
|
+
const _AE = "AuditEvent";
|
|
5
|
+
const _AERE = "AuditEventResultEntry";
|
|
6
|
+
const _AEREu = "AuditEventResultEntries";
|
|
7
|
+
const _AEu = "AuditEvents";
|
|
8
|
+
const _CIP = "ChannelInsufficientPermission";
|
|
9
|
+
const _CNF = "ChannelNotFound";
|
|
10
|
+
const _CUS = "ChannelUnsupportedSchema";
|
|
11
|
+
const _DAEI = "DuplicatedAuditEventId";
|
|
12
|
+
const _ICARN = "InvalidChannelARN";
|
|
13
|
+
const _PAE = "PutAuditEvents";
|
|
14
|
+
const _PAER = "PutAuditEventsRequest";
|
|
15
|
+
const _PAERu = "PutAuditEventsResponse";
|
|
16
|
+
const _REE = "ResultErrorEntry";
|
|
17
|
+
const _REEe = "ResultErrorEntries";
|
|
18
|
+
const _UOE = "UnsupportedOperationException";
|
|
19
|
+
const _aE = "auditEvents";
|
|
20
|
+
const _c = "client";
|
|
21
|
+
const _cA = "channelArn";
|
|
22
|
+
const _e = "error";
|
|
23
|
+
const _eC = "errorCode";
|
|
24
|
+
const _eD = "eventData";
|
|
25
|
+
const _eDC = "eventDataChecksum";
|
|
26
|
+
const _eI = "externalId";
|
|
27
|
+
const _eID = "eventID";
|
|
28
|
+
const _eM = "errorMessage";
|
|
29
|
+
const _f = "failed";
|
|
30
|
+
const _h = "http";
|
|
31
|
+
const _hQ = "httpQuery";
|
|
32
|
+
const _i = "id";
|
|
33
|
+
const _m = "message";
|
|
34
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudtraildata";
|
|
35
|
+
const _su = "successful";
|
|
36
|
+
const n0 = "com.amazonaws.cloudtraildata";
|
|
37
|
+
const schema_1 = require("@smithy/core/schema");
|
|
38
|
+
const CloudTrailDataServiceException_1 = require("../models/CloudTrailDataServiceException");
|
|
39
|
+
const errors_1 = require("../models/errors");
|
|
40
|
+
const _s_registry = schema_1.TypeRegistry.for(_s);
|
|
41
|
+
exports.CloudTrailDataServiceException$ = [-3, _s, "CloudTrailDataServiceException", 0, [], []];
|
|
42
|
+
_s_registry.registerError(exports.CloudTrailDataServiceException$, CloudTrailDataServiceException_1.CloudTrailDataServiceException);
|
|
43
|
+
const n0_registry = schema_1.TypeRegistry.for(n0);
|
|
44
|
+
exports.ChannelInsufficientPermission$ = [-3, n0, _CIP,
|
|
45
|
+
{ [_e]: _c },
|
|
46
|
+
[_m],
|
|
47
|
+
[0]
|
|
48
|
+
];
|
|
49
|
+
n0_registry.registerError(exports.ChannelInsufficientPermission$, errors_1.ChannelInsufficientPermission);
|
|
50
|
+
exports.ChannelNotFound$ = [-3, n0, _CNF,
|
|
51
|
+
{ [_e]: _c },
|
|
52
|
+
[_m],
|
|
53
|
+
[0]
|
|
54
|
+
];
|
|
55
|
+
n0_registry.registerError(exports.ChannelNotFound$, errors_1.ChannelNotFound);
|
|
56
|
+
exports.ChannelUnsupportedSchema$ = [-3, n0, _CUS,
|
|
57
|
+
{ [_e]: _c },
|
|
58
|
+
[_m],
|
|
59
|
+
[0]
|
|
60
|
+
];
|
|
61
|
+
n0_registry.registerError(exports.ChannelUnsupportedSchema$, errors_1.ChannelUnsupportedSchema);
|
|
62
|
+
exports.DuplicatedAuditEventId$ = [-3, n0, _DAEI,
|
|
63
|
+
{ [_e]: _c },
|
|
64
|
+
[_m],
|
|
65
|
+
[0]
|
|
66
|
+
];
|
|
67
|
+
n0_registry.registerError(exports.DuplicatedAuditEventId$, errors_1.DuplicatedAuditEventId);
|
|
68
|
+
exports.InvalidChannelARN$ = [-3, n0, _ICARN,
|
|
69
|
+
{ [_e]: _c },
|
|
70
|
+
[_m],
|
|
71
|
+
[0]
|
|
72
|
+
];
|
|
73
|
+
n0_registry.registerError(exports.InvalidChannelARN$, errors_1.InvalidChannelARN);
|
|
74
|
+
exports.UnsupportedOperationException$ = [-3, n0, _UOE,
|
|
75
|
+
{ [_e]: _c },
|
|
76
|
+
[_m],
|
|
77
|
+
[0]
|
|
78
|
+
];
|
|
79
|
+
n0_registry.registerError(exports.UnsupportedOperationException$, errors_1.UnsupportedOperationException);
|
|
80
|
+
exports.errorTypeRegistries = [
|
|
81
|
+
_s_registry,
|
|
82
|
+
n0_registry,
|
|
83
|
+
];
|
|
84
|
+
exports.AuditEvent$ = [3, n0, _AE,
|
|
85
|
+
0,
|
|
86
|
+
[_i, _eD, _eDC],
|
|
87
|
+
[0, 0, 0], 2
|
|
88
|
+
];
|
|
89
|
+
exports.AuditEventResultEntry$ = [3, n0, _AERE,
|
|
90
|
+
0,
|
|
91
|
+
[_i, _eID],
|
|
92
|
+
[0, 0], 2
|
|
93
|
+
];
|
|
94
|
+
exports.PutAuditEventsRequest$ = [3, n0, _PAER,
|
|
95
|
+
0,
|
|
96
|
+
[_aE, _cA, _eI],
|
|
97
|
+
[() => AuditEvents, [0, { [_hQ]: _cA }], [0, { [_hQ]: _eI }]], 2
|
|
98
|
+
];
|
|
99
|
+
exports.PutAuditEventsResponse$ = [3, n0, _PAERu,
|
|
100
|
+
0,
|
|
101
|
+
[_su, _f],
|
|
102
|
+
[() => AuditEventResultEntries, () => ResultErrorEntries], 2
|
|
103
|
+
];
|
|
104
|
+
exports.ResultErrorEntry$ = [3, n0, _REE,
|
|
105
|
+
0,
|
|
106
|
+
[_i, _eC, _eM],
|
|
107
|
+
[0, 0, 0], 3
|
|
108
|
+
];
|
|
109
|
+
var AuditEventResultEntries = [1, n0, _AEREu,
|
|
110
|
+
0, () => exports.AuditEventResultEntry$
|
|
111
|
+
];
|
|
112
|
+
var AuditEvents = [1, n0, _AEu,
|
|
113
|
+
0, () => exports.AuditEvent$
|
|
114
|
+
];
|
|
115
|
+
var ResultErrorEntries = [1, n0, _REEe,
|
|
116
|
+
0, () => exports.ResultErrorEntry$
|
|
117
|
+
];
|
|
118
|
+
exports.PutAuditEvents$ = [9, n0, _PAE,
|
|
119
|
+
{ [_h]: ["POST", "/PutAuditEvents", 200] }, () => exports.PutAuditEventsRequest$, () => exports.PutAuditEventsResponse$
|
|
120
|
+
];
|
|
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
|
6
6
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
7
|
import { defaultCloudTrailDataHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
import { errorTypeRegistries } from "./schemas/schemas_0";
|
|
9
10
|
export const getRuntimeConfig = (config) => {
|
|
10
11
|
return {
|
|
11
12
|
apiVersion: "2021-08-11",
|
|
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
26
27
|
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
28
|
protocolSettings: config?.protocolSettings ?? {
|
|
28
29
|
defaultNamespace: "com.amazonaws.cloudtraildata",
|
|
30
|
+
errorTypeRegistries,
|
|
29
31
|
version: "2021-08-11",
|
|
30
32
|
serviceTarget: "CloudTrailDataService",
|
|
31
33
|
},
|
|
@@ -28,52 +28,66 @@ const _h = "http";
|
|
|
28
28
|
const _hQ = "httpQuery";
|
|
29
29
|
const _i = "id";
|
|
30
30
|
const _m = "message";
|
|
31
|
-
const _s = "
|
|
32
|
-
const
|
|
31
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudtraildata";
|
|
32
|
+
const _su = "successful";
|
|
33
33
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
];
|
|
42
|
-
export var AuditEventResultEntry$ = [3, n0, _AERE,
|
|
43
|
-
0,
|
|
44
|
-
[_i, _eID],
|
|
45
|
-
[0, 0], 2
|
|
46
|
-
];
|
|
37
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
38
|
+
export var CloudTrailDataServiceException$ = [-3, _s, "CloudTrailDataServiceException", 0, [], []];
|
|
39
|
+
_s_registry.registerError(CloudTrailDataServiceException$, CloudTrailDataServiceException);
|
|
40
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
47
41
|
export var ChannelInsufficientPermission$ = [-3, n0, _CIP,
|
|
48
42
|
{ [_e]: _c },
|
|
49
43
|
[_m],
|
|
50
44
|
[0]
|
|
51
45
|
];
|
|
52
|
-
|
|
46
|
+
n0_registry.registerError(ChannelInsufficientPermission$, ChannelInsufficientPermission);
|
|
53
47
|
export var ChannelNotFound$ = [-3, n0, _CNF,
|
|
54
48
|
{ [_e]: _c },
|
|
55
49
|
[_m],
|
|
56
50
|
[0]
|
|
57
51
|
];
|
|
58
|
-
|
|
52
|
+
n0_registry.registerError(ChannelNotFound$, ChannelNotFound);
|
|
59
53
|
export var ChannelUnsupportedSchema$ = [-3, n0, _CUS,
|
|
60
54
|
{ [_e]: _c },
|
|
61
55
|
[_m],
|
|
62
56
|
[0]
|
|
63
57
|
];
|
|
64
|
-
|
|
58
|
+
n0_registry.registerError(ChannelUnsupportedSchema$, ChannelUnsupportedSchema);
|
|
65
59
|
export var DuplicatedAuditEventId$ = [-3, n0, _DAEI,
|
|
66
60
|
{ [_e]: _c },
|
|
67
61
|
[_m],
|
|
68
62
|
[0]
|
|
69
63
|
];
|
|
70
|
-
|
|
64
|
+
n0_registry.registerError(DuplicatedAuditEventId$, DuplicatedAuditEventId);
|
|
71
65
|
export var InvalidChannelARN$ = [-3, n0, _ICARN,
|
|
72
66
|
{ [_e]: _c },
|
|
73
67
|
[_m],
|
|
74
68
|
[0]
|
|
75
69
|
];
|
|
76
|
-
|
|
70
|
+
n0_registry.registerError(InvalidChannelARN$, InvalidChannelARN);
|
|
71
|
+
export var UnsupportedOperationException$ = [-3, n0, _UOE,
|
|
72
|
+
{ [_e]: _c },
|
|
73
|
+
[_m],
|
|
74
|
+
[0]
|
|
75
|
+
];
|
|
76
|
+
n0_registry.registerError(UnsupportedOperationException$, UnsupportedOperationException);
|
|
77
|
+
export const errorTypeRegistries = [
|
|
78
|
+
_s_registry,
|
|
79
|
+
n0_registry,
|
|
80
|
+
];
|
|
81
|
+
export var AuditEvent$ = [3, n0, _AE,
|
|
82
|
+
0,
|
|
83
|
+
[_i, _eD, _eDC],
|
|
84
|
+
[0, 0, 0], 2
|
|
85
|
+
];
|
|
86
|
+
export var AuditEventResultEntry$ = [3, n0, _AERE,
|
|
87
|
+
0,
|
|
88
|
+
[_i, _eID],
|
|
89
|
+
[0, 0], 2
|
|
90
|
+
];
|
|
77
91
|
export var PutAuditEventsRequest$ = [3, n0, _PAER,
|
|
78
92
|
0,
|
|
79
93
|
[_aE, _cA, _eI],
|
|
@@ -81,7 +95,7 @@ export var PutAuditEventsRequest$ = [3, n0, _PAER,
|
|
|
81
95
|
];
|
|
82
96
|
export var PutAuditEventsResponse$ = [3, n0, _PAERu,
|
|
83
97
|
0,
|
|
84
|
-
[
|
|
98
|
+
[_su, _f],
|
|
85
99
|
[() => AuditEventResultEntries, () => ResultErrorEntries], 2
|
|
86
100
|
];
|
|
87
101
|
export var ResultErrorEntry$ = [3, n0, _REE,
|
|
@@ -89,14 +103,6 @@ export var ResultErrorEntry$ = [3, n0, _REE,
|
|
|
89
103
|
[_i, _eC, _eM],
|
|
90
104
|
[0, 0, 0], 3
|
|
91
105
|
];
|
|
92
|
-
export var UnsupportedOperationException$ = [-3, n0, _UOE,
|
|
93
|
-
{ [_e]: _c },
|
|
94
|
-
[_m],
|
|
95
|
-
[0]
|
|
96
|
-
];
|
|
97
|
-
TypeRegistry.for(n0).registerError(UnsupportedOperationException$, UnsupportedOperationException);
|
|
98
|
-
export var CloudTrailDataServiceException$ = [-3, _sm, "CloudTrailDataServiceException", 0, [], []];
|
|
99
|
-
TypeRegistry.for(_sm).registerError(CloudTrailDataServiceException$, CloudTrailDataServiceException);
|
|
100
106
|
var AuditEventResultEntries = [1, n0, _AEREu,
|
|
101
107
|
0, () => AuditEventResultEntry$
|
|
102
108
|
];
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
-
export declare var
|
|
3
|
-
export declare var AuditEventResultEntry$: StaticStructureSchema;
|
|
3
|
+
export declare var CloudTrailDataServiceException$: StaticErrorSchema;
|
|
4
4
|
export declare var ChannelInsufficientPermission$: StaticErrorSchema;
|
|
5
5
|
export declare var ChannelNotFound$: StaticErrorSchema;
|
|
6
6
|
export declare var ChannelUnsupportedSchema$: StaticErrorSchema;
|
|
7
7
|
export declare var DuplicatedAuditEventId$: StaticErrorSchema;
|
|
8
8
|
export declare var InvalidChannelARN$: StaticErrorSchema;
|
|
9
|
+
export declare var UnsupportedOperationException$: StaticErrorSchema;
|
|
10
|
+
/**
|
|
11
|
+
* TypeRegistry instances containing modeled errors.
|
|
12
|
+
* @internal
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
16
|
+
export declare var AuditEvent$: StaticStructureSchema;
|
|
17
|
+
export declare var AuditEventResultEntry$: StaticStructureSchema;
|
|
9
18
|
export declare var PutAuditEventsRequest$: StaticStructureSchema;
|
|
10
19
|
export declare var PutAuditEventsResponse$: StaticStructureSchema;
|
|
11
20
|
export declare var ResultErrorEntry$: StaticStructureSchema;
|
|
12
|
-
export declare var UnsupportedOperationException$: StaticErrorSchema;
|
|
13
|
-
export declare var CloudTrailDataServiceException$: StaticErrorSchema;
|
|
14
21
|
export declare var PutAuditEvents$: StaticOperationSchema;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
6
|
-
export declare var
|
|
7
|
-
export declare var AuditEventResultEntry$: StaticStructureSchema;
|
|
7
|
+
export declare var CloudTrailDataServiceException$: StaticErrorSchema;
|
|
8
8
|
export declare var ChannelInsufficientPermission$: StaticErrorSchema;
|
|
9
9
|
export declare var ChannelNotFound$: StaticErrorSchema;
|
|
10
10
|
export declare var ChannelUnsupportedSchema$: StaticErrorSchema;
|
|
11
11
|
export declare var DuplicatedAuditEventId$: StaticErrorSchema;
|
|
12
12
|
export declare var InvalidChannelARN$: StaticErrorSchema;
|
|
13
|
+
export declare var UnsupportedOperationException$: StaticErrorSchema;
|
|
14
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
15
|
+
export declare var AuditEvent$: StaticStructureSchema;
|
|
16
|
+
export declare var AuditEventResultEntry$: StaticStructureSchema;
|
|
13
17
|
export declare var PutAuditEventsRequest$: StaticStructureSchema;
|
|
14
18
|
export declare var PutAuditEventsResponse$: StaticStructureSchema;
|
|
15
19
|
export declare var ResultErrorEntry$: StaticStructureSchema;
|
|
16
|
-
export declare var UnsupportedOperationException$: StaticErrorSchema;
|
|
17
|
-
export declare var CloudTrailDataServiceException$: StaticErrorSchema;
|
|
18
20
|
export declare var PutAuditEvents$: StaticOperationSchema;
|
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.
|
|
4
|
+
"version": "3.988.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudtrail-data",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.8",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.7",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.8",
|
|
30
30
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
31
|
"@aws-sdk/types": "^3.973.1",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.988.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.6",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.23.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.14",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.31",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.11.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.3",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.30",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.33",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|