@aws-sdk/client-cloudtrail 3.42.0 → 3.47.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 +48 -0
- package/dist-cjs/CloudTrail.js +165 -0
- package/dist-cjs/commands/CancelQueryCommand.js +36 -0
- package/dist-cjs/commands/CreateEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/DeleteEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/DescribeQueryCommand.js +36 -0
- package/dist-cjs/commands/GetEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/GetQueryResultsCommand.js +36 -0
- package/dist-cjs/commands/ListEventDataStoresCommand.js +36 -0
- package/dist-cjs/commands/ListQueriesCommand.js +36 -0
- package/dist-cjs/commands/RestoreEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/StartQueryCommand.js +36 -0
- package/dist-cjs/commands/UpdateEventDataStoreCommand.js +36 -0
- package/dist-cjs/commands/index.js +11 -0
- package/dist-cjs/endpoints.js +1 -16
- package/dist-cjs/models/models_0.js +158 -252
- package/dist-cjs/pagination/GetQueryResultsPaginator.js +34 -0
- package/dist-cjs/pagination/ListEventDataStoresPaginator.js +35 -0
- package/dist-cjs/pagination/ListQueriesPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2319 -389
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/CloudTrail.js +165 -0
- package/dist-es/commands/CancelQueryCommand.js +39 -0
- package/dist-es/commands/CreateEventDataStoreCommand.js +39 -0
- package/dist-es/commands/DeleteEventDataStoreCommand.js +39 -0
- package/dist-es/commands/DescribeQueryCommand.js +39 -0
- package/dist-es/commands/GetEventDataStoreCommand.js +39 -0
- package/dist-es/commands/GetQueryResultsCommand.js +39 -0
- package/dist-es/commands/ListEventDataStoresCommand.js +39 -0
- package/dist-es/commands/ListQueriesCommand.js +39 -0
- package/dist-es/commands/RestoreEventDataStoreCommand.js +39 -0
- package/dist-es/commands/StartQueryCommand.js +39 -0
- package/dist-es/commands/UpdateEventDataStoreCommand.js +39 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/endpoints.js +1 -16
- package/dist-es/models/models_0.js +118 -176
- package/dist-es/pagination/GetQueryResultsPaginator.js +73 -0
- package/dist-es/pagination/ListEventDataStoresPaginator.js +74 -0
- package/dist-es/pagination/ListQueriesPaginator.js +74 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +2669 -704
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/CloudTrail.d.ts +100 -1
- package/dist-types/CloudTrailClient.d.ts +18 -3
- package/dist-types/commands/CancelQueryCommand.d.ts +37 -0
- package/dist-types/commands/CreateEventDataStoreCommand.d.ts +35 -0
- package/dist-types/commands/DeleteEventDataStoreCommand.d.ts +41 -0
- package/dist-types/commands/DescribeQueryCommand.d.ts +36 -0
- package/dist-types/commands/GetEventDataStoreCommand.d.ts +35 -0
- package/dist-types/commands/GetQueryResultsCommand.d.ts +36 -0
- package/dist-types/commands/ListEventDataStoresCommand.d.ts +35 -0
- package/dist-types/commands/ListQueriesCommand.d.ts +39 -0
- package/dist-types/commands/PutInsightSelectorsCommand.d.ts +1 -1
- package/dist-types/commands/RestoreEventDataStoreCommand.d.ts +37 -0
- package/dist-types/commands/StartQueryCommand.d.ts +36 -0
- package/dist-types/commands/UpdateEventDataStoreCommand.d.ts +40 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/models/models_0.d.ts +926 -328
- package/dist-types/pagination/GetQueryResultsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListEventDataStoresPaginator.d.ts +4 -0
- package/dist-types/pagination/ListQueriesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +33 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/CloudTrail.d.ts +55 -0
- package/dist-types/ts3.4/CloudTrailClient.d.ts +16 -3
- package/dist-types/ts3.4/commands/CancelQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetQueryResultsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEventDataStoresCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListQueriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RestoreEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartQueryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEventDataStoreCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/models_0.d.ts +523 -205
- package/dist-types/ts3.4/pagination/GetQueryResultsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListEventDataStoresPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListQueriesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +33 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_json1_1PutEventSelectorsCommand = exports.deserializeAws_json1_1LookupEventsCommand = exports.deserializeAws_json1_1ListTrailsCommand = exports.deserializeAws_json1_1ListTagsCommand = exports.deserializeAws_json1_1ListQueriesCommand = exports.deserializeAws_json1_1ListPublicKeysCommand = exports.deserializeAws_json1_1ListEventDataStoresCommand = 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_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_1GetTrailStatusCommand = exports.serializeAws_json1_1GetTrailCommand = exports.serializeAws_json1_1GetQueryResultsCommand = exports.serializeAws_json1_1GetInsightSelectorsCommand = exports.serializeAws_json1_1GetEventSelectorsCommand = exports.serializeAws_json1_1GetEventDataStoreCommand = 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 = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const serializeAws_json1_1AddTagsCommand = async (input, context) => {
|
|
@@ -13,6 +14,26 @@ const serializeAws_json1_1AddTagsCommand = async (input, context) => {
|
|
|
13
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
15
|
};
|
|
15
16
|
exports.serializeAws_json1_1AddTagsCommand = serializeAws_json1_1AddTagsCommand;
|
|
17
|
+
const serializeAws_json1_1CancelQueryCommand = async (input, context) => {
|
|
18
|
+
const headers = {
|
|
19
|
+
"content-type": "application/x-amz-json-1.1",
|
|
20
|
+
"x-amz-target": "CloudTrail_20131101.CancelQuery",
|
|
21
|
+
};
|
|
22
|
+
let body;
|
|
23
|
+
body = JSON.stringify(serializeAws_json1_1CancelQueryRequest(input, context));
|
|
24
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
25
|
+
};
|
|
26
|
+
exports.serializeAws_json1_1CancelQueryCommand = serializeAws_json1_1CancelQueryCommand;
|
|
27
|
+
const serializeAws_json1_1CreateEventDataStoreCommand = async (input, context) => {
|
|
28
|
+
const headers = {
|
|
29
|
+
"content-type": "application/x-amz-json-1.1",
|
|
30
|
+
"x-amz-target": "CloudTrail_20131101.CreateEventDataStore",
|
|
31
|
+
};
|
|
32
|
+
let body;
|
|
33
|
+
body = JSON.stringify(serializeAws_json1_1CreateEventDataStoreRequest(input, context));
|
|
34
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
+
};
|
|
36
|
+
exports.serializeAws_json1_1CreateEventDataStoreCommand = serializeAws_json1_1CreateEventDataStoreCommand;
|
|
16
37
|
const serializeAws_json1_1CreateTrailCommand = async (input, context) => {
|
|
17
38
|
const headers = {
|
|
18
39
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -23,6 +44,16 @@ const serializeAws_json1_1CreateTrailCommand = async (input, context) => {
|
|
|
23
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
45
|
};
|
|
25
46
|
exports.serializeAws_json1_1CreateTrailCommand = serializeAws_json1_1CreateTrailCommand;
|
|
47
|
+
const serializeAws_json1_1DeleteEventDataStoreCommand = async (input, context) => {
|
|
48
|
+
const headers = {
|
|
49
|
+
"content-type": "application/x-amz-json-1.1",
|
|
50
|
+
"x-amz-target": "CloudTrail_20131101.DeleteEventDataStore",
|
|
51
|
+
};
|
|
52
|
+
let body;
|
|
53
|
+
body = JSON.stringify(serializeAws_json1_1DeleteEventDataStoreRequest(input, context));
|
|
54
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
+
};
|
|
56
|
+
exports.serializeAws_json1_1DeleteEventDataStoreCommand = serializeAws_json1_1DeleteEventDataStoreCommand;
|
|
26
57
|
const serializeAws_json1_1DeleteTrailCommand = async (input, context) => {
|
|
27
58
|
const headers = {
|
|
28
59
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -33,6 +64,16 @@ const serializeAws_json1_1DeleteTrailCommand = async (input, context) => {
|
|
|
33
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
65
|
};
|
|
35
66
|
exports.serializeAws_json1_1DeleteTrailCommand = serializeAws_json1_1DeleteTrailCommand;
|
|
67
|
+
const serializeAws_json1_1DescribeQueryCommand = async (input, context) => {
|
|
68
|
+
const headers = {
|
|
69
|
+
"content-type": "application/x-amz-json-1.1",
|
|
70
|
+
"x-amz-target": "CloudTrail_20131101.DescribeQuery",
|
|
71
|
+
};
|
|
72
|
+
let body;
|
|
73
|
+
body = JSON.stringify(serializeAws_json1_1DescribeQueryRequest(input, context));
|
|
74
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
75
|
+
};
|
|
76
|
+
exports.serializeAws_json1_1DescribeQueryCommand = serializeAws_json1_1DescribeQueryCommand;
|
|
36
77
|
const serializeAws_json1_1DescribeTrailsCommand = async (input, context) => {
|
|
37
78
|
const headers = {
|
|
38
79
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -43,6 +84,16 @@ const serializeAws_json1_1DescribeTrailsCommand = async (input, context) => {
|
|
|
43
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
85
|
};
|
|
45
86
|
exports.serializeAws_json1_1DescribeTrailsCommand = serializeAws_json1_1DescribeTrailsCommand;
|
|
87
|
+
const serializeAws_json1_1GetEventDataStoreCommand = async (input, context) => {
|
|
88
|
+
const headers = {
|
|
89
|
+
"content-type": "application/x-amz-json-1.1",
|
|
90
|
+
"x-amz-target": "CloudTrail_20131101.GetEventDataStore",
|
|
91
|
+
};
|
|
92
|
+
let body;
|
|
93
|
+
body = JSON.stringify(serializeAws_json1_1GetEventDataStoreRequest(input, context));
|
|
94
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
+
};
|
|
96
|
+
exports.serializeAws_json1_1GetEventDataStoreCommand = serializeAws_json1_1GetEventDataStoreCommand;
|
|
46
97
|
const serializeAws_json1_1GetEventSelectorsCommand = async (input, context) => {
|
|
47
98
|
const headers = {
|
|
48
99
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -63,6 +114,16 @@ const serializeAws_json1_1GetInsightSelectorsCommand = async (input, context) =>
|
|
|
63
114
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
115
|
};
|
|
65
116
|
exports.serializeAws_json1_1GetInsightSelectorsCommand = serializeAws_json1_1GetInsightSelectorsCommand;
|
|
117
|
+
const serializeAws_json1_1GetQueryResultsCommand = async (input, context) => {
|
|
118
|
+
const headers = {
|
|
119
|
+
"content-type": "application/x-amz-json-1.1",
|
|
120
|
+
"x-amz-target": "CloudTrail_20131101.GetQueryResults",
|
|
121
|
+
};
|
|
122
|
+
let body;
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_1GetQueryResultsRequest(input, context));
|
|
124
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
+
};
|
|
126
|
+
exports.serializeAws_json1_1GetQueryResultsCommand = serializeAws_json1_1GetQueryResultsCommand;
|
|
66
127
|
const serializeAws_json1_1GetTrailCommand = async (input, context) => {
|
|
67
128
|
const headers = {
|
|
68
129
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -83,6 +144,16 @@ const serializeAws_json1_1GetTrailStatusCommand = async (input, context) => {
|
|
|
83
144
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
145
|
};
|
|
85
146
|
exports.serializeAws_json1_1GetTrailStatusCommand = serializeAws_json1_1GetTrailStatusCommand;
|
|
147
|
+
const serializeAws_json1_1ListEventDataStoresCommand = async (input, context) => {
|
|
148
|
+
const headers = {
|
|
149
|
+
"content-type": "application/x-amz-json-1.1",
|
|
150
|
+
"x-amz-target": "CloudTrail_20131101.ListEventDataStores",
|
|
151
|
+
};
|
|
152
|
+
let body;
|
|
153
|
+
body = JSON.stringify(serializeAws_json1_1ListEventDataStoresRequest(input, context));
|
|
154
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
+
};
|
|
156
|
+
exports.serializeAws_json1_1ListEventDataStoresCommand = serializeAws_json1_1ListEventDataStoresCommand;
|
|
86
157
|
const serializeAws_json1_1ListPublicKeysCommand = async (input, context) => {
|
|
87
158
|
const headers = {
|
|
88
159
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -93,6 +164,16 @@ const serializeAws_json1_1ListPublicKeysCommand = async (input, context) => {
|
|
|
93
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
165
|
};
|
|
95
166
|
exports.serializeAws_json1_1ListPublicKeysCommand = serializeAws_json1_1ListPublicKeysCommand;
|
|
167
|
+
const serializeAws_json1_1ListQueriesCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "CloudTrail_20131101.ListQueries",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1ListQueriesRequest(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
176
|
+
exports.serializeAws_json1_1ListQueriesCommand = serializeAws_json1_1ListQueriesCommand;
|
|
96
177
|
const serializeAws_json1_1ListTagsCommand = async (input, context) => {
|
|
97
178
|
const headers = {
|
|
98
179
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -153,6 +234,16 @@ const serializeAws_json1_1RemoveTagsCommand = async (input, context) => {
|
|
|
153
234
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
235
|
};
|
|
155
236
|
exports.serializeAws_json1_1RemoveTagsCommand = serializeAws_json1_1RemoveTagsCommand;
|
|
237
|
+
const serializeAws_json1_1RestoreEventDataStoreCommand = async (input, context) => {
|
|
238
|
+
const headers = {
|
|
239
|
+
"content-type": "application/x-amz-json-1.1",
|
|
240
|
+
"x-amz-target": "CloudTrail_20131101.RestoreEventDataStore",
|
|
241
|
+
};
|
|
242
|
+
let body;
|
|
243
|
+
body = JSON.stringify(serializeAws_json1_1RestoreEventDataStoreRequest(input, context));
|
|
244
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
+
};
|
|
246
|
+
exports.serializeAws_json1_1RestoreEventDataStoreCommand = serializeAws_json1_1RestoreEventDataStoreCommand;
|
|
156
247
|
const serializeAws_json1_1StartLoggingCommand = async (input, context) => {
|
|
157
248
|
const headers = {
|
|
158
249
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -163,6 +254,16 @@ const serializeAws_json1_1StartLoggingCommand = async (input, context) => {
|
|
|
163
254
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
164
255
|
};
|
|
165
256
|
exports.serializeAws_json1_1StartLoggingCommand = serializeAws_json1_1StartLoggingCommand;
|
|
257
|
+
const serializeAws_json1_1StartQueryCommand = async (input, context) => {
|
|
258
|
+
const headers = {
|
|
259
|
+
"content-type": "application/x-amz-json-1.1",
|
|
260
|
+
"x-amz-target": "CloudTrail_20131101.StartQuery",
|
|
261
|
+
};
|
|
262
|
+
let body;
|
|
263
|
+
body = JSON.stringify(serializeAws_json1_1StartQueryRequest(input, context));
|
|
264
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
|
+
};
|
|
266
|
+
exports.serializeAws_json1_1StartQueryCommand = serializeAws_json1_1StartQueryCommand;
|
|
166
267
|
const serializeAws_json1_1StopLoggingCommand = async (input, context) => {
|
|
167
268
|
const headers = {
|
|
168
269
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -173,6 +274,16 @@ const serializeAws_json1_1StopLoggingCommand = async (input, context) => {
|
|
|
173
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
275
|
};
|
|
175
276
|
exports.serializeAws_json1_1StopLoggingCommand = serializeAws_json1_1StopLoggingCommand;
|
|
277
|
+
const serializeAws_json1_1UpdateEventDataStoreCommand = async (input, context) => {
|
|
278
|
+
const headers = {
|
|
279
|
+
"content-type": "application/x-amz-json-1.1",
|
|
280
|
+
"x-amz-target": "CloudTrail_20131101.UpdateEventDataStore",
|
|
281
|
+
};
|
|
282
|
+
let body;
|
|
283
|
+
body = JSON.stringify(serializeAws_json1_1UpdateEventDataStoreRequest(input, context));
|
|
284
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
285
|
+
};
|
|
286
|
+
exports.serializeAws_json1_1UpdateEventDataStoreCommand = serializeAws_json1_1UpdateEventDataStoreCommand;
|
|
176
287
|
const serializeAws_json1_1UpdateTrailCommand = async (input, context) => {
|
|
177
288
|
const headers = {
|
|
178
289
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -214,6 +325,30 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
214
325
|
$metadata: deserializeMetadata(output),
|
|
215
326
|
};
|
|
216
327
|
break;
|
|
328
|
+
case "ConflictException":
|
|
329
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
330
|
+
response = {
|
|
331
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
332
|
+
name: errorCode,
|
|
333
|
+
$metadata: deserializeMetadata(output),
|
|
334
|
+
};
|
|
335
|
+
break;
|
|
336
|
+
case "EventDataStoreNotFoundException":
|
|
337
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
338
|
+
response = {
|
|
339
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
340
|
+
name: errorCode,
|
|
341
|
+
$metadata: deserializeMetadata(output),
|
|
342
|
+
};
|
|
343
|
+
break;
|
|
344
|
+
case "InactiveEventDataStoreException":
|
|
345
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
346
|
+
response = {
|
|
347
|
+
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
348
|
+
name: errorCode,
|
|
349
|
+
$metadata: deserializeMetadata(output),
|
|
350
|
+
};
|
|
351
|
+
break;
|
|
217
352
|
case "InvalidTagParameterException":
|
|
218
353
|
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
219
354
|
response = {
|
|
@@ -294,21 +429,21 @@ const deserializeAws_json1_1AddTagsCommandError = async (output, context) => {
|
|
|
294
429
|
delete response.Message;
|
|
295
430
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
296
431
|
};
|
|
297
|
-
const
|
|
432
|
+
const deserializeAws_json1_1CancelQueryCommand = async (output, context) => {
|
|
298
433
|
if (output.statusCode >= 300) {
|
|
299
|
-
return
|
|
434
|
+
return deserializeAws_json1_1CancelQueryCommandError(output, context);
|
|
300
435
|
}
|
|
301
436
|
const data = await parseBody(output.body, context);
|
|
302
437
|
let contents = {};
|
|
303
|
-
contents =
|
|
438
|
+
contents = deserializeAws_json1_1CancelQueryResponse(data, context);
|
|
304
439
|
const response = {
|
|
305
440
|
$metadata: deserializeMetadata(output),
|
|
306
441
|
...contents,
|
|
307
442
|
};
|
|
308
443
|
return Promise.resolve(response);
|
|
309
444
|
};
|
|
310
|
-
exports.
|
|
311
|
-
const
|
|
445
|
+
exports.deserializeAws_json1_1CancelQueryCommand = deserializeAws_json1_1CancelQueryCommand;
|
|
446
|
+
const deserializeAws_json1_1CancelQueryCommandError = async (output, context) => {
|
|
312
447
|
const parsedOutput = {
|
|
313
448
|
...output,
|
|
314
449
|
body: await parseBody(output.body, context),
|
|
@@ -317,162 +452,169 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
317
452
|
let errorCode = "UnknownError";
|
|
318
453
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
319
454
|
switch (errorCode) {
|
|
320
|
-
case "
|
|
321
|
-
case "com.amazonaws.cloudtrail#
|
|
322
|
-
response = {
|
|
323
|
-
...(await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
324
|
-
name: errorCode,
|
|
325
|
-
$metadata: deserializeMetadata(output),
|
|
326
|
-
};
|
|
327
|
-
break;
|
|
328
|
-
case "CloudTrailInvalidClientTokenIdException":
|
|
329
|
-
case "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException":
|
|
330
|
-
response = {
|
|
331
|
-
...(await deserializeAws_json1_1CloudTrailInvalidClientTokenIdExceptionResponse(parsedOutput, context)),
|
|
332
|
-
name: errorCode,
|
|
333
|
-
$metadata: deserializeMetadata(output),
|
|
334
|
-
};
|
|
335
|
-
break;
|
|
336
|
-
case "CloudWatchLogsDeliveryUnavailableException":
|
|
337
|
-
case "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException":
|
|
338
|
-
response = {
|
|
339
|
-
...(await deserializeAws_json1_1CloudWatchLogsDeliveryUnavailableExceptionResponse(parsedOutput, context)),
|
|
340
|
-
name: errorCode,
|
|
341
|
-
$metadata: deserializeMetadata(output),
|
|
342
|
-
};
|
|
343
|
-
break;
|
|
344
|
-
case "InsufficientDependencyServiceAccessPermissionException":
|
|
345
|
-
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
455
|
+
case "ConflictException":
|
|
456
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
346
457
|
response = {
|
|
347
|
-
...(await
|
|
458
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
348
459
|
name: errorCode,
|
|
349
460
|
$metadata: deserializeMetadata(output),
|
|
350
461
|
};
|
|
351
462
|
break;
|
|
352
|
-
case "
|
|
353
|
-
case "com.amazonaws.cloudtrail#
|
|
463
|
+
case "EventDataStoreARNInvalidException":
|
|
464
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
354
465
|
response = {
|
|
355
|
-
...(await
|
|
466
|
+
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
356
467
|
name: errorCode,
|
|
357
468
|
$metadata: deserializeMetadata(output),
|
|
358
469
|
};
|
|
359
470
|
break;
|
|
360
|
-
case "
|
|
361
|
-
case "com.amazonaws.cloudtrail#
|
|
471
|
+
case "EventDataStoreNotFoundException":
|
|
472
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
362
473
|
response = {
|
|
363
|
-
...(await
|
|
474
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
364
475
|
name: errorCode,
|
|
365
476
|
$metadata: deserializeMetadata(output),
|
|
366
477
|
};
|
|
367
478
|
break;
|
|
368
|
-
case "
|
|
369
|
-
case "com.amazonaws.cloudtrail#
|
|
479
|
+
case "InactiveEventDataStoreException":
|
|
480
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
370
481
|
response = {
|
|
371
|
-
...(await
|
|
482
|
+
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
372
483
|
name: errorCode,
|
|
373
484
|
$metadata: deserializeMetadata(output),
|
|
374
485
|
};
|
|
375
486
|
break;
|
|
376
|
-
case "
|
|
377
|
-
case "com.amazonaws.cloudtrail#
|
|
487
|
+
case "InactiveQueryException":
|
|
488
|
+
case "com.amazonaws.cloudtrail#InactiveQueryException":
|
|
378
489
|
response = {
|
|
379
|
-
...(await
|
|
490
|
+
...(await deserializeAws_json1_1InactiveQueryExceptionResponse(parsedOutput, context)),
|
|
380
491
|
name: errorCode,
|
|
381
492
|
$metadata: deserializeMetadata(output),
|
|
382
493
|
};
|
|
383
494
|
break;
|
|
384
|
-
case "
|
|
385
|
-
case "com.amazonaws.cloudtrail#
|
|
495
|
+
case "InvalidParameterException":
|
|
496
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
386
497
|
response = {
|
|
387
|
-
...(await
|
|
498
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
388
499
|
name: errorCode,
|
|
389
500
|
$metadata: deserializeMetadata(output),
|
|
390
501
|
};
|
|
391
502
|
break;
|
|
392
|
-
case "
|
|
393
|
-
case "com.amazonaws.cloudtrail#
|
|
503
|
+
case "OperationNotPermittedException":
|
|
504
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
394
505
|
response = {
|
|
395
|
-
...(await
|
|
506
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
396
507
|
name: errorCode,
|
|
397
508
|
$metadata: deserializeMetadata(output),
|
|
398
509
|
};
|
|
399
510
|
break;
|
|
400
|
-
case "
|
|
401
|
-
case "com.amazonaws.cloudtrail#
|
|
511
|
+
case "QueryIdNotFoundException":
|
|
512
|
+
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
402
513
|
response = {
|
|
403
|
-
...(await
|
|
514
|
+
...(await deserializeAws_json1_1QueryIdNotFoundExceptionResponse(parsedOutput, context)),
|
|
404
515
|
name: errorCode,
|
|
405
516
|
$metadata: deserializeMetadata(output),
|
|
406
517
|
};
|
|
407
518
|
break;
|
|
408
|
-
case "
|
|
409
|
-
case "com.amazonaws.cloudtrail#
|
|
519
|
+
case "UnsupportedOperationException":
|
|
520
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
410
521
|
response = {
|
|
411
|
-
...(await
|
|
522
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
412
523
|
name: errorCode,
|
|
413
524
|
$metadata: deserializeMetadata(output),
|
|
414
525
|
};
|
|
415
526
|
break;
|
|
416
|
-
|
|
417
|
-
|
|
527
|
+
default:
|
|
528
|
+
const parsedBody = parsedOutput.body;
|
|
529
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
418
530
|
response = {
|
|
419
|
-
...
|
|
420
|
-
name: errorCode
|
|
531
|
+
...parsedBody,
|
|
532
|
+
name: `${errorCode}`,
|
|
533
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
534
|
+
$fault: "client",
|
|
421
535
|
$metadata: deserializeMetadata(output),
|
|
422
536
|
};
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
537
|
+
}
|
|
538
|
+
const message = response.message || response.Message || errorCode;
|
|
539
|
+
response.message = message;
|
|
540
|
+
delete response.Message;
|
|
541
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
542
|
+
};
|
|
543
|
+
const deserializeAws_json1_1CreateEventDataStoreCommand = async (output, context) => {
|
|
544
|
+
if (output.statusCode >= 300) {
|
|
545
|
+
return deserializeAws_json1_1CreateEventDataStoreCommandError(output, context);
|
|
546
|
+
}
|
|
547
|
+
const data = await parseBody(output.body, context);
|
|
548
|
+
let contents = {};
|
|
549
|
+
contents = deserializeAws_json1_1CreateEventDataStoreResponse(data, context);
|
|
550
|
+
const response = {
|
|
551
|
+
$metadata: deserializeMetadata(output),
|
|
552
|
+
...contents,
|
|
553
|
+
};
|
|
554
|
+
return Promise.resolve(response);
|
|
555
|
+
};
|
|
556
|
+
exports.deserializeAws_json1_1CreateEventDataStoreCommand = deserializeAws_json1_1CreateEventDataStoreCommand;
|
|
557
|
+
const deserializeAws_json1_1CreateEventDataStoreCommandError = async (output, context) => {
|
|
558
|
+
const parsedOutput = {
|
|
559
|
+
...output,
|
|
560
|
+
body: await parseBody(output.body, context),
|
|
561
|
+
};
|
|
562
|
+
let response;
|
|
563
|
+
let errorCode = "UnknownError";
|
|
564
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
+
switch (errorCode) {
|
|
566
|
+
case "CloudTrailAccessNotEnabledException":
|
|
567
|
+
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
426
568
|
response = {
|
|
427
|
-
...(await
|
|
569
|
+
...(await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
428
570
|
name: errorCode,
|
|
429
571
|
$metadata: deserializeMetadata(output),
|
|
430
572
|
};
|
|
431
573
|
break;
|
|
432
|
-
case "
|
|
433
|
-
case "com.amazonaws.cloudtrail#
|
|
574
|
+
case "ConflictException":
|
|
575
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
434
576
|
response = {
|
|
435
|
-
...(await
|
|
577
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
436
578
|
name: errorCode,
|
|
437
579
|
$metadata: deserializeMetadata(output),
|
|
438
580
|
};
|
|
439
581
|
break;
|
|
440
|
-
case "
|
|
441
|
-
case "com.amazonaws.cloudtrail#
|
|
582
|
+
case "EventDataStoreAlreadyExistsException":
|
|
583
|
+
case "com.amazonaws.cloudtrail#EventDataStoreAlreadyExistsException":
|
|
442
584
|
response = {
|
|
443
|
-
...(await
|
|
585
|
+
...(await deserializeAws_json1_1EventDataStoreAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
444
586
|
name: errorCode,
|
|
445
587
|
$metadata: deserializeMetadata(output),
|
|
446
588
|
};
|
|
447
589
|
break;
|
|
448
|
-
case "
|
|
449
|
-
case "com.amazonaws.cloudtrail#
|
|
590
|
+
case "EventDataStoreMaxLimitExceededException":
|
|
591
|
+
case "com.amazonaws.cloudtrail#EventDataStoreMaxLimitExceededException":
|
|
450
592
|
response = {
|
|
451
|
-
...(await
|
|
593
|
+
...(await deserializeAws_json1_1EventDataStoreMaxLimitExceededExceptionResponse(parsedOutput, context)),
|
|
452
594
|
name: errorCode,
|
|
453
595
|
$metadata: deserializeMetadata(output),
|
|
454
596
|
};
|
|
455
597
|
break;
|
|
456
|
-
case "
|
|
457
|
-
case "com.amazonaws.cloudtrail#
|
|
598
|
+
case "InsufficientDependencyServiceAccessPermissionException":
|
|
599
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
458
600
|
response = {
|
|
459
|
-
...(await
|
|
601
|
+
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
460
602
|
name: errorCode,
|
|
461
603
|
$metadata: deserializeMetadata(output),
|
|
462
604
|
};
|
|
463
605
|
break;
|
|
464
|
-
case "
|
|
465
|
-
case "com.amazonaws.cloudtrail#
|
|
606
|
+
case "InvalidParameterException":
|
|
607
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
466
608
|
response = {
|
|
467
|
-
...(await
|
|
609
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
468
610
|
name: errorCode,
|
|
469
611
|
$metadata: deserializeMetadata(output),
|
|
470
612
|
};
|
|
471
613
|
break;
|
|
472
|
-
case "
|
|
473
|
-
case "com.amazonaws.cloudtrail#
|
|
614
|
+
case "InvalidTagParameterException":
|
|
615
|
+
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
474
616
|
response = {
|
|
475
|
-
...(await
|
|
617
|
+
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
476
618
|
name: errorCode,
|
|
477
619
|
$metadata: deserializeMetadata(output),
|
|
478
620
|
};
|
|
@@ -509,30 +651,6 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
509
651
|
$metadata: deserializeMetadata(output),
|
|
510
652
|
};
|
|
511
653
|
break;
|
|
512
|
-
case "S3BucketDoesNotExistException":
|
|
513
|
-
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
514
|
-
response = {
|
|
515
|
-
...(await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
516
|
-
name: errorCode,
|
|
517
|
-
$metadata: deserializeMetadata(output),
|
|
518
|
-
};
|
|
519
|
-
break;
|
|
520
|
-
case "TrailAlreadyExistsException":
|
|
521
|
-
case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
|
|
522
|
-
response = {
|
|
523
|
-
...(await deserializeAws_json1_1TrailAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
524
|
-
name: errorCode,
|
|
525
|
-
$metadata: deserializeMetadata(output),
|
|
526
|
-
};
|
|
527
|
-
break;
|
|
528
|
-
case "TrailNotProvidedException":
|
|
529
|
-
case "com.amazonaws.cloudtrail#TrailNotProvidedException":
|
|
530
|
-
response = {
|
|
531
|
-
...(await deserializeAws_json1_1TrailNotProvidedExceptionResponse(parsedOutput, context)),
|
|
532
|
-
name: errorCode,
|
|
533
|
-
$metadata: deserializeMetadata(output),
|
|
534
|
-
};
|
|
535
|
-
break;
|
|
536
654
|
case "UnsupportedOperationException":
|
|
537
655
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
538
656
|
response = {
|
|
@@ -557,21 +675,21 @@ const deserializeAws_json1_1CreateTrailCommandError = async (output, context) =>
|
|
|
557
675
|
delete response.Message;
|
|
558
676
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
559
677
|
};
|
|
560
|
-
const
|
|
678
|
+
const deserializeAws_json1_1CreateTrailCommand = async (output, context) => {
|
|
561
679
|
if (output.statusCode >= 300) {
|
|
562
|
-
return
|
|
680
|
+
return deserializeAws_json1_1CreateTrailCommandError(output, context);
|
|
563
681
|
}
|
|
564
682
|
const data = await parseBody(output.body, context);
|
|
565
683
|
let contents = {};
|
|
566
|
-
contents =
|
|
684
|
+
contents = deserializeAws_json1_1CreateTrailResponse(data, context);
|
|
567
685
|
const response = {
|
|
568
686
|
$metadata: deserializeMetadata(output),
|
|
569
687
|
...contents,
|
|
570
688
|
};
|
|
571
689
|
return Promise.resolve(response);
|
|
572
690
|
};
|
|
573
|
-
exports.
|
|
574
|
-
const
|
|
691
|
+
exports.deserializeAws_json1_1CreateTrailCommand = deserializeAws_json1_1CreateTrailCommand;
|
|
692
|
+
const deserializeAws_json1_1CreateTrailCommandError = async (output, context) => {
|
|
575
693
|
const parsedOutput = {
|
|
576
694
|
...output,
|
|
577
695
|
body: await parseBody(output.body, context),
|
|
@@ -580,8 +698,32 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
580
698
|
let errorCode = "UnknownError";
|
|
581
699
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
582
700
|
switch (errorCode) {
|
|
583
|
-
case "
|
|
584
|
-
case "com.amazonaws.cloudtrail#
|
|
701
|
+
case "CloudTrailAccessNotEnabledException":
|
|
702
|
+
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
703
|
+
response = {
|
|
704
|
+
...(await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
705
|
+
name: errorCode,
|
|
706
|
+
$metadata: deserializeMetadata(output),
|
|
707
|
+
};
|
|
708
|
+
break;
|
|
709
|
+
case "CloudTrailInvalidClientTokenIdException":
|
|
710
|
+
case "com.amazonaws.cloudtrail#CloudTrailInvalidClientTokenIdException":
|
|
711
|
+
response = {
|
|
712
|
+
...(await deserializeAws_json1_1CloudTrailInvalidClientTokenIdExceptionResponse(parsedOutput, context)),
|
|
713
|
+
name: errorCode,
|
|
714
|
+
$metadata: deserializeMetadata(output),
|
|
715
|
+
};
|
|
716
|
+
break;
|
|
717
|
+
case "CloudWatchLogsDeliveryUnavailableException":
|
|
718
|
+
case "com.amazonaws.cloudtrail#CloudWatchLogsDeliveryUnavailableException":
|
|
719
|
+
response = {
|
|
720
|
+
...(await deserializeAws_json1_1CloudWatchLogsDeliveryUnavailableExceptionResponse(parsedOutput, context)),
|
|
721
|
+
name: errorCode,
|
|
722
|
+
$metadata: deserializeMetadata(output),
|
|
723
|
+
};
|
|
724
|
+
break;
|
|
725
|
+
case "ConflictException":
|
|
726
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
585
727
|
response = {
|
|
586
728
|
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
587
729
|
name: errorCode,
|
|
@@ -596,10 +738,90 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
596
738
|
$metadata: deserializeMetadata(output),
|
|
597
739
|
};
|
|
598
740
|
break;
|
|
599
|
-
case "
|
|
600
|
-
case "com.amazonaws.cloudtrail#
|
|
741
|
+
case "InsufficientEncryptionPolicyException":
|
|
742
|
+
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
601
743
|
response = {
|
|
602
|
-
...(await
|
|
744
|
+
...(await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context)),
|
|
745
|
+
name: errorCode,
|
|
746
|
+
$metadata: deserializeMetadata(output),
|
|
747
|
+
};
|
|
748
|
+
break;
|
|
749
|
+
case "InsufficientS3BucketPolicyException":
|
|
750
|
+
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
751
|
+
response = {
|
|
752
|
+
...(await deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse(parsedOutput, context)),
|
|
753
|
+
name: errorCode,
|
|
754
|
+
$metadata: deserializeMetadata(output),
|
|
755
|
+
};
|
|
756
|
+
break;
|
|
757
|
+
case "InsufficientSnsTopicPolicyException":
|
|
758
|
+
case "com.amazonaws.cloudtrail#InsufficientSnsTopicPolicyException":
|
|
759
|
+
response = {
|
|
760
|
+
...(await deserializeAws_json1_1InsufficientSnsTopicPolicyExceptionResponse(parsedOutput, context)),
|
|
761
|
+
name: errorCode,
|
|
762
|
+
$metadata: deserializeMetadata(output),
|
|
763
|
+
};
|
|
764
|
+
break;
|
|
765
|
+
case "InvalidCloudWatchLogsLogGroupArnException":
|
|
766
|
+
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsLogGroupArnException":
|
|
767
|
+
response = {
|
|
768
|
+
...(await deserializeAws_json1_1InvalidCloudWatchLogsLogGroupArnExceptionResponse(parsedOutput, context)),
|
|
769
|
+
name: errorCode,
|
|
770
|
+
$metadata: deserializeMetadata(output),
|
|
771
|
+
};
|
|
772
|
+
break;
|
|
773
|
+
case "InvalidCloudWatchLogsRoleArnException":
|
|
774
|
+
case "com.amazonaws.cloudtrail#InvalidCloudWatchLogsRoleArnException":
|
|
775
|
+
response = {
|
|
776
|
+
...(await deserializeAws_json1_1InvalidCloudWatchLogsRoleArnExceptionResponse(parsedOutput, context)),
|
|
777
|
+
name: errorCode,
|
|
778
|
+
$metadata: deserializeMetadata(output),
|
|
779
|
+
};
|
|
780
|
+
break;
|
|
781
|
+
case "InvalidKmsKeyIdException":
|
|
782
|
+
case "com.amazonaws.cloudtrail#InvalidKmsKeyIdException":
|
|
783
|
+
response = {
|
|
784
|
+
...(await deserializeAws_json1_1InvalidKmsKeyIdExceptionResponse(parsedOutput, context)),
|
|
785
|
+
name: errorCode,
|
|
786
|
+
$metadata: deserializeMetadata(output),
|
|
787
|
+
};
|
|
788
|
+
break;
|
|
789
|
+
case "InvalidParameterCombinationException":
|
|
790
|
+
case "com.amazonaws.cloudtrail#InvalidParameterCombinationException":
|
|
791
|
+
response = {
|
|
792
|
+
...(await deserializeAws_json1_1InvalidParameterCombinationExceptionResponse(parsedOutput, context)),
|
|
793
|
+
name: errorCode,
|
|
794
|
+
$metadata: deserializeMetadata(output),
|
|
795
|
+
};
|
|
796
|
+
break;
|
|
797
|
+
case "InvalidS3BucketNameException":
|
|
798
|
+
case "com.amazonaws.cloudtrail#InvalidS3BucketNameException":
|
|
799
|
+
response = {
|
|
800
|
+
...(await deserializeAws_json1_1InvalidS3BucketNameExceptionResponse(parsedOutput, context)),
|
|
801
|
+
name: errorCode,
|
|
802
|
+
$metadata: deserializeMetadata(output),
|
|
803
|
+
};
|
|
804
|
+
break;
|
|
805
|
+
case "InvalidS3PrefixException":
|
|
806
|
+
case "com.amazonaws.cloudtrail#InvalidS3PrefixException":
|
|
807
|
+
response = {
|
|
808
|
+
...(await deserializeAws_json1_1InvalidS3PrefixExceptionResponse(parsedOutput, context)),
|
|
809
|
+
name: errorCode,
|
|
810
|
+
$metadata: deserializeMetadata(output),
|
|
811
|
+
};
|
|
812
|
+
break;
|
|
813
|
+
case "InvalidSnsTopicNameException":
|
|
814
|
+
case "com.amazonaws.cloudtrail#InvalidSnsTopicNameException":
|
|
815
|
+
response = {
|
|
816
|
+
...(await deserializeAws_json1_1InvalidSnsTopicNameExceptionResponse(parsedOutput, context)),
|
|
817
|
+
name: errorCode,
|
|
818
|
+
$metadata: deserializeMetadata(output),
|
|
819
|
+
};
|
|
820
|
+
break;
|
|
821
|
+
case "InvalidTagParameterException":
|
|
822
|
+
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
823
|
+
response = {
|
|
824
|
+
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
603
825
|
name: errorCode,
|
|
604
826
|
$metadata: deserializeMetadata(output),
|
|
605
827
|
};
|
|
@@ -612,10 +834,920 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
612
834
|
$metadata: deserializeMetadata(output),
|
|
613
835
|
};
|
|
614
836
|
break;
|
|
837
|
+
case "KmsException":
|
|
838
|
+
case "com.amazonaws.cloudtrail#KmsException":
|
|
839
|
+
response = {
|
|
840
|
+
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
841
|
+
name: errorCode,
|
|
842
|
+
$metadata: deserializeMetadata(output),
|
|
843
|
+
};
|
|
844
|
+
break;
|
|
845
|
+
case "KmsKeyDisabledException":
|
|
846
|
+
case "com.amazonaws.cloudtrail#KmsKeyDisabledException":
|
|
847
|
+
response = {
|
|
848
|
+
...(await deserializeAws_json1_1KmsKeyDisabledExceptionResponse(parsedOutput, context)),
|
|
849
|
+
name: errorCode,
|
|
850
|
+
$metadata: deserializeMetadata(output),
|
|
851
|
+
};
|
|
852
|
+
break;
|
|
853
|
+
case "KmsKeyNotFoundException":
|
|
854
|
+
case "com.amazonaws.cloudtrail#KmsKeyNotFoundException":
|
|
855
|
+
response = {
|
|
856
|
+
...(await deserializeAws_json1_1KmsKeyNotFoundExceptionResponse(parsedOutput, context)),
|
|
857
|
+
name: errorCode,
|
|
858
|
+
$metadata: deserializeMetadata(output),
|
|
859
|
+
};
|
|
860
|
+
break;
|
|
861
|
+
case "MaximumNumberOfTrailsExceededException":
|
|
862
|
+
case "com.amazonaws.cloudtrail#MaximumNumberOfTrailsExceededException":
|
|
863
|
+
response = {
|
|
864
|
+
...(await deserializeAws_json1_1MaximumNumberOfTrailsExceededExceptionResponse(parsedOutput, context)),
|
|
865
|
+
name: errorCode,
|
|
866
|
+
$metadata: deserializeMetadata(output),
|
|
867
|
+
};
|
|
868
|
+
break;
|
|
615
869
|
case "NotOrganizationMasterAccountException":
|
|
616
870
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
617
871
|
response = {
|
|
618
|
-
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
872
|
+
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
873
|
+
name: errorCode,
|
|
874
|
+
$metadata: deserializeMetadata(output),
|
|
875
|
+
};
|
|
876
|
+
break;
|
|
877
|
+
case "OperationNotPermittedException":
|
|
878
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
879
|
+
response = {
|
|
880
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
881
|
+
name: errorCode,
|
|
882
|
+
$metadata: deserializeMetadata(output),
|
|
883
|
+
};
|
|
884
|
+
break;
|
|
885
|
+
case "OrganizationNotInAllFeaturesModeException":
|
|
886
|
+
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
887
|
+
response = {
|
|
888
|
+
...(await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context)),
|
|
889
|
+
name: errorCode,
|
|
890
|
+
$metadata: deserializeMetadata(output),
|
|
891
|
+
};
|
|
892
|
+
break;
|
|
893
|
+
case "OrganizationsNotInUseException":
|
|
894
|
+
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
895
|
+
response = {
|
|
896
|
+
...(await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context)),
|
|
897
|
+
name: errorCode,
|
|
898
|
+
$metadata: deserializeMetadata(output),
|
|
899
|
+
};
|
|
900
|
+
break;
|
|
901
|
+
case "S3BucketDoesNotExistException":
|
|
902
|
+
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
903
|
+
response = {
|
|
904
|
+
...(await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
905
|
+
name: errorCode,
|
|
906
|
+
$metadata: deserializeMetadata(output),
|
|
907
|
+
};
|
|
908
|
+
break;
|
|
909
|
+
case "TrailAlreadyExistsException":
|
|
910
|
+
case "com.amazonaws.cloudtrail#TrailAlreadyExistsException":
|
|
911
|
+
response = {
|
|
912
|
+
...(await deserializeAws_json1_1TrailAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
913
|
+
name: errorCode,
|
|
914
|
+
$metadata: deserializeMetadata(output),
|
|
915
|
+
};
|
|
916
|
+
break;
|
|
917
|
+
case "TrailNotProvidedException":
|
|
918
|
+
case "com.amazonaws.cloudtrail#TrailNotProvidedException":
|
|
919
|
+
response = {
|
|
920
|
+
...(await deserializeAws_json1_1TrailNotProvidedExceptionResponse(parsedOutput, context)),
|
|
921
|
+
name: errorCode,
|
|
922
|
+
$metadata: deserializeMetadata(output),
|
|
923
|
+
};
|
|
924
|
+
break;
|
|
925
|
+
case "UnsupportedOperationException":
|
|
926
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
927
|
+
response = {
|
|
928
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
929
|
+
name: errorCode,
|
|
930
|
+
$metadata: deserializeMetadata(output),
|
|
931
|
+
};
|
|
932
|
+
break;
|
|
933
|
+
default:
|
|
934
|
+
const parsedBody = parsedOutput.body;
|
|
935
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
936
|
+
response = {
|
|
937
|
+
...parsedBody,
|
|
938
|
+
name: `${errorCode}`,
|
|
939
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
940
|
+
$fault: "client",
|
|
941
|
+
$metadata: deserializeMetadata(output),
|
|
942
|
+
};
|
|
943
|
+
}
|
|
944
|
+
const message = response.message || response.Message || errorCode;
|
|
945
|
+
response.message = message;
|
|
946
|
+
delete response.Message;
|
|
947
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
948
|
+
};
|
|
949
|
+
const deserializeAws_json1_1DeleteEventDataStoreCommand = async (output, context) => {
|
|
950
|
+
if (output.statusCode >= 300) {
|
|
951
|
+
return deserializeAws_json1_1DeleteEventDataStoreCommandError(output, context);
|
|
952
|
+
}
|
|
953
|
+
const data = await parseBody(output.body, context);
|
|
954
|
+
let contents = {};
|
|
955
|
+
contents = deserializeAws_json1_1DeleteEventDataStoreResponse(data, context);
|
|
956
|
+
const response = {
|
|
957
|
+
$metadata: deserializeMetadata(output),
|
|
958
|
+
...contents,
|
|
959
|
+
};
|
|
960
|
+
return Promise.resolve(response);
|
|
961
|
+
};
|
|
962
|
+
exports.deserializeAws_json1_1DeleteEventDataStoreCommand = deserializeAws_json1_1DeleteEventDataStoreCommand;
|
|
963
|
+
const deserializeAws_json1_1DeleteEventDataStoreCommandError = async (output, context) => {
|
|
964
|
+
const parsedOutput = {
|
|
965
|
+
...output,
|
|
966
|
+
body: await parseBody(output.body, context),
|
|
967
|
+
};
|
|
968
|
+
let response;
|
|
969
|
+
let errorCode = "UnknownError";
|
|
970
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
+
switch (errorCode) {
|
|
972
|
+
case "EventDataStoreARNInvalidException":
|
|
973
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
974
|
+
response = {
|
|
975
|
+
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
976
|
+
name: errorCode,
|
|
977
|
+
$metadata: deserializeMetadata(output),
|
|
978
|
+
};
|
|
979
|
+
break;
|
|
980
|
+
case "EventDataStoreNotFoundException":
|
|
981
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
982
|
+
response = {
|
|
983
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
984
|
+
name: errorCode,
|
|
985
|
+
$metadata: deserializeMetadata(output),
|
|
986
|
+
};
|
|
987
|
+
break;
|
|
988
|
+
case "EventDataStoreTerminationProtectedException":
|
|
989
|
+
case "com.amazonaws.cloudtrail#EventDataStoreTerminationProtectedException":
|
|
990
|
+
response = {
|
|
991
|
+
...(await deserializeAws_json1_1EventDataStoreTerminationProtectedExceptionResponse(parsedOutput, context)),
|
|
992
|
+
name: errorCode,
|
|
993
|
+
$metadata: deserializeMetadata(output),
|
|
994
|
+
};
|
|
995
|
+
break;
|
|
996
|
+
case "InsufficientDependencyServiceAccessPermissionException":
|
|
997
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
998
|
+
response = {
|
|
999
|
+
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
1000
|
+
name: errorCode,
|
|
1001
|
+
$metadata: deserializeMetadata(output),
|
|
1002
|
+
};
|
|
1003
|
+
break;
|
|
1004
|
+
case "InvalidParameterException":
|
|
1005
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1006
|
+
response = {
|
|
1007
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1008
|
+
name: errorCode,
|
|
1009
|
+
$metadata: deserializeMetadata(output),
|
|
1010
|
+
};
|
|
1011
|
+
break;
|
|
1012
|
+
case "NotOrganizationMasterAccountException":
|
|
1013
|
+
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1014
|
+
response = {
|
|
1015
|
+
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
1016
|
+
name: errorCode,
|
|
1017
|
+
$metadata: deserializeMetadata(output),
|
|
1018
|
+
};
|
|
1019
|
+
break;
|
|
1020
|
+
case "OperationNotPermittedException":
|
|
1021
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1022
|
+
response = {
|
|
1023
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1024
|
+
name: errorCode,
|
|
1025
|
+
$metadata: deserializeMetadata(output),
|
|
1026
|
+
};
|
|
1027
|
+
break;
|
|
1028
|
+
case "UnsupportedOperationException":
|
|
1029
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1030
|
+
response = {
|
|
1031
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1032
|
+
name: errorCode,
|
|
1033
|
+
$metadata: deserializeMetadata(output),
|
|
1034
|
+
};
|
|
1035
|
+
break;
|
|
1036
|
+
default:
|
|
1037
|
+
const parsedBody = parsedOutput.body;
|
|
1038
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1039
|
+
response = {
|
|
1040
|
+
...parsedBody,
|
|
1041
|
+
name: `${errorCode}`,
|
|
1042
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1043
|
+
$fault: "client",
|
|
1044
|
+
$metadata: deserializeMetadata(output),
|
|
1045
|
+
};
|
|
1046
|
+
}
|
|
1047
|
+
const message = response.message || response.Message || errorCode;
|
|
1048
|
+
response.message = message;
|
|
1049
|
+
delete response.Message;
|
|
1050
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1051
|
+
};
|
|
1052
|
+
const deserializeAws_json1_1DeleteTrailCommand = async (output, context) => {
|
|
1053
|
+
if (output.statusCode >= 300) {
|
|
1054
|
+
return deserializeAws_json1_1DeleteTrailCommandError(output, context);
|
|
1055
|
+
}
|
|
1056
|
+
const data = await parseBody(output.body, context);
|
|
1057
|
+
let contents = {};
|
|
1058
|
+
contents = deserializeAws_json1_1DeleteTrailResponse(data, context);
|
|
1059
|
+
const response = {
|
|
1060
|
+
$metadata: deserializeMetadata(output),
|
|
1061
|
+
...contents,
|
|
1062
|
+
};
|
|
1063
|
+
return Promise.resolve(response);
|
|
1064
|
+
};
|
|
1065
|
+
exports.deserializeAws_json1_1DeleteTrailCommand = deserializeAws_json1_1DeleteTrailCommand;
|
|
1066
|
+
const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) => {
|
|
1067
|
+
const parsedOutput = {
|
|
1068
|
+
...output,
|
|
1069
|
+
body: await parseBody(output.body, context),
|
|
1070
|
+
};
|
|
1071
|
+
let response;
|
|
1072
|
+
let errorCode = "UnknownError";
|
|
1073
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1074
|
+
switch (errorCode) {
|
|
1075
|
+
case "ConflictException":
|
|
1076
|
+
case "com.amazonaws.cloudtrail#ConflictException":
|
|
1077
|
+
response = {
|
|
1078
|
+
...(await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context)),
|
|
1079
|
+
name: errorCode,
|
|
1080
|
+
$metadata: deserializeMetadata(output),
|
|
1081
|
+
};
|
|
1082
|
+
break;
|
|
1083
|
+
case "InsufficientDependencyServiceAccessPermissionException":
|
|
1084
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
1085
|
+
response = {
|
|
1086
|
+
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
1087
|
+
name: errorCode,
|
|
1088
|
+
$metadata: deserializeMetadata(output),
|
|
1089
|
+
};
|
|
1090
|
+
break;
|
|
1091
|
+
case "InvalidHomeRegionException":
|
|
1092
|
+
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
1093
|
+
response = {
|
|
1094
|
+
...(await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context)),
|
|
1095
|
+
name: errorCode,
|
|
1096
|
+
$metadata: deserializeMetadata(output),
|
|
1097
|
+
};
|
|
1098
|
+
break;
|
|
1099
|
+
case "InvalidTrailNameException":
|
|
1100
|
+
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1101
|
+
response = {
|
|
1102
|
+
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1103
|
+
name: errorCode,
|
|
1104
|
+
$metadata: deserializeMetadata(output),
|
|
1105
|
+
};
|
|
1106
|
+
break;
|
|
1107
|
+
case "NotOrganizationMasterAccountException":
|
|
1108
|
+
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1109
|
+
response = {
|
|
1110
|
+
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
1111
|
+
name: errorCode,
|
|
1112
|
+
$metadata: deserializeMetadata(output),
|
|
1113
|
+
};
|
|
1114
|
+
break;
|
|
1115
|
+
case "OperationNotPermittedException":
|
|
1116
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1117
|
+
response = {
|
|
1118
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1119
|
+
name: errorCode,
|
|
1120
|
+
$metadata: deserializeMetadata(output),
|
|
1121
|
+
};
|
|
1122
|
+
break;
|
|
1123
|
+
case "TrailNotFoundException":
|
|
1124
|
+
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1125
|
+
response = {
|
|
1126
|
+
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
1127
|
+
name: errorCode,
|
|
1128
|
+
$metadata: deserializeMetadata(output),
|
|
1129
|
+
};
|
|
1130
|
+
break;
|
|
1131
|
+
case "UnsupportedOperationException":
|
|
1132
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1133
|
+
response = {
|
|
1134
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1135
|
+
name: errorCode,
|
|
1136
|
+
$metadata: deserializeMetadata(output),
|
|
1137
|
+
};
|
|
1138
|
+
break;
|
|
1139
|
+
default:
|
|
1140
|
+
const parsedBody = parsedOutput.body;
|
|
1141
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1142
|
+
response = {
|
|
1143
|
+
...parsedBody,
|
|
1144
|
+
name: `${errorCode}`,
|
|
1145
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1146
|
+
$fault: "client",
|
|
1147
|
+
$metadata: deserializeMetadata(output),
|
|
1148
|
+
};
|
|
1149
|
+
}
|
|
1150
|
+
const message = response.message || response.Message || errorCode;
|
|
1151
|
+
response.message = message;
|
|
1152
|
+
delete response.Message;
|
|
1153
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1154
|
+
};
|
|
1155
|
+
const deserializeAws_json1_1DescribeQueryCommand = async (output, context) => {
|
|
1156
|
+
if (output.statusCode >= 300) {
|
|
1157
|
+
return deserializeAws_json1_1DescribeQueryCommandError(output, context);
|
|
1158
|
+
}
|
|
1159
|
+
const data = await parseBody(output.body, context);
|
|
1160
|
+
let contents = {};
|
|
1161
|
+
contents = deserializeAws_json1_1DescribeQueryResponse(data, context);
|
|
1162
|
+
const response = {
|
|
1163
|
+
$metadata: deserializeMetadata(output),
|
|
1164
|
+
...contents,
|
|
1165
|
+
};
|
|
1166
|
+
return Promise.resolve(response);
|
|
1167
|
+
};
|
|
1168
|
+
exports.deserializeAws_json1_1DescribeQueryCommand = deserializeAws_json1_1DescribeQueryCommand;
|
|
1169
|
+
const deserializeAws_json1_1DescribeQueryCommandError = async (output, context) => {
|
|
1170
|
+
const parsedOutput = {
|
|
1171
|
+
...output,
|
|
1172
|
+
body: await parseBody(output.body, context),
|
|
1173
|
+
};
|
|
1174
|
+
let response;
|
|
1175
|
+
let errorCode = "UnknownError";
|
|
1176
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
|
+
switch (errorCode) {
|
|
1178
|
+
case "EventDataStoreARNInvalidException":
|
|
1179
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1180
|
+
response = {
|
|
1181
|
+
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1182
|
+
name: errorCode,
|
|
1183
|
+
$metadata: deserializeMetadata(output),
|
|
1184
|
+
};
|
|
1185
|
+
break;
|
|
1186
|
+
case "EventDataStoreNotFoundException":
|
|
1187
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1188
|
+
response = {
|
|
1189
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
1190
|
+
name: errorCode,
|
|
1191
|
+
$metadata: deserializeMetadata(output),
|
|
1192
|
+
};
|
|
1193
|
+
break;
|
|
1194
|
+
case "InactiveEventDataStoreException":
|
|
1195
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1196
|
+
response = {
|
|
1197
|
+
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
1198
|
+
name: errorCode,
|
|
1199
|
+
$metadata: deserializeMetadata(output),
|
|
1200
|
+
};
|
|
1201
|
+
break;
|
|
1202
|
+
case "InvalidParameterException":
|
|
1203
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1204
|
+
response = {
|
|
1205
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1206
|
+
name: errorCode,
|
|
1207
|
+
$metadata: deserializeMetadata(output),
|
|
1208
|
+
};
|
|
1209
|
+
break;
|
|
1210
|
+
case "OperationNotPermittedException":
|
|
1211
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1212
|
+
response = {
|
|
1213
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1214
|
+
name: errorCode,
|
|
1215
|
+
$metadata: deserializeMetadata(output),
|
|
1216
|
+
};
|
|
1217
|
+
break;
|
|
1218
|
+
case "QueryIdNotFoundException":
|
|
1219
|
+
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
1220
|
+
response = {
|
|
1221
|
+
...(await deserializeAws_json1_1QueryIdNotFoundExceptionResponse(parsedOutput, context)),
|
|
1222
|
+
name: errorCode,
|
|
1223
|
+
$metadata: deserializeMetadata(output),
|
|
1224
|
+
};
|
|
1225
|
+
break;
|
|
1226
|
+
case "UnsupportedOperationException":
|
|
1227
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1228
|
+
response = {
|
|
1229
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1230
|
+
name: errorCode,
|
|
1231
|
+
$metadata: deserializeMetadata(output),
|
|
1232
|
+
};
|
|
1233
|
+
break;
|
|
1234
|
+
default:
|
|
1235
|
+
const parsedBody = parsedOutput.body;
|
|
1236
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1237
|
+
response = {
|
|
1238
|
+
...parsedBody,
|
|
1239
|
+
name: `${errorCode}`,
|
|
1240
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1241
|
+
$fault: "client",
|
|
1242
|
+
$metadata: deserializeMetadata(output),
|
|
1243
|
+
};
|
|
1244
|
+
}
|
|
1245
|
+
const message = response.message || response.Message || errorCode;
|
|
1246
|
+
response.message = message;
|
|
1247
|
+
delete response.Message;
|
|
1248
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1249
|
+
};
|
|
1250
|
+
const deserializeAws_json1_1DescribeTrailsCommand = async (output, context) => {
|
|
1251
|
+
if (output.statusCode >= 300) {
|
|
1252
|
+
return deserializeAws_json1_1DescribeTrailsCommandError(output, context);
|
|
1253
|
+
}
|
|
1254
|
+
const data = await parseBody(output.body, context);
|
|
1255
|
+
let contents = {};
|
|
1256
|
+
contents = deserializeAws_json1_1DescribeTrailsResponse(data, context);
|
|
1257
|
+
const response = {
|
|
1258
|
+
$metadata: deserializeMetadata(output),
|
|
1259
|
+
...contents,
|
|
1260
|
+
};
|
|
1261
|
+
return Promise.resolve(response);
|
|
1262
|
+
};
|
|
1263
|
+
exports.deserializeAws_json1_1DescribeTrailsCommand = deserializeAws_json1_1DescribeTrailsCommand;
|
|
1264
|
+
const deserializeAws_json1_1DescribeTrailsCommandError = async (output, context) => {
|
|
1265
|
+
const parsedOutput = {
|
|
1266
|
+
...output,
|
|
1267
|
+
body: await parseBody(output.body, context),
|
|
1268
|
+
};
|
|
1269
|
+
let response;
|
|
1270
|
+
let errorCode = "UnknownError";
|
|
1271
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
|
+
switch (errorCode) {
|
|
1273
|
+
case "InvalidTrailNameException":
|
|
1274
|
+
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1275
|
+
response = {
|
|
1276
|
+
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1277
|
+
name: errorCode,
|
|
1278
|
+
$metadata: deserializeMetadata(output),
|
|
1279
|
+
};
|
|
1280
|
+
break;
|
|
1281
|
+
case "OperationNotPermittedException":
|
|
1282
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1283
|
+
response = {
|
|
1284
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1285
|
+
name: errorCode,
|
|
1286
|
+
$metadata: deserializeMetadata(output),
|
|
1287
|
+
};
|
|
1288
|
+
break;
|
|
1289
|
+
case "UnsupportedOperationException":
|
|
1290
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1291
|
+
response = {
|
|
1292
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1293
|
+
name: errorCode,
|
|
1294
|
+
$metadata: deserializeMetadata(output),
|
|
1295
|
+
};
|
|
1296
|
+
break;
|
|
1297
|
+
default:
|
|
1298
|
+
const parsedBody = parsedOutput.body;
|
|
1299
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1300
|
+
response = {
|
|
1301
|
+
...parsedBody,
|
|
1302
|
+
name: `${errorCode}`,
|
|
1303
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1304
|
+
$fault: "client",
|
|
1305
|
+
$metadata: deserializeMetadata(output),
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
const message = response.message || response.Message || errorCode;
|
|
1309
|
+
response.message = message;
|
|
1310
|
+
delete response.Message;
|
|
1311
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1312
|
+
};
|
|
1313
|
+
const deserializeAws_json1_1GetEventDataStoreCommand = async (output, context) => {
|
|
1314
|
+
if (output.statusCode >= 300) {
|
|
1315
|
+
return deserializeAws_json1_1GetEventDataStoreCommandError(output, context);
|
|
1316
|
+
}
|
|
1317
|
+
const data = await parseBody(output.body, context);
|
|
1318
|
+
let contents = {};
|
|
1319
|
+
contents = deserializeAws_json1_1GetEventDataStoreResponse(data, context);
|
|
1320
|
+
const response = {
|
|
1321
|
+
$metadata: deserializeMetadata(output),
|
|
1322
|
+
...contents,
|
|
1323
|
+
};
|
|
1324
|
+
return Promise.resolve(response);
|
|
1325
|
+
};
|
|
1326
|
+
exports.deserializeAws_json1_1GetEventDataStoreCommand = deserializeAws_json1_1GetEventDataStoreCommand;
|
|
1327
|
+
const deserializeAws_json1_1GetEventDataStoreCommandError = async (output, context) => {
|
|
1328
|
+
const parsedOutput = {
|
|
1329
|
+
...output,
|
|
1330
|
+
body: await parseBody(output.body, context),
|
|
1331
|
+
};
|
|
1332
|
+
let response;
|
|
1333
|
+
let errorCode = "UnknownError";
|
|
1334
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1335
|
+
switch (errorCode) {
|
|
1336
|
+
case "EventDataStoreARNInvalidException":
|
|
1337
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1338
|
+
response = {
|
|
1339
|
+
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1340
|
+
name: errorCode,
|
|
1341
|
+
$metadata: deserializeMetadata(output),
|
|
1342
|
+
};
|
|
1343
|
+
break;
|
|
1344
|
+
case "EventDataStoreNotFoundException":
|
|
1345
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1346
|
+
response = {
|
|
1347
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
1348
|
+
name: errorCode,
|
|
1349
|
+
$metadata: deserializeMetadata(output),
|
|
1350
|
+
};
|
|
1351
|
+
break;
|
|
1352
|
+
case "InvalidParameterException":
|
|
1353
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1354
|
+
response = {
|
|
1355
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1356
|
+
name: errorCode,
|
|
1357
|
+
$metadata: deserializeMetadata(output),
|
|
1358
|
+
};
|
|
1359
|
+
break;
|
|
1360
|
+
case "OperationNotPermittedException":
|
|
1361
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1362
|
+
response = {
|
|
1363
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1364
|
+
name: errorCode,
|
|
1365
|
+
$metadata: deserializeMetadata(output),
|
|
1366
|
+
};
|
|
1367
|
+
break;
|
|
1368
|
+
case "UnsupportedOperationException":
|
|
1369
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1370
|
+
response = {
|
|
1371
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1372
|
+
name: errorCode,
|
|
1373
|
+
$metadata: deserializeMetadata(output),
|
|
1374
|
+
};
|
|
1375
|
+
break;
|
|
1376
|
+
default:
|
|
1377
|
+
const parsedBody = parsedOutput.body;
|
|
1378
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1379
|
+
response = {
|
|
1380
|
+
...parsedBody,
|
|
1381
|
+
name: `${errorCode}`,
|
|
1382
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1383
|
+
$fault: "client",
|
|
1384
|
+
$metadata: deserializeMetadata(output),
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
const message = response.message || response.Message || errorCode;
|
|
1388
|
+
response.message = message;
|
|
1389
|
+
delete response.Message;
|
|
1390
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1391
|
+
};
|
|
1392
|
+
const deserializeAws_json1_1GetEventSelectorsCommand = async (output, context) => {
|
|
1393
|
+
if (output.statusCode >= 300) {
|
|
1394
|
+
return deserializeAws_json1_1GetEventSelectorsCommandError(output, context);
|
|
1395
|
+
}
|
|
1396
|
+
const data = await parseBody(output.body, context);
|
|
1397
|
+
let contents = {};
|
|
1398
|
+
contents = deserializeAws_json1_1GetEventSelectorsResponse(data, context);
|
|
1399
|
+
const response = {
|
|
1400
|
+
$metadata: deserializeMetadata(output),
|
|
1401
|
+
...contents,
|
|
1402
|
+
};
|
|
1403
|
+
return Promise.resolve(response);
|
|
1404
|
+
};
|
|
1405
|
+
exports.deserializeAws_json1_1GetEventSelectorsCommand = deserializeAws_json1_1GetEventSelectorsCommand;
|
|
1406
|
+
const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, context) => {
|
|
1407
|
+
const parsedOutput = {
|
|
1408
|
+
...output,
|
|
1409
|
+
body: await parseBody(output.body, context),
|
|
1410
|
+
};
|
|
1411
|
+
let response;
|
|
1412
|
+
let errorCode = "UnknownError";
|
|
1413
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
|
+
switch (errorCode) {
|
|
1415
|
+
case "InvalidTrailNameException":
|
|
1416
|
+
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1417
|
+
response = {
|
|
1418
|
+
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1419
|
+
name: errorCode,
|
|
1420
|
+
$metadata: deserializeMetadata(output),
|
|
1421
|
+
};
|
|
1422
|
+
break;
|
|
1423
|
+
case "OperationNotPermittedException":
|
|
1424
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1425
|
+
response = {
|
|
1426
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1427
|
+
name: errorCode,
|
|
1428
|
+
$metadata: deserializeMetadata(output),
|
|
1429
|
+
};
|
|
1430
|
+
break;
|
|
1431
|
+
case "TrailNotFoundException":
|
|
1432
|
+
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1433
|
+
response = {
|
|
1434
|
+
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
1435
|
+
name: errorCode,
|
|
1436
|
+
$metadata: deserializeMetadata(output),
|
|
1437
|
+
};
|
|
1438
|
+
break;
|
|
1439
|
+
case "UnsupportedOperationException":
|
|
1440
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1441
|
+
response = {
|
|
1442
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1443
|
+
name: errorCode,
|
|
1444
|
+
$metadata: deserializeMetadata(output),
|
|
1445
|
+
};
|
|
1446
|
+
break;
|
|
1447
|
+
default:
|
|
1448
|
+
const parsedBody = parsedOutput.body;
|
|
1449
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1450
|
+
response = {
|
|
1451
|
+
...parsedBody,
|
|
1452
|
+
name: `${errorCode}`,
|
|
1453
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1454
|
+
$fault: "client",
|
|
1455
|
+
$metadata: deserializeMetadata(output),
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1458
|
+
const message = response.message || response.Message || errorCode;
|
|
1459
|
+
response.message = message;
|
|
1460
|
+
delete response.Message;
|
|
1461
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1462
|
+
};
|
|
1463
|
+
const deserializeAws_json1_1GetInsightSelectorsCommand = async (output, context) => {
|
|
1464
|
+
if (output.statusCode >= 300) {
|
|
1465
|
+
return deserializeAws_json1_1GetInsightSelectorsCommandError(output, context);
|
|
1466
|
+
}
|
|
1467
|
+
const data = await parseBody(output.body, context);
|
|
1468
|
+
let contents = {};
|
|
1469
|
+
contents = deserializeAws_json1_1GetInsightSelectorsResponse(data, context);
|
|
1470
|
+
const response = {
|
|
1471
|
+
$metadata: deserializeMetadata(output),
|
|
1472
|
+
...contents,
|
|
1473
|
+
};
|
|
1474
|
+
return Promise.resolve(response);
|
|
1475
|
+
};
|
|
1476
|
+
exports.deserializeAws_json1_1GetInsightSelectorsCommand = deserializeAws_json1_1GetInsightSelectorsCommand;
|
|
1477
|
+
const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, context) => {
|
|
1478
|
+
const parsedOutput = {
|
|
1479
|
+
...output,
|
|
1480
|
+
body: await parseBody(output.body, context),
|
|
1481
|
+
};
|
|
1482
|
+
let response;
|
|
1483
|
+
let errorCode = "UnknownError";
|
|
1484
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1485
|
+
switch (errorCode) {
|
|
1486
|
+
case "InsightNotEnabledException":
|
|
1487
|
+
case "com.amazonaws.cloudtrail#InsightNotEnabledException":
|
|
1488
|
+
response = {
|
|
1489
|
+
...(await deserializeAws_json1_1InsightNotEnabledExceptionResponse(parsedOutput, context)),
|
|
1490
|
+
name: errorCode,
|
|
1491
|
+
$metadata: deserializeMetadata(output),
|
|
1492
|
+
};
|
|
1493
|
+
break;
|
|
1494
|
+
case "InvalidTrailNameException":
|
|
1495
|
+
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1496
|
+
response = {
|
|
1497
|
+
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1498
|
+
name: errorCode,
|
|
1499
|
+
$metadata: deserializeMetadata(output),
|
|
1500
|
+
};
|
|
1501
|
+
break;
|
|
1502
|
+
case "OperationNotPermittedException":
|
|
1503
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1504
|
+
response = {
|
|
1505
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1506
|
+
name: errorCode,
|
|
1507
|
+
$metadata: deserializeMetadata(output),
|
|
1508
|
+
};
|
|
1509
|
+
break;
|
|
1510
|
+
case "TrailNotFoundException":
|
|
1511
|
+
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1512
|
+
response = {
|
|
1513
|
+
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
1514
|
+
name: errorCode,
|
|
1515
|
+
$metadata: deserializeMetadata(output),
|
|
1516
|
+
};
|
|
1517
|
+
break;
|
|
1518
|
+
case "UnsupportedOperationException":
|
|
1519
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1520
|
+
response = {
|
|
1521
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1522
|
+
name: errorCode,
|
|
1523
|
+
$metadata: deserializeMetadata(output),
|
|
1524
|
+
};
|
|
1525
|
+
break;
|
|
1526
|
+
default:
|
|
1527
|
+
const parsedBody = parsedOutput.body;
|
|
1528
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1529
|
+
response = {
|
|
1530
|
+
...parsedBody,
|
|
1531
|
+
name: `${errorCode}`,
|
|
1532
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1533
|
+
$fault: "client",
|
|
1534
|
+
$metadata: deserializeMetadata(output),
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
const message = response.message || response.Message || errorCode;
|
|
1538
|
+
response.message = message;
|
|
1539
|
+
delete response.Message;
|
|
1540
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1541
|
+
};
|
|
1542
|
+
const deserializeAws_json1_1GetQueryResultsCommand = async (output, context) => {
|
|
1543
|
+
if (output.statusCode >= 300) {
|
|
1544
|
+
return deserializeAws_json1_1GetQueryResultsCommandError(output, context);
|
|
1545
|
+
}
|
|
1546
|
+
const data = await parseBody(output.body, context);
|
|
1547
|
+
let contents = {};
|
|
1548
|
+
contents = deserializeAws_json1_1GetQueryResultsResponse(data, context);
|
|
1549
|
+
const response = {
|
|
1550
|
+
$metadata: deserializeMetadata(output),
|
|
1551
|
+
...contents,
|
|
1552
|
+
};
|
|
1553
|
+
return Promise.resolve(response);
|
|
1554
|
+
};
|
|
1555
|
+
exports.deserializeAws_json1_1GetQueryResultsCommand = deserializeAws_json1_1GetQueryResultsCommand;
|
|
1556
|
+
const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context) => {
|
|
1557
|
+
const parsedOutput = {
|
|
1558
|
+
...output,
|
|
1559
|
+
body: await parseBody(output.body, context),
|
|
1560
|
+
};
|
|
1561
|
+
let response;
|
|
1562
|
+
let errorCode = "UnknownError";
|
|
1563
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1564
|
+
switch (errorCode) {
|
|
1565
|
+
case "EventDataStoreARNInvalidException":
|
|
1566
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1567
|
+
response = {
|
|
1568
|
+
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1569
|
+
name: errorCode,
|
|
1570
|
+
$metadata: deserializeMetadata(output),
|
|
1571
|
+
};
|
|
1572
|
+
break;
|
|
1573
|
+
case "EventDataStoreNotFoundException":
|
|
1574
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1575
|
+
response = {
|
|
1576
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
1577
|
+
name: errorCode,
|
|
1578
|
+
$metadata: deserializeMetadata(output),
|
|
1579
|
+
};
|
|
1580
|
+
break;
|
|
1581
|
+
case "InactiveEventDataStoreException":
|
|
1582
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1583
|
+
response = {
|
|
1584
|
+
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
1585
|
+
name: errorCode,
|
|
1586
|
+
$metadata: deserializeMetadata(output),
|
|
1587
|
+
};
|
|
1588
|
+
break;
|
|
1589
|
+
case "InvalidMaxResultsException":
|
|
1590
|
+
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
1591
|
+
response = {
|
|
1592
|
+
...(await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context)),
|
|
1593
|
+
name: errorCode,
|
|
1594
|
+
$metadata: deserializeMetadata(output),
|
|
1595
|
+
};
|
|
1596
|
+
break;
|
|
1597
|
+
case "InvalidNextTokenException":
|
|
1598
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1599
|
+
response = {
|
|
1600
|
+
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1601
|
+
name: errorCode,
|
|
1602
|
+
$metadata: deserializeMetadata(output),
|
|
1603
|
+
};
|
|
1604
|
+
break;
|
|
1605
|
+
case "InvalidParameterException":
|
|
1606
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1607
|
+
response = {
|
|
1608
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1609
|
+
name: errorCode,
|
|
1610
|
+
$metadata: deserializeMetadata(output),
|
|
1611
|
+
};
|
|
1612
|
+
break;
|
|
1613
|
+
case "OperationNotPermittedException":
|
|
1614
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1615
|
+
response = {
|
|
1616
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1617
|
+
name: errorCode,
|
|
1618
|
+
$metadata: deserializeMetadata(output),
|
|
1619
|
+
};
|
|
1620
|
+
break;
|
|
1621
|
+
case "QueryIdNotFoundException":
|
|
1622
|
+
case "com.amazonaws.cloudtrail#QueryIdNotFoundException":
|
|
1623
|
+
response = {
|
|
1624
|
+
...(await deserializeAws_json1_1QueryIdNotFoundExceptionResponse(parsedOutput, context)),
|
|
1625
|
+
name: errorCode,
|
|
1626
|
+
$metadata: deserializeMetadata(output),
|
|
1627
|
+
};
|
|
1628
|
+
break;
|
|
1629
|
+
case "UnsupportedOperationException":
|
|
1630
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1631
|
+
response = {
|
|
1632
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1633
|
+
name: errorCode,
|
|
1634
|
+
$metadata: deserializeMetadata(output),
|
|
1635
|
+
};
|
|
1636
|
+
break;
|
|
1637
|
+
default:
|
|
1638
|
+
const parsedBody = parsedOutput.body;
|
|
1639
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1640
|
+
response = {
|
|
1641
|
+
...parsedBody,
|
|
1642
|
+
name: `${errorCode}`,
|
|
1643
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1644
|
+
$fault: "client",
|
|
1645
|
+
$metadata: deserializeMetadata(output),
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1648
|
+
const message = response.message || response.Message || errorCode;
|
|
1649
|
+
response.message = message;
|
|
1650
|
+
delete response.Message;
|
|
1651
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1652
|
+
};
|
|
1653
|
+
const deserializeAws_json1_1GetTrailCommand = async (output, context) => {
|
|
1654
|
+
if (output.statusCode >= 300) {
|
|
1655
|
+
return deserializeAws_json1_1GetTrailCommandError(output, context);
|
|
1656
|
+
}
|
|
1657
|
+
const data = await parseBody(output.body, context);
|
|
1658
|
+
let contents = {};
|
|
1659
|
+
contents = deserializeAws_json1_1GetTrailResponse(data, context);
|
|
1660
|
+
const response = {
|
|
1661
|
+
$metadata: deserializeMetadata(output),
|
|
1662
|
+
...contents,
|
|
1663
|
+
};
|
|
1664
|
+
return Promise.resolve(response);
|
|
1665
|
+
};
|
|
1666
|
+
exports.deserializeAws_json1_1GetTrailCommand = deserializeAws_json1_1GetTrailCommand;
|
|
1667
|
+
const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
1668
|
+
const parsedOutput = {
|
|
1669
|
+
...output,
|
|
1670
|
+
body: await parseBody(output.body, context),
|
|
1671
|
+
};
|
|
1672
|
+
let response;
|
|
1673
|
+
let errorCode = "UnknownError";
|
|
1674
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1675
|
+
switch (errorCode) {
|
|
1676
|
+
case "InvalidTrailNameException":
|
|
1677
|
+
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1678
|
+
response = {
|
|
1679
|
+
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1680
|
+
name: errorCode,
|
|
1681
|
+
$metadata: deserializeMetadata(output),
|
|
1682
|
+
};
|
|
1683
|
+
break;
|
|
1684
|
+
case "OperationNotPermittedException":
|
|
1685
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1686
|
+
response = {
|
|
1687
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1688
|
+
name: errorCode,
|
|
1689
|
+
$metadata: deserializeMetadata(output),
|
|
1690
|
+
};
|
|
1691
|
+
break;
|
|
1692
|
+
case "TrailNotFoundException":
|
|
1693
|
+
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1694
|
+
response = {
|
|
1695
|
+
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
1696
|
+
name: errorCode,
|
|
1697
|
+
$metadata: deserializeMetadata(output),
|
|
1698
|
+
};
|
|
1699
|
+
break;
|
|
1700
|
+
case "UnsupportedOperationException":
|
|
1701
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1702
|
+
response = {
|
|
1703
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1704
|
+
name: errorCode,
|
|
1705
|
+
$metadata: deserializeMetadata(output),
|
|
1706
|
+
};
|
|
1707
|
+
break;
|
|
1708
|
+
default:
|
|
1709
|
+
const parsedBody = parsedOutput.body;
|
|
1710
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1711
|
+
response = {
|
|
1712
|
+
...parsedBody,
|
|
1713
|
+
name: `${errorCode}`,
|
|
1714
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1715
|
+
$fault: "client",
|
|
1716
|
+
$metadata: deserializeMetadata(output),
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
const message = response.message || response.Message || errorCode;
|
|
1720
|
+
response.message = message;
|
|
1721
|
+
delete response.Message;
|
|
1722
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1723
|
+
};
|
|
1724
|
+
const deserializeAws_json1_1GetTrailStatusCommand = async (output, context) => {
|
|
1725
|
+
if (output.statusCode >= 300) {
|
|
1726
|
+
return deserializeAws_json1_1GetTrailStatusCommandError(output, context);
|
|
1727
|
+
}
|
|
1728
|
+
const data = await parseBody(output.body, context);
|
|
1729
|
+
let contents = {};
|
|
1730
|
+
contents = deserializeAws_json1_1GetTrailStatusResponse(data, context);
|
|
1731
|
+
const response = {
|
|
1732
|
+
$metadata: deserializeMetadata(output),
|
|
1733
|
+
...contents,
|
|
1734
|
+
};
|
|
1735
|
+
return Promise.resolve(response);
|
|
1736
|
+
};
|
|
1737
|
+
exports.deserializeAws_json1_1GetTrailStatusCommand = deserializeAws_json1_1GetTrailStatusCommand;
|
|
1738
|
+
const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context) => {
|
|
1739
|
+
const parsedOutput = {
|
|
1740
|
+
...output,
|
|
1741
|
+
body: await parseBody(output.body, context),
|
|
1742
|
+
};
|
|
1743
|
+
let response;
|
|
1744
|
+
let errorCode = "UnknownError";
|
|
1745
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1746
|
+
switch (errorCode) {
|
|
1747
|
+
case "InvalidTrailNameException":
|
|
1748
|
+
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1749
|
+
response = {
|
|
1750
|
+
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
619
1751
|
name: errorCode,
|
|
620
1752
|
$metadata: deserializeMetadata(output),
|
|
621
1753
|
};
|
|
@@ -660,21 +1792,21 @@ const deserializeAws_json1_1DeleteTrailCommandError = async (output, context) =>
|
|
|
660
1792
|
delete response.Message;
|
|
661
1793
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
662
1794
|
};
|
|
663
|
-
const
|
|
1795
|
+
const deserializeAws_json1_1ListEventDataStoresCommand = async (output, context) => {
|
|
664
1796
|
if (output.statusCode >= 300) {
|
|
665
|
-
return
|
|
1797
|
+
return deserializeAws_json1_1ListEventDataStoresCommandError(output, context);
|
|
666
1798
|
}
|
|
667
1799
|
const data = await parseBody(output.body, context);
|
|
668
1800
|
let contents = {};
|
|
669
|
-
contents =
|
|
1801
|
+
contents = deserializeAws_json1_1ListEventDataStoresResponse(data, context);
|
|
670
1802
|
const response = {
|
|
671
1803
|
$metadata: deserializeMetadata(output),
|
|
672
1804
|
...contents,
|
|
673
1805
|
};
|
|
674
1806
|
return Promise.resolve(response);
|
|
675
1807
|
};
|
|
676
|
-
exports.
|
|
677
|
-
const
|
|
1808
|
+
exports.deserializeAws_json1_1ListEventDataStoresCommand = deserializeAws_json1_1ListEventDataStoresCommand;
|
|
1809
|
+
const deserializeAws_json1_1ListEventDataStoresCommandError = async (output, context) => {
|
|
678
1810
|
const parsedOutput = {
|
|
679
1811
|
...output,
|
|
680
1812
|
body: await parseBody(output.body, context),
|
|
@@ -683,10 +1815,18 @@ const deserializeAws_json1_1DescribeTrailsCommandError = async (output, context)
|
|
|
683
1815
|
let errorCode = "UnknownError";
|
|
684
1816
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
1817
|
switch (errorCode) {
|
|
686
|
-
case "
|
|
687
|
-
case "com.amazonaws.cloudtrail#
|
|
1818
|
+
case "InvalidMaxResultsException":
|
|
1819
|
+
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
688
1820
|
response = {
|
|
689
|
-
...(await
|
|
1821
|
+
...(await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context)),
|
|
1822
|
+
name: errorCode,
|
|
1823
|
+
$metadata: deserializeMetadata(output),
|
|
1824
|
+
};
|
|
1825
|
+
break;
|
|
1826
|
+
case "InvalidNextTokenException":
|
|
1827
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
1828
|
+
response = {
|
|
1829
|
+
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
690
1830
|
name: errorCode,
|
|
691
1831
|
$metadata: deserializeMetadata(output),
|
|
692
1832
|
};
|
|
@@ -723,21 +1863,21 @@ const deserializeAws_json1_1DescribeTrailsCommandError = async (output, context)
|
|
|
723
1863
|
delete response.Message;
|
|
724
1864
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
725
1865
|
};
|
|
726
|
-
const
|
|
1866
|
+
const deserializeAws_json1_1ListPublicKeysCommand = async (output, context) => {
|
|
727
1867
|
if (output.statusCode >= 300) {
|
|
728
|
-
return
|
|
1868
|
+
return deserializeAws_json1_1ListPublicKeysCommandError(output, context);
|
|
729
1869
|
}
|
|
730
1870
|
const data = await parseBody(output.body, context);
|
|
731
1871
|
let contents = {};
|
|
732
|
-
contents =
|
|
1872
|
+
contents = deserializeAws_json1_1ListPublicKeysResponse(data, context);
|
|
733
1873
|
const response = {
|
|
734
1874
|
$metadata: deserializeMetadata(output),
|
|
735
1875
|
...contents,
|
|
736
1876
|
};
|
|
737
1877
|
return Promise.resolve(response);
|
|
738
1878
|
};
|
|
739
|
-
exports.
|
|
740
|
-
const
|
|
1879
|
+
exports.deserializeAws_json1_1ListPublicKeysCommand = deserializeAws_json1_1ListPublicKeysCommand;
|
|
1880
|
+
const deserializeAws_json1_1ListPublicKeysCommandError = async (output, context) => {
|
|
741
1881
|
const parsedOutput = {
|
|
742
1882
|
...output,
|
|
743
1883
|
body: await parseBody(output.body, context),
|
|
@@ -746,26 +1886,26 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
746
1886
|
let errorCode = "UnknownError";
|
|
747
1887
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
748
1888
|
switch (errorCode) {
|
|
749
|
-
case "
|
|
750
|
-
case "com.amazonaws.cloudtrail#
|
|
1889
|
+
case "InvalidTimeRangeException":
|
|
1890
|
+
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
751
1891
|
response = {
|
|
752
|
-
...(await
|
|
1892
|
+
...(await deserializeAws_json1_1InvalidTimeRangeExceptionResponse(parsedOutput, context)),
|
|
753
1893
|
name: errorCode,
|
|
754
1894
|
$metadata: deserializeMetadata(output),
|
|
755
1895
|
};
|
|
756
1896
|
break;
|
|
757
|
-
case "
|
|
758
|
-
case "com.amazonaws.cloudtrail#
|
|
1897
|
+
case "InvalidTokenException":
|
|
1898
|
+
case "com.amazonaws.cloudtrail#InvalidTokenException":
|
|
759
1899
|
response = {
|
|
760
|
-
...(await
|
|
1900
|
+
...(await deserializeAws_json1_1InvalidTokenExceptionResponse(parsedOutput, context)),
|
|
761
1901
|
name: errorCode,
|
|
762
1902
|
$metadata: deserializeMetadata(output),
|
|
763
1903
|
};
|
|
764
1904
|
break;
|
|
765
|
-
case "
|
|
766
|
-
case "com.amazonaws.cloudtrail#
|
|
1905
|
+
case "OperationNotPermittedException":
|
|
1906
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
767
1907
|
response = {
|
|
768
|
-
...(await
|
|
1908
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
769
1909
|
name: errorCode,
|
|
770
1910
|
$metadata: deserializeMetadata(output),
|
|
771
1911
|
};
|
|
@@ -794,21 +1934,21 @@ const deserializeAws_json1_1GetEventSelectorsCommandError = async (output, conte
|
|
|
794
1934
|
delete response.Message;
|
|
795
1935
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
796
1936
|
};
|
|
797
|
-
const
|
|
1937
|
+
const deserializeAws_json1_1ListQueriesCommand = async (output, context) => {
|
|
798
1938
|
if (output.statusCode >= 300) {
|
|
799
|
-
return
|
|
1939
|
+
return deserializeAws_json1_1ListQueriesCommandError(output, context);
|
|
800
1940
|
}
|
|
801
1941
|
const data = await parseBody(output.body, context);
|
|
802
1942
|
let contents = {};
|
|
803
|
-
contents =
|
|
1943
|
+
contents = deserializeAws_json1_1ListQueriesResponse(data, context);
|
|
804
1944
|
const response = {
|
|
805
1945
|
$metadata: deserializeMetadata(output),
|
|
806
1946
|
...contents,
|
|
807
1947
|
};
|
|
808
1948
|
return Promise.resolve(response);
|
|
809
1949
|
};
|
|
810
|
-
exports.
|
|
811
|
-
const
|
|
1950
|
+
exports.deserializeAws_json1_1ListQueriesCommand = deserializeAws_json1_1ListQueriesCommand;
|
|
1951
|
+
const deserializeAws_json1_1ListQueriesCommandError = async (output, context) => {
|
|
812
1952
|
const parsedOutput = {
|
|
813
1953
|
...output,
|
|
814
1954
|
body: await parseBody(output.body, context),
|
|
@@ -817,34 +1957,74 @@ const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, con
|
|
|
817
1957
|
let errorCode = "UnknownError";
|
|
818
1958
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
819
1959
|
switch (errorCode) {
|
|
820
|
-
case "
|
|
821
|
-
case "com.amazonaws.cloudtrail#
|
|
1960
|
+
case "EventDataStoreARNInvalidException":
|
|
1961
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
822
1962
|
response = {
|
|
823
|
-
...(await
|
|
1963
|
+
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
824
1964
|
name: errorCode,
|
|
825
1965
|
$metadata: deserializeMetadata(output),
|
|
826
1966
|
};
|
|
827
1967
|
break;
|
|
828
|
-
case "
|
|
829
|
-
case "com.amazonaws.cloudtrail#
|
|
1968
|
+
case "EventDataStoreNotFoundException":
|
|
1969
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
830
1970
|
response = {
|
|
831
|
-
...(await
|
|
1971
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
832
1972
|
name: errorCode,
|
|
833
1973
|
$metadata: deserializeMetadata(output),
|
|
834
1974
|
};
|
|
835
1975
|
break;
|
|
836
|
-
case "
|
|
837
|
-
case "com.amazonaws.cloudtrail#
|
|
1976
|
+
case "InactiveEventDataStoreException":
|
|
1977
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
838
1978
|
response = {
|
|
839
|
-
...(await
|
|
1979
|
+
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
840
1980
|
name: errorCode,
|
|
841
1981
|
$metadata: deserializeMetadata(output),
|
|
842
1982
|
};
|
|
843
1983
|
break;
|
|
844
|
-
case "
|
|
845
|
-
case "com.amazonaws.cloudtrail#
|
|
1984
|
+
case "InvalidDateRangeException":
|
|
1985
|
+
case "com.amazonaws.cloudtrail#InvalidDateRangeException":
|
|
846
1986
|
response = {
|
|
847
|
-
...(await
|
|
1987
|
+
...(await deserializeAws_json1_1InvalidDateRangeExceptionResponse(parsedOutput, context)),
|
|
1988
|
+
name: errorCode,
|
|
1989
|
+
$metadata: deserializeMetadata(output),
|
|
1990
|
+
};
|
|
1991
|
+
break;
|
|
1992
|
+
case "InvalidMaxResultsException":
|
|
1993
|
+
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
1994
|
+
response = {
|
|
1995
|
+
...(await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context)),
|
|
1996
|
+
name: errorCode,
|
|
1997
|
+
$metadata: deserializeMetadata(output),
|
|
1998
|
+
};
|
|
1999
|
+
break;
|
|
2000
|
+
case "InvalidNextTokenException":
|
|
2001
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
2002
|
+
response = {
|
|
2003
|
+
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2004
|
+
name: errorCode,
|
|
2005
|
+
$metadata: deserializeMetadata(output),
|
|
2006
|
+
};
|
|
2007
|
+
break;
|
|
2008
|
+
case "InvalidParameterException":
|
|
2009
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
2010
|
+
response = {
|
|
2011
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2012
|
+
name: errorCode,
|
|
2013
|
+
$metadata: deserializeMetadata(output),
|
|
2014
|
+
};
|
|
2015
|
+
break;
|
|
2016
|
+
case "InvalidQueryStatusException":
|
|
2017
|
+
case "com.amazonaws.cloudtrail#InvalidQueryStatusException":
|
|
2018
|
+
response = {
|
|
2019
|
+
...(await deserializeAws_json1_1InvalidQueryStatusExceptionResponse(parsedOutput, context)),
|
|
2020
|
+
name: errorCode,
|
|
2021
|
+
$metadata: deserializeMetadata(output),
|
|
2022
|
+
};
|
|
2023
|
+
break;
|
|
2024
|
+
case "OperationNotPermittedException":
|
|
2025
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
2026
|
+
response = {
|
|
2027
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
848
2028
|
name: errorCode,
|
|
849
2029
|
$metadata: deserializeMetadata(output),
|
|
850
2030
|
};
|
|
@@ -873,21 +2053,21 @@ const deserializeAws_json1_1GetInsightSelectorsCommandError = async (output, con
|
|
|
873
2053
|
delete response.Message;
|
|
874
2054
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
875
2055
|
};
|
|
876
|
-
const
|
|
2056
|
+
const deserializeAws_json1_1ListTagsCommand = async (output, context) => {
|
|
877
2057
|
if (output.statusCode >= 300) {
|
|
878
|
-
return
|
|
2058
|
+
return deserializeAws_json1_1ListTagsCommandError(output, context);
|
|
879
2059
|
}
|
|
880
2060
|
const data = await parseBody(output.body, context);
|
|
881
2061
|
let contents = {};
|
|
882
|
-
contents =
|
|
2062
|
+
contents = deserializeAws_json1_1ListTagsResponse(data, context);
|
|
883
2063
|
const response = {
|
|
884
2064
|
$metadata: deserializeMetadata(output),
|
|
885
2065
|
...contents,
|
|
886
2066
|
};
|
|
887
2067
|
return Promise.resolve(response);
|
|
888
2068
|
};
|
|
889
|
-
exports.
|
|
890
|
-
const
|
|
2069
|
+
exports.deserializeAws_json1_1ListTagsCommand = deserializeAws_json1_1ListTagsCommand;
|
|
2070
|
+
const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
891
2071
|
const parsedOutput = {
|
|
892
2072
|
...output,
|
|
893
2073
|
body: await parseBody(output.body, context),
|
|
@@ -896,6 +2076,38 @@ const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
|
896
2076
|
let errorCode = "UnknownError";
|
|
897
2077
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
898
2078
|
switch (errorCode) {
|
|
2079
|
+
case "CloudTrailARNInvalidException":
|
|
2080
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
2081
|
+
response = {
|
|
2082
|
+
...(await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context)),
|
|
2083
|
+
name: errorCode,
|
|
2084
|
+
$metadata: deserializeMetadata(output),
|
|
2085
|
+
};
|
|
2086
|
+
break;
|
|
2087
|
+
case "EventDataStoreNotFoundException":
|
|
2088
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2089
|
+
response = {
|
|
2090
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
2091
|
+
name: errorCode,
|
|
2092
|
+
$metadata: deserializeMetadata(output),
|
|
2093
|
+
};
|
|
2094
|
+
break;
|
|
2095
|
+
case "InactiveEventDataStoreException":
|
|
2096
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
2097
|
+
response = {
|
|
2098
|
+
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
2099
|
+
name: errorCode,
|
|
2100
|
+
$metadata: deserializeMetadata(output),
|
|
2101
|
+
};
|
|
2102
|
+
break;
|
|
2103
|
+
case "InvalidTokenException":
|
|
2104
|
+
case "com.amazonaws.cloudtrail#InvalidTokenException":
|
|
2105
|
+
response = {
|
|
2106
|
+
...(await deserializeAws_json1_1InvalidTokenExceptionResponse(parsedOutput, context)),
|
|
2107
|
+
name: errorCode,
|
|
2108
|
+
$metadata: deserializeMetadata(output),
|
|
2109
|
+
};
|
|
2110
|
+
break;
|
|
899
2111
|
case "InvalidTrailNameException":
|
|
900
2112
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
901
2113
|
response = {
|
|
@@ -912,10 +2124,18 @@ const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
|
912
2124
|
$metadata: deserializeMetadata(output),
|
|
913
2125
|
};
|
|
914
2126
|
break;
|
|
915
|
-
case "
|
|
916
|
-
case "com.amazonaws.cloudtrail#
|
|
2127
|
+
case "ResourceNotFoundException":
|
|
2128
|
+
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
917
2129
|
response = {
|
|
918
|
-
...(await
|
|
2130
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2131
|
+
name: errorCode,
|
|
2132
|
+
$metadata: deserializeMetadata(output),
|
|
2133
|
+
};
|
|
2134
|
+
break;
|
|
2135
|
+
case "ResourceTypeNotSupportedException":
|
|
2136
|
+
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
2137
|
+
response = {
|
|
2138
|
+
...(await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context)),
|
|
919
2139
|
name: errorCode,
|
|
920
2140
|
$metadata: deserializeMetadata(output),
|
|
921
2141
|
};
|
|
@@ -944,21 +2164,21 @@ const deserializeAws_json1_1GetTrailCommandError = async (output, context) => {
|
|
|
944
2164
|
delete response.Message;
|
|
945
2165
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
946
2166
|
};
|
|
947
|
-
const
|
|
2167
|
+
const deserializeAws_json1_1ListTrailsCommand = async (output, context) => {
|
|
948
2168
|
if (output.statusCode >= 300) {
|
|
949
|
-
return
|
|
2169
|
+
return deserializeAws_json1_1ListTrailsCommandError(output, context);
|
|
950
2170
|
}
|
|
951
2171
|
const data = await parseBody(output.body, context);
|
|
952
2172
|
let contents = {};
|
|
953
|
-
contents =
|
|
2173
|
+
contents = deserializeAws_json1_1ListTrailsResponse(data, context);
|
|
954
2174
|
const response = {
|
|
955
2175
|
$metadata: deserializeMetadata(output),
|
|
956
2176
|
...contents,
|
|
957
2177
|
};
|
|
958
2178
|
return Promise.resolve(response);
|
|
959
2179
|
};
|
|
960
|
-
exports.
|
|
961
|
-
const
|
|
2180
|
+
exports.deserializeAws_json1_1ListTrailsCommand = deserializeAws_json1_1ListTrailsCommand;
|
|
2181
|
+
const deserializeAws_json1_1ListTrailsCommandError = async (output, context) => {
|
|
962
2182
|
const parsedOutput = {
|
|
963
2183
|
...output,
|
|
964
2184
|
body: await parseBody(output.body, context),
|
|
@@ -967,10 +2187,97 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
967
2187
|
let errorCode = "UnknownError";
|
|
968
2188
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
969
2189
|
switch (errorCode) {
|
|
970
|
-
case "
|
|
971
|
-
case "com.amazonaws.cloudtrail#
|
|
2190
|
+
case "OperationNotPermittedException":
|
|
2191
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
972
2192
|
response = {
|
|
973
|
-
...(await
|
|
2193
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
2194
|
+
name: errorCode,
|
|
2195
|
+
$metadata: deserializeMetadata(output),
|
|
2196
|
+
};
|
|
2197
|
+
break;
|
|
2198
|
+
case "UnsupportedOperationException":
|
|
2199
|
+
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
2200
|
+
response = {
|
|
2201
|
+
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
2202
|
+
name: errorCode,
|
|
2203
|
+
$metadata: deserializeMetadata(output),
|
|
2204
|
+
};
|
|
2205
|
+
break;
|
|
2206
|
+
default:
|
|
2207
|
+
const parsedBody = parsedOutput.body;
|
|
2208
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2209
|
+
response = {
|
|
2210
|
+
...parsedBody,
|
|
2211
|
+
name: `${errorCode}`,
|
|
2212
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2213
|
+
$fault: "client",
|
|
2214
|
+
$metadata: deserializeMetadata(output),
|
|
2215
|
+
};
|
|
2216
|
+
}
|
|
2217
|
+
const message = response.message || response.Message || errorCode;
|
|
2218
|
+
response.message = message;
|
|
2219
|
+
delete response.Message;
|
|
2220
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2221
|
+
};
|
|
2222
|
+
const deserializeAws_json1_1LookupEventsCommand = async (output, context) => {
|
|
2223
|
+
if (output.statusCode >= 300) {
|
|
2224
|
+
return deserializeAws_json1_1LookupEventsCommandError(output, context);
|
|
2225
|
+
}
|
|
2226
|
+
const data = await parseBody(output.body, context);
|
|
2227
|
+
let contents = {};
|
|
2228
|
+
contents = deserializeAws_json1_1LookupEventsResponse(data, context);
|
|
2229
|
+
const response = {
|
|
2230
|
+
$metadata: deserializeMetadata(output),
|
|
2231
|
+
...contents,
|
|
2232
|
+
};
|
|
2233
|
+
return Promise.resolve(response);
|
|
2234
|
+
};
|
|
2235
|
+
exports.deserializeAws_json1_1LookupEventsCommand = deserializeAws_json1_1LookupEventsCommand;
|
|
2236
|
+
const deserializeAws_json1_1LookupEventsCommandError = async (output, context) => {
|
|
2237
|
+
const parsedOutput = {
|
|
2238
|
+
...output,
|
|
2239
|
+
body: await parseBody(output.body, context),
|
|
2240
|
+
};
|
|
2241
|
+
let response;
|
|
2242
|
+
let errorCode = "UnknownError";
|
|
2243
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2244
|
+
switch (errorCode) {
|
|
2245
|
+
case "InvalidEventCategoryException":
|
|
2246
|
+
case "com.amazonaws.cloudtrail#InvalidEventCategoryException":
|
|
2247
|
+
response = {
|
|
2248
|
+
...(await deserializeAws_json1_1InvalidEventCategoryExceptionResponse(parsedOutput, context)),
|
|
2249
|
+
name: errorCode,
|
|
2250
|
+
$metadata: deserializeMetadata(output),
|
|
2251
|
+
};
|
|
2252
|
+
break;
|
|
2253
|
+
case "InvalidLookupAttributesException":
|
|
2254
|
+
case "com.amazonaws.cloudtrail#InvalidLookupAttributesException":
|
|
2255
|
+
response = {
|
|
2256
|
+
...(await deserializeAws_json1_1InvalidLookupAttributesExceptionResponse(parsedOutput, context)),
|
|
2257
|
+
name: errorCode,
|
|
2258
|
+
$metadata: deserializeMetadata(output),
|
|
2259
|
+
};
|
|
2260
|
+
break;
|
|
2261
|
+
case "InvalidMaxResultsException":
|
|
2262
|
+
case "com.amazonaws.cloudtrail#InvalidMaxResultsException":
|
|
2263
|
+
response = {
|
|
2264
|
+
...(await deserializeAws_json1_1InvalidMaxResultsExceptionResponse(parsedOutput, context)),
|
|
2265
|
+
name: errorCode,
|
|
2266
|
+
$metadata: deserializeMetadata(output),
|
|
2267
|
+
};
|
|
2268
|
+
break;
|
|
2269
|
+
case "InvalidNextTokenException":
|
|
2270
|
+
case "com.amazonaws.cloudtrail#InvalidNextTokenException":
|
|
2271
|
+
response = {
|
|
2272
|
+
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
2273
|
+
name: errorCode,
|
|
2274
|
+
$metadata: deserializeMetadata(output),
|
|
2275
|
+
};
|
|
2276
|
+
break;
|
|
2277
|
+
case "InvalidTimeRangeException":
|
|
2278
|
+
case "com.amazonaws.cloudtrail#InvalidTimeRangeException":
|
|
2279
|
+
response = {
|
|
2280
|
+
...(await deserializeAws_json1_1InvalidTimeRangeExceptionResponse(parsedOutput, context)),
|
|
974
2281
|
name: errorCode,
|
|
975
2282
|
$metadata: deserializeMetadata(output),
|
|
976
2283
|
};
|
|
@@ -983,14 +2290,6 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
983
2290
|
$metadata: deserializeMetadata(output),
|
|
984
2291
|
};
|
|
985
2292
|
break;
|
|
986
|
-
case "TrailNotFoundException":
|
|
987
|
-
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
988
|
-
response = {
|
|
989
|
-
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
990
|
-
name: errorCode,
|
|
991
|
-
$metadata: deserializeMetadata(output),
|
|
992
|
-
};
|
|
993
|
-
break;
|
|
994
2293
|
case "UnsupportedOperationException":
|
|
995
2294
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
996
2295
|
response = {
|
|
@@ -1015,21 +2314,21 @@ const deserializeAws_json1_1GetTrailStatusCommandError = async (output, context)
|
|
|
1015
2314
|
delete response.Message;
|
|
1016
2315
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1017
2316
|
};
|
|
1018
|
-
const
|
|
2317
|
+
const deserializeAws_json1_1PutEventSelectorsCommand = async (output, context) => {
|
|
1019
2318
|
if (output.statusCode >= 300) {
|
|
1020
|
-
return
|
|
2319
|
+
return deserializeAws_json1_1PutEventSelectorsCommandError(output, context);
|
|
1021
2320
|
}
|
|
1022
2321
|
const data = await parseBody(output.body, context);
|
|
1023
2322
|
let contents = {};
|
|
1024
|
-
contents =
|
|
2323
|
+
contents = deserializeAws_json1_1PutEventSelectorsResponse(data, context);
|
|
1025
2324
|
const response = {
|
|
1026
2325
|
$metadata: deserializeMetadata(output),
|
|
1027
2326
|
...contents,
|
|
1028
2327
|
};
|
|
1029
2328
|
return Promise.resolve(response);
|
|
1030
2329
|
};
|
|
1031
|
-
exports.
|
|
1032
|
-
const
|
|
2330
|
+
exports.deserializeAws_json1_1PutEventSelectorsCommand = deserializeAws_json1_1PutEventSelectorsCommand;
|
|
2331
|
+
const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, context) => {
|
|
1033
2332
|
const parsedOutput = {
|
|
1034
2333
|
...output,
|
|
1035
2334
|
body: await parseBody(output.body, context),
|
|
@@ -1038,18 +2337,42 @@ const deserializeAws_json1_1ListPublicKeysCommandError = async (output, context)
|
|
|
1038
2337
|
let errorCode = "UnknownError";
|
|
1039
2338
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
2339
|
switch (errorCode) {
|
|
1041
|
-
case "
|
|
1042
|
-
case "com.amazonaws.cloudtrail#
|
|
2340
|
+
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2341
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
1043
2342
|
response = {
|
|
1044
|
-
...(await
|
|
2343
|
+
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
1045
2344
|
name: errorCode,
|
|
1046
2345
|
$metadata: deserializeMetadata(output),
|
|
1047
2346
|
};
|
|
1048
2347
|
break;
|
|
1049
|
-
case "
|
|
1050
|
-
case "com.amazonaws.cloudtrail#
|
|
2348
|
+
case "InvalidEventSelectorsException":
|
|
2349
|
+
case "com.amazonaws.cloudtrail#InvalidEventSelectorsException":
|
|
1051
2350
|
response = {
|
|
1052
|
-
...(await
|
|
2351
|
+
...(await deserializeAws_json1_1InvalidEventSelectorsExceptionResponse(parsedOutput, context)),
|
|
2352
|
+
name: errorCode,
|
|
2353
|
+
$metadata: deserializeMetadata(output),
|
|
2354
|
+
};
|
|
2355
|
+
break;
|
|
2356
|
+
case "InvalidHomeRegionException":
|
|
2357
|
+
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2358
|
+
response = {
|
|
2359
|
+
...(await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context)),
|
|
2360
|
+
name: errorCode,
|
|
2361
|
+
$metadata: deserializeMetadata(output),
|
|
2362
|
+
};
|
|
2363
|
+
break;
|
|
2364
|
+
case "InvalidTrailNameException":
|
|
2365
|
+
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
2366
|
+
response = {
|
|
2367
|
+
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
2368
|
+
name: errorCode,
|
|
2369
|
+
$metadata: deserializeMetadata(output),
|
|
2370
|
+
};
|
|
2371
|
+
break;
|
|
2372
|
+
case "NotOrganizationMasterAccountException":
|
|
2373
|
+
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2374
|
+
response = {
|
|
2375
|
+
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
1053
2376
|
name: errorCode,
|
|
1054
2377
|
$metadata: deserializeMetadata(output),
|
|
1055
2378
|
};
|
|
@@ -1062,6 +2385,14 @@ const deserializeAws_json1_1ListPublicKeysCommandError = async (output, context)
|
|
|
1062
2385
|
$metadata: deserializeMetadata(output),
|
|
1063
2386
|
};
|
|
1064
2387
|
break;
|
|
2388
|
+
case "TrailNotFoundException":
|
|
2389
|
+
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
2390
|
+
response = {
|
|
2391
|
+
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
2392
|
+
name: errorCode,
|
|
2393
|
+
$metadata: deserializeMetadata(output),
|
|
2394
|
+
};
|
|
2395
|
+
break;
|
|
1065
2396
|
case "UnsupportedOperationException":
|
|
1066
2397
|
case "com.amazonaws.cloudtrail#UnsupportedOperationException":
|
|
1067
2398
|
response = {
|
|
@@ -1086,21 +2417,21 @@ const deserializeAws_json1_1ListPublicKeysCommandError = async (output, context)
|
|
|
1086
2417
|
delete response.Message;
|
|
1087
2418
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1088
2419
|
};
|
|
1089
|
-
const
|
|
2420
|
+
const deserializeAws_json1_1PutInsightSelectorsCommand = async (output, context) => {
|
|
1090
2421
|
if (output.statusCode >= 300) {
|
|
1091
|
-
return
|
|
2422
|
+
return deserializeAws_json1_1PutInsightSelectorsCommandError(output, context);
|
|
1092
2423
|
}
|
|
1093
2424
|
const data = await parseBody(output.body, context);
|
|
1094
2425
|
let contents = {};
|
|
1095
|
-
contents =
|
|
2426
|
+
contents = deserializeAws_json1_1PutInsightSelectorsResponse(data, context);
|
|
1096
2427
|
const response = {
|
|
1097
2428
|
$metadata: deserializeMetadata(output),
|
|
1098
2429
|
...contents,
|
|
1099
2430
|
};
|
|
1100
2431
|
return Promise.resolve(response);
|
|
1101
2432
|
};
|
|
1102
|
-
exports.
|
|
1103
|
-
const
|
|
2433
|
+
exports.deserializeAws_json1_1PutInsightSelectorsCommand = deserializeAws_json1_1PutInsightSelectorsCommand;
|
|
2434
|
+
const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, context) => {
|
|
1104
2435
|
const parsedOutput = {
|
|
1105
2436
|
...output,
|
|
1106
2437
|
body: await parseBody(output.body, context),
|
|
@@ -1109,18 +2440,34 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1109
2440
|
let errorCode = "UnknownError";
|
|
1110
2441
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1111
2442
|
switch (errorCode) {
|
|
1112
|
-
case "
|
|
1113
|
-
case "com.amazonaws.cloudtrail#
|
|
2443
|
+
case "InsufficientEncryptionPolicyException":
|
|
2444
|
+
case "com.amazonaws.cloudtrail#InsufficientEncryptionPolicyException":
|
|
1114
2445
|
response = {
|
|
1115
|
-
...(await
|
|
2446
|
+
...(await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context)),
|
|
1116
2447
|
name: errorCode,
|
|
1117
2448
|
$metadata: deserializeMetadata(output),
|
|
1118
2449
|
};
|
|
1119
2450
|
break;
|
|
1120
|
-
case "
|
|
1121
|
-
case "com.amazonaws.cloudtrail#
|
|
2451
|
+
case "InsufficientS3BucketPolicyException":
|
|
2452
|
+
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
1122
2453
|
response = {
|
|
1123
|
-
...(await
|
|
2454
|
+
...(await deserializeAws_json1_1InsufficientS3BucketPolicyExceptionResponse(parsedOutput, context)),
|
|
2455
|
+
name: errorCode,
|
|
2456
|
+
$metadata: deserializeMetadata(output),
|
|
2457
|
+
};
|
|
2458
|
+
break;
|
|
2459
|
+
case "InvalidHomeRegionException":
|
|
2460
|
+
case "com.amazonaws.cloudtrail#InvalidHomeRegionException":
|
|
2461
|
+
response = {
|
|
2462
|
+
...(await deserializeAws_json1_1InvalidHomeRegionExceptionResponse(parsedOutput, context)),
|
|
2463
|
+
name: errorCode,
|
|
2464
|
+
$metadata: deserializeMetadata(output),
|
|
2465
|
+
};
|
|
2466
|
+
break;
|
|
2467
|
+
case "InvalidInsightSelectorsException":
|
|
2468
|
+
case "com.amazonaws.cloudtrail#InvalidInsightSelectorsException":
|
|
2469
|
+
response = {
|
|
2470
|
+
...(await deserializeAws_json1_1InvalidInsightSelectorsExceptionResponse(parsedOutput, context)),
|
|
1124
2471
|
name: errorCode,
|
|
1125
2472
|
$metadata: deserializeMetadata(output),
|
|
1126
2473
|
};
|
|
@@ -1133,6 +2480,22 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1133
2480
|
$metadata: deserializeMetadata(output),
|
|
1134
2481
|
};
|
|
1135
2482
|
break;
|
|
2483
|
+
case "KmsException":
|
|
2484
|
+
case "com.amazonaws.cloudtrail#KmsException":
|
|
2485
|
+
response = {
|
|
2486
|
+
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
2487
|
+
name: errorCode,
|
|
2488
|
+
$metadata: deserializeMetadata(output),
|
|
2489
|
+
};
|
|
2490
|
+
break;
|
|
2491
|
+
case "NotOrganizationMasterAccountException":
|
|
2492
|
+
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
2493
|
+
response = {
|
|
2494
|
+
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
2495
|
+
name: errorCode,
|
|
2496
|
+
$metadata: deserializeMetadata(output),
|
|
2497
|
+
};
|
|
2498
|
+
break;
|
|
1136
2499
|
case "OperationNotPermittedException":
|
|
1137
2500
|
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1138
2501
|
response = {
|
|
@@ -1141,18 +2504,18 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1141
2504
|
$metadata: deserializeMetadata(output),
|
|
1142
2505
|
};
|
|
1143
2506
|
break;
|
|
1144
|
-
case "
|
|
1145
|
-
case "com.amazonaws.cloudtrail#
|
|
2507
|
+
case "S3BucketDoesNotExistException":
|
|
2508
|
+
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
1146
2509
|
response = {
|
|
1147
|
-
...(await
|
|
2510
|
+
...(await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1148
2511
|
name: errorCode,
|
|
1149
2512
|
$metadata: deserializeMetadata(output),
|
|
1150
2513
|
};
|
|
1151
2514
|
break;
|
|
1152
|
-
case "
|
|
1153
|
-
case "com.amazonaws.cloudtrail#
|
|
2515
|
+
case "TrailNotFoundException":
|
|
2516
|
+
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1154
2517
|
response = {
|
|
1155
|
-
...(await
|
|
2518
|
+
...(await deserializeAws_json1_1TrailNotFoundExceptionResponse(parsedOutput, context)),
|
|
1156
2519
|
name: errorCode,
|
|
1157
2520
|
$metadata: deserializeMetadata(output),
|
|
1158
2521
|
};
|
|
@@ -1181,21 +2544,21 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
|
|
|
1181
2544
|
delete response.Message;
|
|
1182
2545
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1183
2546
|
};
|
|
1184
|
-
const
|
|
2547
|
+
const deserializeAws_json1_1RemoveTagsCommand = async (output, context) => {
|
|
1185
2548
|
if (output.statusCode >= 300) {
|
|
1186
|
-
return
|
|
2549
|
+
return deserializeAws_json1_1RemoveTagsCommandError(output, context);
|
|
1187
2550
|
}
|
|
1188
2551
|
const data = await parseBody(output.body, context);
|
|
1189
2552
|
let contents = {};
|
|
1190
|
-
contents =
|
|
2553
|
+
contents = deserializeAws_json1_1RemoveTagsResponse(data, context);
|
|
1191
2554
|
const response = {
|
|
1192
2555
|
$metadata: deserializeMetadata(output),
|
|
1193
2556
|
...contents,
|
|
1194
2557
|
};
|
|
1195
2558
|
return Promise.resolve(response);
|
|
1196
2559
|
};
|
|
1197
|
-
exports.
|
|
1198
|
-
const
|
|
2560
|
+
exports.deserializeAws_json1_1RemoveTagsCommand = deserializeAws_json1_1RemoveTagsCommand;
|
|
2561
|
+
const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) => {
|
|
1199
2562
|
const parsedOutput = {
|
|
1200
2563
|
...output,
|
|
1201
2564
|
body: await parseBody(output.body, context),
|
|
@@ -1204,105 +2567,74 @@ const deserializeAws_json1_1ListTrailsCommandError = async (output, context) =>
|
|
|
1204
2567
|
let errorCode = "UnknownError";
|
|
1205
2568
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
2569
|
switch (errorCode) {
|
|
1207
|
-
case "
|
|
1208
|
-
case "com.amazonaws.cloudtrail#
|
|
2570
|
+
case "CloudTrailARNInvalidException":
|
|
2571
|
+
case "com.amazonaws.cloudtrail#CloudTrailARNInvalidException":
|
|
1209
2572
|
response = {
|
|
1210
|
-
...(await
|
|
2573
|
+
...(await deserializeAws_json1_1CloudTrailARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1211
2574
|
name: errorCode,
|
|
1212
2575
|
$metadata: deserializeMetadata(output),
|
|
1213
2576
|
};
|
|
1214
2577
|
break;
|
|
1215
|
-
case "
|
|
1216
|
-
case "com.amazonaws.cloudtrail#
|
|
2578
|
+
case "EventDataStoreNotFoundException":
|
|
2579
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1217
2580
|
response = {
|
|
1218
|
-
...(await
|
|
2581
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
1219
2582
|
name: errorCode,
|
|
1220
2583
|
$metadata: deserializeMetadata(output),
|
|
1221
2584
|
};
|
|
1222
2585
|
break;
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2586
|
+
case "InactiveEventDataStoreException":
|
|
2587
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1226
2588
|
response = {
|
|
1227
|
-
...
|
|
1228
|
-
name:
|
|
1229
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1230
|
-
$fault: "client",
|
|
2589
|
+
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
2590
|
+
name: errorCode,
|
|
1231
2591
|
$metadata: deserializeMetadata(output),
|
|
1232
2592
|
};
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
delete response.Message;
|
|
1237
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1238
|
-
};
|
|
1239
|
-
const deserializeAws_json1_1LookupEventsCommand = async (output, context) => {
|
|
1240
|
-
if (output.statusCode >= 300) {
|
|
1241
|
-
return deserializeAws_json1_1LookupEventsCommandError(output, context);
|
|
1242
|
-
}
|
|
1243
|
-
const data = await parseBody(output.body, context);
|
|
1244
|
-
let contents = {};
|
|
1245
|
-
contents = deserializeAws_json1_1LookupEventsResponse(data, context);
|
|
1246
|
-
const response = {
|
|
1247
|
-
$metadata: deserializeMetadata(output),
|
|
1248
|
-
...contents,
|
|
1249
|
-
};
|
|
1250
|
-
return Promise.resolve(response);
|
|
1251
|
-
};
|
|
1252
|
-
exports.deserializeAws_json1_1LookupEventsCommand = deserializeAws_json1_1LookupEventsCommand;
|
|
1253
|
-
const deserializeAws_json1_1LookupEventsCommandError = async (output, context) => {
|
|
1254
|
-
const parsedOutput = {
|
|
1255
|
-
...output,
|
|
1256
|
-
body: await parseBody(output.body, context),
|
|
1257
|
-
};
|
|
1258
|
-
let response;
|
|
1259
|
-
let errorCode = "UnknownError";
|
|
1260
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
-
switch (errorCode) {
|
|
1262
|
-
case "InvalidEventCategoryException":
|
|
1263
|
-
case "com.amazonaws.cloudtrail#InvalidEventCategoryException":
|
|
2593
|
+
break;
|
|
2594
|
+
case "InvalidTagParameterException":
|
|
2595
|
+
case "com.amazonaws.cloudtrail#InvalidTagParameterException":
|
|
1264
2596
|
response = {
|
|
1265
|
-
...(await
|
|
2597
|
+
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
1266
2598
|
name: errorCode,
|
|
1267
2599
|
$metadata: deserializeMetadata(output),
|
|
1268
2600
|
};
|
|
1269
2601
|
break;
|
|
1270
|
-
case "
|
|
1271
|
-
case "com.amazonaws.cloudtrail#
|
|
2602
|
+
case "InvalidTrailNameException":
|
|
2603
|
+
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1272
2604
|
response = {
|
|
1273
|
-
...(await
|
|
2605
|
+
...(await deserializeAws_json1_1InvalidTrailNameExceptionResponse(parsedOutput, context)),
|
|
1274
2606
|
name: errorCode,
|
|
1275
2607
|
$metadata: deserializeMetadata(output),
|
|
1276
2608
|
};
|
|
1277
2609
|
break;
|
|
1278
|
-
case "
|
|
1279
|
-
case "com.amazonaws.cloudtrail#
|
|
2610
|
+
case "NotOrganizationMasterAccountException":
|
|
2611
|
+
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1280
2612
|
response = {
|
|
1281
|
-
...(await
|
|
2613
|
+
...(await deserializeAws_json1_1NotOrganizationMasterAccountExceptionResponse(parsedOutput, context)),
|
|
1282
2614
|
name: errorCode,
|
|
1283
2615
|
$metadata: deserializeMetadata(output),
|
|
1284
2616
|
};
|
|
1285
2617
|
break;
|
|
1286
|
-
case "
|
|
1287
|
-
case "com.amazonaws.cloudtrail#
|
|
2618
|
+
case "OperationNotPermittedException":
|
|
2619
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1288
2620
|
response = {
|
|
1289
|
-
...(await
|
|
2621
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1290
2622
|
name: errorCode,
|
|
1291
2623
|
$metadata: deserializeMetadata(output),
|
|
1292
2624
|
};
|
|
1293
2625
|
break;
|
|
1294
|
-
case "
|
|
1295
|
-
case "com.amazonaws.cloudtrail#
|
|
2626
|
+
case "ResourceNotFoundException":
|
|
2627
|
+
case "com.amazonaws.cloudtrail#ResourceNotFoundException":
|
|
1296
2628
|
response = {
|
|
1297
|
-
...(await
|
|
2629
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1298
2630
|
name: errorCode,
|
|
1299
2631
|
$metadata: deserializeMetadata(output),
|
|
1300
2632
|
};
|
|
1301
2633
|
break;
|
|
1302
|
-
case "
|
|
1303
|
-
case "com.amazonaws.cloudtrail#
|
|
2634
|
+
case "ResourceTypeNotSupportedException":
|
|
2635
|
+
case "com.amazonaws.cloudtrail#ResourceTypeNotSupportedException":
|
|
1304
2636
|
response = {
|
|
1305
|
-
...(await
|
|
2637
|
+
...(await deserializeAws_json1_1ResourceTypeNotSupportedExceptionResponse(parsedOutput, context)),
|
|
1306
2638
|
name: errorCode,
|
|
1307
2639
|
$metadata: deserializeMetadata(output),
|
|
1308
2640
|
};
|
|
@@ -1331,21 +2663,21 @@ const deserializeAws_json1_1LookupEventsCommandError = async (output, context) =
|
|
|
1331
2663
|
delete response.Message;
|
|
1332
2664
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1333
2665
|
};
|
|
1334
|
-
const
|
|
2666
|
+
const deserializeAws_json1_1RestoreEventDataStoreCommand = async (output, context) => {
|
|
1335
2667
|
if (output.statusCode >= 300) {
|
|
1336
|
-
return
|
|
2668
|
+
return deserializeAws_json1_1RestoreEventDataStoreCommandError(output, context);
|
|
1337
2669
|
}
|
|
1338
2670
|
const data = await parseBody(output.body, context);
|
|
1339
2671
|
let contents = {};
|
|
1340
|
-
contents =
|
|
2672
|
+
contents = deserializeAws_json1_1RestoreEventDataStoreResponse(data, context);
|
|
1341
2673
|
const response = {
|
|
1342
2674
|
$metadata: deserializeMetadata(output),
|
|
1343
2675
|
...contents,
|
|
1344
2676
|
};
|
|
1345
2677
|
return Promise.resolve(response);
|
|
1346
2678
|
};
|
|
1347
|
-
exports.
|
|
1348
|
-
const
|
|
2679
|
+
exports.deserializeAws_json1_1RestoreEventDataStoreCommand = deserializeAws_json1_1RestoreEventDataStoreCommand;
|
|
2680
|
+
const deserializeAws_json1_1RestoreEventDataStoreCommandError = async (output, context) => {
|
|
1349
2681
|
const parsedOutput = {
|
|
1350
2682
|
...output,
|
|
1351
2683
|
body: await parseBody(output.body, context),
|
|
@@ -1354,34 +2686,58 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
1354
2686
|
let errorCode = "UnknownError";
|
|
1355
2687
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
2688
|
switch (errorCode) {
|
|
1357
|
-
case "
|
|
1358
|
-
case "com.amazonaws.cloudtrail#
|
|
2689
|
+
case "CloudTrailAccessNotEnabledException":
|
|
2690
|
+
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
1359
2691
|
response = {
|
|
1360
|
-
...(await
|
|
2692
|
+
...(await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
1361
2693
|
name: errorCode,
|
|
1362
2694
|
$metadata: deserializeMetadata(output),
|
|
1363
2695
|
};
|
|
1364
2696
|
break;
|
|
1365
|
-
case "
|
|
1366
|
-
case "com.amazonaws.cloudtrail#
|
|
2697
|
+
case "EventDataStoreARNInvalidException":
|
|
2698
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1367
2699
|
response = {
|
|
1368
|
-
...(await
|
|
2700
|
+
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1369
2701
|
name: errorCode,
|
|
1370
2702
|
$metadata: deserializeMetadata(output),
|
|
1371
2703
|
};
|
|
1372
2704
|
break;
|
|
1373
|
-
case "
|
|
1374
|
-
case "com.amazonaws.cloudtrail#
|
|
2705
|
+
case "EventDataStoreMaxLimitExceededException":
|
|
2706
|
+
case "com.amazonaws.cloudtrail#EventDataStoreMaxLimitExceededException":
|
|
1375
2707
|
response = {
|
|
1376
|
-
...(await
|
|
2708
|
+
...(await deserializeAws_json1_1EventDataStoreMaxLimitExceededExceptionResponse(parsedOutput, context)),
|
|
2709
|
+
name: errorCode,
|
|
2710
|
+
$metadata: deserializeMetadata(output),
|
|
2711
|
+
};
|
|
2712
|
+
break;
|
|
2713
|
+
case "EventDataStoreNotFoundException":
|
|
2714
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
2715
|
+
response = {
|
|
2716
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
2717
|
+
name: errorCode,
|
|
2718
|
+
$metadata: deserializeMetadata(output),
|
|
2719
|
+
};
|
|
2720
|
+
break;
|
|
2721
|
+
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2722
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
2723
|
+
response = {
|
|
2724
|
+
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
2725
|
+
name: errorCode,
|
|
2726
|
+
$metadata: deserializeMetadata(output),
|
|
2727
|
+
};
|
|
2728
|
+
break;
|
|
2729
|
+
case "InvalidEventDataStoreStatusException":
|
|
2730
|
+
case "com.amazonaws.cloudtrail#InvalidEventDataStoreStatusException":
|
|
2731
|
+
response = {
|
|
2732
|
+
...(await deserializeAws_json1_1InvalidEventDataStoreStatusExceptionResponse(parsedOutput, context)),
|
|
1377
2733
|
name: errorCode,
|
|
1378
2734
|
$metadata: deserializeMetadata(output),
|
|
1379
2735
|
};
|
|
1380
2736
|
break;
|
|
1381
|
-
case "
|
|
1382
|
-
case "com.amazonaws.cloudtrail#
|
|
2737
|
+
case "InvalidParameterException":
|
|
2738
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1383
2739
|
response = {
|
|
1384
|
-
...(await
|
|
2740
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1385
2741
|
name: errorCode,
|
|
1386
2742
|
$metadata: deserializeMetadata(output),
|
|
1387
2743
|
};
|
|
@@ -1402,10 +2758,18 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
1402
2758
|
$metadata: deserializeMetadata(output),
|
|
1403
2759
|
};
|
|
1404
2760
|
break;
|
|
1405
|
-
case "
|
|
1406
|
-
case "com.amazonaws.cloudtrail#
|
|
2761
|
+
case "OrganizationNotInAllFeaturesModeException":
|
|
2762
|
+
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
1407
2763
|
response = {
|
|
1408
|
-
...(await
|
|
2764
|
+
...(await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context)),
|
|
2765
|
+
name: errorCode,
|
|
2766
|
+
$metadata: deserializeMetadata(output),
|
|
2767
|
+
};
|
|
2768
|
+
break;
|
|
2769
|
+
case "OrganizationsNotInUseException":
|
|
2770
|
+
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
2771
|
+
response = {
|
|
2772
|
+
...(await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context)),
|
|
1409
2773
|
name: errorCode,
|
|
1410
2774
|
$metadata: deserializeMetadata(output),
|
|
1411
2775
|
};
|
|
@@ -1434,21 +2798,21 @@ const deserializeAws_json1_1PutEventSelectorsCommandError = async (output, conte
|
|
|
1434
2798
|
delete response.Message;
|
|
1435
2799
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1436
2800
|
};
|
|
1437
|
-
const
|
|
2801
|
+
const deserializeAws_json1_1StartLoggingCommand = async (output, context) => {
|
|
1438
2802
|
if (output.statusCode >= 300) {
|
|
1439
|
-
return
|
|
2803
|
+
return deserializeAws_json1_1StartLoggingCommandError(output, context);
|
|
1440
2804
|
}
|
|
1441
2805
|
const data = await parseBody(output.body, context);
|
|
1442
2806
|
let contents = {};
|
|
1443
|
-
contents =
|
|
2807
|
+
contents = deserializeAws_json1_1StartLoggingResponse(data, context);
|
|
1444
2808
|
const response = {
|
|
1445
2809
|
$metadata: deserializeMetadata(output),
|
|
1446
2810
|
...contents,
|
|
1447
2811
|
};
|
|
1448
2812
|
return Promise.resolve(response);
|
|
1449
2813
|
};
|
|
1450
|
-
exports.
|
|
1451
|
-
const
|
|
2814
|
+
exports.deserializeAws_json1_1StartLoggingCommand = deserializeAws_json1_1StartLoggingCommand;
|
|
2815
|
+
const deserializeAws_json1_1StartLoggingCommandError = async (output, context) => {
|
|
1452
2816
|
const parsedOutput = {
|
|
1453
2817
|
...output,
|
|
1454
2818
|
body: await parseBody(output.body, context),
|
|
@@ -1457,18 +2821,10 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1457
2821
|
let errorCode = "UnknownError";
|
|
1458
2822
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
2823
|
switch (errorCode) {
|
|
1460
|
-
case "
|
|
1461
|
-
case "com.amazonaws.cloudtrail#
|
|
1462
|
-
response = {
|
|
1463
|
-
...(await deserializeAws_json1_1InsufficientEncryptionPolicyExceptionResponse(parsedOutput, context)),
|
|
1464
|
-
name: errorCode,
|
|
1465
|
-
$metadata: deserializeMetadata(output),
|
|
1466
|
-
};
|
|
1467
|
-
break;
|
|
1468
|
-
case "InsufficientS3BucketPolicyException":
|
|
1469
|
-
case "com.amazonaws.cloudtrail#InsufficientS3BucketPolicyException":
|
|
2824
|
+
case "InsufficientDependencyServiceAccessPermissionException":
|
|
2825
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
1470
2826
|
response = {
|
|
1471
|
-
...(await
|
|
2827
|
+
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
1472
2828
|
name: errorCode,
|
|
1473
2829
|
$metadata: deserializeMetadata(output),
|
|
1474
2830
|
};
|
|
@@ -1481,14 +2837,6 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1481
2837
|
$metadata: deserializeMetadata(output),
|
|
1482
2838
|
};
|
|
1483
2839
|
break;
|
|
1484
|
-
case "InvalidInsightSelectorsException":
|
|
1485
|
-
case "com.amazonaws.cloudtrail#InvalidInsightSelectorsException":
|
|
1486
|
-
response = {
|
|
1487
|
-
...(await deserializeAws_json1_1InvalidInsightSelectorsExceptionResponse(parsedOutput, context)),
|
|
1488
|
-
name: errorCode,
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
};
|
|
1491
|
-
break;
|
|
1492
2840
|
case "InvalidTrailNameException":
|
|
1493
2841
|
case "com.amazonaws.cloudtrail#InvalidTrailNameException":
|
|
1494
2842
|
response = {
|
|
@@ -1497,14 +2845,6 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1497
2845
|
$metadata: deserializeMetadata(output),
|
|
1498
2846
|
};
|
|
1499
2847
|
break;
|
|
1500
|
-
case "KmsException":
|
|
1501
|
-
case "com.amazonaws.cloudtrail#KmsException":
|
|
1502
|
-
response = {
|
|
1503
|
-
...(await deserializeAws_json1_1KmsExceptionResponse(parsedOutput, context)),
|
|
1504
|
-
name: errorCode,
|
|
1505
|
-
$metadata: deserializeMetadata(output),
|
|
1506
|
-
};
|
|
1507
|
-
break;
|
|
1508
2848
|
case "NotOrganizationMasterAccountException":
|
|
1509
2849
|
case "com.amazonaws.cloudtrail#NotOrganizationMasterAccountException":
|
|
1510
2850
|
response = {
|
|
@@ -1521,14 +2861,6 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1521
2861
|
$metadata: deserializeMetadata(output),
|
|
1522
2862
|
};
|
|
1523
2863
|
break;
|
|
1524
|
-
case "S3BucketDoesNotExistException":
|
|
1525
|
-
case "com.amazonaws.cloudtrail#S3BucketDoesNotExistException":
|
|
1526
|
-
response = {
|
|
1527
|
-
...(await deserializeAws_json1_1S3BucketDoesNotExistExceptionResponse(parsedOutput, context)),
|
|
1528
|
-
name: errorCode,
|
|
1529
|
-
$metadata: deserializeMetadata(output),
|
|
1530
|
-
};
|
|
1531
|
-
break;
|
|
1532
2864
|
case "TrailNotFoundException":
|
|
1533
2865
|
case "com.amazonaws.cloudtrail#TrailNotFoundException":
|
|
1534
2866
|
response = {
|
|
@@ -1561,21 +2893,21 @@ const deserializeAws_json1_1PutInsightSelectorsCommandError = async (output, con
|
|
|
1561
2893
|
delete response.Message;
|
|
1562
2894
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1563
2895
|
};
|
|
1564
|
-
const
|
|
2896
|
+
const deserializeAws_json1_1StartQueryCommand = async (output, context) => {
|
|
1565
2897
|
if (output.statusCode >= 300) {
|
|
1566
|
-
return
|
|
2898
|
+
return deserializeAws_json1_1StartQueryCommandError(output, context);
|
|
1567
2899
|
}
|
|
1568
2900
|
const data = await parseBody(output.body, context);
|
|
1569
2901
|
let contents = {};
|
|
1570
|
-
contents =
|
|
2902
|
+
contents = deserializeAws_json1_1StartQueryResponse(data, context);
|
|
1571
2903
|
const response = {
|
|
1572
2904
|
$metadata: deserializeMetadata(output),
|
|
1573
2905
|
...contents,
|
|
1574
2906
|
};
|
|
1575
2907
|
return Promise.resolve(response);
|
|
1576
2908
|
};
|
|
1577
|
-
exports.
|
|
1578
|
-
const
|
|
2909
|
+
exports.deserializeAws_json1_1StartQueryCommand = deserializeAws_json1_1StartQueryCommand;
|
|
2910
|
+
const deserializeAws_json1_1StartQueryCommandError = async (output, context) => {
|
|
1579
2911
|
const parsedOutput = {
|
|
1580
2912
|
...output,
|
|
1581
2913
|
body: await parseBody(output.body, context),
|
|
@@ -1584,58 +2916,58 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
1584
2916
|
let errorCode = "UnknownError";
|
|
1585
2917
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1586
2918
|
switch (errorCode) {
|
|
1587
|
-
case "
|
|
1588
|
-
case "com.amazonaws.cloudtrail#
|
|
2919
|
+
case "EventDataStoreARNInvalidException":
|
|
2920
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1589
2921
|
response = {
|
|
1590
|
-
...(await
|
|
2922
|
+
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1591
2923
|
name: errorCode,
|
|
1592
2924
|
$metadata: deserializeMetadata(output),
|
|
1593
2925
|
};
|
|
1594
2926
|
break;
|
|
1595
|
-
case "
|
|
1596
|
-
case "com.amazonaws.cloudtrail#
|
|
2927
|
+
case "EventDataStoreNotFoundException":
|
|
2928
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1597
2929
|
response = {
|
|
1598
|
-
...(await
|
|
2930
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
1599
2931
|
name: errorCode,
|
|
1600
2932
|
$metadata: deserializeMetadata(output),
|
|
1601
2933
|
};
|
|
1602
2934
|
break;
|
|
1603
|
-
case "
|
|
1604
|
-
case "com.amazonaws.cloudtrail#
|
|
2935
|
+
case "InactiveEventDataStoreException":
|
|
2936
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
1605
2937
|
response = {
|
|
1606
|
-
...(await
|
|
2938
|
+
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
1607
2939
|
name: errorCode,
|
|
1608
2940
|
$metadata: deserializeMetadata(output),
|
|
1609
2941
|
};
|
|
1610
2942
|
break;
|
|
1611
|
-
case "
|
|
1612
|
-
case "com.amazonaws.cloudtrail#
|
|
2943
|
+
case "InvalidParameterException":
|
|
2944
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
1613
2945
|
response = {
|
|
1614
|
-
...(await
|
|
2946
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1615
2947
|
name: errorCode,
|
|
1616
2948
|
$metadata: deserializeMetadata(output),
|
|
1617
2949
|
};
|
|
1618
2950
|
break;
|
|
1619
|
-
case "
|
|
1620
|
-
case "com.amazonaws.cloudtrail#
|
|
2951
|
+
case "InvalidQueryStatementException":
|
|
2952
|
+
case "com.amazonaws.cloudtrail#InvalidQueryStatementException":
|
|
1621
2953
|
response = {
|
|
1622
|
-
...(await
|
|
2954
|
+
...(await deserializeAws_json1_1InvalidQueryStatementExceptionResponse(parsedOutput, context)),
|
|
1623
2955
|
name: errorCode,
|
|
1624
2956
|
$metadata: deserializeMetadata(output),
|
|
1625
2957
|
};
|
|
1626
2958
|
break;
|
|
1627
|
-
case "
|
|
1628
|
-
case "com.amazonaws.cloudtrail#
|
|
2959
|
+
case "MaxConcurrentQueriesException":
|
|
2960
|
+
case "com.amazonaws.cloudtrail#MaxConcurrentQueriesException":
|
|
1629
2961
|
response = {
|
|
1630
|
-
...(await
|
|
2962
|
+
...(await deserializeAws_json1_1MaxConcurrentQueriesExceptionResponse(parsedOutput, context)),
|
|
1631
2963
|
name: errorCode,
|
|
1632
2964
|
$metadata: deserializeMetadata(output),
|
|
1633
2965
|
};
|
|
1634
2966
|
break;
|
|
1635
|
-
case "
|
|
1636
|
-
case "com.amazonaws.cloudtrail#
|
|
2967
|
+
case "OperationNotPermittedException":
|
|
2968
|
+
case "com.amazonaws.cloudtrail#OperationNotPermittedException":
|
|
1637
2969
|
response = {
|
|
1638
|
-
...(await
|
|
2970
|
+
...(await deserializeAws_json1_1OperationNotPermittedExceptionResponse(parsedOutput, context)),
|
|
1639
2971
|
name: errorCode,
|
|
1640
2972
|
$metadata: deserializeMetadata(output),
|
|
1641
2973
|
};
|
|
@@ -1664,21 +2996,21 @@ const deserializeAws_json1_1RemoveTagsCommandError = async (output, context) =>
|
|
|
1664
2996
|
delete response.Message;
|
|
1665
2997
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1666
2998
|
};
|
|
1667
|
-
const
|
|
2999
|
+
const deserializeAws_json1_1StopLoggingCommand = async (output, context) => {
|
|
1668
3000
|
if (output.statusCode >= 300) {
|
|
1669
|
-
return
|
|
3001
|
+
return deserializeAws_json1_1StopLoggingCommandError(output, context);
|
|
1670
3002
|
}
|
|
1671
3003
|
const data = await parseBody(output.body, context);
|
|
1672
3004
|
let contents = {};
|
|
1673
|
-
contents =
|
|
3005
|
+
contents = deserializeAws_json1_1StopLoggingResponse(data, context);
|
|
1674
3006
|
const response = {
|
|
1675
3007
|
$metadata: deserializeMetadata(output),
|
|
1676
3008
|
...contents,
|
|
1677
3009
|
};
|
|
1678
3010
|
return Promise.resolve(response);
|
|
1679
3011
|
};
|
|
1680
|
-
exports.
|
|
1681
|
-
const
|
|
3012
|
+
exports.deserializeAws_json1_1StopLoggingCommand = deserializeAws_json1_1StopLoggingCommand;
|
|
3013
|
+
const deserializeAws_json1_1StopLoggingCommandError = async (output, context) => {
|
|
1682
3014
|
const parsedOutput = {
|
|
1683
3015
|
...output,
|
|
1684
3016
|
body: await parseBody(output.body, context),
|
|
@@ -1759,21 +3091,21 @@ const deserializeAws_json1_1StartLoggingCommandError = async (output, context) =
|
|
|
1759
3091
|
delete response.Message;
|
|
1760
3092
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1761
3093
|
};
|
|
1762
|
-
const
|
|
3094
|
+
const deserializeAws_json1_1UpdateEventDataStoreCommand = async (output, context) => {
|
|
1763
3095
|
if (output.statusCode >= 300) {
|
|
1764
|
-
return
|
|
3096
|
+
return deserializeAws_json1_1UpdateEventDataStoreCommandError(output, context);
|
|
1765
3097
|
}
|
|
1766
3098
|
const data = await parseBody(output.body, context);
|
|
1767
3099
|
let contents = {};
|
|
1768
|
-
contents =
|
|
3100
|
+
contents = deserializeAws_json1_1UpdateEventDataStoreResponse(data, context);
|
|
1769
3101
|
const response = {
|
|
1770
3102
|
$metadata: deserializeMetadata(output),
|
|
1771
3103
|
...contents,
|
|
1772
3104
|
};
|
|
1773
3105
|
return Promise.resolve(response);
|
|
1774
3106
|
};
|
|
1775
|
-
exports.
|
|
1776
|
-
const
|
|
3107
|
+
exports.deserializeAws_json1_1UpdateEventDataStoreCommand = deserializeAws_json1_1UpdateEventDataStoreCommand;
|
|
3108
|
+
const deserializeAws_json1_1UpdateEventDataStoreCommandError = async (output, context) => {
|
|
1777
3109
|
const parsedOutput = {
|
|
1778
3110
|
...output,
|
|
1779
3111
|
body: await parseBody(output.body, context),
|
|
@@ -1782,26 +3114,50 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
1782
3114
|
let errorCode = "UnknownError";
|
|
1783
3115
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1784
3116
|
switch (errorCode) {
|
|
1785
|
-
case "
|
|
1786
|
-
case "com.amazonaws.cloudtrail#
|
|
3117
|
+
case "CloudTrailAccessNotEnabledException":
|
|
3118
|
+
case "com.amazonaws.cloudtrail#CloudTrailAccessNotEnabledException":
|
|
1787
3119
|
response = {
|
|
1788
|
-
...(await
|
|
3120
|
+
...(await deserializeAws_json1_1CloudTrailAccessNotEnabledExceptionResponse(parsedOutput, context)),
|
|
1789
3121
|
name: errorCode,
|
|
1790
3122
|
$metadata: deserializeMetadata(output),
|
|
1791
3123
|
};
|
|
1792
3124
|
break;
|
|
1793
|
-
case "
|
|
1794
|
-
case "com.amazonaws.cloudtrail#
|
|
3125
|
+
case "EventDataStoreARNInvalidException":
|
|
3126
|
+
case "com.amazonaws.cloudtrail#EventDataStoreARNInvalidException":
|
|
1795
3127
|
response = {
|
|
1796
|
-
...(await
|
|
3128
|
+
...(await deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse(parsedOutput, context)),
|
|
1797
3129
|
name: errorCode,
|
|
1798
3130
|
$metadata: deserializeMetadata(output),
|
|
1799
3131
|
};
|
|
1800
3132
|
break;
|
|
1801
|
-
case "
|
|
1802
|
-
case "com.amazonaws.cloudtrail#
|
|
3133
|
+
case "EventDataStoreNotFoundException":
|
|
3134
|
+
case "com.amazonaws.cloudtrail#EventDataStoreNotFoundException":
|
|
1803
3135
|
response = {
|
|
1804
|
-
...(await
|
|
3136
|
+
...(await deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse(parsedOutput, context)),
|
|
3137
|
+
name: errorCode,
|
|
3138
|
+
$metadata: deserializeMetadata(output),
|
|
3139
|
+
};
|
|
3140
|
+
break;
|
|
3141
|
+
case "InactiveEventDataStoreException":
|
|
3142
|
+
case "com.amazonaws.cloudtrail#InactiveEventDataStoreException":
|
|
3143
|
+
response = {
|
|
3144
|
+
...(await deserializeAws_json1_1InactiveEventDataStoreExceptionResponse(parsedOutput, context)),
|
|
3145
|
+
name: errorCode,
|
|
3146
|
+
$metadata: deserializeMetadata(output),
|
|
3147
|
+
};
|
|
3148
|
+
break;
|
|
3149
|
+
case "InsufficientDependencyServiceAccessPermissionException":
|
|
3150
|
+
case "com.amazonaws.cloudtrail#InsufficientDependencyServiceAccessPermissionException":
|
|
3151
|
+
response = {
|
|
3152
|
+
...(await deserializeAws_json1_1InsufficientDependencyServiceAccessPermissionExceptionResponse(parsedOutput, context)),
|
|
3153
|
+
name: errorCode,
|
|
3154
|
+
$metadata: deserializeMetadata(output),
|
|
3155
|
+
};
|
|
3156
|
+
break;
|
|
3157
|
+
case "InvalidParameterException":
|
|
3158
|
+
case "com.amazonaws.cloudtrail#InvalidParameterException":
|
|
3159
|
+
response = {
|
|
3160
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1805
3161
|
name: errorCode,
|
|
1806
3162
|
$metadata: deserializeMetadata(output),
|
|
1807
3163
|
};
|
|
@@ -1822,10 +3178,18 @@ const deserializeAws_json1_1StopLoggingCommandError = async (output, context) =>
|
|
|
1822
3178
|
$metadata: deserializeMetadata(output),
|
|
1823
3179
|
};
|
|
1824
3180
|
break;
|
|
1825
|
-
case "
|
|
1826
|
-
case "com.amazonaws.cloudtrail#
|
|
3181
|
+
case "OrganizationNotInAllFeaturesModeException":
|
|
3182
|
+
case "com.amazonaws.cloudtrail#OrganizationNotInAllFeaturesModeException":
|
|
1827
3183
|
response = {
|
|
1828
|
-
...(await
|
|
3184
|
+
...(await deserializeAws_json1_1OrganizationNotInAllFeaturesModeExceptionResponse(parsedOutput, context)),
|
|
3185
|
+
name: errorCode,
|
|
3186
|
+
$metadata: deserializeMetadata(output),
|
|
3187
|
+
};
|
|
3188
|
+
break;
|
|
3189
|
+
case "OrganizationsNotInUseException":
|
|
3190
|
+
case "com.amazonaws.cloudtrail#OrganizationsNotInUseException":
|
|
3191
|
+
response = {
|
|
3192
|
+
...(await deserializeAws_json1_1OrganizationsNotInUseExceptionResponse(parsedOutput, context)),
|
|
1829
3193
|
name: errorCode,
|
|
1830
3194
|
$metadata: deserializeMetadata(output),
|
|
1831
3195
|
};
|
|
@@ -2172,6 +3536,83 @@ const deserializeAws_json1_1ConflictExceptionResponse = async (parsedOutput, con
|
|
|
2172
3536
|
};
|
|
2173
3537
|
return contents;
|
|
2174
3538
|
};
|
|
3539
|
+
const deserializeAws_json1_1EventDataStoreAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3540
|
+
const body = parsedOutput.body;
|
|
3541
|
+
const deserialized = deserializeAws_json1_1EventDataStoreAlreadyExistsException(body, context);
|
|
3542
|
+
const contents = {
|
|
3543
|
+
name: "EventDataStoreAlreadyExistsException",
|
|
3544
|
+
$fault: "client",
|
|
3545
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3546
|
+
...deserialized,
|
|
3547
|
+
};
|
|
3548
|
+
return contents;
|
|
3549
|
+
};
|
|
3550
|
+
const deserializeAws_json1_1EventDataStoreARNInvalidExceptionResponse = async (parsedOutput, context) => {
|
|
3551
|
+
const body = parsedOutput.body;
|
|
3552
|
+
const deserialized = deserializeAws_json1_1EventDataStoreARNInvalidException(body, context);
|
|
3553
|
+
const contents = {
|
|
3554
|
+
name: "EventDataStoreARNInvalidException",
|
|
3555
|
+
$fault: "client",
|
|
3556
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3557
|
+
...deserialized,
|
|
3558
|
+
};
|
|
3559
|
+
return contents;
|
|
3560
|
+
};
|
|
3561
|
+
const deserializeAws_json1_1EventDataStoreMaxLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3562
|
+
const body = parsedOutput.body;
|
|
3563
|
+
const deserialized = deserializeAws_json1_1EventDataStoreMaxLimitExceededException(body, context);
|
|
3564
|
+
const contents = {
|
|
3565
|
+
name: "EventDataStoreMaxLimitExceededException",
|
|
3566
|
+
$fault: "client",
|
|
3567
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3568
|
+
...deserialized,
|
|
3569
|
+
};
|
|
3570
|
+
return contents;
|
|
3571
|
+
};
|
|
3572
|
+
const deserializeAws_json1_1EventDataStoreNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3573
|
+
const body = parsedOutput.body;
|
|
3574
|
+
const deserialized = deserializeAws_json1_1EventDataStoreNotFoundException(body, context);
|
|
3575
|
+
const contents = {
|
|
3576
|
+
name: "EventDataStoreNotFoundException",
|
|
3577
|
+
$fault: "client",
|
|
3578
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3579
|
+
...deserialized,
|
|
3580
|
+
};
|
|
3581
|
+
return contents;
|
|
3582
|
+
};
|
|
3583
|
+
const deserializeAws_json1_1EventDataStoreTerminationProtectedExceptionResponse = async (parsedOutput, context) => {
|
|
3584
|
+
const body = parsedOutput.body;
|
|
3585
|
+
const deserialized = deserializeAws_json1_1EventDataStoreTerminationProtectedException(body, context);
|
|
3586
|
+
const contents = {
|
|
3587
|
+
name: "EventDataStoreTerminationProtectedException",
|
|
3588
|
+
$fault: "client",
|
|
3589
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3590
|
+
...deserialized,
|
|
3591
|
+
};
|
|
3592
|
+
return contents;
|
|
3593
|
+
};
|
|
3594
|
+
const deserializeAws_json1_1InactiveEventDataStoreExceptionResponse = async (parsedOutput, context) => {
|
|
3595
|
+
const body = parsedOutput.body;
|
|
3596
|
+
const deserialized = deserializeAws_json1_1InactiveEventDataStoreException(body, context);
|
|
3597
|
+
const contents = {
|
|
3598
|
+
name: "InactiveEventDataStoreException",
|
|
3599
|
+
$fault: "client",
|
|
3600
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3601
|
+
...deserialized,
|
|
3602
|
+
};
|
|
3603
|
+
return contents;
|
|
3604
|
+
};
|
|
3605
|
+
const deserializeAws_json1_1InactiveQueryExceptionResponse = async (parsedOutput, context) => {
|
|
3606
|
+
const body = parsedOutput.body;
|
|
3607
|
+
const deserialized = deserializeAws_json1_1InactiveQueryException(body, context);
|
|
3608
|
+
const contents = {
|
|
3609
|
+
name: "InactiveQueryException",
|
|
3610
|
+
$fault: "client",
|
|
3611
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3612
|
+
...deserialized,
|
|
3613
|
+
};
|
|
3614
|
+
return contents;
|
|
3615
|
+
};
|
|
2175
3616
|
const deserializeAws_json1_1InsightNotEnabledExceptionResponse = async (parsedOutput, context) => {
|
|
2176
3617
|
const body = parsedOutput.body;
|
|
2177
3618
|
const deserialized = deserializeAws_json1_1InsightNotEnabledException(body, context);
|
|
@@ -2249,6 +3690,17 @@ const deserializeAws_json1_1InvalidCloudWatchLogsRoleArnExceptionResponse = asyn
|
|
|
2249
3690
|
};
|
|
2250
3691
|
return contents;
|
|
2251
3692
|
};
|
|
3693
|
+
const deserializeAws_json1_1InvalidDateRangeExceptionResponse = async (parsedOutput, context) => {
|
|
3694
|
+
const body = parsedOutput.body;
|
|
3695
|
+
const deserialized = deserializeAws_json1_1InvalidDateRangeException(body, context);
|
|
3696
|
+
const contents = {
|
|
3697
|
+
name: "InvalidDateRangeException",
|
|
3698
|
+
$fault: "client",
|
|
3699
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3700
|
+
...deserialized,
|
|
3701
|
+
};
|
|
3702
|
+
return contents;
|
|
3703
|
+
};
|
|
2252
3704
|
const deserializeAws_json1_1InvalidEventCategoryExceptionResponse = async (parsedOutput, context) => {
|
|
2253
3705
|
const body = parsedOutput.body;
|
|
2254
3706
|
const deserialized = deserializeAws_json1_1InvalidEventCategoryException(body, context);
|
|
@@ -2260,6 +3712,17 @@ const deserializeAws_json1_1InvalidEventCategoryExceptionResponse = async (parse
|
|
|
2260
3712
|
};
|
|
2261
3713
|
return contents;
|
|
2262
3714
|
};
|
|
3715
|
+
const deserializeAws_json1_1InvalidEventDataStoreStatusExceptionResponse = async (parsedOutput, context) => {
|
|
3716
|
+
const body = parsedOutput.body;
|
|
3717
|
+
const deserialized = deserializeAws_json1_1InvalidEventDataStoreStatusException(body, context);
|
|
3718
|
+
const contents = {
|
|
3719
|
+
name: "InvalidEventDataStoreStatusException",
|
|
3720
|
+
$fault: "client",
|
|
3721
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3722
|
+
...deserialized,
|
|
3723
|
+
};
|
|
3724
|
+
return contents;
|
|
3725
|
+
};
|
|
2263
3726
|
const deserializeAws_json1_1InvalidEventSelectorsExceptionResponse = async (parsedOutput, context) => {
|
|
2264
3727
|
const body = parsedOutput.body;
|
|
2265
3728
|
const deserialized = deserializeAws_json1_1InvalidEventSelectorsException(body, context);
|
|
@@ -2319,29 +3782,62 @@ const deserializeAws_json1_1InvalidMaxResultsExceptionResponse = async (parsedOu
|
|
|
2319
3782
|
const body = parsedOutput.body;
|
|
2320
3783
|
const deserialized = deserializeAws_json1_1InvalidMaxResultsException(body, context);
|
|
2321
3784
|
const contents = {
|
|
2322
|
-
name: "InvalidMaxResultsException",
|
|
3785
|
+
name: "InvalidMaxResultsException",
|
|
3786
|
+
$fault: "client",
|
|
3787
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3788
|
+
...deserialized,
|
|
3789
|
+
};
|
|
3790
|
+
return contents;
|
|
3791
|
+
};
|
|
3792
|
+
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
3793
|
+
const body = parsedOutput.body;
|
|
3794
|
+
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
3795
|
+
const contents = {
|
|
3796
|
+
name: "InvalidNextTokenException",
|
|
3797
|
+
$fault: "client",
|
|
3798
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3799
|
+
...deserialized,
|
|
3800
|
+
};
|
|
3801
|
+
return contents;
|
|
3802
|
+
};
|
|
3803
|
+
const deserializeAws_json1_1InvalidParameterCombinationExceptionResponse = async (parsedOutput, context) => {
|
|
3804
|
+
const body = parsedOutput.body;
|
|
3805
|
+
const deserialized = deserializeAws_json1_1InvalidParameterCombinationException(body, context);
|
|
3806
|
+
const contents = {
|
|
3807
|
+
name: "InvalidParameterCombinationException",
|
|
3808
|
+
$fault: "client",
|
|
3809
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3810
|
+
...deserialized,
|
|
3811
|
+
};
|
|
3812
|
+
return contents;
|
|
3813
|
+
};
|
|
3814
|
+
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
3815
|
+
const body = parsedOutput.body;
|
|
3816
|
+
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
3817
|
+
const contents = {
|
|
3818
|
+
name: "InvalidParameterException",
|
|
2323
3819
|
$fault: "client",
|
|
2324
3820
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2325
3821
|
...deserialized,
|
|
2326
3822
|
};
|
|
2327
3823
|
return contents;
|
|
2328
3824
|
};
|
|
2329
|
-
const
|
|
3825
|
+
const deserializeAws_json1_1InvalidQueryStatementExceptionResponse = async (parsedOutput, context) => {
|
|
2330
3826
|
const body = parsedOutput.body;
|
|
2331
|
-
const deserialized =
|
|
3827
|
+
const deserialized = deserializeAws_json1_1InvalidQueryStatementException(body, context);
|
|
2332
3828
|
const contents = {
|
|
2333
|
-
name: "
|
|
3829
|
+
name: "InvalidQueryStatementException",
|
|
2334
3830
|
$fault: "client",
|
|
2335
3831
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2336
3832
|
...deserialized,
|
|
2337
3833
|
};
|
|
2338
3834
|
return contents;
|
|
2339
3835
|
};
|
|
2340
|
-
const
|
|
3836
|
+
const deserializeAws_json1_1InvalidQueryStatusExceptionResponse = async (parsedOutput, context) => {
|
|
2341
3837
|
const body = parsedOutput.body;
|
|
2342
|
-
const deserialized =
|
|
3838
|
+
const deserialized = deserializeAws_json1_1InvalidQueryStatusException(body, context);
|
|
2343
3839
|
const contents = {
|
|
2344
|
-
name: "
|
|
3840
|
+
name: "InvalidQueryStatusException",
|
|
2345
3841
|
$fault: "client",
|
|
2346
3842
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2347
3843
|
...deserialized,
|
|
@@ -2458,6 +3954,17 @@ const deserializeAws_json1_1KmsKeyNotFoundExceptionResponse = async (parsedOutpu
|
|
|
2458
3954
|
};
|
|
2459
3955
|
return contents;
|
|
2460
3956
|
};
|
|
3957
|
+
const deserializeAws_json1_1MaxConcurrentQueriesExceptionResponse = async (parsedOutput, context) => {
|
|
3958
|
+
const body = parsedOutput.body;
|
|
3959
|
+
const deserialized = deserializeAws_json1_1MaxConcurrentQueriesException(body, context);
|
|
3960
|
+
const contents = {
|
|
3961
|
+
name: "MaxConcurrentQueriesException",
|
|
3962
|
+
$fault: "client",
|
|
3963
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3964
|
+
...deserialized,
|
|
3965
|
+
};
|
|
3966
|
+
return contents;
|
|
3967
|
+
};
|
|
2461
3968
|
const deserializeAws_json1_1MaximumNumberOfTrailsExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2462
3969
|
const body = parsedOutput.body;
|
|
2463
3970
|
const deserialized = deserializeAws_json1_1MaximumNumberOfTrailsExceededException(body, context);
|
|
@@ -2513,6 +4020,17 @@ const deserializeAws_json1_1OrganizationsNotInUseExceptionResponse = async (pars
|
|
|
2513
4020
|
};
|
|
2514
4021
|
return contents;
|
|
2515
4022
|
};
|
|
4023
|
+
const deserializeAws_json1_1QueryIdNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
4024
|
+
const body = parsedOutput.body;
|
|
4025
|
+
const deserialized = deserializeAws_json1_1QueryIdNotFoundException(body, context);
|
|
4026
|
+
const contents = {
|
|
4027
|
+
name: "QueryIdNotFoundException",
|
|
4028
|
+
$fault: "client",
|
|
4029
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4030
|
+
...deserialized,
|
|
4031
|
+
};
|
|
4032
|
+
return contents;
|
|
4033
|
+
};
|
|
2516
4034
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2517
4035
|
const body = parsedOutput.body;
|
|
2518
4036
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
@@ -2654,6 +4172,34 @@ const serializeAws_json1_1AdvancedFieldSelectors = (input, context) => {
|
|
|
2654
4172
|
return serializeAws_json1_1AdvancedFieldSelector(entry, context);
|
|
2655
4173
|
});
|
|
2656
4174
|
};
|
|
4175
|
+
const serializeAws_json1_1CancelQueryRequest = (input, context) => {
|
|
4176
|
+
return {
|
|
4177
|
+
...(input.EventDataStore !== undefined &&
|
|
4178
|
+
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
4179
|
+
...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
|
|
4180
|
+
};
|
|
4181
|
+
};
|
|
4182
|
+
const serializeAws_json1_1CreateEventDataStoreRequest = (input, context) => {
|
|
4183
|
+
return {
|
|
4184
|
+
...(input.AdvancedEventSelectors !== undefined &&
|
|
4185
|
+
input.AdvancedEventSelectors !== null && {
|
|
4186
|
+
AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
|
|
4187
|
+
}),
|
|
4188
|
+
...(input.MultiRegionEnabled !== undefined &&
|
|
4189
|
+
input.MultiRegionEnabled !== null && { MultiRegionEnabled: input.MultiRegionEnabled }),
|
|
4190
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4191
|
+
...(input.OrganizationEnabled !== undefined &&
|
|
4192
|
+
input.OrganizationEnabled !== null && { OrganizationEnabled: input.OrganizationEnabled }),
|
|
4193
|
+
...(input.RetentionPeriod !== undefined &&
|
|
4194
|
+
input.RetentionPeriod !== null && { RetentionPeriod: input.RetentionPeriod }),
|
|
4195
|
+
...(input.TagsList !== undefined &&
|
|
4196
|
+
input.TagsList !== null && { TagsList: serializeAws_json1_1TagsList(input.TagsList, context) }),
|
|
4197
|
+
...(input.TerminationProtectionEnabled !== undefined &&
|
|
4198
|
+
input.TerminationProtectionEnabled !== null && {
|
|
4199
|
+
TerminationProtectionEnabled: input.TerminationProtectionEnabled,
|
|
4200
|
+
}),
|
|
4201
|
+
};
|
|
4202
|
+
};
|
|
2657
4203
|
const serializeAws_json1_1CreateTrailRequest = (input, context) => {
|
|
2658
4204
|
return {
|
|
2659
4205
|
...(input.CloudWatchLogsLogGroupArn !== undefined &&
|
|
@@ -2704,11 +4250,24 @@ const serializeAws_json1_1DataResourceValues = (input, context) => {
|
|
|
2704
4250
|
return entry;
|
|
2705
4251
|
});
|
|
2706
4252
|
};
|
|
4253
|
+
const serializeAws_json1_1DeleteEventDataStoreRequest = (input, context) => {
|
|
4254
|
+
return {
|
|
4255
|
+
...(input.EventDataStore !== undefined &&
|
|
4256
|
+
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
4257
|
+
};
|
|
4258
|
+
};
|
|
2707
4259
|
const serializeAws_json1_1DeleteTrailRequest = (input, context) => {
|
|
2708
4260
|
return {
|
|
2709
4261
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2710
4262
|
};
|
|
2711
4263
|
};
|
|
4264
|
+
const serializeAws_json1_1DescribeQueryRequest = (input, context) => {
|
|
4265
|
+
return {
|
|
4266
|
+
...(input.EventDataStore !== undefined &&
|
|
4267
|
+
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
4268
|
+
...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
|
|
4269
|
+
};
|
|
4270
|
+
};
|
|
2712
4271
|
const serializeAws_json1_1DescribeTrailsRequest = (input, context) => {
|
|
2713
4272
|
return {
|
|
2714
4273
|
...(input.includeShadowTrails !== undefined &&
|
|
@@ -2754,6 +4313,12 @@ const serializeAws_json1_1ExcludeManagementEventSources = (input, context) => {
|
|
|
2754
4313
|
return entry;
|
|
2755
4314
|
});
|
|
2756
4315
|
};
|
|
4316
|
+
const serializeAws_json1_1GetEventDataStoreRequest = (input, context) => {
|
|
4317
|
+
return {
|
|
4318
|
+
...(input.EventDataStore !== undefined &&
|
|
4319
|
+
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
4320
|
+
};
|
|
4321
|
+
};
|
|
2757
4322
|
const serializeAws_json1_1GetEventSelectorsRequest = (input, context) => {
|
|
2758
4323
|
return {
|
|
2759
4324
|
...(input.TrailName !== undefined && input.TrailName !== null && { TrailName: input.TrailName }),
|
|
@@ -2764,6 +4329,16 @@ const serializeAws_json1_1GetInsightSelectorsRequest = (input, context) => {
|
|
|
2764
4329
|
...(input.TrailName !== undefined && input.TrailName !== null && { TrailName: input.TrailName }),
|
|
2765
4330
|
};
|
|
2766
4331
|
};
|
|
4332
|
+
const serializeAws_json1_1GetQueryResultsRequest = (input, context) => {
|
|
4333
|
+
return {
|
|
4334
|
+
...(input.EventDataStore !== undefined &&
|
|
4335
|
+
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
4336
|
+
...(input.MaxQueryResults !== undefined &&
|
|
4337
|
+
input.MaxQueryResults !== null && { MaxQueryResults: input.MaxQueryResults }),
|
|
4338
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4339
|
+
...(input.QueryId !== undefined && input.QueryId !== null && { QueryId: input.QueryId }),
|
|
4340
|
+
};
|
|
4341
|
+
};
|
|
2767
4342
|
const serializeAws_json1_1GetTrailRequest = (input, context) => {
|
|
2768
4343
|
return {
|
|
2769
4344
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
@@ -2789,6 +4364,12 @@ const serializeAws_json1_1InsightSelectors = (input, context) => {
|
|
|
2789
4364
|
return serializeAws_json1_1InsightSelector(entry, context);
|
|
2790
4365
|
});
|
|
2791
4366
|
};
|
|
4367
|
+
const serializeAws_json1_1ListEventDataStoresRequest = (input, context) => {
|
|
4368
|
+
return {
|
|
4369
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
4370
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4371
|
+
};
|
|
4372
|
+
};
|
|
2792
4373
|
const serializeAws_json1_1ListPublicKeysRequest = (input, context) => {
|
|
2793
4374
|
return {
|
|
2794
4375
|
...(input.EndTime !== undefined &&
|
|
@@ -2798,6 +4379,19 @@ const serializeAws_json1_1ListPublicKeysRequest = (input, context) => {
|
|
|
2798
4379
|
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
2799
4380
|
};
|
|
2800
4381
|
};
|
|
4382
|
+
const serializeAws_json1_1ListQueriesRequest = (input, context) => {
|
|
4383
|
+
return {
|
|
4384
|
+
...(input.EndTime !== undefined &&
|
|
4385
|
+
input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
4386
|
+
...(input.EventDataStore !== undefined &&
|
|
4387
|
+
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
4388
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
4389
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
4390
|
+
...(input.QueryStatus !== undefined && input.QueryStatus !== null && { QueryStatus: input.QueryStatus }),
|
|
4391
|
+
...(input.StartTime !== undefined &&
|
|
4392
|
+
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
4393
|
+
};
|
|
4394
|
+
};
|
|
2801
4395
|
const serializeAws_json1_1ListTagsRequest = (input, context) => {
|
|
2802
4396
|
return {
|
|
2803
4397
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
@@ -2893,11 +4487,23 @@ const serializeAws_json1_1ResourceIdList = (input, context) => {
|
|
|
2893
4487
|
return entry;
|
|
2894
4488
|
});
|
|
2895
4489
|
};
|
|
4490
|
+
const serializeAws_json1_1RestoreEventDataStoreRequest = (input, context) => {
|
|
4491
|
+
return {
|
|
4492
|
+
...(input.EventDataStore !== undefined &&
|
|
4493
|
+
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
4494
|
+
};
|
|
4495
|
+
};
|
|
2896
4496
|
const serializeAws_json1_1StartLoggingRequest = (input, context) => {
|
|
2897
4497
|
return {
|
|
2898
4498
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
2899
4499
|
};
|
|
2900
4500
|
};
|
|
4501
|
+
const serializeAws_json1_1StartQueryRequest = (input, context) => {
|
|
4502
|
+
return {
|
|
4503
|
+
...(input.QueryStatement !== undefined &&
|
|
4504
|
+
input.QueryStatement !== null && { QueryStatement: input.QueryStatement }),
|
|
4505
|
+
};
|
|
4506
|
+
};
|
|
2901
4507
|
const serializeAws_json1_1StopLoggingRequest = (input, context) => {
|
|
2902
4508
|
return {
|
|
2903
4509
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
@@ -2929,6 +4535,27 @@ const serializeAws_json1_1TrailNameList = (input, context) => {
|
|
|
2929
4535
|
return entry;
|
|
2930
4536
|
});
|
|
2931
4537
|
};
|
|
4538
|
+
const serializeAws_json1_1UpdateEventDataStoreRequest = (input, context) => {
|
|
4539
|
+
return {
|
|
4540
|
+
...(input.AdvancedEventSelectors !== undefined &&
|
|
4541
|
+
input.AdvancedEventSelectors !== null && {
|
|
4542
|
+
AdvancedEventSelectors: serializeAws_json1_1AdvancedEventSelectors(input.AdvancedEventSelectors, context),
|
|
4543
|
+
}),
|
|
4544
|
+
...(input.EventDataStore !== undefined &&
|
|
4545
|
+
input.EventDataStore !== null && { EventDataStore: input.EventDataStore }),
|
|
4546
|
+
...(input.MultiRegionEnabled !== undefined &&
|
|
4547
|
+
input.MultiRegionEnabled !== null && { MultiRegionEnabled: input.MultiRegionEnabled }),
|
|
4548
|
+
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
4549
|
+
...(input.OrganizationEnabled !== undefined &&
|
|
4550
|
+
input.OrganizationEnabled !== null && { OrganizationEnabled: input.OrganizationEnabled }),
|
|
4551
|
+
...(input.RetentionPeriod !== undefined &&
|
|
4552
|
+
input.RetentionPeriod !== null && { RetentionPeriod: input.RetentionPeriod }),
|
|
4553
|
+
...(input.TerminationProtectionEnabled !== undefined &&
|
|
4554
|
+
input.TerminationProtectionEnabled !== null && {
|
|
4555
|
+
TerminationProtectionEnabled: input.TerminationProtectionEnabled,
|
|
4556
|
+
}),
|
|
4557
|
+
};
|
|
4558
|
+
};
|
|
2932
4559
|
const serializeAws_json1_1UpdateTrailRequest = (input, context) => {
|
|
2933
4560
|
return {
|
|
2934
4561
|
...(input.CloudWatchLogsLogGroupArn !== undefined &&
|
|
@@ -3004,6 +4631,12 @@ const deserializeAws_json1_1AdvancedFieldSelectors = (output, context) => {
|
|
|
3004
4631
|
return deserializeAws_json1_1AdvancedFieldSelector(entry, context);
|
|
3005
4632
|
});
|
|
3006
4633
|
};
|
|
4634
|
+
const deserializeAws_json1_1CancelQueryResponse = (output, context) => {
|
|
4635
|
+
return {
|
|
4636
|
+
QueryId: smithy_client_1.expectString(output.QueryId),
|
|
4637
|
+
QueryStatus: smithy_client_1.expectString(output.QueryStatus),
|
|
4638
|
+
};
|
|
4639
|
+
};
|
|
3007
4640
|
const deserializeAws_json1_1CloudTrailAccessNotEnabledException = (output, context) => {
|
|
3008
4641
|
return {
|
|
3009
4642
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -3029,6 +4662,29 @@ const deserializeAws_json1_1ConflictException = (output, context) => {
|
|
|
3029
4662
|
Message: smithy_client_1.expectString(output.Message),
|
|
3030
4663
|
};
|
|
3031
4664
|
};
|
|
4665
|
+
const deserializeAws_json1_1CreateEventDataStoreResponse = (output, context) => {
|
|
4666
|
+
return {
|
|
4667
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
|
|
4668
|
+
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
4669
|
+
: undefined,
|
|
4670
|
+
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4671
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4672
|
+
: undefined,
|
|
4673
|
+
EventDataStoreArn: smithy_client_1.expectString(output.EventDataStoreArn),
|
|
4674
|
+
MultiRegionEnabled: smithy_client_1.expectBoolean(output.MultiRegionEnabled),
|
|
4675
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
4676
|
+
OrganizationEnabled: smithy_client_1.expectBoolean(output.OrganizationEnabled),
|
|
4677
|
+
RetentionPeriod: smithy_client_1.expectInt32(output.RetentionPeriod),
|
|
4678
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4679
|
+
TagsList: output.TagsList !== undefined && output.TagsList !== null
|
|
4680
|
+
? deserializeAws_json1_1TagsList(output.TagsList, context)
|
|
4681
|
+
: undefined,
|
|
4682
|
+
TerminationProtectionEnabled: smithy_client_1.expectBoolean(output.TerminationProtectionEnabled),
|
|
4683
|
+
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
4684
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedTimestamp)))
|
|
4685
|
+
: undefined,
|
|
4686
|
+
};
|
|
4687
|
+
};
|
|
3032
4688
|
const deserializeAws_json1_1CreateTrailResponse = (output, context) => {
|
|
3033
4689
|
return {
|
|
3034
4690
|
CloudWatchLogsLogGroupArn: smithy_client_1.expectString(output.CloudWatchLogsLogGroupArn),
|
|
@@ -3074,9 +4730,23 @@ const deserializeAws_json1_1DataResourceValues = (output, context) => {
|
|
|
3074
4730
|
return smithy_client_1.expectString(entry);
|
|
3075
4731
|
});
|
|
3076
4732
|
};
|
|
4733
|
+
const deserializeAws_json1_1DeleteEventDataStoreResponse = (output, context) => {
|
|
4734
|
+
return {};
|
|
4735
|
+
};
|
|
3077
4736
|
const deserializeAws_json1_1DeleteTrailResponse = (output, context) => {
|
|
3078
4737
|
return {};
|
|
3079
4738
|
};
|
|
4739
|
+
const deserializeAws_json1_1DescribeQueryResponse = (output, context) => {
|
|
4740
|
+
return {
|
|
4741
|
+
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
4742
|
+
QueryId: smithy_client_1.expectString(output.QueryId),
|
|
4743
|
+
QueryStatistics: output.QueryStatistics !== undefined && output.QueryStatistics !== null
|
|
4744
|
+
? deserializeAws_json1_1QueryStatisticsForDescribeQuery(output.QueryStatistics, context)
|
|
4745
|
+
: undefined,
|
|
4746
|
+
QueryStatus: smithy_client_1.expectString(output.QueryStatus),
|
|
4747
|
+
QueryString: smithy_client_1.expectString(output.QueryString),
|
|
4748
|
+
};
|
|
4749
|
+
};
|
|
3080
4750
|
const deserializeAws_json1_1DescribeTrailsResponse = (output, context) => {
|
|
3081
4751
|
return {
|
|
3082
4752
|
trailList: output.trailList !== undefined && output.trailList !== null
|
|
@@ -3101,6 +4771,61 @@ const deserializeAws_json1_1Event = (output, context) => {
|
|
|
3101
4771
|
Username: smithy_client_1.expectString(output.Username),
|
|
3102
4772
|
};
|
|
3103
4773
|
};
|
|
4774
|
+
const deserializeAws_json1_1EventDataStore = (output, context) => {
|
|
4775
|
+
return {
|
|
4776
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
|
|
4777
|
+
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
4778
|
+
: undefined,
|
|
4779
|
+
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4780
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4781
|
+
: undefined,
|
|
4782
|
+
EventDataStoreArn: smithy_client_1.expectString(output.EventDataStoreArn),
|
|
4783
|
+
MultiRegionEnabled: smithy_client_1.expectBoolean(output.MultiRegionEnabled),
|
|
4784
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
4785
|
+
OrganizationEnabled: smithy_client_1.expectBoolean(output.OrganizationEnabled),
|
|
4786
|
+
RetentionPeriod: smithy_client_1.expectInt32(output.RetentionPeriod),
|
|
4787
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4788
|
+
TerminationProtectionEnabled: smithy_client_1.expectBoolean(output.TerminationProtectionEnabled),
|
|
4789
|
+
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
4790
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedTimestamp)))
|
|
4791
|
+
: undefined,
|
|
4792
|
+
};
|
|
4793
|
+
};
|
|
4794
|
+
const deserializeAws_json1_1EventDataStoreAlreadyExistsException = (output, context) => {
|
|
4795
|
+
return {
|
|
4796
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4797
|
+
};
|
|
4798
|
+
};
|
|
4799
|
+
const deserializeAws_json1_1EventDataStoreARNInvalidException = (output, context) => {
|
|
4800
|
+
return {
|
|
4801
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4802
|
+
};
|
|
4803
|
+
};
|
|
4804
|
+
const deserializeAws_json1_1EventDataStoreMaxLimitExceededException = (output, context) => {
|
|
4805
|
+
return {
|
|
4806
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4807
|
+
};
|
|
4808
|
+
};
|
|
4809
|
+
const deserializeAws_json1_1EventDataStoreNotFoundException = (output, context) => {
|
|
4810
|
+
return {
|
|
4811
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4812
|
+
};
|
|
4813
|
+
};
|
|
4814
|
+
const deserializeAws_json1_1EventDataStores = (output, context) => {
|
|
4815
|
+
return (output || [])
|
|
4816
|
+
.filter((e) => e != null)
|
|
4817
|
+
.map((entry) => {
|
|
4818
|
+
if (entry === null) {
|
|
4819
|
+
return null;
|
|
4820
|
+
}
|
|
4821
|
+
return deserializeAws_json1_1EventDataStore(entry, context);
|
|
4822
|
+
});
|
|
4823
|
+
};
|
|
4824
|
+
const deserializeAws_json1_1EventDataStoreTerminationProtectedException = (output, context) => {
|
|
4825
|
+
return {
|
|
4826
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4827
|
+
};
|
|
4828
|
+
};
|
|
3104
4829
|
const deserializeAws_json1_1EventSelector = (output, context) => {
|
|
3105
4830
|
return {
|
|
3106
4831
|
DataResources: output.DataResources !== undefined && output.DataResources !== null
|
|
@@ -3143,6 +4868,26 @@ const deserializeAws_json1_1ExcludeManagementEventSources = (output, context) =>
|
|
|
3143
4868
|
return smithy_client_1.expectString(entry);
|
|
3144
4869
|
});
|
|
3145
4870
|
};
|
|
4871
|
+
const deserializeAws_json1_1GetEventDataStoreResponse = (output, context) => {
|
|
4872
|
+
return {
|
|
4873
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
|
|
4874
|
+
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
4875
|
+
: undefined,
|
|
4876
|
+
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
4877
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
4878
|
+
: undefined,
|
|
4879
|
+
EventDataStoreArn: smithy_client_1.expectString(output.EventDataStoreArn),
|
|
4880
|
+
MultiRegionEnabled: smithy_client_1.expectBoolean(output.MultiRegionEnabled),
|
|
4881
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
4882
|
+
OrganizationEnabled: smithy_client_1.expectBoolean(output.OrganizationEnabled),
|
|
4883
|
+
RetentionPeriod: smithy_client_1.expectInt32(output.RetentionPeriod),
|
|
4884
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
4885
|
+
TerminationProtectionEnabled: smithy_client_1.expectBoolean(output.TerminationProtectionEnabled),
|
|
4886
|
+
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
4887
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedTimestamp)))
|
|
4888
|
+
: undefined,
|
|
4889
|
+
};
|
|
4890
|
+
};
|
|
3146
4891
|
const deserializeAws_json1_1GetEventSelectorsResponse = (output, context) => {
|
|
3147
4892
|
return {
|
|
3148
4893
|
AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
|
|
@@ -3162,6 +4907,19 @@ const deserializeAws_json1_1GetInsightSelectorsResponse = (output, context) => {
|
|
|
3162
4907
|
TrailARN: smithy_client_1.expectString(output.TrailARN),
|
|
3163
4908
|
};
|
|
3164
4909
|
};
|
|
4910
|
+
const deserializeAws_json1_1GetQueryResultsResponse = (output, context) => {
|
|
4911
|
+
return {
|
|
4912
|
+
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
4913
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
4914
|
+
QueryResultRows: output.QueryResultRows !== undefined && output.QueryResultRows !== null
|
|
4915
|
+
? deserializeAws_json1_1QueryResultRows(output.QueryResultRows, context)
|
|
4916
|
+
: undefined,
|
|
4917
|
+
QueryStatistics: output.QueryStatistics !== undefined && output.QueryStatistics !== null
|
|
4918
|
+
? deserializeAws_json1_1QueryStatistics(output.QueryStatistics, context)
|
|
4919
|
+
: undefined,
|
|
4920
|
+
QueryStatus: smithy_client_1.expectString(output.QueryStatus),
|
|
4921
|
+
};
|
|
4922
|
+
};
|
|
3165
4923
|
const deserializeAws_json1_1GetTrailResponse = (output, context) => {
|
|
3166
4924
|
return {
|
|
3167
4925
|
Trail: output.Trail !== undefined && output.Trail !== null
|
|
@@ -3202,6 +4960,16 @@ const deserializeAws_json1_1GetTrailStatusResponse = (output, context) => {
|
|
|
3202
4960
|
TimeLoggingStopped: smithy_client_1.expectString(output.TimeLoggingStopped),
|
|
3203
4961
|
};
|
|
3204
4962
|
};
|
|
4963
|
+
const deserializeAws_json1_1InactiveEventDataStoreException = (output, context) => {
|
|
4964
|
+
return {
|
|
4965
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4966
|
+
};
|
|
4967
|
+
};
|
|
4968
|
+
const deserializeAws_json1_1InactiveQueryException = (output, context) => {
|
|
4969
|
+
return {
|
|
4970
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
4971
|
+
};
|
|
4972
|
+
};
|
|
3205
4973
|
const deserializeAws_json1_1InsightNotEnabledException = (output, context) => {
|
|
3206
4974
|
return {
|
|
3207
4975
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -3252,11 +5020,21 @@ const deserializeAws_json1_1InvalidCloudWatchLogsRoleArnException = (output, con
|
|
|
3252
5020
|
Message: smithy_client_1.expectString(output.Message),
|
|
3253
5021
|
};
|
|
3254
5022
|
};
|
|
5023
|
+
const deserializeAws_json1_1InvalidDateRangeException = (output, context) => {
|
|
5024
|
+
return {
|
|
5025
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
5026
|
+
};
|
|
5027
|
+
};
|
|
3255
5028
|
const deserializeAws_json1_1InvalidEventCategoryException = (output, context) => {
|
|
3256
5029
|
return {
|
|
3257
5030
|
Message: smithy_client_1.expectString(output.Message),
|
|
3258
5031
|
};
|
|
3259
5032
|
};
|
|
5033
|
+
const deserializeAws_json1_1InvalidEventDataStoreStatusException = (output, context) => {
|
|
5034
|
+
return {
|
|
5035
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
5036
|
+
};
|
|
5037
|
+
};
|
|
3260
5038
|
const deserializeAws_json1_1InvalidEventSelectorsException = (output, context) => {
|
|
3261
5039
|
return {
|
|
3262
5040
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -3297,6 +5075,21 @@ const deserializeAws_json1_1InvalidParameterCombinationException = (output, cont
|
|
|
3297
5075
|
Message: smithy_client_1.expectString(output.Message),
|
|
3298
5076
|
};
|
|
3299
5077
|
};
|
|
5078
|
+
const deserializeAws_json1_1InvalidParameterException = (output, context) => {
|
|
5079
|
+
return {
|
|
5080
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
5081
|
+
};
|
|
5082
|
+
};
|
|
5083
|
+
const deserializeAws_json1_1InvalidQueryStatementException = (output, context) => {
|
|
5084
|
+
return {
|
|
5085
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
5086
|
+
};
|
|
5087
|
+
};
|
|
5088
|
+
const deserializeAws_json1_1InvalidQueryStatusException = (output, context) => {
|
|
5089
|
+
return {
|
|
5090
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
5091
|
+
};
|
|
5092
|
+
};
|
|
3300
5093
|
const deserializeAws_json1_1InvalidS3BucketNameException = (output, context) => {
|
|
3301
5094
|
return {
|
|
3302
5095
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -3347,6 +5140,14 @@ const deserializeAws_json1_1KmsKeyNotFoundException = (output, context) => {
|
|
|
3347
5140
|
Message: smithy_client_1.expectString(output.Message),
|
|
3348
5141
|
};
|
|
3349
5142
|
};
|
|
5143
|
+
const deserializeAws_json1_1ListEventDataStoresResponse = (output, context) => {
|
|
5144
|
+
return {
|
|
5145
|
+
EventDataStores: output.EventDataStores !== undefined && output.EventDataStores !== null
|
|
5146
|
+
? deserializeAws_json1_1EventDataStores(output.EventDataStores, context)
|
|
5147
|
+
: undefined,
|
|
5148
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
5149
|
+
};
|
|
5150
|
+
};
|
|
3350
5151
|
const deserializeAws_json1_1ListPublicKeysResponse = (output, context) => {
|
|
3351
5152
|
return {
|
|
3352
5153
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
@@ -3355,6 +5156,14 @@ const deserializeAws_json1_1ListPublicKeysResponse = (output, context) => {
|
|
|
3355
5156
|
: undefined,
|
|
3356
5157
|
};
|
|
3357
5158
|
};
|
|
5159
|
+
const deserializeAws_json1_1ListQueriesResponse = (output, context) => {
|
|
5160
|
+
return {
|
|
5161
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
5162
|
+
Queries: output.Queries !== undefined && output.Queries !== null
|
|
5163
|
+
? deserializeAws_json1_1Queries(output.Queries, context)
|
|
5164
|
+
: undefined,
|
|
5165
|
+
};
|
|
5166
|
+
};
|
|
3358
5167
|
const deserializeAws_json1_1ListTagsResponse = (output, context) => {
|
|
3359
5168
|
return {
|
|
3360
5169
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
@@ -3379,6 +5188,11 @@ const deserializeAws_json1_1LookupEventsResponse = (output, context) => {
|
|
|
3379
5188
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
3380
5189
|
};
|
|
3381
5190
|
};
|
|
5191
|
+
const deserializeAws_json1_1MaxConcurrentQueriesException = (output, context) => {
|
|
5192
|
+
return {
|
|
5193
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
5194
|
+
};
|
|
5195
|
+
};
|
|
3382
5196
|
const deserializeAws_json1_1MaximumNumberOfTrailsExceededException = (output, context) => {
|
|
3383
5197
|
return {
|
|
3384
5198
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -3455,6 +5269,77 @@ const deserializeAws_json1_1PutInsightSelectorsResponse = (output, context) => {
|
|
|
3455
5269
|
TrailARN: smithy_client_1.expectString(output.TrailARN),
|
|
3456
5270
|
};
|
|
3457
5271
|
};
|
|
5272
|
+
const deserializeAws_json1_1Queries = (output, context) => {
|
|
5273
|
+
return (output || [])
|
|
5274
|
+
.filter((e) => e != null)
|
|
5275
|
+
.map((entry) => {
|
|
5276
|
+
if (entry === null) {
|
|
5277
|
+
return null;
|
|
5278
|
+
}
|
|
5279
|
+
return deserializeAws_json1_1Query(entry, context);
|
|
5280
|
+
});
|
|
5281
|
+
};
|
|
5282
|
+
const deserializeAws_json1_1Query = (output, context) => {
|
|
5283
|
+
return {
|
|
5284
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
5285
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
5286
|
+
: undefined,
|
|
5287
|
+
QueryId: smithy_client_1.expectString(output.QueryId),
|
|
5288
|
+
QueryStatus: smithy_client_1.expectString(output.QueryStatus),
|
|
5289
|
+
};
|
|
5290
|
+
};
|
|
5291
|
+
const deserializeAws_json1_1QueryIdNotFoundException = (output, context) => {
|
|
5292
|
+
return {
|
|
5293
|
+
Message: smithy_client_1.expectString(output.Message),
|
|
5294
|
+
};
|
|
5295
|
+
};
|
|
5296
|
+
const deserializeAws_json1_1QueryResultColumn = (output, context) => {
|
|
5297
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
5298
|
+
if (value === null) {
|
|
5299
|
+
return acc;
|
|
5300
|
+
}
|
|
5301
|
+
return {
|
|
5302
|
+
...acc,
|
|
5303
|
+
[key]: smithy_client_1.expectString(value),
|
|
5304
|
+
};
|
|
5305
|
+
}, {});
|
|
5306
|
+
};
|
|
5307
|
+
const deserializeAws_json1_1QueryResultRow = (output, context) => {
|
|
5308
|
+
return (output || [])
|
|
5309
|
+
.filter((e) => e != null)
|
|
5310
|
+
.map((entry) => {
|
|
5311
|
+
if (entry === null) {
|
|
5312
|
+
return null;
|
|
5313
|
+
}
|
|
5314
|
+
return deserializeAws_json1_1QueryResultColumn(entry, context);
|
|
5315
|
+
});
|
|
5316
|
+
};
|
|
5317
|
+
const deserializeAws_json1_1QueryResultRows = (output, context) => {
|
|
5318
|
+
return (output || [])
|
|
5319
|
+
.filter((e) => e != null)
|
|
5320
|
+
.map((entry) => {
|
|
5321
|
+
if (entry === null) {
|
|
5322
|
+
return null;
|
|
5323
|
+
}
|
|
5324
|
+
return deserializeAws_json1_1QueryResultRow(entry, context);
|
|
5325
|
+
});
|
|
5326
|
+
};
|
|
5327
|
+
const deserializeAws_json1_1QueryStatistics = (output, context) => {
|
|
5328
|
+
return {
|
|
5329
|
+
ResultsCount: smithy_client_1.expectInt32(output.ResultsCount),
|
|
5330
|
+
TotalResultsCount: smithy_client_1.expectInt32(output.TotalResultsCount),
|
|
5331
|
+
};
|
|
5332
|
+
};
|
|
5333
|
+
const deserializeAws_json1_1QueryStatisticsForDescribeQuery = (output, context) => {
|
|
5334
|
+
return {
|
|
5335
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
5336
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
5337
|
+
: undefined,
|
|
5338
|
+
EventsMatched: smithy_client_1.expectLong(output.EventsMatched),
|
|
5339
|
+
EventsScanned: smithy_client_1.expectLong(output.EventsScanned),
|
|
5340
|
+
ExecutionTimeInMillis: smithy_client_1.expectInt32(output.ExecutionTimeInMillis),
|
|
5341
|
+
};
|
|
5342
|
+
};
|
|
3458
5343
|
const deserializeAws_json1_1RemoveTagsResponse = (output, context) => {
|
|
3459
5344
|
return {};
|
|
3460
5345
|
};
|
|
@@ -3502,6 +5387,26 @@ const deserializeAws_json1_1ResourceTypeNotSupportedException = (output, context
|
|
|
3502
5387
|
Message: smithy_client_1.expectString(output.Message),
|
|
3503
5388
|
};
|
|
3504
5389
|
};
|
|
5390
|
+
const deserializeAws_json1_1RestoreEventDataStoreResponse = (output, context) => {
|
|
5391
|
+
return {
|
|
5392
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
|
|
5393
|
+
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
5394
|
+
: undefined,
|
|
5395
|
+
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
5396
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
5397
|
+
: undefined,
|
|
5398
|
+
EventDataStoreArn: smithy_client_1.expectString(output.EventDataStoreArn),
|
|
5399
|
+
MultiRegionEnabled: smithy_client_1.expectBoolean(output.MultiRegionEnabled),
|
|
5400
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
5401
|
+
OrganizationEnabled: smithy_client_1.expectBoolean(output.OrganizationEnabled),
|
|
5402
|
+
RetentionPeriod: smithy_client_1.expectInt32(output.RetentionPeriod),
|
|
5403
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
5404
|
+
TerminationProtectionEnabled: smithy_client_1.expectBoolean(output.TerminationProtectionEnabled),
|
|
5405
|
+
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
5406
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedTimestamp)))
|
|
5407
|
+
: undefined,
|
|
5408
|
+
};
|
|
5409
|
+
};
|
|
3505
5410
|
const deserializeAws_json1_1S3BucketDoesNotExistException = (output, context) => {
|
|
3506
5411
|
return {
|
|
3507
5412
|
Message: smithy_client_1.expectString(output.Message),
|
|
@@ -3510,6 +5415,11 @@ const deserializeAws_json1_1S3BucketDoesNotExistException = (output, context) =>
|
|
|
3510
5415
|
const deserializeAws_json1_1StartLoggingResponse = (output, context) => {
|
|
3511
5416
|
return {};
|
|
3512
5417
|
};
|
|
5418
|
+
const deserializeAws_json1_1StartQueryResponse = (output, context) => {
|
|
5419
|
+
return {
|
|
5420
|
+
QueryId: smithy_client_1.expectString(output.QueryId),
|
|
5421
|
+
};
|
|
5422
|
+
};
|
|
3513
5423
|
const deserializeAws_json1_1StopLoggingResponse = (output, context) => {
|
|
3514
5424
|
return {};
|
|
3515
5425
|
};
|
|
@@ -3601,6 +5511,26 @@ const deserializeAws_json1_1UnsupportedOperationException = (output, context) =>
|
|
|
3601
5511
|
Message: smithy_client_1.expectString(output.Message),
|
|
3602
5512
|
};
|
|
3603
5513
|
};
|
|
5514
|
+
const deserializeAws_json1_1UpdateEventDataStoreResponse = (output, context) => {
|
|
5515
|
+
return {
|
|
5516
|
+
AdvancedEventSelectors: output.AdvancedEventSelectors !== undefined && output.AdvancedEventSelectors !== null
|
|
5517
|
+
? deserializeAws_json1_1AdvancedEventSelectors(output.AdvancedEventSelectors, context)
|
|
5518
|
+
: undefined,
|
|
5519
|
+
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
5520
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreatedTimestamp)))
|
|
5521
|
+
: undefined,
|
|
5522
|
+
EventDataStoreArn: smithy_client_1.expectString(output.EventDataStoreArn),
|
|
5523
|
+
MultiRegionEnabled: smithy_client_1.expectBoolean(output.MultiRegionEnabled),
|
|
5524
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
5525
|
+
OrganizationEnabled: smithy_client_1.expectBoolean(output.OrganizationEnabled),
|
|
5526
|
+
RetentionPeriod: smithy_client_1.expectInt32(output.RetentionPeriod),
|
|
5527
|
+
Status: smithy_client_1.expectString(output.Status),
|
|
5528
|
+
TerminationProtectionEnabled: smithy_client_1.expectBoolean(output.TerminationProtectionEnabled),
|
|
5529
|
+
UpdatedTimestamp: output.UpdatedTimestamp !== undefined && output.UpdatedTimestamp !== null
|
|
5530
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.UpdatedTimestamp)))
|
|
5531
|
+
: undefined,
|
|
5532
|
+
};
|
|
5533
|
+
};
|
|
3604
5534
|
const deserializeAws_json1_1UpdateTrailResponse = (output, context) => {
|
|
3605
5535
|
return {
|
|
3606
5536
|
CloudWatchLogsLogGroupArn: smithy_client_1.expectString(output.CloudWatchLogsLogGroupArn),
|