@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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-cloudtrail:** This release adds CloudTrail getChannel and listChannels APIs to allow customer to view the ServiceLinkedChannel configurations. ([3c7cfa2](https://github.com/aws/aws-sdk-js-v3/commit/3c7cfa29dc762442c7142910a4cc3dc5f88f6bf4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.165.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.164.0...v3.165.0) (2022-09-06)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-cloudtrail
|
package/dist-cjs/CloudTrail.js
CHANGED
|
@@ -10,12 +10,14 @@ const DeleteEventDataStoreCommand_1 = require("./commands/DeleteEventDataStoreCo
|
|
|
10
10
|
const DeleteTrailCommand_1 = require("./commands/DeleteTrailCommand");
|
|
11
11
|
const DescribeQueryCommand_1 = require("./commands/DescribeQueryCommand");
|
|
12
12
|
const DescribeTrailsCommand_1 = require("./commands/DescribeTrailsCommand");
|
|
13
|
+
const GetChannelCommand_1 = require("./commands/GetChannelCommand");
|
|
13
14
|
const GetEventDataStoreCommand_1 = require("./commands/GetEventDataStoreCommand");
|
|
14
15
|
const GetEventSelectorsCommand_1 = require("./commands/GetEventSelectorsCommand");
|
|
15
16
|
const GetInsightSelectorsCommand_1 = require("./commands/GetInsightSelectorsCommand");
|
|
16
17
|
const GetQueryResultsCommand_1 = require("./commands/GetQueryResultsCommand");
|
|
17
18
|
const GetTrailCommand_1 = require("./commands/GetTrailCommand");
|
|
18
19
|
const GetTrailStatusCommand_1 = require("./commands/GetTrailStatusCommand");
|
|
20
|
+
const ListChannelsCommand_1 = require("./commands/ListChannelsCommand");
|
|
19
21
|
const ListEventDataStoresCommand_1 = require("./commands/ListEventDataStoresCommand");
|
|
20
22
|
const ListPublicKeysCommand_1 = require("./commands/ListPublicKeysCommand");
|
|
21
23
|
const ListQueriesCommand_1 = require("./commands/ListQueriesCommand");
|
|
@@ -144,6 +146,20 @@ class CloudTrail extends CloudTrailClient_1.CloudTrailClient {
|
|
|
144
146
|
return this.send(command, optionsOrCb);
|
|
145
147
|
}
|
|
146
148
|
}
|
|
149
|
+
getChannel(args, optionsOrCb, cb) {
|
|
150
|
+
const command = new GetChannelCommand_1.GetChannelCommand(args);
|
|
151
|
+
if (typeof optionsOrCb === "function") {
|
|
152
|
+
this.send(command, optionsOrCb);
|
|
153
|
+
}
|
|
154
|
+
else if (typeof cb === "function") {
|
|
155
|
+
if (typeof optionsOrCb !== "object")
|
|
156
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
157
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
return this.send(command, optionsOrCb);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
147
163
|
getEventDataStore(args, optionsOrCb, cb) {
|
|
148
164
|
const command = new GetEventDataStoreCommand_1.GetEventDataStoreCommand(args);
|
|
149
165
|
if (typeof optionsOrCb === "function") {
|
|
@@ -228,6 +244,20 @@ class CloudTrail extends CloudTrailClient_1.CloudTrailClient {
|
|
|
228
244
|
return this.send(command, optionsOrCb);
|
|
229
245
|
}
|
|
230
246
|
}
|
|
247
|
+
listChannels(args, optionsOrCb, cb) {
|
|
248
|
+
const command = new ListChannelsCommand_1.ListChannelsCommand(args);
|
|
249
|
+
if (typeof optionsOrCb === "function") {
|
|
250
|
+
this.send(command, optionsOrCb);
|
|
251
|
+
}
|
|
252
|
+
else if (typeof cb === "function") {
|
|
253
|
+
if (typeof optionsOrCb !== "object")
|
|
254
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
255
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
return this.send(command, optionsOrCb);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
231
261
|
listEventDataStores(args, optionsOrCb, cb) {
|
|
232
262
|
const command = new ListEventDataStoresCommand_1.ListEventDataStoresCommand(args);
|
|
233
263
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetChannelCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class GetChannelCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "CloudTrailClient";
|
|
18
|
+
const commandName = "GetChannelCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetChannelRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetChannelResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1GetChannelCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1GetChannelCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetChannelCommand = GetChannelCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListChannelsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class ListChannelsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "CloudTrailClient";
|
|
18
|
+
const commandName = "ListChannelsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListChannelsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListChannelsResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1ListChannelsCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1ListChannelsCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListChannelsCommand = ListChannelsCommand;
|
|
@@ -9,12 +9,14 @@ tslib_1.__exportStar(require("./DeleteEventDataStoreCommand"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./DeleteTrailCommand"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./DescribeQueryCommand"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./DescribeTrailsCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./GetChannelCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./GetEventDataStoreCommand"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./GetEventSelectorsCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./GetInsightSelectorsCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./GetQueryResultsCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./GetTrailCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./GetTrailStatusCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./ListChannelsCommand"), exports);
|
|
18
20
|
tslib_1.__exportStar(require("./ListEventDataStoresCommand"), exports);
|
|
19
21
|
tslib_1.__exportStar(require("./ListPublicKeysCommand"), exports);
|
|
20
22
|
tslib_1.__exportStar(require("./ListQueriesCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateTrailResponseFilterSensitiveLog = exports.UpdateTrailRequestFilterSensitiveLog = exports.UpdateEventDataStoreResponseFilterSensitiveLog = exports.UpdateEventDataStoreRequestFilterSensitiveLog = exports.StopLoggingResponseFilterSensitiveLog = exports.StopLoggingRequestFilterSensitiveLog = exports.StartQueryResponseFilterSensitiveLog = exports.StartQueryRequestFilterSensitiveLog = exports.StartLoggingResponseFilterSensitiveLog = exports.StartLoggingRequestFilterSensitiveLog = exports.RestoreEventDataStoreResponseFilterSensitiveLog = exports.RestoreEventDataStoreRequestFilterSensitiveLog = exports.RemoveTagsResponseFilterSensitiveLog = exports.RemoveTagsRequestFilterSensitiveLog = exports.PutInsightSelectorsResponseFilterSensitiveLog = exports.PutInsightSelectorsRequestFilterSensitiveLog = exports.PutEventSelectorsResponseFilterSensitiveLog = exports.PutEventSelectorsRequestFilterSensitiveLog = exports.LookupEventsResponseFilterSensitiveLog = exports.EventFilterSensitiveLog = exports.ResourceFilterSensitiveLog = exports.LookupEventsRequestFilterSensitiveLog = exports.LookupAttributeFilterSensitiveLog = exports.ListTrailsResponseFilterSensitiveLog = exports.TrailInfoFilterSensitiveLog = exports.ListTrailsRequestFilterSensitiveLog = exports.ListTagsResponseFilterSensitiveLog = exports.ResourceTagFilterSensitiveLog = exports.ListTagsRequestFilterSensitiveLog = exports.ListQueriesResponseFilterSensitiveLog = exports.QueryFilterSensitiveLog = exports.ListQueriesRequestFilterSensitiveLog = exports.ListPublicKeysResponseFilterSensitiveLog = exports.PublicKeyFilterSensitiveLog = exports.ListPublicKeysRequestFilterSensitiveLog = exports.ListEventDataStoresResponseFilterSensitiveLog = exports.EventDataStoreFilterSensitiveLog = exports.ListEventDataStoresRequestFilterSensitiveLog = exports.GetTrailStatusResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.ReadWriteType = exports.DestinationType = exports.TrailNotFoundException = exports.InvalidHomeRegionException = exports.EventDataStoreTerminationProtectedException = exports.TrailNotProvidedException = exports.TrailAlreadyExistsException = exports.S3BucketDoesNotExistException = exports.MaximumNumberOfTrailsExceededException = exports.KmsKeyNotFoundException = exports.KmsKeyDisabledException = exports.KmsException = exports.InvalidSnsTopicNameException = exports.InvalidS3PrefixException = exports.InvalidS3BucketNameException = exports.InvalidParameterCombinationException = exports.InvalidKmsKeyIdException = exports.InvalidCloudWatchLogsRoleArnException = exports.InvalidCloudWatchLogsLogGroupArnException = exports.InsufficientSnsTopicPolicyException = exports.InsufficientS3BucketPolicyException = exports.InsufficientEncryptionPolicyException = exports.CloudWatchLogsDeliveryUnavailableException = exports.CloudTrailInvalidClientTokenIdException = exports.OrganizationsNotInUseException = exports.OrganizationNotInAllFeaturesModeException = exports.InsufficientDependencyServiceAccessPermissionException = exports.EventDataStoreMaxLimitExceededException = exports.EventDataStoreAlreadyExistsException = exports.EventDataStoreStatus = exports.CloudTrailAccessNotEnabledException = exports.ChannelNotFoundException = exports.ChannelARNInvalidException = exports.QueryIdNotFoundException = exports.InvalidParameterException = exports.InactiveQueryException = exports.EventDataStoreARNInvalidException = exports.QueryStatus = exports.UnsupportedOperationException = exports.TagsLimitExceededException = exports.ResourceTypeNotSupportedException = exports.ResourceNotFoundException = exports.OperationNotPermittedException = exports.NotOrganizationMasterAccountException = exports.InvalidTrailNameException = exports.InvalidTagParameterException = exports.InactiveEventDataStoreException = exports.EventDataStoreNotFoundException = exports.ConflictException = exports.CloudTrailARNInvalidException = void 0;
|
|
4
|
+
exports.GetInsightSelectorsRequestFilterSensitiveLog = exports.GetEventSelectorsResponseFilterSensitiveLog = exports.EventSelectorFilterSensitiveLog = exports.DataResourceFilterSensitiveLog = exports.GetEventSelectorsRequestFilterSensitiveLog = exports.GetEventDataStoreResponseFilterSensitiveLog = exports.GetEventDataStoreRequestFilterSensitiveLog = exports.GetChannelResponseFilterSensitiveLog = exports.SourceConfigFilterSensitiveLog = exports.DestinationFilterSensitiveLog = exports.GetChannelRequestFilterSensitiveLog = exports.DescribeTrailsResponseFilterSensitiveLog = exports.TrailFilterSensitiveLog = exports.DescribeTrailsRequestFilterSensitiveLog = exports.DescribeQueryResponseFilterSensitiveLog = exports.QueryStatisticsForDescribeQueryFilterSensitiveLog = exports.DescribeQueryRequestFilterSensitiveLog = exports.DeleteTrailResponseFilterSensitiveLog = exports.DeleteTrailRequestFilterSensitiveLog = exports.DeleteEventDataStoreResponseFilterSensitiveLog = exports.DeleteEventDataStoreRequestFilterSensitiveLog = exports.CreateTrailResponseFilterSensitiveLog = exports.CreateTrailRequestFilterSensitiveLog = exports.CreateEventDataStoreResponseFilterSensitiveLog = exports.CreateEventDataStoreRequestFilterSensitiveLog = exports.ChannelFilterSensitiveLog = exports.CancelQueryResponseFilterSensitiveLog = exports.CancelQueryRequestFilterSensitiveLog = exports.AdvancedEventSelectorFilterSensitiveLog = exports.AdvancedFieldSelectorFilterSensitiveLog = exports.AddTagsResponseFilterSensitiveLog = exports.AddTagsRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.MaxConcurrentQueriesException = exports.InvalidQueryStatementException = exports.InvalidEventDataStoreStatusException = exports.InvalidInsightSelectorsException = exports.InvalidEventSelectorsException = exports.LookupAttributeKey = exports.EventCategory = exports.InvalidLookupAttributesException = exports.InvalidEventCategoryException = exports.InvalidQueryStatusException = exports.InvalidDateRangeException = exports.InvalidTokenException = exports.InvalidTimeRangeException = exports.InvalidNextTokenException = exports.InvalidMaxResultsException = exports.InsightNotEnabledException = exports.InsightType = void 0;
|
|
5
|
+
exports.UpdateTrailResponseFilterSensitiveLog = exports.UpdateTrailRequestFilterSensitiveLog = exports.UpdateEventDataStoreResponseFilterSensitiveLog = exports.UpdateEventDataStoreRequestFilterSensitiveLog = exports.StopLoggingResponseFilterSensitiveLog = exports.StopLoggingRequestFilterSensitiveLog = exports.StartQueryResponseFilterSensitiveLog = exports.StartQueryRequestFilterSensitiveLog = exports.StartLoggingResponseFilterSensitiveLog = exports.StartLoggingRequestFilterSensitiveLog = exports.RestoreEventDataStoreResponseFilterSensitiveLog = exports.RestoreEventDataStoreRequestFilterSensitiveLog = exports.RemoveTagsResponseFilterSensitiveLog = exports.RemoveTagsRequestFilterSensitiveLog = exports.PutInsightSelectorsResponseFilterSensitiveLog = exports.PutInsightSelectorsRequestFilterSensitiveLog = exports.PutEventSelectorsResponseFilterSensitiveLog = exports.PutEventSelectorsRequestFilterSensitiveLog = exports.LookupEventsResponseFilterSensitiveLog = exports.EventFilterSensitiveLog = exports.ResourceFilterSensitiveLog = exports.LookupEventsRequestFilterSensitiveLog = exports.LookupAttributeFilterSensitiveLog = exports.ListTrailsResponseFilterSensitiveLog = exports.TrailInfoFilterSensitiveLog = exports.ListTrailsRequestFilterSensitiveLog = exports.ListTagsResponseFilterSensitiveLog = exports.ResourceTagFilterSensitiveLog = exports.ListTagsRequestFilterSensitiveLog = exports.ListQueriesResponseFilterSensitiveLog = exports.QueryFilterSensitiveLog = exports.ListQueriesRequestFilterSensitiveLog = exports.ListPublicKeysResponseFilterSensitiveLog = exports.PublicKeyFilterSensitiveLog = exports.ListPublicKeysRequestFilterSensitiveLog = exports.ListEventDataStoresResponseFilterSensitiveLog = exports.EventDataStoreFilterSensitiveLog = exports.ListEventDataStoresRequestFilterSensitiveLog = exports.ListChannelsResponseFilterSensitiveLog = exports.ListChannelsRequestFilterSensitiveLog = exports.GetTrailStatusResponseFilterSensitiveLog = exports.GetTrailStatusRequestFilterSensitiveLog = exports.GetTrailResponseFilterSensitiveLog = exports.GetTrailRequestFilterSensitiveLog = exports.GetQueryResultsResponseFilterSensitiveLog = exports.QueryStatisticsFilterSensitiveLog = exports.GetQueryResultsRequestFilterSensitiveLog = exports.GetInsightSelectorsResponseFilterSensitiveLog = exports.InsightSelectorFilterSensitiveLog = void 0;
|
|
6
6
|
const CloudTrailServiceException_1 = require("./CloudTrailServiceException");
|
|
7
7
|
class CloudTrailARNInvalidException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -237,6 +237,34 @@ class QueryIdNotFoundException extends CloudTrailServiceException_1.CloudTrailSe
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
exports.QueryIdNotFoundException = QueryIdNotFoundException;
|
|
240
|
+
class ChannelARNInvalidException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
241
|
+
constructor(opts) {
|
|
242
|
+
super({
|
|
243
|
+
name: "ChannelARNInvalidException",
|
|
244
|
+
$fault: "client",
|
|
245
|
+
...opts,
|
|
246
|
+
});
|
|
247
|
+
this.name = "ChannelARNInvalidException";
|
|
248
|
+
this.$fault = "client";
|
|
249
|
+
Object.setPrototypeOf(this, ChannelARNInvalidException.prototype);
|
|
250
|
+
this.Message = opts.Message;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
exports.ChannelARNInvalidException = ChannelARNInvalidException;
|
|
254
|
+
class ChannelNotFoundException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
255
|
+
constructor(opts) {
|
|
256
|
+
super({
|
|
257
|
+
name: "ChannelNotFoundException",
|
|
258
|
+
$fault: "client",
|
|
259
|
+
...opts,
|
|
260
|
+
});
|
|
261
|
+
this.name = "ChannelNotFoundException";
|
|
262
|
+
this.$fault = "client";
|
|
263
|
+
Object.setPrototypeOf(this, ChannelNotFoundException.prototype);
|
|
264
|
+
this.Message = opts.Message;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
exports.ChannelNotFoundException = ChannelNotFoundException;
|
|
240
268
|
class CloudTrailAccessNotEnabledException extends CloudTrailServiceException_1.CloudTrailServiceException {
|
|
241
269
|
constructor(opts) {
|
|
242
270
|
super({
|
|
@@ -635,6 +663,11 @@ class TrailNotFoundException extends CloudTrailServiceException_1.CloudTrailServ
|
|
|
635
663
|
}
|
|
636
664
|
}
|
|
637
665
|
exports.TrailNotFoundException = TrailNotFoundException;
|
|
666
|
+
var DestinationType;
|
|
667
|
+
(function (DestinationType) {
|
|
668
|
+
DestinationType["AWS_SERVICE"] = "AWS_SERVICE";
|
|
669
|
+
DestinationType["EVENT_DATA_STORE"] = "EVENT_DATA_STORE";
|
|
670
|
+
})(DestinationType = exports.DestinationType || (exports.DestinationType = {}));
|
|
638
671
|
var ReadWriteType;
|
|
639
672
|
(function (ReadWriteType) {
|
|
640
673
|
ReadWriteType["All"] = "All";
|
|
@@ -885,6 +918,10 @@ const CancelQueryResponseFilterSensitiveLog = (obj) => ({
|
|
|
885
918
|
...obj,
|
|
886
919
|
});
|
|
887
920
|
exports.CancelQueryResponseFilterSensitiveLog = CancelQueryResponseFilterSensitiveLog;
|
|
921
|
+
const ChannelFilterSensitiveLog = (obj) => ({
|
|
922
|
+
...obj,
|
|
923
|
+
});
|
|
924
|
+
exports.ChannelFilterSensitiveLog = ChannelFilterSensitiveLog;
|
|
888
925
|
const CreateEventDataStoreRequestFilterSensitiveLog = (obj) => ({
|
|
889
926
|
...obj,
|
|
890
927
|
});
|
|
@@ -941,6 +978,22 @@ const DescribeTrailsResponseFilterSensitiveLog = (obj) => ({
|
|
|
941
978
|
...obj,
|
|
942
979
|
});
|
|
943
980
|
exports.DescribeTrailsResponseFilterSensitiveLog = DescribeTrailsResponseFilterSensitiveLog;
|
|
981
|
+
const GetChannelRequestFilterSensitiveLog = (obj) => ({
|
|
982
|
+
...obj,
|
|
983
|
+
});
|
|
984
|
+
exports.GetChannelRequestFilterSensitiveLog = GetChannelRequestFilterSensitiveLog;
|
|
985
|
+
const DestinationFilterSensitiveLog = (obj) => ({
|
|
986
|
+
...obj,
|
|
987
|
+
});
|
|
988
|
+
exports.DestinationFilterSensitiveLog = DestinationFilterSensitiveLog;
|
|
989
|
+
const SourceConfigFilterSensitiveLog = (obj) => ({
|
|
990
|
+
...obj,
|
|
991
|
+
});
|
|
992
|
+
exports.SourceConfigFilterSensitiveLog = SourceConfigFilterSensitiveLog;
|
|
993
|
+
const GetChannelResponseFilterSensitiveLog = (obj) => ({
|
|
994
|
+
...obj,
|
|
995
|
+
});
|
|
996
|
+
exports.GetChannelResponseFilterSensitiveLog = GetChannelResponseFilterSensitiveLog;
|
|
944
997
|
const GetEventDataStoreRequestFilterSensitiveLog = (obj) => ({
|
|
945
998
|
...obj,
|
|
946
999
|
});
|
|
@@ -1005,6 +1058,14 @@ const GetTrailStatusResponseFilterSensitiveLog = (obj) => ({
|
|
|
1005
1058
|
...obj,
|
|
1006
1059
|
});
|
|
1007
1060
|
exports.GetTrailStatusResponseFilterSensitiveLog = GetTrailStatusResponseFilterSensitiveLog;
|
|
1061
|
+
const ListChannelsRequestFilterSensitiveLog = (obj) => ({
|
|
1062
|
+
...obj,
|
|
1063
|
+
});
|
|
1064
|
+
exports.ListChannelsRequestFilterSensitiveLog = ListChannelsRequestFilterSensitiveLog;
|
|
1065
|
+
const ListChannelsResponseFilterSensitiveLog = (obj) => ({
|
|
1066
|
+
...obj,
|
|
1067
|
+
});
|
|
1068
|
+
exports.ListChannelsResponseFilterSensitiveLog = ListChannelsResponseFilterSensitiveLog;
|
|
1008
1069
|
const ListEventDataStoresRequestFilterSensitiveLog = (obj) => ({
|
|
1009
1070
|
...obj,
|
|
1010
1071
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListChannels = void 0;
|
|
4
|
+
const CloudTrail_1 = require("../CloudTrail");
|
|
5
|
+
const CloudTrailClient_1 = require("../CloudTrailClient");
|
|
6
|
+
const ListChannelsCommand_1 = require("../commands/ListChannelsCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListChannelsCommand_1.ListChannelsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listChannels(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListChannels(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof CloudTrail_1.CloudTrail) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof CloudTrailClient_1.CloudTrailClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected CloudTrail | CloudTrailClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.NextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListChannels = paginateListChannels;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./GetQueryResultsPaginator"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListChannelsPaginator"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./ListEventDataStoresPaginator"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./ListPublicKeysPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./ListQueriesPaginator"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateTrailCommand = exports.deserializeAws_json1_1UpdateEventDataStoreCommand = exports.deserializeAws_json1_1StopLoggingCommand = exports.deserializeAws_json1_1StartQueryCommand = exports.deserializeAws_json1_1StartLoggingCommand = exports.deserializeAws_json1_1RestoreEventDataStoreCommand = exports.deserializeAws_json1_1RemoveTagsCommand = exports.deserializeAws_json1_1PutInsightSelectorsCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1ListQueriesCommand = exports.deserializeAws_json1_1ListPublicKeysCommand = exports.deserializeAws_json1_1ListEventDataStoresCommand = exports.deserializeAws_json1_1ListChannelsCommand = exports.deserializeAws_json1_1GetTrailStatusCommand = exports.deserializeAws_json1_1GetTrailCommand = exports.deserializeAws_json1_1GetQueryResultsCommand = exports.deserializeAws_json1_1GetInsightSelectorsCommand = exports.deserializeAws_json1_1GetEventSelectorsCommand = exports.deserializeAws_json1_1GetEventDataStoreCommand = exports.deserializeAws_json1_1GetChannelCommand = exports.deserializeAws_json1_1DescribeTrailsCommand = exports.deserializeAws_json1_1DescribeQueryCommand = exports.deserializeAws_json1_1DeleteTrailCommand = exports.deserializeAws_json1_1DeleteEventDataStoreCommand = exports.deserializeAws_json1_1CreateTrailCommand = exports.deserializeAws_json1_1CreateEventDataStoreCommand = exports.deserializeAws_json1_1CancelQueryCommand = exports.deserializeAws_json1_1AddTagsCommand = exports.serializeAws_json1_1UpdateTrailCommand = exports.serializeAws_json1_1UpdateEventDataStoreCommand = exports.serializeAws_json1_1StopLoggingCommand = exports.serializeAws_json1_1StartQueryCommand = exports.serializeAws_json1_1StartLoggingCommand = exports.serializeAws_json1_1RestoreEventDataStoreCommand = exports.serializeAws_json1_1RemoveTagsCommand = exports.serializeAws_json1_1PutInsightSelectorsCommand = exports.serializeAws_json1_1PutEventSelectorsCommand = exports.serializeAws_json1_1LookupEventsCommand = exports.serializeAws_json1_1ListTrailsCommand = exports.serializeAws_json1_1ListTagsCommand = exports.serializeAws_json1_1ListQueriesCommand = exports.serializeAws_json1_1ListPublicKeysCommand = exports.serializeAws_json1_1ListEventDataStoresCommand = exports.serializeAws_json1_1ListChannelsCommand = exports.serializeAws_json1_1GetTrailStatusCommand = exports.serializeAws_json1_1GetTrailCommand = exports.serializeAws_json1_1GetQueryResultsCommand = exports.serializeAws_json1_1GetInsightSelectorsCommand = exports.serializeAws_json1_1GetEventSelectorsCommand = exports.serializeAws_json1_1GetEventDataStoreCommand = exports.serializeAws_json1_1GetChannelCommand = exports.serializeAws_json1_1DescribeTrailsCommand = exports.serializeAws_json1_1DescribeQueryCommand = exports.serializeAws_json1_1DeleteTrailCommand = exports.serializeAws_json1_1DeleteEventDataStoreCommand = exports.serializeAws_json1_1CreateTrailCommand = exports.serializeAws_json1_1CreateEventDataStoreCommand = exports.serializeAws_json1_1CancelQueryCommand = exports.serializeAws_json1_1AddTagsCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateTrailCommand = exports.deserializeAws_json1_1UpdateEventDataStoreCommand = exports.deserializeAws_json1_1StopLoggingCommand = exports.deserializeAws_json1_1StartQueryCommand = exports.deserializeAws_json1_1StartLoggingCommand = exports.deserializeAws_json1_1RestoreEventDataStoreCommand = exports.deserializeAws_json1_1RemoveTagsCommand = exports.deserializeAws_json1_1PutInsightSelectorsCommand = exports.deserializeAws_json1_1PutEventSelectorsCommand = exports.deserializeAws_json1_1LookupEventsCommand = exports.deserializeAws_json1_1ListTrailsCommand = exports.deserializeAws_json1_1ListTagsCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const CloudTrailServiceException_1 = require("../models/CloudTrailServiceException");
|
|
@@ -86,6 +86,16 @@ const serializeAws_json1_1DescribeTrailsCommand = async (input, context) => {
|
|
|
86
86
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
87
|
};
|
|
88
88
|
exports.serializeAws_json1_1DescribeTrailsCommand = serializeAws_json1_1DescribeTrailsCommand;
|
|
89
|
+
const serializeAws_json1_1GetChannelCommand = async (input, context) => {
|
|
90
|
+
const headers = {
|
|
91
|
+
"content-type": "application/x-amz-json-1.1",
|
|
92
|
+
"x-amz-target": "CloudTrail_20131101.GetChannel",
|
|
93
|
+
};
|
|
94
|
+
let body;
|
|
95
|
+
body = JSON.stringify(serializeAws_json1_1GetChannelRequest(input, context));
|
|
96
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
+
};
|
|
98
|
+
exports.serializeAws_json1_1GetChannelCommand = serializeAws_json1_1GetChannelCommand;
|
|
89
99
|
const serializeAws_json1_1GetEventDataStoreCommand = async (input, context) => {
|
|
90
100
|
const headers = {
|
|
91
101
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -146,6 +156,16 @@ const serializeAws_json1_1GetTrailStatusCommand = async (input, context) => {
|
|
|
146
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
157
|
};
|
|
148
158
|
exports.serializeAws_json1_1GetTrailStatusCommand = serializeAws_json1_1GetTrailStatusCommand;
|
|
159
|
+
const serializeAws_json1_1ListChannelsCommand = async (input, context) => {
|
|
160
|
+
const headers = {
|
|
161
|
+
"content-type": "application/x-amz-json-1.1",
|
|
162
|
+
"x-amz-target": "CloudTrail_20131101.ListChannels",
|
|
163
|
+
};
|
|
164
|
+
let body;
|
|
165
|
+
body = JSON.stringify(serializeAws_json1_1ListChannelsRequest(input, context));
|
|
166
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
+
};
|
|
168
|
+
exports.serializeAws_json1_1ListChannelsCommand = serializeAws_json1_1ListChannelsCommand;
|
|
149
169
|
const serializeAws_json1_1ListEventDataStoresCommand = async (input, context) => {
|
|
150
170
|
const headers = {
|
|
151
171
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -808,6 +828,49 @@ const deserializeAws_json1_1DescribeTrailsCommandError = async (output, context)
|
|
|
808
828
|
});
|
|
809
829
|
}
|
|
810
830
|
};
|
|
831
|
+
const deserializeAws_json1_1GetChannelCommand = async (output, context) => {
|
|
832
|
+
if (output.statusCode >= 300) {
|
|
833
|
+
return deserializeAws_json1_1GetChannelCommandError(output, context);
|
|
834
|
+
}
|
|
835
|
+
const data = await parseBody(output.body, context);
|
|
836
|
+
let contents = {};
|
|
837
|
+
contents = deserializeAws_json1_1GetChannelResponse(data, context);
|
|
838
|
+
const response = {
|
|
839
|
+
$metadata: deserializeMetadata(output),
|
|
840
|
+
...contents,
|
|
841
|
+
};
|
|
842
|
+
return Promise.resolve(response);
|
|
843
|
+
};
|
|
844
|
+
exports.deserializeAws_json1_1GetChannelCommand = deserializeAws_json1_1GetChannelCommand;
|
|
845
|
+
const deserializeAws_json1_1GetChannelCommandError = async (output, context) => {
|
|
846
|
+
const parsedOutput = {
|
|
847
|
+
...output,
|
|
848
|
+
body: await parseBody(output.body, context),
|
|
849
|
+
};
|
|
850
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
+
switch (errorCode) {
|
|
852
|
+
case "ChannelARNInvalidException":
|
|
853
|
+
case "com.amazonaws.cloudtrail#ChannelARNInvalidException":
|
|
854
|
+
throw await deserializeAws_json1_1ChannelARNInvalidExceptionResponse(parsedOutput, context);
|
|
855
|
+
case "ChannelNotFoundException":
|
|
856
|
+
case "com.amazonaws.cloudtrail#ChannelNotFoundException":
|
|
857
|
+
throw await deserializeAws_json1_1ChannelNotFoundExceptionResponse(parsedOutput, context);
|
|
858
|
+
case "OperationNotPermittedException":
|
|
859
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
860
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
861
|
+
case "UnsupportedOperationException":
|
|
862
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
863
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
864
|
+
default:
|
|
865
|
+
const parsedBody = parsedOutput.body;
|
|
866
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
867
|
+
output,
|
|
868
|
+
parsedBody,
|
|
869
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
870
|
+
errorCode,
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
};
|
|
811
874
|
const deserializeAws_json1_1GetEventDataStoreCommand = async (output, context) => {
|
|
812
875
|
if (output.statusCode >= 300) {
|
|
813
876
|
return deserializeAws_json1_1GetEventDataStoreCommandError(output, context);
|
|
@@ -1087,6 +1150,46 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
1087
1150
|
});
|
|
1088
1151
|
}
|
|
1089
1152
|
};
|
|
1153
|
+
const deserializeAws_json1_1ListChannelsCommand = async (output, context) => {
|
|
1154
|
+
if (output.statusCode >= 300) {
|
|
1155
|
+
return deserializeAws_json1_1ListChannelsCommandError(output, context);
|
|
1156
|
+
}
|
|
1157
|
+
const data = await parseBody(output.body, context);
|
|
1158
|
+
let contents = {};
|
|
1159
|
+
contents = deserializeAws_json1_1ListChannelsResponse(data, context);
|
|
1160
|
+
const response = {
|
|
1161
|
+
$metadata: deserializeMetadata(output),
|
|
1162
|
+
...contents,
|
|
1163
|
+
};
|
|
1164
|
+
return Promise.resolve(response);
|
|
1165
|
+
};
|
|
1166
|
+
exports.deserializeAws_json1_1ListChannelsCommand = deserializeAws_json1_1ListChannelsCommand;
|
|
1167
|
+
const deserializeAws_json1_1ListChannelsCommandError = async (output, context) => {
|
|
1168
|
+
const parsedOutput = {
|
|
1169
|
+
...output,
|
|
1170
|
+
body: await parseBody(output.body, context),
|
|
1171
|
+
};
|
|
1172
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1173
|
+
switch (errorCode) {
|
|
1174
|
+
case "InvalidNextTokenException":
|
|
1175
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1176
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1177
|
+
case "OperationNotPermittedException":
|
|
1178
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1179
|
+
throw await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context);
|
|
1180
|
+
case "UnsupportedOperationException":
|
|
1181
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1182
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1183
|
+
default:
|
|
1184
|
+
const parsedBody = parsedOutput.body;
|
|
1185
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1186
|
+
output,
|
|
1187
|
+
parsedBody,
|
|
1188
|
+
exceptionCtor: CloudTrailServiceException_1.CloudTrailServiceException,
|
|
1189
|
+
errorCode,
|
|
1190
|
+
});
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1090
1193
|
const deserializeAws_json1_1ListEventDataStoresCommand = async (output, context) => {
|
|
1091
1194
|
if (output.statusCode >= 300) {
|
|
1092
1195
|
return deserializeAws_json1_1ListEventDataStoresCommandError(output, context);
|
|
@@ -1966,6 +2069,24 @@ const deserializeAws_json1_1UpdateTrailCommandError = async (output, context) =>
|
|
|
1966
2069
|
});
|
|
1967
2070
|
}
|
|
1968
2071
|
};
|
|
2072
|
+
const deserializeAws_json1_1ChannelARNInvalidExceptionResponse = async (parsedOutput, context) => {
|
|
2073
|
+
const body = parsedOutput.body;
|
|
2074
|
+
const deserialized = deserializeAws_json1_1ChannelARNInvalidException(body, context);
|
|
2075
|
+
const exception = new models_0_1.ChannelARNInvalidException({
|
|
2076
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2077
|
+
...deserialized,
|
|
2078
|
+
});
|
|
2079
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2080
|
+
};
|
|
2081
|
+
const deserializeAws_json1_1ChannelNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2082
|
+
const body = parsedOutput.body;
|
|
2083
|
+
const deserialized = deserializeAws_json1_1ChannelNotFoundException(body, context);
|
|
2084
|
+
const exception = new models_0_1.ChannelNotFoundException({
|
|
2085
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2086
|
+
...deserialized,
|
|
2087
|
+
});
|
|
2088
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2089
|
+
};
|
|
1969
2090
|
const deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse = async (parsedOutput, context) => {
|
|
1970
2091
|
const body = parsedOutput.body;
|
|
1971
2092
|
const deserialized = deserializeAws_json1_1CloudTrailAccessNotEnabledException(body, context);
|
|
@@ -2634,6 +2755,11 @@ const serializeAws_json1_1ExcludeManagementEventSources = (input, context) => {
|
|
|
2634
2755
|
return entry;
|
|
2635
2756
|
});
|
|
2636
2757
|
};
|
|
2758
|
+
const serializeAws_json1_1GetChannelRequest = (input, context) => {
|
|
2759
|
+
return {
|
|
2760
|
+
...(input.Channel != null && { Channel: input.Channel }),
|
|
2761
|
+
};
|
|
2762
|
+
};
|
|
2637
2763
|
const serializeAws_json1_1GetEventDataStoreRequest = (input, context) => {
|
|
2638
2764
|
return {
|
|
2639
2765
|
...(input.EventDataStore != null && { EventDataStore: input.EventDataStore }),
|
|
@@ -2679,6 +2805,12 @@ const serializeAws_json1_1InsightSelectors = (input, context) => {
|
|
|
2679
2805
|
return serializeAws_json1_1InsightSelector(entry, context);
|
|
2680
2806
|
});
|
|
2681
2807
|
};
|
|
2808
|
+
const serializeAws_json1_1ListChannelsRequest = (input, context) => {
|
|
2809
|
+
return {
|
|
2810
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2811
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2812
|
+
};
|
|
2813
|
+
};
|
|
2682
2814
|
const serializeAws_json1_1ListEventDataStoresRequest = (input, context) => {
|
|
2683
2815
|
return {
|
|
2684
2816
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -2899,6 +3031,33 @@ const deserializeAws_json1_1CancelQueryResponse = (output, context) => {
|
|
|
2899
3031
|
QueryStatus: (0, smithy_client_1.expectString)(output.QueryStatus),
|
|
2900
3032
|
};
|
|
2901
3033
|
};
|
|
3034
|
+
const deserializeAws_json1_1Channel = (output, context) => {
|
|
3035
|
+
return {
|
|
3036
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
3037
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3038
|
+
};
|
|
3039
|
+
};
|
|
3040
|
+
const deserializeAws_json1_1ChannelARNInvalidException = (output, context) => {
|
|
3041
|
+
return {
|
|
3042
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3043
|
+
};
|
|
3044
|
+
};
|
|
3045
|
+
const deserializeAws_json1_1ChannelNotFoundException = (output, context) => {
|
|
3046
|
+
return {
|
|
3047
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3048
|
+
};
|
|
3049
|
+
};
|
|
3050
|
+
const deserializeAws_json1_1Channels = (output, context) => {
|
|
3051
|
+
const retVal = (output || [])
|
|
3052
|
+
.filter((e) => e != null)
|
|
3053
|
+
.map((entry) => {
|
|
3054
|
+
if (entry === null) {
|
|
3055
|
+
return null;
|
|
3056
|
+
}
|
|
3057
|
+
return deserializeAws_json1_1Channel(entry, context);
|
|
3058
|
+
});
|
|
3059
|
+
return retVal;
|
|
3060
|
+
};
|
|
2902
3061
|
const deserializeAws_json1_1CloudTrailAccessNotEnabledException = (output, context) => {
|
|
2903
3062
|
return {
|
|
2904
3063
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3012,6 +3171,23 @@ const deserializeAws_json1_1DescribeTrailsResponse = (output, context) => {
|
|
|
3012
3171
|
trailList: output.trailList != null ? deserializeAws_json1_1TrailList(output.trailList, context) : undefined,
|
|
3013
3172
|
};
|
|
3014
3173
|
};
|
|
3174
|
+
const deserializeAws_json1_1Destination = (output, context) => {
|
|
3175
|
+
return {
|
|
3176
|
+
Location: (0, smithy_client_1.expectString)(output.Location),
|
|
3177
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3178
|
+
};
|
|
3179
|
+
};
|
|
3180
|
+
const deserializeAws_json1_1Destinations = (output, context) => {
|
|
3181
|
+
const retVal = (output || [])
|
|
3182
|
+
.filter((e) => e != null)
|
|
3183
|
+
.map((entry) => {
|
|
3184
|
+
if (entry === null) {
|
|
3185
|
+
return null;
|
|
3186
|
+
}
|
|
3187
|
+
return deserializeAws_json1_1Destination(entry, context);
|
|
3188
|
+
});
|
|
3189
|
+
return retVal;
|
|
3190
|
+
};
|
|
3015
3191
|
const deserializeAws_json1_1Event = (output, context) => {
|
|
3016
3192
|
return {
|
|
3017
3193
|
AccessKeyId: (0, smithy_client_1.expectString)(output.AccessKeyId),
|
|
@@ -3124,6 +3300,15 @@ const deserializeAws_json1_1ExcludeManagementEventSources = (output, context) =>
|
|
|
3124
3300
|
});
|
|
3125
3301
|
return retVal;
|
|
3126
3302
|
};
|
|
3303
|
+
const deserializeAws_json1_1GetChannelResponse = (output, context) => {
|
|
3304
|
+
return {
|
|
3305
|
+
ChannelArn: (0, smithy_client_1.expectString)(output.ChannelArn),
|
|
3306
|
+
Destinations: output.Destinations != null ? deserializeAws_json1_1Destinations(output.Destinations, context) : undefined,
|
|
3307
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3308
|
+
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
3309
|
+
SourceConfig: output.SourceConfig != null ? deserializeAws_json1_1SourceConfig(output.SourceConfig, context) : undefined,
|
|
3310
|
+
};
|
|
3311
|
+
};
|
|
3127
3312
|
const deserializeAws_json1_1GetEventDataStoreResponse = (output, context) => {
|
|
3128
3313
|
return {
|
|
3129
3314
|
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
@@ -3393,6 +3578,12 @@ const deserializeAws_json1_1KmsKeyNotFoundException = (output, context) => {
|
|
|
3393
3578
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3394
3579
|
};
|
|
3395
3580
|
};
|
|
3581
|
+
const deserializeAws_json1_1ListChannelsResponse = (output, context) => {
|
|
3582
|
+
return {
|
|
3583
|
+
Channels: output.Channels != null ? deserializeAws_json1_1Channels(output.Channels, context) : undefined,
|
|
3584
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3585
|
+
};
|
|
3586
|
+
};
|
|
3396
3587
|
const deserializeAws_json1_1ListEventDataStoresResponse = (output, context) => {
|
|
3397
3588
|
return {
|
|
3398
3589
|
EventDataStores: output.EventDataStores != null
|
|
@@ -3662,6 +3853,14 @@ const deserializeAws_json1_1S3BucketDoesNotExistException = (output, context) =>
|
|
|
3662
3853
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3663
3854
|
};
|
|
3664
3855
|
};
|
|
3856
|
+
const deserializeAws_json1_1SourceConfig = (output, context) => {
|
|
3857
|
+
return {
|
|
3858
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors != null
|
|
3859
|
+
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
3860
|
+
: undefined,
|
|
3861
|
+
ApplyToAllRegions: (0, smithy_client_1.expectBoolean)(output.ApplyToAllRegions),
|
|
3862
|
+
};
|
|
3863
|
+
};
|
|
3665
3864
|
const deserializeAws_json1_1StartLoggingResponse = (output, context) => {
|
|
3666
3865
|
return {};
|
|
3667
3866
|
};
|