@aws-sdk/client-cloudtrail-data 3.303.0 → 3.309.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/commands/PutAuditEventsCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +31 -31
- package/dist-es/commands/PutAuditEventsCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +28 -28
- package/dist-types/protocols/Aws_restJson1.d.ts +8 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/package.json +29 -29
|
@@ -36,10 +36,10 @@ class PutAuditEventsCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_PutAuditEventsCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_PutAuditEventsCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.PutAuditEventsCommand = PutAuditEventsCommand;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_PutAuditEventsCommand = exports.se_PutAuditEventsCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const CloudTrailDataServiceException_1 = require("../models/CloudTrailDataServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const
|
|
8
|
+
const se_PutAuditEventsCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -17,7 +17,7 @@ const serializeAws_restJson1PutAuditEventsCommand = async (input, context) => {
|
|
|
17
17
|
});
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify({
|
|
20
|
-
...(input.auditEvents != null && { auditEvents:
|
|
20
|
+
...(input.auditEvents != null && { auditEvents: se_AuditEvents(input.auditEvents, context) }),
|
|
21
21
|
});
|
|
22
22
|
return new protocol_http_1.HttpRequest({
|
|
23
23
|
protocol,
|
|
@@ -30,25 +30,25 @@ const serializeAws_restJson1PutAuditEventsCommand = async (input, context) => {
|
|
|
30
30
|
body,
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
exports.
|
|
34
|
-
const
|
|
33
|
+
exports.se_PutAuditEventsCommand = se_PutAuditEventsCommand;
|
|
34
|
+
const de_PutAuditEventsCommand = async (output, context) => {
|
|
35
35
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
36
|
-
return
|
|
36
|
+
return de_PutAuditEventsCommandError(output, context);
|
|
37
37
|
}
|
|
38
38
|
const contents = map({
|
|
39
39
|
$metadata: deserializeMetadata(output),
|
|
40
40
|
});
|
|
41
41
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
42
42
|
if (data.failed != null) {
|
|
43
|
-
contents.failed =
|
|
43
|
+
contents.failed = de_ResultErrorEntries(data.failed, context);
|
|
44
44
|
}
|
|
45
45
|
if (data.successful != null) {
|
|
46
|
-
contents.successful =
|
|
46
|
+
contents.successful = de_AuditEventResultEntries(data.successful, context);
|
|
47
47
|
}
|
|
48
48
|
return contents;
|
|
49
49
|
};
|
|
50
|
-
exports.
|
|
51
|
-
const
|
|
50
|
+
exports.de_PutAuditEventsCommand = de_PutAuditEventsCommand;
|
|
51
|
+
const de_PutAuditEventsCommandError = async (output, context) => {
|
|
52
52
|
const parsedOutput = {
|
|
53
53
|
...output,
|
|
54
54
|
body: await parseErrorBody(output.body, context),
|
|
@@ -57,22 +57,22 @@ const deserializeAws_restJson1PutAuditEventsCommandError = async (output, contex
|
|
|
57
57
|
switch (errorCode) {
|
|
58
58
|
case "ChannelInsufficientPermission":
|
|
59
59
|
case "com.amazonaws.cloudtraildata#ChannelInsufficientPermission":
|
|
60
|
-
throw await
|
|
60
|
+
throw await de_ChannelInsufficientPermissionRes(parsedOutput, context);
|
|
61
61
|
case "ChannelNotFound":
|
|
62
62
|
case "com.amazonaws.cloudtraildata#ChannelNotFound":
|
|
63
|
-
throw await
|
|
63
|
+
throw await de_ChannelNotFoundRes(parsedOutput, context);
|
|
64
64
|
case "ChannelUnsupportedSchema":
|
|
65
65
|
case "com.amazonaws.cloudtraildata#ChannelUnsupportedSchema":
|
|
66
|
-
throw await
|
|
66
|
+
throw await de_ChannelUnsupportedSchemaRes(parsedOutput, context);
|
|
67
67
|
case "DuplicatedAuditEventId":
|
|
68
68
|
case "com.amazonaws.cloudtraildata#DuplicatedAuditEventId":
|
|
69
|
-
throw await
|
|
69
|
+
throw await de_DuplicatedAuditEventIdRes(parsedOutput, context);
|
|
70
70
|
case "InvalidChannelARN":
|
|
71
71
|
case "com.amazonaws.cloudtraildata#InvalidChannelARN":
|
|
72
|
-
throw await
|
|
72
|
+
throw await de_InvalidChannelARNRes(parsedOutput, context);
|
|
73
73
|
case "UnsupportedOperationException":
|
|
74
74
|
case "com.amazonaws.cloudtraildata#UnsupportedOperationException":
|
|
75
|
-
throw await
|
|
75
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
76
76
|
default:
|
|
77
77
|
const parsedBody = parsedOutput.body;
|
|
78
78
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -84,7 +84,7 @@ const deserializeAws_restJson1PutAuditEventsCommandError = async (output, contex
|
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
const map = smithy_client_1.map;
|
|
87
|
-
const
|
|
87
|
+
const de_ChannelInsufficientPermissionRes = async (parsedOutput, context) => {
|
|
88
88
|
const contents = map({});
|
|
89
89
|
const data = parsedOutput.body;
|
|
90
90
|
if (data.message != null) {
|
|
@@ -96,7 +96,7 @@ const deserializeAws_restJson1ChannelInsufficientPermissionResponse = async (par
|
|
|
96
96
|
});
|
|
97
97
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
98
98
|
};
|
|
99
|
-
const
|
|
99
|
+
const de_ChannelNotFoundRes = async (parsedOutput, context) => {
|
|
100
100
|
const contents = map({});
|
|
101
101
|
const data = parsedOutput.body;
|
|
102
102
|
if (data.message != null) {
|
|
@@ -108,7 +108,7 @@ const deserializeAws_restJson1ChannelNotFoundResponse = async (parsedOutput, con
|
|
|
108
108
|
});
|
|
109
109
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
110
110
|
};
|
|
111
|
-
const
|
|
111
|
+
const de_ChannelUnsupportedSchemaRes = async (parsedOutput, context) => {
|
|
112
112
|
const contents = map({});
|
|
113
113
|
const data = parsedOutput.body;
|
|
114
114
|
if (data.message != null) {
|
|
@@ -120,7 +120,7 @@ const deserializeAws_restJson1ChannelUnsupportedSchemaResponse = async (parsedOu
|
|
|
120
120
|
});
|
|
121
121
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
122
122
|
};
|
|
123
|
-
const
|
|
123
|
+
const de_DuplicatedAuditEventIdRes = async (parsedOutput, context) => {
|
|
124
124
|
const contents = map({});
|
|
125
125
|
const data = parsedOutput.body;
|
|
126
126
|
if (data.message != null) {
|
|
@@ -132,7 +132,7 @@ const deserializeAws_restJson1DuplicatedAuditEventIdResponse = async (parsedOutp
|
|
|
132
132
|
});
|
|
133
133
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
134
134
|
};
|
|
135
|
-
const
|
|
135
|
+
const de_InvalidChannelARNRes = async (parsedOutput, context) => {
|
|
136
136
|
const contents = map({});
|
|
137
137
|
const data = parsedOutput.body;
|
|
138
138
|
if (data.message != null) {
|
|
@@ -144,7 +144,7 @@ const deserializeAws_restJson1InvalidChannelARNResponse = async (parsedOutput, c
|
|
|
144
144
|
});
|
|
145
145
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
146
146
|
};
|
|
147
|
-
const
|
|
147
|
+
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
148
148
|
const contents = map({});
|
|
149
149
|
const data = parsedOutput.body;
|
|
150
150
|
if (data.message != null) {
|
|
@@ -156,49 +156,49 @@ const deserializeAws_restJson1UnsupportedOperationExceptionResponse = async (par
|
|
|
156
156
|
});
|
|
157
157
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
158
158
|
};
|
|
159
|
-
const
|
|
159
|
+
const se_AuditEvent = (input, context) => {
|
|
160
160
|
return {
|
|
161
161
|
...(input.eventData != null && { eventData: input.eventData }),
|
|
162
162
|
...(input.eventDataChecksum != null && { eventDataChecksum: input.eventDataChecksum }),
|
|
163
163
|
...(input.id != null && { id: input.id }),
|
|
164
164
|
};
|
|
165
165
|
};
|
|
166
|
-
const
|
|
166
|
+
const se_AuditEvents = (input, context) => {
|
|
167
167
|
return input
|
|
168
168
|
.filter((e) => e != null)
|
|
169
169
|
.map((entry) => {
|
|
170
|
-
return
|
|
170
|
+
return se_AuditEvent(entry, context);
|
|
171
171
|
});
|
|
172
172
|
};
|
|
173
|
-
const
|
|
173
|
+
const de_AuditEventResultEntries = (output, context) => {
|
|
174
174
|
const retVal = (output || [])
|
|
175
175
|
.filter((e) => e != null)
|
|
176
176
|
.map((entry) => {
|
|
177
177
|
if (entry === null) {
|
|
178
178
|
return null;
|
|
179
179
|
}
|
|
180
|
-
return
|
|
180
|
+
return de_AuditEventResultEntry(entry, context);
|
|
181
181
|
});
|
|
182
182
|
return retVal;
|
|
183
183
|
};
|
|
184
|
-
const
|
|
184
|
+
const de_AuditEventResultEntry = (output, context) => {
|
|
185
185
|
return {
|
|
186
186
|
eventID: (0, smithy_client_1.expectString)(output.eventID),
|
|
187
187
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
|
-
const
|
|
190
|
+
const de_ResultErrorEntries = (output, context) => {
|
|
191
191
|
const retVal = (output || [])
|
|
192
192
|
.filter((e) => e != null)
|
|
193
193
|
.map((entry) => {
|
|
194
194
|
if (entry === null) {
|
|
195
195
|
return null;
|
|
196
196
|
}
|
|
197
|
-
return
|
|
197
|
+
return de_ResultErrorEntry(entry, context);
|
|
198
198
|
});
|
|
199
199
|
return retVal;
|
|
200
200
|
};
|
|
201
|
-
const
|
|
201
|
+
const de_ResultErrorEntry = (output, context) => {
|
|
202
202
|
return {
|
|
203
203
|
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
204
204
|
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_PutAuditEventsCommand, se_PutAuditEventsCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class PutAuditEventsCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class PutAuditEventsCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_PutAuditEventsCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_PutAuditEventsCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CloudTrailDataServiceException as __BaseException } from "../models/CloudTrailDataServiceException";
|
|
4
4
|
import { ChannelInsufficientPermission, ChannelNotFound, ChannelUnsupportedSchema, DuplicatedAuditEventId, InvalidChannelARN, UnsupportedOperationException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_PutAuditEventsCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -14,7 +14,7 @@ export const serializeAws_restJson1PutAuditEventsCommand = async (input, context
|
|
|
14
14
|
});
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify({
|
|
17
|
-
...(input.auditEvents != null && { auditEvents:
|
|
17
|
+
...(input.auditEvents != null && { auditEvents: se_AuditEvents(input.auditEvents, context) }),
|
|
18
18
|
});
|
|
19
19
|
return new __HttpRequest({
|
|
20
20
|
protocol,
|
|
@@ -27,23 +27,23 @@ export const serializeAws_restJson1PutAuditEventsCommand = async (input, context
|
|
|
27
27
|
body,
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
export const
|
|
30
|
+
export const de_PutAuditEventsCommand = async (output, context) => {
|
|
31
31
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
32
|
-
return
|
|
32
|
+
return de_PutAuditEventsCommandError(output, context);
|
|
33
33
|
}
|
|
34
34
|
const contents = map({
|
|
35
35
|
$metadata: deserializeMetadata(output),
|
|
36
36
|
});
|
|
37
37
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
38
38
|
if (data.failed != null) {
|
|
39
|
-
contents.failed =
|
|
39
|
+
contents.failed = de_ResultErrorEntries(data.failed, context);
|
|
40
40
|
}
|
|
41
41
|
if (data.successful != null) {
|
|
42
|
-
contents.successful =
|
|
42
|
+
contents.successful = de_AuditEventResultEntries(data.successful, context);
|
|
43
43
|
}
|
|
44
44
|
return contents;
|
|
45
45
|
};
|
|
46
|
-
const
|
|
46
|
+
const de_PutAuditEventsCommandError = async (output, context) => {
|
|
47
47
|
const parsedOutput = {
|
|
48
48
|
...output,
|
|
49
49
|
body: await parseErrorBody(output.body, context),
|
|
@@ -52,22 +52,22 @@ const deserializeAws_restJson1PutAuditEventsCommandError = async (output, contex
|
|
|
52
52
|
switch (errorCode) {
|
|
53
53
|
case "ChannelInsufficientPermission":
|
|
54
54
|
case "com.amazonaws.cloudtraildata#ChannelInsufficientPermission":
|
|
55
|
-
throw await
|
|
55
|
+
throw await de_ChannelInsufficientPermissionRes(parsedOutput, context);
|
|
56
56
|
case "ChannelNotFound":
|
|
57
57
|
case "com.amazonaws.cloudtraildata#ChannelNotFound":
|
|
58
|
-
throw await
|
|
58
|
+
throw await de_ChannelNotFoundRes(parsedOutput, context);
|
|
59
59
|
case "ChannelUnsupportedSchema":
|
|
60
60
|
case "com.amazonaws.cloudtraildata#ChannelUnsupportedSchema":
|
|
61
|
-
throw await
|
|
61
|
+
throw await de_ChannelUnsupportedSchemaRes(parsedOutput, context);
|
|
62
62
|
case "DuplicatedAuditEventId":
|
|
63
63
|
case "com.amazonaws.cloudtraildata#DuplicatedAuditEventId":
|
|
64
|
-
throw await
|
|
64
|
+
throw await de_DuplicatedAuditEventIdRes(parsedOutput, context);
|
|
65
65
|
case "InvalidChannelARN":
|
|
66
66
|
case "com.amazonaws.cloudtraildata#InvalidChannelARN":
|
|
67
|
-
throw await
|
|
67
|
+
throw await de_InvalidChannelARNRes(parsedOutput, context);
|
|
68
68
|
case "UnsupportedOperationException":
|
|
69
69
|
case "com.amazonaws.cloudtraildata#UnsupportedOperationException":
|
|
70
|
-
throw await
|
|
70
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
71
71
|
default:
|
|
72
72
|
const parsedBody = parsedOutput.body;
|
|
73
73
|
throwDefaultError({
|
|
@@ -79,7 +79,7 @@ const deserializeAws_restJson1PutAuditEventsCommandError = async (output, contex
|
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
const map = __map;
|
|
82
|
-
const
|
|
82
|
+
const de_ChannelInsufficientPermissionRes = async (parsedOutput, context) => {
|
|
83
83
|
const contents = map({});
|
|
84
84
|
const data = parsedOutput.body;
|
|
85
85
|
if (data.message != null) {
|
|
@@ -91,7 +91,7 @@ const deserializeAws_restJson1ChannelInsufficientPermissionResponse = async (par
|
|
|
91
91
|
});
|
|
92
92
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
93
93
|
};
|
|
94
|
-
const
|
|
94
|
+
const de_ChannelNotFoundRes = async (parsedOutput, context) => {
|
|
95
95
|
const contents = map({});
|
|
96
96
|
const data = parsedOutput.body;
|
|
97
97
|
if (data.message != null) {
|
|
@@ -103,7 +103,7 @@ const deserializeAws_restJson1ChannelNotFoundResponse = async (parsedOutput, con
|
|
|
103
103
|
});
|
|
104
104
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
105
105
|
};
|
|
106
|
-
const
|
|
106
|
+
const de_ChannelUnsupportedSchemaRes = async (parsedOutput, context) => {
|
|
107
107
|
const contents = map({});
|
|
108
108
|
const data = parsedOutput.body;
|
|
109
109
|
if (data.message != null) {
|
|
@@ -115,7 +115,7 @@ const deserializeAws_restJson1ChannelUnsupportedSchemaResponse = async (parsedOu
|
|
|
115
115
|
});
|
|
116
116
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
117
117
|
};
|
|
118
|
-
const
|
|
118
|
+
const de_DuplicatedAuditEventIdRes = async (parsedOutput, context) => {
|
|
119
119
|
const contents = map({});
|
|
120
120
|
const data = parsedOutput.body;
|
|
121
121
|
if (data.message != null) {
|
|
@@ -127,7 +127,7 @@ const deserializeAws_restJson1DuplicatedAuditEventIdResponse = async (parsedOutp
|
|
|
127
127
|
});
|
|
128
128
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
129
129
|
};
|
|
130
|
-
const
|
|
130
|
+
const de_InvalidChannelARNRes = async (parsedOutput, context) => {
|
|
131
131
|
const contents = map({});
|
|
132
132
|
const data = parsedOutput.body;
|
|
133
133
|
if (data.message != null) {
|
|
@@ -139,7 +139,7 @@ const deserializeAws_restJson1InvalidChannelARNResponse = async (parsedOutput, c
|
|
|
139
139
|
});
|
|
140
140
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
141
141
|
};
|
|
142
|
-
const
|
|
142
|
+
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
143
143
|
const contents = map({});
|
|
144
144
|
const data = parsedOutput.body;
|
|
145
145
|
if (data.message != null) {
|
|
@@ -151,49 +151,49 @@ const deserializeAws_restJson1UnsupportedOperationExceptionResponse = async (par
|
|
|
151
151
|
});
|
|
152
152
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
153
153
|
};
|
|
154
|
-
const
|
|
154
|
+
const se_AuditEvent = (input, context) => {
|
|
155
155
|
return {
|
|
156
156
|
...(input.eventData != null && { eventData: input.eventData }),
|
|
157
157
|
...(input.eventDataChecksum != null && { eventDataChecksum: input.eventDataChecksum }),
|
|
158
158
|
...(input.id != null && { id: input.id }),
|
|
159
159
|
};
|
|
160
160
|
};
|
|
161
|
-
const
|
|
161
|
+
const se_AuditEvents = (input, context) => {
|
|
162
162
|
return input
|
|
163
163
|
.filter((e) => e != null)
|
|
164
164
|
.map((entry) => {
|
|
165
|
-
return
|
|
165
|
+
return se_AuditEvent(entry, context);
|
|
166
166
|
});
|
|
167
167
|
};
|
|
168
|
-
const
|
|
168
|
+
const de_AuditEventResultEntries = (output, context) => {
|
|
169
169
|
const retVal = (output || [])
|
|
170
170
|
.filter((e) => e != null)
|
|
171
171
|
.map((entry) => {
|
|
172
172
|
if (entry === null) {
|
|
173
173
|
return null;
|
|
174
174
|
}
|
|
175
|
-
return
|
|
175
|
+
return de_AuditEventResultEntry(entry, context);
|
|
176
176
|
});
|
|
177
177
|
return retVal;
|
|
178
178
|
};
|
|
179
|
-
const
|
|
179
|
+
const de_AuditEventResultEntry = (output, context) => {
|
|
180
180
|
return {
|
|
181
181
|
eventID: __expectString(output.eventID),
|
|
182
182
|
id: __expectString(output.id),
|
|
183
183
|
};
|
|
184
184
|
};
|
|
185
|
-
const
|
|
185
|
+
const de_ResultErrorEntries = (output, context) => {
|
|
186
186
|
const retVal = (output || [])
|
|
187
187
|
.filter((e) => e != null)
|
|
188
188
|
.map((entry) => {
|
|
189
189
|
if (entry === null) {
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
|
-
return
|
|
192
|
+
return de_ResultErrorEntry(entry, context);
|
|
193
193
|
});
|
|
194
194
|
return retVal;
|
|
195
195
|
};
|
|
196
|
-
const
|
|
196
|
+
const de_ResultErrorEntry = (output, context) => {
|
|
197
197
|
return {
|
|
198
198
|
errorCode: __expectString(output.errorCode),
|
|
199
199
|
errorMessage: __expectString(output.errorMessage),
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { PutAuditEventsCommandInput, PutAuditEventsCommandOutput } from "../commands/PutAuditEventsCommand";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* serializeAws_restJson1PutAuditEventsCommand
|
|
6
|
+
*/
|
|
7
|
+
export declare const se_PutAuditEventsCommand: (input: PutAuditEventsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
8
|
+
/**
|
|
9
|
+
* deserializeAws_restJson1PutAuditEventsCommand
|
|
10
|
+
*/
|
|
11
|
+
export declare const de_PutAuditEventsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutAuditEventsCommandOutput>;
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
PutAuditEventsCommandInput,
|
|
8
8
|
PutAuditEventsCommandOutput,
|
|
9
9
|
} from "../commands/PutAuditEventsCommand";
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const se_PutAuditEventsCommand: (
|
|
11
11
|
input: PutAuditEventsCommandInput,
|
|
12
12
|
context: __SerdeContext
|
|
13
13
|
) => Promise<__HttpRequest>;
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const de_PutAuditEventsCommand: (
|
|
15
15
|
output: __HttpResponse,
|
|
16
16
|
context: __SerdeContext
|
|
17
17
|
) => Promise<PutAuditEventsCommandOutput>;
|
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.309.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,37 +21,37 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.309.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.306.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.309.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.306.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.306.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.306.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.306.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.306.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.306.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.306.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.306.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.306.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.306.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.306.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.306.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.306.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.306.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.309.0",
|
|
44
|
+
"@aws-sdk/types": "3.306.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.306.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.303.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.309.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.309.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.306.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.306.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.306.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.306.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|