@aws-sdk/client-cloudtrail 3.165.0 → 3.168.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/CHANGELOG.md +11 -0
- package/dist-cjs/CloudTrail.js +30 -0
- package/dist-cjs/commands/GetChannelCommand.js +36 -0
- package/dist-cjs/commands/ListChannelsCommand.js +36 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +64 -3
- package/dist-cjs/pagination/ListChannelsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +201 -2
- package/dist-es/CloudTrail.js +30 -0
- package/dist-es/commands/GetChannelCommand.js +39 -0
- package/dist-es/commands/ListChannelsCommand.js +39 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +38 -0
- package/dist-es/pagination/ListChannelsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +236 -1
- package/dist-types/CloudTrail.d.ts +19 -1
- package/dist-types/CloudTrailClient.d.ts +4 -2
- package/dist-types/commands/GetChannelCommand.d.ts +37 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +37 -0
- package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +199 -5
- package/dist-types/pagination/ListChannelsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +10 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/GetChannelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListChannelsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +85 -0
- package/dist-types/ts3.4/pagination/ListChannelsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
- package/package.json +34 -33
package/dist-es/CloudTrail.js
CHANGED
|
@@ -8,12 +8,14 @@ import { DeleteEventDataStoreCommand, } from "./commands/DeleteEventDataStoreCom
|
|
|
8
8
|
import { DeleteTrailCommand } from "./commands/DeleteTrailCommand";
|
|
9
9
|
import { DescribeQueryCommand, } from "./commands/DescribeQueryCommand";
|
|
10
10
|
import { DescribeTrailsCommand, } from "./commands/DescribeTrailsCommand";
|
|
11
|
+
import { GetChannelCommand } from "./commands/GetChannelCommand";
|
|
11
12
|
import { GetEventDataStoreCommand, } from "./commands/GetEventDataStoreCommand";
|
|
12
13
|
import { GetEventSelectorsCommand, } from "./commands/GetEventSelectorsCommand";
|
|
13
14
|
import { GetInsightSelectorsCommand, } from "./commands/GetInsightSelectorsCommand";
|
|
14
15
|
import { GetQueryResultsCommand, } from "./commands/GetQueryResultsCommand";
|
|
15
16
|
import { GetTrailCommand } from "./commands/GetTrailCommand";
|
|
16
17
|
import { GetTrailStatusCommand, } from "./commands/GetTrailStatusCommand";
|
|
18
|
+
import { ListChannelsCommand, } from "./commands/ListChannelsCommand";
|
|
17
19
|
import { ListEventDataStoresCommand, } from "./commands/ListEventDataStoresCommand";
|
|
18
20
|
import { ListPublicKeysCommand, } from "./commands/ListPublicKeysCommand";
|
|
19
21
|
import { ListQueriesCommand } from "./commands/ListQueriesCommand";
|
|
@@ -146,6 +148,20 @@ var CloudTrail = (function (_super) {
|
|
|
146
148
|
return this.send(command, optionsOrCb);
|
|
147
149
|
}
|
|
148
150
|
};
|
|
151
|
+
CloudTrail.prototype.getChannel = function (args, optionsOrCb, cb) {
|
|
152
|
+
var command = new GetChannelCommand(args);
|
|
153
|
+
if (typeof optionsOrCb === "function") {
|
|
154
|
+
this.send(command, optionsOrCb);
|
|
155
|
+
}
|
|
156
|
+
else if (typeof cb === "function") {
|
|
157
|
+
if (typeof optionsOrCb !== "object")
|
|
158
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
159
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
return this.send(command, optionsOrCb);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
149
165
|
CloudTrail.prototype.getEventDataStore = function (args, optionsOrCb, cb) {
|
|
150
166
|
var command = new GetEventDataStoreCommand(args);
|
|
151
167
|
if (typeof optionsOrCb === "function") {
|
|
@@ -230,6 +246,20 @@ var CloudTrail = (function (_super) {
|
|
|
230
246
|
return this.send(command, optionsOrCb);
|
|
231
247
|
}
|
|
232
248
|
};
|
|
249
|
+
CloudTrail.prototype.listChannels = function (args, optionsOrCb, cb) {
|
|
250
|
+
var command = new ListChannelsCommand(args);
|
|
251
|
+
if (typeof optionsOrCb === "function") {
|
|
252
|
+
this.send(command, optionsOrCb);
|
|
253
|
+
}
|
|
254
|
+
else if (typeof cb === "function") {
|
|
255
|
+
if (typeof optionsOrCb !== "object")
|
|
256
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
257
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
return this.send(command, optionsOrCb);
|
|
261
|
+
}
|
|
262
|
+
};
|
|
233
263
|
CloudTrail.prototype.listEventDataStores = function (args, optionsOrCb, cb) {
|
|
234
264
|
var command = new ListEventDataStoresCommand(args);
|
|
235
265
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetChannelRequestFilterSensitiveLog, GetChannelResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetChannelCommand, serializeAws_json1_1GetChannelCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetChannelCommand = (function (_super) {
|
|
7
|
+
__extends(GetChannelCommand, _super);
|
|
8
|
+
function GetChannelCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetChannelCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CloudTrailClient";
|
|
18
|
+
var commandName = "GetChannelCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetChannelRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetChannelResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetChannelCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1GetChannelCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetChannelCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1GetChannelCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetChannelCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetChannelCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListChannelsRequestFilterSensitiveLog, ListChannelsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListChannelsCommand, serializeAws_json1_1ListChannelsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListChannelsCommand = (function (_super) {
|
|
7
|
+
__extends(ListChannelsCommand, _super);
|
|
8
|
+
function ListChannelsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListChannelsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CloudTrailClient";
|
|
18
|
+
var commandName = "ListChannelsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListChannelsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListChannelsResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListChannelsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListChannelsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListChannelsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListChannelsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListChannelsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListChannelsCommand };
|
|
@@ -6,12 +6,14 @@ export * from "./DeleteEventDataStoreCommand";
|
|
|
6
6
|
export * from "./DeleteTrailCommand";
|
|
7
7
|
export * from "./DescribeQueryCommand";
|
|
8
8
|
export * from "./DescribeTrailsCommand";
|
|
9
|
+
export * from "./GetChannelCommand";
|
|
9
10
|
export * from "./GetEventDataStoreCommand";
|
|
10
11
|
export * from "./GetEventSelectorsCommand";
|
|
11
12
|
export * from "./GetInsightSelectorsCommand";
|
|
12
13
|
export * from "./GetQueryResultsCommand";
|
|
13
14
|
export * from "./GetTrailCommand";
|
|
14
15
|
export * from "./GetTrailStatusCommand";
|
|
16
|
+
export * from "./ListChannelsCommand";
|
|
15
17
|
export * from "./ListEventDataStoresCommand";
|
|
16
18
|
export * from "./ListPublicKeysCommand";
|
|
17
19
|
export * from "./ListQueriesCommand";
|
|
@@ -217,6 +217,32 @@ var QueryIdNotFoundException = (function (_super) {
|
|
|
217
217
|
return QueryIdNotFoundException;
|
|
218
218
|
}(__BaseException));
|
|
219
219
|
export { QueryIdNotFoundException };
|
|
220
|
+
var ChannelARNInvalidException = (function (_super) {
|
|
221
|
+
__extends(ChannelARNInvalidException, _super);
|
|
222
|
+
function ChannelARNInvalidException(opts) {
|
|
223
|
+
var _this = _super.call(this, __assign({ name: "ChannelARNInvalidException", $fault: "client" }, opts)) || this;
|
|
224
|
+
_this.name = "ChannelARNInvalidException";
|
|
225
|
+
_this.$fault = "client";
|
|
226
|
+
Object.setPrototypeOf(_this, ChannelARNInvalidException.prototype);
|
|
227
|
+
_this.Message = opts.Message;
|
|
228
|
+
return _this;
|
|
229
|
+
}
|
|
230
|
+
return ChannelARNInvalidException;
|
|
231
|
+
}(__BaseException));
|
|
232
|
+
export { ChannelARNInvalidException };
|
|
233
|
+
var ChannelNotFoundException = (function (_super) {
|
|
234
|
+
__extends(ChannelNotFoundException, _super);
|
|
235
|
+
function ChannelNotFoundException(opts) {
|
|
236
|
+
var _this = _super.call(this, __assign({ name: "ChannelNotFoundException", $fault: "client" }, opts)) || this;
|
|
237
|
+
_this.name = "ChannelNotFoundException";
|
|
238
|
+
_this.$fault = "client";
|
|
239
|
+
Object.setPrototypeOf(_this, ChannelNotFoundException.prototype);
|
|
240
|
+
_this.Message = opts.Message;
|
|
241
|
+
return _this;
|
|
242
|
+
}
|
|
243
|
+
return ChannelNotFoundException;
|
|
244
|
+
}(__BaseException));
|
|
245
|
+
export { ChannelNotFoundException };
|
|
220
246
|
var CloudTrailAccessNotEnabledException = (function (_super) {
|
|
221
247
|
__extends(CloudTrailAccessNotEnabledException, _super);
|
|
222
248
|
function CloudTrailAccessNotEnabledException(opts) {
|
|
@@ -587,6 +613,11 @@ var TrailNotFoundException = (function (_super) {
|
|
|
587
613
|
return TrailNotFoundException;
|
|
588
614
|
}(__BaseException));
|
|
589
615
|
export { TrailNotFoundException };
|
|
616
|
+
export var DestinationType;
|
|
617
|
+
(function (DestinationType) {
|
|
618
|
+
DestinationType["AWS_SERVICE"] = "AWS_SERVICE";
|
|
619
|
+
DestinationType["EVENT_DATA_STORE"] = "EVENT_DATA_STORE";
|
|
620
|
+
})(DestinationType || (DestinationType = {}));
|
|
590
621
|
export var ReadWriteType;
|
|
591
622
|
(function (ReadWriteType) {
|
|
592
623
|
ReadWriteType["All"] = "All";
|
|
@@ -802,6 +833,7 @@ export var AdvancedFieldSelectorFilterSensitiveLog = function (obj) { return (__
|
|
|
802
833
|
export var AdvancedEventSelectorFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
803
834
|
export var CancelQueryRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
804
835
|
export var CancelQueryResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
836
|
+
export var ChannelFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
805
837
|
export var CreateEventDataStoreRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
806
838
|
export var CreateEventDataStoreResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
807
839
|
export var CreateTrailRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -816,6 +848,10 @@ export var DescribeQueryResponseFilterSensitiveLog = function (obj) { return (__
|
|
|
816
848
|
export var DescribeTrailsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
817
849
|
export var TrailFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
818
850
|
export var DescribeTrailsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
851
|
+
export var GetChannelRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
852
|
+
export var DestinationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
853
|
+
export var SourceConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
854
|
+
export var GetChannelResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
819
855
|
export var GetEventDataStoreRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
820
856
|
export var GetEventDataStoreResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
821
857
|
export var GetEventSelectorsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -832,6 +868,8 @@ export var GetTrailRequestFilterSensitiveLog = function (obj) { return (__assign
|
|
|
832
868
|
export var GetTrailResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
833
869
|
export var GetTrailStatusRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
834
870
|
export var GetTrailStatusResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
871
|
+
export var ListChannelsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
872
|
+
export var ListChannelsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
835
873
|
export var ListEventDataStoresRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
836
874
|
export var EventDataStoreFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
837
875
|
export var ListEventDataStoresResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { CloudTrail } from "../CloudTrail";
|
|
3
|
+
import { CloudTrailClient } from "../CloudTrailClient";
|
|
4
|
+
import { ListChannelsCommand, } from "../commands/ListChannelsCommand";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListChannelsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listChannels.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListChannels(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListChannels_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof CloudTrail)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof CloudTrailClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -2,7 +2,7 @@ import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { CloudTrailServiceException as __BaseException } from "../models/CloudTrailServiceException";
|
|
5
|
-
import { CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConflictException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException, InactiveEventDataStoreException, InactiveQueryException, InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException, InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException, InvalidEventCategoryException, InvalidEventDataStoreStatusException, InvalidEventSelectorsException, InvalidHomeRegionException, InvalidInsightSelectorsException, InvalidKmsKeyIdException, InvalidLookupAttributesException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidQueryStatementException, InvalidQueryStatusException, InvalidS3BucketNameException, InvalidS3PrefixException, InvalidSnsTopicNameException, InvalidTagParameterException, InvalidTimeRangeException, InvalidTokenException, InvalidTrailNameException, KmsException, KmsKeyDisabledException, KmsKeyNotFoundException, MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException, NotOrganizationMasterAccountException, OperationNotPermittedException, OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException, QueryIdNotFoundException, ResourceNotFoundException, ResourceTypeNotSupportedException, S3BucketDoesNotExistException, TagsLimitExceededException, TrailAlreadyExistsException, TrailNotFoundException, TrailNotProvidedException, UnsupportedOperationException, } from "../models/models_0";
|
|
5
|
+
import { ChannelARNInvalidException, ChannelNotFoundException, CloudTrailAccessNotEnabledException, CloudTrailARNInvalidException, CloudTrailInvalidClientTokenIdException, CloudWatchLogsDeliveryUnavailableException, ConflictException, EventDataStoreAlreadyExistsException, EventDataStoreARNInvalidException, EventDataStoreMaxLimitExceededException, EventDataStoreNotFoundException, EventDataStoreTerminationProtectedException, InactiveEventDataStoreException, InactiveQueryException, InsightNotEnabledException, InsufficientDependencyServiceAccessPermissionException, InsufficientEncryptionPolicyException, InsufficientS3BucketPolicyException, InsufficientSnsTopicPolicyException, InvalidCloudWatchLogsLogGroupArnException, InvalidCloudWatchLogsRoleArnException, InvalidDateRangeException, InvalidEventCategoryException, InvalidEventDataStoreStatusException, InvalidEventSelectorsException, InvalidHomeRegionException, InvalidInsightSelectorsException, InvalidKmsKeyIdException, InvalidLookupAttributesException, InvalidMaxResultsException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterException, InvalidQueryStatementException, InvalidQueryStatusException, InvalidS3BucketNameException, InvalidS3PrefixException, InvalidSnsTopicNameException, InvalidTagParameterException, InvalidTimeRangeException, InvalidTokenException, InvalidTrailNameException, KmsException, KmsKeyDisabledException, KmsKeyNotFoundException, MaxConcurrentQueriesException, MaximumNumberOfTrailsExceededException, NotOrganizationMasterAccountException, OperationNotPermittedException, OrganizationNotInAllFeaturesModeException, OrganizationsNotInUseException, QueryIdNotFoundException, ResourceNotFoundException, ResourceTypeNotSupportedException, S3BucketDoesNotExistException, TagsLimitExceededException, TrailAlreadyExistsException, TrailNotFoundException, TrailNotProvidedException, UnsupportedOperationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_json1_1AddTagsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
7
|
var headers, body;
|
|
8
8
|
return __generator(this, function (_a) {
|
|
@@ -91,6 +91,17 @@ export var serializeAws_json1_1DescribeTrailsCommand = function (input, context)
|
|
|
91
91
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
92
|
});
|
|
93
93
|
}); };
|
|
94
|
+
export var serializeAws_json1_1GetChannelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "CloudTrail_20131101.GetChannel",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1GetChannelRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
94
105
|
export var serializeAws_json1_1GetEventDataStoreCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
106
|
var headers, body;
|
|
96
107
|
return __generator(this, function (_a) {
|
|
@@ -157,6 +168,17 @@ export var serializeAws_json1_1GetTrailStatusCommand = function (input, context)
|
|
|
157
168
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
169
|
});
|
|
159
170
|
}); };
|
|
171
|
+
export var serializeAws_json1_1ListChannelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
|
+
var headers, body;
|
|
173
|
+
return __generator(this, function (_a) {
|
|
174
|
+
headers = {
|
|
175
|
+
"content-type": "application/x-amz-json-1.1",
|
|
176
|
+
"x-amz-target": "CloudTrail_20131101.ListChannels",
|
|
177
|
+
};
|
|
178
|
+
body = JSON.stringify(serializeAws_json1_1ListChannelsRequest(input, context));
|
|
179
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
180
|
+
});
|
|
181
|
+
}); };
|
|
160
182
|
export var serializeAws_json1_1ListEventDataStoresCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
161
183
|
var headers, body;
|
|
162
184
|
return __generator(this, function (_a) {
|
|
@@ -1050,6 +1072,69 @@ var deserializeAws_json1_1DescribeTrailsCommandError = function (output, context
|
|
|
1050
1072
|
}
|
|
1051
1073
|
});
|
|
1052
1074
|
}); };
|
|
1075
|
+
export var deserializeAws_json1_1GetChannelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1076
|
+
var data, contents, response;
|
|
1077
|
+
return __generator(this, function (_a) {
|
|
1078
|
+
switch (_a.label) {
|
|
1079
|
+
case 0:
|
|
1080
|
+
if (output.statusCode >= 300) {
|
|
1081
|
+
return [2, deserializeAws_json1_1GetChannelCommandError(output, context)];
|
|
1082
|
+
}
|
|
1083
|
+
return [4, parseBody(output.body, context)];
|
|
1084
|
+
case 1:
|
|
1085
|
+
data = _a.sent();
|
|
1086
|
+
contents = {};
|
|
1087
|
+
contents = deserializeAws_json1_1GetChannelResponse(data, context);
|
|
1088
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1089
|
+
return [2, Promise.resolve(response)];
|
|
1090
|
+
}
|
|
1091
|
+
});
|
|
1092
|
+
}); };
|
|
1093
|
+
var deserializeAws_json1_1GetChannelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1094
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1095
|
+
var _c;
|
|
1096
|
+
return __generator(this, function (_d) {
|
|
1097
|
+
switch (_d.label) {
|
|
1098
|
+
case 0:
|
|
1099
|
+
_a = [__assign({}, output)];
|
|
1100
|
+
_c = {};
|
|
1101
|
+
return [4, parseBody(output.body, context)];
|
|
1102
|
+
case 1:
|
|
1103
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1104
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1105
|
+
_b = errorCode;
|
|
1106
|
+
switch (_b) {
|
|
1107
|
+
case "ChannelARNInvalidException": return [3, 2];
|
|
1108
|
+
case "com.amazonaws.cloudtrail#ChannelARNInvalidException": return [3, 2];
|
|
1109
|
+
case "ChannelNotFoundException": return [3, 4];
|
|
1110
|
+
case "com.amazonaws.cloudtrail#ChannelNotFoundException": return [3, 4];
|
|
1111
|
+
case "OperationNotPermittedException": return [3, 6];
|
|
1112
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException": return [3, 6];
|
|
1113
|
+
case "UnsupportedOperationException": return [3, 8];
|
|
1114
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException": return [3, 8];
|
|
1115
|
+
}
|
|
1116
|
+
return [3, 10];
|
|
1117
|
+
case 2: return [4, deserializeAws_json1_1ChannelARNInvalidExceptionResponse(parsedOutput, context)];
|
|
1118
|
+
case 3: throw _d.sent();
|
|
1119
|
+
case 4: return [4, deserializeAws_json1_1ChannelNotFoundExceptionResponse(parsedOutput, context)];
|
|
1120
|
+
case 5: throw _d.sent();
|
|
1121
|
+
case 6: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1122
|
+
case 7: throw _d.sent();
|
|
1123
|
+
case 8: return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
1124
|
+
case 9: throw _d.sent();
|
|
1125
|
+
case 10:
|
|
1126
|
+
parsedBody = parsedOutput.body;
|
|
1127
|
+
throwDefaultError({
|
|
1128
|
+
output: output,
|
|
1129
|
+
parsedBody: parsedBody,
|
|
1130
|
+
exceptionCtor: __BaseException,
|
|
1131
|
+
errorCode: errorCode,
|
|
1132
|
+
});
|
|
1133
|
+
_d.label = 11;
|
|
1134
|
+
case 11: return [2];
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
}); };
|
|
1053
1138
|
export var deserializeAws_json1_1GetEventDataStoreCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1054
1139
|
var data, contents, response;
|
|
1055
1140
|
return __generator(this, function (_a) {
|
|
@@ -1456,6 +1541,65 @@ var deserializeAws_json1_1GetTrailStatusCommandError = function (output, context
|
|
|
1456
1541
|
}
|
|
1457
1542
|
});
|
|
1458
1543
|
}); };
|
|
1544
|
+
export var deserializeAws_json1_1ListChannelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1545
|
+
var data, contents, response;
|
|
1546
|
+
return __generator(this, function (_a) {
|
|
1547
|
+
switch (_a.label) {
|
|
1548
|
+
case 0:
|
|
1549
|
+
if (output.statusCode >= 300) {
|
|
1550
|
+
return [2, deserializeAws_json1_1ListChannelsCommandError(output, context)];
|
|
1551
|
+
}
|
|
1552
|
+
return [4, parseBody(output.body, context)];
|
|
1553
|
+
case 1:
|
|
1554
|
+
data = _a.sent();
|
|
1555
|
+
contents = {};
|
|
1556
|
+
contents = deserializeAws_json1_1ListChannelsResponse(data, context);
|
|
1557
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1558
|
+
return [2, Promise.resolve(response)];
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
}); };
|
|
1562
|
+
var deserializeAws_json1_1ListChannelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1563
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1564
|
+
var _c;
|
|
1565
|
+
return __generator(this, function (_d) {
|
|
1566
|
+
switch (_d.label) {
|
|
1567
|
+
case 0:
|
|
1568
|
+
_a = [__assign({}, output)];
|
|
1569
|
+
_c = {};
|
|
1570
|
+
return [4, parseBody(output.body, context)];
|
|
1571
|
+
case 1:
|
|
1572
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1573
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
|
+
_b = errorCode;
|
|
1575
|
+
switch (_b) {
|
|
1576
|
+
case "InvalidNextTokenException": return [3, 2];
|
|
1577
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException": return [3, 2];
|
|
1578
|
+
case "OperationNotPermittedException": return [3, 4];
|
|
1579
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException": return [3, 4];
|
|
1580
|
+
case "UnsupportedOperationException": return [3, 6];
|
|
1581
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException": return [3, 6];
|
|
1582
|
+
}
|
|
1583
|
+
return [3, 8];
|
|
1584
|
+
case 2: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
1585
|
+
case 3: throw _d.sent();
|
|
1586
|
+
case 4: return [4, deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)];
|
|
1587
|
+
case 5: throw _d.sent();
|
|
1588
|
+
case 6: return [4, deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)];
|
|
1589
|
+
case 7: throw _d.sent();
|
|
1590
|
+
case 8:
|
|
1591
|
+
parsedBody = parsedOutput.body;
|
|
1592
|
+
throwDefaultError({
|
|
1593
|
+
output: output,
|
|
1594
|
+
parsedBody: parsedBody,
|
|
1595
|
+
exceptionCtor: __BaseException,
|
|
1596
|
+
errorCode: errorCode,
|
|
1597
|
+
});
|
|
1598
|
+
_d.label = 9;
|
|
1599
|
+
case 9: return [2];
|
|
1600
|
+
}
|
|
1601
|
+
});
|
|
1602
|
+
}); };
|
|
1459
1603
|
export var deserializeAws_json1_1ListEventDataStoresCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1460
1604
|
var data, contents, response;
|
|
1461
1605
|
return __generator(this, function (_a) {
|
|
@@ -2713,6 +2857,24 @@ var deserializeAws_json1_1UpdateTrailCommandError = function (output, context) {
|
|
|
2713
2857
|
}
|
|
2714
2858
|
});
|
|
2715
2859
|
}); };
|
|
2860
|
+
var deserializeAws_json1_1ChannelARNInvalidExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2861
|
+
var body, deserialized, exception;
|
|
2862
|
+
return __generator(this, function (_a) {
|
|
2863
|
+
body = parsedOutput.body;
|
|
2864
|
+
deserialized = deserializeAws_json1_1ChannelARNInvalidException(body, context);
|
|
2865
|
+
exception = new ChannelARNInvalidException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2866
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2867
|
+
});
|
|
2868
|
+
}); };
|
|
2869
|
+
var deserializeAws_json1_1ChannelNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2870
|
+
var body, deserialized, exception;
|
|
2871
|
+
return __generator(this, function (_a) {
|
|
2872
|
+
body = parsedOutput.body;
|
|
2873
|
+
deserialized = deserializeAws_json1_1ChannelNotFoundException(body, context);
|
|
2874
|
+
exception = new ChannelNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2875
|
+
return [2, __decorateServiceException(exception, body)];
|
|
2876
|
+
});
|
|
2877
|
+
}); };
|
|
2716
2878
|
var deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2717
2879
|
var body, deserialized, exception;
|
|
2718
2880
|
return __generator(this, function (_a) {
|
|
@@ -3325,6 +3487,9 @@ var serializeAws_json1_1ExcludeManagementEventSources = function (input, context
|
|
|
3325
3487
|
return entry;
|
|
3326
3488
|
});
|
|
3327
3489
|
};
|
|
3490
|
+
var serializeAws_json1_1GetChannelRequest = function (input, context) {
|
|
3491
|
+
return __assign({}, (input.Channel != null && { Channel: input.Channel }));
|
|
3492
|
+
};
|
|
3328
3493
|
var serializeAws_json1_1GetEventDataStoreRequest = function (input, context) {
|
|
3329
3494
|
return __assign({}, (input.EventDataStore != null && { EventDataStore: input.EventDataStore }));
|
|
3330
3495
|
};
|
|
@@ -3353,6 +3518,9 @@ var serializeAws_json1_1InsightSelectors = function (input, context) {
|
|
|
3353
3518
|
return serializeAws_json1_1InsightSelector(entry, context);
|
|
3354
3519
|
});
|
|
3355
3520
|
};
|
|
3521
|
+
var serializeAws_json1_1ListChannelsRequest = function (input, context) {
|
|
3522
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
3523
|
+
};
|
|
3356
3524
|
var serializeAws_json1_1ListEventDataStoresRequest = function (input, context) {
|
|
3357
3525
|
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
3358
3526
|
};
|
|
@@ -3503,6 +3671,33 @@ var deserializeAws_json1_1CancelQueryResponse = function (output, context) {
|
|
|
3503
3671
|
QueryStatus: __expectString(output.QueryStatus),
|
|
3504
3672
|
};
|
|
3505
3673
|
};
|
|
3674
|
+
var deserializeAws_json1_1Channel = function (output, context) {
|
|
3675
|
+
return {
|
|
3676
|
+
ChannelArn: __expectString(output.ChannelArn),
|
|
3677
|
+
Name: __expectString(output.Name),
|
|
3678
|
+
};
|
|
3679
|
+
};
|
|
3680
|
+
var deserializeAws_json1_1ChannelARNInvalidException = function (output, context) {
|
|
3681
|
+
return {
|
|
3682
|
+
Message: __expectString(output.Message),
|
|
3683
|
+
};
|
|
3684
|
+
};
|
|
3685
|
+
var deserializeAws_json1_1ChannelNotFoundException = function (output, context) {
|
|
3686
|
+
return {
|
|
3687
|
+
Message: __expectString(output.Message),
|
|
3688
|
+
};
|
|
3689
|
+
};
|
|
3690
|
+
var deserializeAws_json1_1Channels = function (output, context) {
|
|
3691
|
+
var retVal = (output || [])
|
|
3692
|
+
.filter(function (e) { return e != null; })
|
|
3693
|
+
.map(function (entry) {
|
|
3694
|
+
if (entry === null) {
|
|
3695
|
+
return null;
|
|
3696
|
+
}
|
|
3697
|
+
return deserializeAws_json1_1Channel(entry, context);
|
|
3698
|
+
});
|
|
3699
|
+
return retVal;
|
|
3700
|
+
};
|
|
3506
3701
|
var deserializeAws_json1_1CloudTrailAccessNotEnabledException = function (output, context) {
|
|
3507
3702
|
return {
|
|
3508
3703
|
Message: __expectString(output.Message),
|
|
@@ -3616,6 +3811,23 @@ var deserializeAws_json1_1DescribeTrailsResponse = function (output, context) {
|
|
|
3616
3811
|
trailList: output.trailList != null ? deserializeAws_json1_1TrailList(output.trailList, context) : undefined,
|
|
3617
3812
|
};
|
|
3618
3813
|
};
|
|
3814
|
+
var deserializeAws_json1_1Destination = function (output, context) {
|
|
3815
|
+
return {
|
|
3816
|
+
Location: __expectString(output.Location),
|
|
3817
|
+
Type: __expectString(output.Type),
|
|
3818
|
+
};
|
|
3819
|
+
};
|
|
3820
|
+
var deserializeAws_json1_1Destinations = function (output, context) {
|
|
3821
|
+
var retVal = (output || [])
|
|
3822
|
+
.filter(function (e) { return e != null; })
|
|
3823
|
+
.map(function (entry) {
|
|
3824
|
+
if (entry === null) {
|
|
3825
|
+
return null;
|
|
3826
|
+
}
|
|
3827
|
+
return deserializeAws_json1_1Destination(entry, context);
|
|
3828
|
+
});
|
|
3829
|
+
return retVal;
|
|
3830
|
+
};
|
|
3619
3831
|
var deserializeAws_json1_1Event = function (output, context) {
|
|
3620
3832
|
return {
|
|
3621
3833
|
AccessKeyId: __expectString(output.AccessKeyId),
|
|
@@ -3728,6 +3940,15 @@ var deserializeAws_json1_1ExcludeManagementEventSources = function (output, cont
|
|
|
3728
3940
|
});
|
|
3729
3941
|
return retVal;
|
|
3730
3942
|
};
|
|
3943
|
+
var deserializeAws_json1_1GetChannelResponse = function (output, context) {
|
|
3944
|
+
return {
|
|
3945
|
+
ChannelArn: __expectString(output.ChannelArn),
|
|
3946
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1Destinations(output.Destinations, context) : undefined,
|
|
3947
|
+
Name: __expectString(output.Name),
|
|
3948
|
+
Source: __expectString(output.Source),
|
|
3949
|
+
SourceConfig: output.SourceConfig != null ? deserializeAws_json1_1SourceConfig(output.SourceConfig, context) : undefined,
|
|
3950
|
+
};
|
|
3951
|
+
};
|
|
3731
3952
|
var deserializeAws_json1_1GetEventDataStoreResponse = function (output, context) {
|
|
3732
3953
|
return {
|
|
3733
3954
|
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
@@ -3997,6 +4218,12 @@ var deserializeAws_json1_1KmsKeyNotFoundException = function (output, context) {
|
|
|
3997
4218
|
Message: __expectString(output.Message),
|
|
3998
4219
|
};
|
|
3999
4220
|
};
|
|
4221
|
+
var deserializeAws_json1_1ListChannelsResponse = function (output, context) {
|
|
4222
|
+
return {
|
|
4223
|
+
Channels: output.Channels != null ? deserializeAws_json1_1Channels(output.Channels, context) : undefined,
|
|
4224
|
+
NextToken: __expectString(output.NextToken),
|
|
4225
|
+
};
|
|
4226
|
+
};
|
|
4000
4227
|
var deserializeAws_json1_1ListEventDataStoresResponse = function (output, context) {
|
|
4001
4228
|
return {
|
|
4002
4229
|
EventDataStores: output.EventDataStores != null
|
|
@@ -4265,6 +4492,14 @@ var deserializeAws_json1_1S3BucketDoesNotExistException = function (output, cont
|
|
|
4265
4492
|
Message: __expectString(output.Message),
|
|
4266
4493
|
};
|
|
4267
4494
|
};
|
|
4495
|
+
var deserializeAws_json1_1SourceConfig = function (output, context) {
|
|
4496
|
+
return {
|
|
4497
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
4498
|
+
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
4499
|
+
: undefined,
|
|
4500
|
+
ApplyToAllRegions: __expectBoolean(output.ApplyToAllRegions),
|
|
4501
|
+
};
|
|
4502
|
+
};
|
|
4268
4503
|
var deserializeAws_json1_1StartLoggingResponse = function (output, context) {
|
|
4269
4504
|
return {};
|
|
4270
4505
|
};
|