@aws-sdk/client-health 3.306.0 → 3.310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/DescribeAffectedAccountsForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/DescribeAffectedEntitiesCommand.js +2 -2
- package/dist-cjs/commands/DescribeAffectedEntitiesForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/DescribeEntityAggregatesCommand.js +2 -2
- package/dist-cjs/commands/DescribeEventAggregatesCommand.js +2 -2
- package/dist-cjs/commands/DescribeEventDetailsCommand.js +2 -2
- package/dist-cjs/commands/DescribeEventDetailsForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/DescribeEventTypesCommand.js +2 -2
- package/dist-cjs/commands/DescribeEventsCommand.js +2 -2
- package/dist-cjs/commands/DescribeEventsForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/DescribeHealthServiceStatusForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/DisableHealthServiceAccessForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/EnableHealthServiceAccessForOrganizationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +274 -312
- package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js +3 -3
- package/dist-es/commands/DescribeAffectedEntitiesCommand.js +3 -3
- package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +3 -3
- package/dist-es/commands/DescribeEntityAggregatesCommand.js +3 -3
- package/dist-es/commands/DescribeEventAggregatesCommand.js +3 -3
- package/dist-es/commands/DescribeEventDetailsCommand.js +3 -3
- package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +3 -3
- package/dist-es/commands/DescribeEventTypesCommand.js +3 -3
- package/dist-es/commands/DescribeEventsCommand.js +3 -3
- package/dist-es/commands/DescribeEventsForOrganizationCommand.js +3 -3
- package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js +3 -3
- package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js +3 -3
- package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +247 -285
- package/dist-types/protocols/Aws_json1_1.d.ts +104 -26
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +26 -26
- package/package.json +35 -35
|
@@ -2,97 +2,97 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { HealthServiceException as __BaseException } from "../models/HealthServiceException";
|
|
4
4
|
import { ConcurrentModificationException, InvalidPaginationToken, UnsupportedLocale, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_DescribeAffectedAccountsForOrganizationCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
8
8
|
"x-amz-target": "AWSHealth_20160804.DescribeAffectedAccountsForOrganization",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_DescribeAffectedAccountsForOrganizationRequest(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_DescribeAffectedEntitiesCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.1",
|
|
17
17
|
"x-amz-target": "AWSHealth_20160804.DescribeAffectedEntities",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_DescribeAffectedEntitiesRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_DescribeAffectedEntitiesForOrganizationCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.1",
|
|
26
26
|
"x-amz-target": "AWSHealth_20160804.DescribeAffectedEntitiesForOrganization",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_DescribeAffectedEntitiesForOrganizationRequest(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_DescribeEntityAggregatesCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.1",
|
|
35
35
|
"x-amz-target": "AWSHealth_20160804.DescribeEntityAggregates",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_DescribeEntityAggregatesRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_DescribeEventAggregatesCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.1",
|
|
44
44
|
"x-amz-target": "AWSHealth_20160804.DescribeEventAggregates",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_DescribeEventAggregatesRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_DescribeEventDetailsCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.1",
|
|
53
53
|
"x-amz-target": "AWSHealth_20160804.DescribeEventDetails",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_DescribeEventDetailsRequest(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_DescribeEventDetailsForOrganizationCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "AWSHealth_20160804.DescribeEventDetailsForOrganization",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_DescribeEventDetailsForOrganizationRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_DescribeEventsCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "AWSHealth_20160804.DescribeEvents",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DescribeEventsRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_DescribeEventsForOrganizationCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.1",
|
|
80
80
|
"x-amz-target": "AWSHealth_20160804.DescribeEventsForOrganization",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_DescribeEventsForOrganizationRequest(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_DescribeEventTypesCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.1",
|
|
89
89
|
"x-amz-target": "AWSHealth_20160804.DescribeEventTypes",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_DescribeEventTypesRequest(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_DescribeHealthServiceStatusForOrganizationCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.1",
|
|
98
98
|
"x-amz-target": "AWSHealth_20160804.DescribeHealthServiceStatusForOrganization",
|
|
@@ -100,7 +100,7 @@ export const serializeAws_json1_1DescribeHealthServiceStatusForOrganizationComma
|
|
|
100
100
|
const body = "{}";
|
|
101
101
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
102
|
};
|
|
103
|
-
export const
|
|
103
|
+
export const se_DisableHealthServiceAccessForOrganizationCommand = async (input, context) => {
|
|
104
104
|
const headers = {
|
|
105
105
|
"content-type": "application/x-amz-json-1.1",
|
|
106
106
|
"x-amz-target": "AWSHealth_20160804.DisableHealthServiceAccessForOrganization",
|
|
@@ -108,7 +108,7 @@ export const serializeAws_json1_1DisableHealthServiceAccessForOrganizationComman
|
|
|
108
108
|
const body = "{}";
|
|
109
109
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
110
110
|
};
|
|
111
|
-
export const
|
|
111
|
+
export const se_EnableHealthServiceAccessForOrganizationCommand = async (input, context) => {
|
|
112
112
|
const headers = {
|
|
113
113
|
"content-type": "application/x-amz-json-1.1",
|
|
114
114
|
"x-amz-target": "AWSHealth_20160804.EnableHealthServiceAccessForOrganization",
|
|
@@ -116,20 +116,20 @@ export const serializeAws_json1_1EnableHealthServiceAccessForOrganizationCommand
|
|
|
116
116
|
const body = "{}";
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
|
-
export const
|
|
119
|
+
export const de_DescribeAffectedAccountsForOrganizationCommand = async (output, context) => {
|
|
120
120
|
if (output.statusCode >= 300) {
|
|
121
|
-
return
|
|
121
|
+
return de_DescribeAffectedAccountsForOrganizationCommandError(output, context);
|
|
122
122
|
}
|
|
123
123
|
const data = await parseBody(output.body, context);
|
|
124
124
|
let contents = {};
|
|
125
|
-
contents =
|
|
125
|
+
contents = de_DescribeAffectedAccountsForOrganizationResponse(data, context);
|
|
126
126
|
const response = {
|
|
127
127
|
$metadata: deserializeMetadata(output),
|
|
128
128
|
...contents,
|
|
129
129
|
};
|
|
130
130
|
return Promise.resolve(response);
|
|
131
131
|
};
|
|
132
|
-
const
|
|
132
|
+
const de_DescribeAffectedAccountsForOrganizationCommandError = async (output, context) => {
|
|
133
133
|
const parsedOutput = {
|
|
134
134
|
...output,
|
|
135
135
|
body: await parseErrorBody(output.body, context),
|
|
@@ -138,7 +138,7 @@ const deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError
|
|
|
138
138
|
switch (errorCode) {
|
|
139
139
|
case "InvalidPaginationToken":
|
|
140
140
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
141
|
-
throw await
|
|
141
|
+
throw await de_InvalidPaginationTokenRes(parsedOutput, context);
|
|
142
142
|
default:
|
|
143
143
|
const parsedBody = parsedOutput.body;
|
|
144
144
|
throwDefaultError({
|
|
@@ -149,20 +149,20 @@ const deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommandError
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
|
-
export const
|
|
152
|
+
export const de_DescribeAffectedEntitiesCommand = async (output, context) => {
|
|
153
153
|
if (output.statusCode >= 300) {
|
|
154
|
-
return
|
|
154
|
+
return de_DescribeAffectedEntitiesCommandError(output, context);
|
|
155
155
|
}
|
|
156
156
|
const data = await parseBody(output.body, context);
|
|
157
157
|
let contents = {};
|
|
158
|
-
contents =
|
|
158
|
+
contents = de_DescribeAffectedEntitiesResponse(data, context);
|
|
159
159
|
const response = {
|
|
160
160
|
$metadata: deserializeMetadata(output),
|
|
161
161
|
...contents,
|
|
162
162
|
};
|
|
163
163
|
return Promise.resolve(response);
|
|
164
164
|
};
|
|
165
|
-
const
|
|
165
|
+
const de_DescribeAffectedEntitiesCommandError = async (output, context) => {
|
|
166
166
|
const parsedOutput = {
|
|
167
167
|
...output,
|
|
168
168
|
body: await parseErrorBody(output.body, context),
|
|
@@ -171,10 +171,10 @@ const deserializeAws_json1_1DescribeAffectedEntitiesCommandError = async (output
|
|
|
171
171
|
switch (errorCode) {
|
|
172
172
|
case "InvalidPaginationToken":
|
|
173
173
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
174
|
-
throw await
|
|
174
|
+
throw await de_InvalidPaginationTokenRes(parsedOutput, context);
|
|
175
175
|
case "UnsupportedLocale":
|
|
176
176
|
case "com.amazonaws.health#UnsupportedLocale":
|
|
177
|
-
throw await
|
|
177
|
+
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
178
178
|
default:
|
|
179
179
|
const parsedBody = parsedOutput.body;
|
|
180
180
|
throwDefaultError({
|
|
@@ -185,20 +185,20 @@ const deserializeAws_json1_1DescribeAffectedEntitiesCommandError = async (output
|
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
|
-
export const
|
|
188
|
+
export const de_DescribeAffectedEntitiesForOrganizationCommand = async (output, context) => {
|
|
189
189
|
if (output.statusCode >= 300) {
|
|
190
|
-
return
|
|
190
|
+
return de_DescribeAffectedEntitiesForOrganizationCommandError(output, context);
|
|
191
191
|
}
|
|
192
192
|
const data = await parseBody(output.body, context);
|
|
193
193
|
let contents = {};
|
|
194
|
-
contents =
|
|
194
|
+
contents = de_DescribeAffectedEntitiesForOrganizationResponse(data, context);
|
|
195
195
|
const response = {
|
|
196
196
|
$metadata: deserializeMetadata(output),
|
|
197
197
|
...contents,
|
|
198
198
|
};
|
|
199
199
|
return Promise.resolve(response);
|
|
200
200
|
};
|
|
201
|
-
const
|
|
201
|
+
const de_DescribeAffectedEntitiesForOrganizationCommandError = async (output, context) => {
|
|
202
202
|
const parsedOutput = {
|
|
203
203
|
...output,
|
|
204
204
|
body: await parseErrorBody(output.body, context),
|
|
@@ -207,10 +207,10 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError
|
|
|
207
207
|
switch (errorCode) {
|
|
208
208
|
case "InvalidPaginationToken":
|
|
209
209
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
210
|
-
throw await
|
|
210
|
+
throw await de_InvalidPaginationTokenRes(parsedOutput, context);
|
|
211
211
|
case "UnsupportedLocale":
|
|
212
212
|
case "com.amazonaws.health#UnsupportedLocale":
|
|
213
|
-
throw await
|
|
213
|
+
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
214
214
|
default:
|
|
215
215
|
const parsedBody = parsedOutput.body;
|
|
216
216
|
throwDefaultError({
|
|
@@ -221,20 +221,20 @@ const deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommandError
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
|
-
export const
|
|
224
|
+
export const de_DescribeEntityAggregatesCommand = async (output, context) => {
|
|
225
225
|
if (output.statusCode >= 300) {
|
|
226
|
-
return
|
|
226
|
+
return de_DescribeEntityAggregatesCommandError(output, context);
|
|
227
227
|
}
|
|
228
228
|
const data = await parseBody(output.body, context);
|
|
229
229
|
let contents = {};
|
|
230
|
-
contents =
|
|
230
|
+
contents = de_DescribeEntityAggregatesResponse(data, context);
|
|
231
231
|
const response = {
|
|
232
232
|
$metadata: deserializeMetadata(output),
|
|
233
233
|
...contents,
|
|
234
234
|
};
|
|
235
235
|
return Promise.resolve(response);
|
|
236
236
|
};
|
|
237
|
-
const
|
|
237
|
+
const de_DescribeEntityAggregatesCommandError = async (output, context) => {
|
|
238
238
|
const parsedOutput = {
|
|
239
239
|
...output,
|
|
240
240
|
body: await parseErrorBody(output.body, context),
|
|
@@ -248,20 +248,20 @@ const deserializeAws_json1_1DescribeEntityAggregatesCommandError = async (output
|
|
|
248
248
|
errorCode,
|
|
249
249
|
});
|
|
250
250
|
};
|
|
251
|
-
export const
|
|
251
|
+
export const de_DescribeEventAggregatesCommand = async (output, context) => {
|
|
252
252
|
if (output.statusCode >= 300) {
|
|
253
|
-
return
|
|
253
|
+
return de_DescribeEventAggregatesCommandError(output, context);
|
|
254
254
|
}
|
|
255
255
|
const data = await parseBody(output.body, context);
|
|
256
256
|
let contents = {};
|
|
257
|
-
contents =
|
|
257
|
+
contents = de_DescribeEventAggregatesResponse(data, context);
|
|
258
258
|
const response = {
|
|
259
259
|
$metadata: deserializeMetadata(output),
|
|
260
260
|
...contents,
|
|
261
261
|
};
|
|
262
262
|
return Promise.resolve(response);
|
|
263
263
|
};
|
|
264
|
-
const
|
|
264
|
+
const de_DescribeEventAggregatesCommandError = async (output, context) => {
|
|
265
265
|
const parsedOutput = {
|
|
266
266
|
...output,
|
|
267
267
|
body: await parseErrorBody(output.body, context),
|
|
@@ -270,7 +270,7 @@ const deserializeAws_json1_1DescribeEventAggregatesCommandError = async (output,
|
|
|
270
270
|
switch (errorCode) {
|
|
271
271
|
case "InvalidPaginationToken":
|
|
272
272
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
273
|
-
throw await
|
|
273
|
+
throw await de_InvalidPaginationTokenRes(parsedOutput, context);
|
|
274
274
|
default:
|
|
275
275
|
const parsedBody = parsedOutput.body;
|
|
276
276
|
throwDefaultError({
|
|
@@ -281,20 +281,20 @@ const deserializeAws_json1_1DescribeEventAggregatesCommandError = async (output,
|
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
|
-
export const
|
|
284
|
+
export const de_DescribeEventDetailsCommand = async (output, context) => {
|
|
285
285
|
if (output.statusCode >= 300) {
|
|
286
|
-
return
|
|
286
|
+
return de_DescribeEventDetailsCommandError(output, context);
|
|
287
287
|
}
|
|
288
288
|
const data = await parseBody(output.body, context);
|
|
289
289
|
let contents = {};
|
|
290
|
-
contents =
|
|
290
|
+
contents = de_DescribeEventDetailsResponse(data, context);
|
|
291
291
|
const response = {
|
|
292
292
|
$metadata: deserializeMetadata(output),
|
|
293
293
|
...contents,
|
|
294
294
|
};
|
|
295
295
|
return Promise.resolve(response);
|
|
296
296
|
};
|
|
297
|
-
const
|
|
297
|
+
const de_DescribeEventDetailsCommandError = async (output, context) => {
|
|
298
298
|
const parsedOutput = {
|
|
299
299
|
...output,
|
|
300
300
|
body: await parseErrorBody(output.body, context),
|
|
@@ -303,7 +303,7 @@ const deserializeAws_json1_1DescribeEventDetailsCommandError = async (output, co
|
|
|
303
303
|
switch (errorCode) {
|
|
304
304
|
case "UnsupportedLocale":
|
|
305
305
|
case "com.amazonaws.health#UnsupportedLocale":
|
|
306
|
-
throw await
|
|
306
|
+
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
307
307
|
default:
|
|
308
308
|
const parsedBody = parsedOutput.body;
|
|
309
309
|
throwDefaultError({
|
|
@@ -314,20 +314,20 @@ const deserializeAws_json1_1DescribeEventDetailsCommandError = async (output, co
|
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
|
-
export const
|
|
317
|
+
export const de_DescribeEventDetailsForOrganizationCommand = async (output, context) => {
|
|
318
318
|
if (output.statusCode >= 300) {
|
|
319
|
-
return
|
|
319
|
+
return de_DescribeEventDetailsForOrganizationCommandError(output, context);
|
|
320
320
|
}
|
|
321
321
|
const data = await parseBody(output.body, context);
|
|
322
322
|
let contents = {};
|
|
323
|
-
contents =
|
|
323
|
+
contents = de_DescribeEventDetailsForOrganizationResponse(data, context);
|
|
324
324
|
const response = {
|
|
325
325
|
$metadata: deserializeMetadata(output),
|
|
326
326
|
...contents,
|
|
327
327
|
};
|
|
328
328
|
return Promise.resolve(response);
|
|
329
329
|
};
|
|
330
|
-
const
|
|
330
|
+
const de_DescribeEventDetailsForOrganizationCommandError = async (output, context) => {
|
|
331
331
|
const parsedOutput = {
|
|
332
332
|
...output,
|
|
333
333
|
body: await parseErrorBody(output.body, context),
|
|
@@ -336,7 +336,7 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError = as
|
|
|
336
336
|
switch (errorCode) {
|
|
337
337
|
case "UnsupportedLocale":
|
|
338
338
|
case "com.amazonaws.health#UnsupportedLocale":
|
|
339
|
-
throw await
|
|
339
|
+
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
340
340
|
default:
|
|
341
341
|
const parsedBody = parsedOutput.body;
|
|
342
342
|
throwDefaultError({
|
|
@@ -347,20 +347,20 @@ const deserializeAws_json1_1DescribeEventDetailsForOrganizationCommandError = as
|
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
|
-
export const
|
|
350
|
+
export const de_DescribeEventsCommand = async (output, context) => {
|
|
351
351
|
if (output.statusCode >= 300) {
|
|
352
|
-
return
|
|
352
|
+
return de_DescribeEventsCommandError(output, context);
|
|
353
353
|
}
|
|
354
354
|
const data = await parseBody(output.body, context);
|
|
355
355
|
let contents = {};
|
|
356
|
-
contents =
|
|
356
|
+
contents = de_DescribeEventsResponse(data, context);
|
|
357
357
|
const response = {
|
|
358
358
|
$metadata: deserializeMetadata(output),
|
|
359
359
|
...contents,
|
|
360
360
|
};
|
|
361
361
|
return Promise.resolve(response);
|
|
362
362
|
};
|
|
363
|
-
const
|
|
363
|
+
const de_DescribeEventsCommandError = async (output, context) => {
|
|
364
364
|
const parsedOutput = {
|
|
365
365
|
...output,
|
|
366
366
|
body: await parseErrorBody(output.body, context),
|
|
@@ -369,10 +369,10 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
369
369
|
switch (errorCode) {
|
|
370
370
|
case "InvalidPaginationToken":
|
|
371
371
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
372
|
-
throw await
|
|
372
|
+
throw await de_InvalidPaginationTokenRes(parsedOutput, context);
|
|
373
373
|
case "UnsupportedLocale":
|
|
374
374
|
case "com.amazonaws.health#UnsupportedLocale":
|
|
375
|
-
throw await
|
|
375
|
+
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
376
376
|
default:
|
|
377
377
|
const parsedBody = parsedOutput.body;
|
|
378
378
|
throwDefaultError({
|
|
@@ -383,20 +383,20 @@ const deserializeAws_json1_1DescribeEventsCommandError = async (output, context)
|
|
|
383
383
|
});
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
|
-
export const
|
|
386
|
+
export const de_DescribeEventsForOrganizationCommand = async (output, context) => {
|
|
387
387
|
if (output.statusCode >= 300) {
|
|
388
|
-
return
|
|
388
|
+
return de_DescribeEventsForOrganizationCommandError(output, context);
|
|
389
389
|
}
|
|
390
390
|
const data = await parseBody(output.body, context);
|
|
391
391
|
let contents = {};
|
|
392
|
-
contents =
|
|
392
|
+
contents = de_DescribeEventsForOrganizationResponse(data, context);
|
|
393
393
|
const response = {
|
|
394
394
|
$metadata: deserializeMetadata(output),
|
|
395
395
|
...contents,
|
|
396
396
|
};
|
|
397
397
|
return Promise.resolve(response);
|
|
398
398
|
};
|
|
399
|
-
const
|
|
399
|
+
const de_DescribeEventsForOrganizationCommandError = async (output, context) => {
|
|
400
400
|
const parsedOutput = {
|
|
401
401
|
...output,
|
|
402
402
|
body: await parseErrorBody(output.body, context),
|
|
@@ -405,10 +405,10 @@ const deserializeAws_json1_1DescribeEventsForOrganizationCommandError = async (o
|
|
|
405
405
|
switch (errorCode) {
|
|
406
406
|
case "InvalidPaginationToken":
|
|
407
407
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
408
|
-
throw await
|
|
408
|
+
throw await de_InvalidPaginationTokenRes(parsedOutput, context);
|
|
409
409
|
case "UnsupportedLocale":
|
|
410
410
|
case "com.amazonaws.health#UnsupportedLocale":
|
|
411
|
-
throw await
|
|
411
|
+
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
412
412
|
default:
|
|
413
413
|
const parsedBody = parsedOutput.body;
|
|
414
414
|
throwDefaultError({
|
|
@@ -419,20 +419,20 @@ const deserializeAws_json1_1DescribeEventsForOrganizationCommandError = async (o
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
};
|
|
422
|
-
export const
|
|
422
|
+
export const de_DescribeEventTypesCommand = async (output, context) => {
|
|
423
423
|
if (output.statusCode >= 300) {
|
|
424
|
-
return
|
|
424
|
+
return de_DescribeEventTypesCommandError(output, context);
|
|
425
425
|
}
|
|
426
426
|
const data = await parseBody(output.body, context);
|
|
427
427
|
let contents = {};
|
|
428
|
-
contents =
|
|
428
|
+
contents = de_DescribeEventTypesResponse(data, context);
|
|
429
429
|
const response = {
|
|
430
430
|
$metadata: deserializeMetadata(output),
|
|
431
431
|
...contents,
|
|
432
432
|
};
|
|
433
433
|
return Promise.resolve(response);
|
|
434
434
|
};
|
|
435
|
-
const
|
|
435
|
+
const de_DescribeEventTypesCommandError = async (output, context) => {
|
|
436
436
|
const parsedOutput = {
|
|
437
437
|
...output,
|
|
438
438
|
body: await parseErrorBody(output.body, context),
|
|
@@ -441,10 +441,10 @@ const deserializeAws_json1_1DescribeEventTypesCommandError = async (output, cont
|
|
|
441
441
|
switch (errorCode) {
|
|
442
442
|
case "InvalidPaginationToken":
|
|
443
443
|
case "com.amazonaws.health#InvalidPaginationToken":
|
|
444
|
-
throw await
|
|
444
|
+
throw await de_InvalidPaginationTokenRes(parsedOutput, context);
|
|
445
445
|
case "UnsupportedLocale":
|
|
446
446
|
case "com.amazonaws.health#UnsupportedLocale":
|
|
447
|
-
throw await
|
|
447
|
+
throw await de_UnsupportedLocaleRes(parsedOutput, context);
|
|
448
448
|
default:
|
|
449
449
|
const parsedBody = parsedOutput.body;
|
|
450
450
|
throwDefaultError({
|
|
@@ -455,20 +455,20 @@ const deserializeAws_json1_1DescribeEventTypesCommandError = async (output, cont
|
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
|
-
export const
|
|
458
|
+
export const de_DescribeHealthServiceStatusForOrganizationCommand = async (output, context) => {
|
|
459
459
|
if (output.statusCode >= 300) {
|
|
460
|
-
return
|
|
460
|
+
return de_DescribeHealthServiceStatusForOrganizationCommandError(output, context);
|
|
461
461
|
}
|
|
462
462
|
const data = await parseBody(output.body, context);
|
|
463
463
|
let contents = {};
|
|
464
|
-
contents =
|
|
464
|
+
contents = de_DescribeHealthServiceStatusForOrganizationResponse(data, context);
|
|
465
465
|
const response = {
|
|
466
466
|
$metadata: deserializeMetadata(output),
|
|
467
467
|
...contents,
|
|
468
468
|
};
|
|
469
469
|
return Promise.resolve(response);
|
|
470
470
|
};
|
|
471
|
-
const
|
|
471
|
+
const de_DescribeHealthServiceStatusForOrganizationCommandError = async (output, context) => {
|
|
472
472
|
const parsedOutput = {
|
|
473
473
|
...output,
|
|
474
474
|
body: await parseErrorBody(output.body, context),
|
|
@@ -482,9 +482,9 @@ const deserializeAws_json1_1DescribeHealthServiceStatusForOrganizationCommandErr
|
|
|
482
482
|
errorCode,
|
|
483
483
|
});
|
|
484
484
|
};
|
|
485
|
-
export const
|
|
485
|
+
export const de_DisableHealthServiceAccessForOrganizationCommand = async (output, context) => {
|
|
486
486
|
if (output.statusCode >= 300) {
|
|
487
|
-
return
|
|
487
|
+
return de_DisableHealthServiceAccessForOrganizationCommandError(output, context);
|
|
488
488
|
}
|
|
489
489
|
await collectBody(output.body, context);
|
|
490
490
|
const response = {
|
|
@@ -492,7 +492,7 @@ export const deserializeAws_json1_1DisableHealthServiceAccessForOrganizationComm
|
|
|
492
492
|
};
|
|
493
493
|
return Promise.resolve(response);
|
|
494
494
|
};
|
|
495
|
-
const
|
|
495
|
+
const de_DisableHealthServiceAccessForOrganizationCommandError = async (output, context) => {
|
|
496
496
|
const parsedOutput = {
|
|
497
497
|
...output,
|
|
498
498
|
body: await parseErrorBody(output.body, context),
|
|
@@ -501,7 +501,7 @@ const deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandErro
|
|
|
501
501
|
switch (errorCode) {
|
|
502
502
|
case "ConcurrentModificationException":
|
|
503
503
|
case "com.amazonaws.health#ConcurrentModificationException":
|
|
504
|
-
throw await
|
|
504
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
505
505
|
default:
|
|
506
506
|
const parsedBody = parsedOutput.body;
|
|
507
507
|
throwDefaultError({
|
|
@@ -512,9 +512,9 @@ const deserializeAws_json1_1DisableHealthServiceAccessForOrganizationCommandErro
|
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
|
-
export const
|
|
515
|
+
export const de_EnableHealthServiceAccessForOrganizationCommand = async (output, context) => {
|
|
516
516
|
if (output.statusCode >= 300) {
|
|
517
|
-
return
|
|
517
|
+
return de_EnableHealthServiceAccessForOrganizationCommandError(output, context);
|
|
518
518
|
}
|
|
519
519
|
await collectBody(output.body, context);
|
|
520
520
|
const response = {
|
|
@@ -522,7 +522,7 @@ export const deserializeAws_json1_1EnableHealthServiceAccessForOrganizationComma
|
|
|
522
522
|
};
|
|
523
523
|
return Promise.resolve(response);
|
|
524
524
|
};
|
|
525
|
-
const
|
|
525
|
+
const de_EnableHealthServiceAccessForOrganizationCommandError = async (output, context) => {
|
|
526
526
|
const parsedOutput = {
|
|
527
527
|
...output,
|
|
528
528
|
body: await parseErrorBody(output.body, context),
|
|
@@ -531,7 +531,7 @@ const deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError
|
|
|
531
531
|
switch (errorCode) {
|
|
532
532
|
case "ConcurrentModificationException":
|
|
533
533
|
case "com.amazonaws.health#ConcurrentModificationException":
|
|
534
|
-
throw await
|
|
534
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
535
535
|
default:
|
|
536
536
|
const parsedBody = parsedOutput.body;
|
|
537
537
|
throwDefaultError({
|
|
@@ -542,331 +542,309 @@ const deserializeAws_json1_1EnableHealthServiceAccessForOrganizationCommandError
|
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
544
|
};
|
|
545
|
-
const
|
|
545
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
546
546
|
const body = parsedOutput.body;
|
|
547
|
-
const deserialized =
|
|
547
|
+
const deserialized = de_ConcurrentModificationException(body, context);
|
|
548
548
|
const exception = new ConcurrentModificationException({
|
|
549
549
|
$metadata: deserializeMetadata(parsedOutput),
|
|
550
550
|
...deserialized,
|
|
551
551
|
});
|
|
552
552
|
return __decorateServiceException(exception, body);
|
|
553
553
|
};
|
|
554
|
-
const
|
|
554
|
+
const de_InvalidPaginationTokenRes = async (parsedOutput, context) => {
|
|
555
555
|
const body = parsedOutput.body;
|
|
556
|
-
const deserialized =
|
|
556
|
+
const deserialized = de_InvalidPaginationToken(body, context);
|
|
557
557
|
const exception = new InvalidPaginationToken({
|
|
558
558
|
$metadata: deserializeMetadata(parsedOutput),
|
|
559
559
|
...deserialized,
|
|
560
560
|
});
|
|
561
561
|
return __decorateServiceException(exception, body);
|
|
562
562
|
};
|
|
563
|
-
const
|
|
563
|
+
const de_UnsupportedLocaleRes = async (parsedOutput, context) => {
|
|
564
564
|
const body = parsedOutput.body;
|
|
565
|
-
const deserialized =
|
|
565
|
+
const deserialized = de_UnsupportedLocale(body, context);
|
|
566
566
|
const exception = new UnsupportedLocale({
|
|
567
567
|
$metadata: deserializeMetadata(parsedOutput),
|
|
568
568
|
...deserialized,
|
|
569
569
|
});
|
|
570
570
|
return __decorateServiceException(exception, body);
|
|
571
571
|
};
|
|
572
|
-
const
|
|
572
|
+
const se_availabilityZones = (input, context) => {
|
|
573
573
|
return input
|
|
574
574
|
.filter((e) => e != null)
|
|
575
575
|
.map((entry) => {
|
|
576
576
|
return entry;
|
|
577
577
|
});
|
|
578
578
|
};
|
|
579
|
-
const
|
|
579
|
+
const se_awsAccountIdsList = (input, context) => {
|
|
580
580
|
return input
|
|
581
581
|
.filter((e) => e != null)
|
|
582
582
|
.map((entry) => {
|
|
583
583
|
return entry;
|
|
584
584
|
});
|
|
585
585
|
};
|
|
586
|
-
const
|
|
586
|
+
const se_DateTimeRange = (input, context) => {
|
|
587
587
|
return {
|
|
588
588
|
...(input.from != null && { from: Math.round(input.from.getTime() / 1000) }),
|
|
589
589
|
...(input.to != null && { to: Math.round(input.to.getTime() / 1000) }),
|
|
590
590
|
};
|
|
591
591
|
};
|
|
592
|
-
const
|
|
592
|
+
const se_dateTimeRangeList = (input, context) => {
|
|
593
593
|
return input
|
|
594
594
|
.filter((e) => e != null)
|
|
595
595
|
.map((entry) => {
|
|
596
|
-
return
|
|
596
|
+
return se_DateTimeRange(entry, context);
|
|
597
597
|
});
|
|
598
598
|
};
|
|
599
|
-
const
|
|
599
|
+
const se_DescribeAffectedAccountsForOrganizationRequest = (input, context) => {
|
|
600
600
|
return {
|
|
601
601
|
...(input.eventArn != null && { eventArn: input.eventArn }),
|
|
602
602
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
603
603
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
604
604
|
};
|
|
605
605
|
};
|
|
606
|
-
const
|
|
606
|
+
const se_DescribeAffectedEntitiesForOrganizationRequest = (input, context) => {
|
|
607
607
|
return {
|
|
608
608
|
...(input.locale != null && { locale: input.locale }),
|
|
609
609
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
610
610
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
611
611
|
...(input.organizationEntityFilters != null && {
|
|
612
|
-
organizationEntityFilters:
|
|
612
|
+
organizationEntityFilters: se_OrganizationEntityFiltersList(input.organizationEntityFilters, context),
|
|
613
613
|
}),
|
|
614
614
|
};
|
|
615
615
|
};
|
|
616
|
-
const
|
|
616
|
+
const se_DescribeAffectedEntitiesRequest = (input, context) => {
|
|
617
617
|
return {
|
|
618
|
-
...(input.filter != null && { filter:
|
|
618
|
+
...(input.filter != null && { filter: se_EntityFilter(input.filter, context) }),
|
|
619
619
|
...(input.locale != null && { locale: input.locale }),
|
|
620
620
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
621
621
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
622
622
|
};
|
|
623
623
|
};
|
|
624
|
-
const
|
|
624
|
+
const se_DescribeEntityAggregatesRequest = (input, context) => {
|
|
625
625
|
return {
|
|
626
|
-
...(input.eventArns != null && { eventArns:
|
|
626
|
+
...(input.eventArns != null && { eventArns: se_EventArnsList(input.eventArns, context) }),
|
|
627
627
|
};
|
|
628
628
|
};
|
|
629
|
-
const
|
|
629
|
+
const se_DescribeEventAggregatesRequest = (input, context) => {
|
|
630
630
|
return {
|
|
631
631
|
...(input.aggregateField != null && { aggregateField: input.aggregateField }),
|
|
632
|
-
...(input.filter != null && { filter:
|
|
632
|
+
...(input.filter != null && { filter: se_EventFilter(input.filter, context) }),
|
|
633
633
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
634
634
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
635
635
|
};
|
|
636
636
|
};
|
|
637
|
-
const
|
|
637
|
+
const se_DescribeEventDetailsForOrganizationRequest = (input, context) => {
|
|
638
638
|
return {
|
|
639
639
|
...(input.locale != null && { locale: input.locale }),
|
|
640
640
|
...(input.organizationEventDetailFilters != null && {
|
|
641
|
-
organizationEventDetailFilters:
|
|
641
|
+
organizationEventDetailFilters: se_OrganizationEventDetailFiltersList(input.organizationEventDetailFilters, context),
|
|
642
642
|
}),
|
|
643
643
|
};
|
|
644
644
|
};
|
|
645
|
-
const
|
|
645
|
+
const se_DescribeEventDetailsRequest = (input, context) => {
|
|
646
646
|
return {
|
|
647
|
-
...(input.eventArns != null && { eventArns:
|
|
647
|
+
...(input.eventArns != null && { eventArns: se_eventArnList(input.eventArns, context) }),
|
|
648
648
|
...(input.locale != null && { locale: input.locale }),
|
|
649
649
|
};
|
|
650
650
|
};
|
|
651
|
-
const
|
|
651
|
+
const se_DescribeEventsForOrganizationRequest = (input, context) => {
|
|
652
652
|
return {
|
|
653
|
-
...(input.filter != null && { filter:
|
|
653
|
+
...(input.filter != null && { filter: se_OrganizationEventFilter(input.filter, context) }),
|
|
654
654
|
...(input.locale != null && { locale: input.locale }),
|
|
655
655
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
656
656
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
657
657
|
};
|
|
658
658
|
};
|
|
659
|
-
const
|
|
659
|
+
const se_DescribeEventsRequest = (input, context) => {
|
|
660
660
|
return {
|
|
661
|
-
...(input.filter != null && { filter:
|
|
661
|
+
...(input.filter != null && { filter: se_EventFilter(input.filter, context) }),
|
|
662
662
|
...(input.locale != null && { locale: input.locale }),
|
|
663
663
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
664
664
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
665
665
|
};
|
|
666
666
|
};
|
|
667
|
-
const
|
|
667
|
+
const se_DescribeEventTypesRequest = (input, context) => {
|
|
668
668
|
return {
|
|
669
|
-
...(input.filter != null && { filter:
|
|
669
|
+
...(input.filter != null && { filter: se_EventTypeFilter(input.filter, context) }),
|
|
670
670
|
...(input.locale != null && { locale: input.locale }),
|
|
671
671
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
672
672
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
673
673
|
};
|
|
674
674
|
};
|
|
675
|
-
const
|
|
675
|
+
const se_entityArnList = (input, context) => {
|
|
676
676
|
return input
|
|
677
677
|
.filter((e) => e != null)
|
|
678
678
|
.map((entry) => {
|
|
679
679
|
return entry;
|
|
680
680
|
});
|
|
681
681
|
};
|
|
682
|
-
const
|
|
682
|
+
const se_EntityFilter = (input, context) => {
|
|
683
683
|
return {
|
|
684
|
-
...(input.entityArns != null && { entityArns:
|
|
685
|
-
...(input.entityValues != null && {
|
|
686
|
-
|
|
687
|
-
}),
|
|
688
|
-
...(input.
|
|
689
|
-
...(input.
|
|
690
|
-
lastUpdatedTimes: serializeAws_json1_1dateTimeRangeList(input.lastUpdatedTimes, context),
|
|
691
|
-
}),
|
|
692
|
-
...(input.statusCodes != null && {
|
|
693
|
-
statusCodes: serializeAws_json1_1entityStatusCodeList(input.statusCodes, context),
|
|
694
|
-
}),
|
|
695
|
-
...(input.tags != null && { tags: serializeAws_json1_1tagFilter(input.tags, context) }),
|
|
684
|
+
...(input.entityArns != null && { entityArns: se_entityArnList(input.entityArns, context) }),
|
|
685
|
+
...(input.entityValues != null && { entityValues: se_entityValueList(input.entityValues, context) }),
|
|
686
|
+
...(input.eventArns != null && { eventArns: se_eventArnList(input.eventArns, context) }),
|
|
687
|
+
...(input.lastUpdatedTimes != null && { lastUpdatedTimes: se_dateTimeRangeList(input.lastUpdatedTimes, context) }),
|
|
688
|
+
...(input.statusCodes != null && { statusCodes: se_entityStatusCodeList(input.statusCodes, context) }),
|
|
689
|
+
...(input.tags != null && { tags: se_tagFilter(input.tags, context) }),
|
|
696
690
|
};
|
|
697
691
|
};
|
|
698
|
-
const
|
|
692
|
+
const se_entityStatusCodeList = (input, context) => {
|
|
699
693
|
return input
|
|
700
694
|
.filter((e) => e != null)
|
|
701
695
|
.map((entry) => {
|
|
702
696
|
return entry;
|
|
703
697
|
});
|
|
704
698
|
};
|
|
705
|
-
const
|
|
699
|
+
const se_entityValueList = (input, context) => {
|
|
706
700
|
return input
|
|
707
701
|
.filter((e) => e != null)
|
|
708
702
|
.map((entry) => {
|
|
709
703
|
return entry;
|
|
710
704
|
});
|
|
711
705
|
};
|
|
712
|
-
const
|
|
706
|
+
const se_EventAccountFilter = (input, context) => {
|
|
713
707
|
return {
|
|
714
708
|
...(input.awsAccountId != null && { awsAccountId: input.awsAccountId }),
|
|
715
709
|
...(input.eventArn != null && { eventArn: input.eventArn }),
|
|
716
710
|
};
|
|
717
711
|
};
|
|
718
|
-
const
|
|
712
|
+
const se_eventArnList = (input, context) => {
|
|
719
713
|
return input
|
|
720
714
|
.filter((e) => e != null)
|
|
721
715
|
.map((entry) => {
|
|
722
716
|
return entry;
|
|
723
717
|
});
|
|
724
718
|
};
|
|
725
|
-
const
|
|
719
|
+
const se_EventArnsList = (input, context) => {
|
|
726
720
|
return input
|
|
727
721
|
.filter((e) => e != null)
|
|
728
722
|
.map((entry) => {
|
|
729
723
|
return entry;
|
|
730
724
|
});
|
|
731
725
|
};
|
|
732
|
-
const
|
|
726
|
+
const se_EventFilter = (input, context) => {
|
|
733
727
|
return {
|
|
734
728
|
...(input.availabilityZones != null && {
|
|
735
|
-
availabilityZones:
|
|
729
|
+
availabilityZones: se_availabilityZones(input.availabilityZones, context),
|
|
736
730
|
}),
|
|
737
|
-
...(input.endTimes != null && { endTimes:
|
|
738
|
-
...(input.entityArns != null && { entityArns:
|
|
739
|
-
...(input.entityValues != null && {
|
|
740
|
-
|
|
741
|
-
}),
|
|
742
|
-
...(input.eventArns != null && { eventArns: serializeAws_json1_1eventArnList(input.eventArns, context) }),
|
|
731
|
+
...(input.endTimes != null && { endTimes: se_dateTimeRangeList(input.endTimes, context) }),
|
|
732
|
+
...(input.entityArns != null && { entityArns: se_entityArnList(input.entityArns, context) }),
|
|
733
|
+
...(input.entityValues != null && { entityValues: se_entityValueList(input.entityValues, context) }),
|
|
734
|
+
...(input.eventArns != null && { eventArns: se_eventArnList(input.eventArns, context) }),
|
|
743
735
|
...(input.eventStatusCodes != null && {
|
|
744
|
-
eventStatusCodes:
|
|
736
|
+
eventStatusCodes: se_eventStatusCodeList(input.eventStatusCodes, context),
|
|
745
737
|
}),
|
|
746
738
|
...(input.eventTypeCategories != null && {
|
|
747
|
-
eventTypeCategories:
|
|
748
|
-
}),
|
|
749
|
-
...(input.eventTypeCodes != null && {
|
|
750
|
-
eventTypeCodes: serializeAws_json1_1eventTypeList2(input.eventTypeCodes, context),
|
|
751
|
-
}),
|
|
752
|
-
...(input.lastUpdatedTimes != null && {
|
|
753
|
-
lastUpdatedTimes: serializeAws_json1_1dateTimeRangeList(input.lastUpdatedTimes, context),
|
|
739
|
+
eventTypeCategories: se_eventTypeCategoryList2(input.eventTypeCategories, context),
|
|
754
740
|
}),
|
|
755
|
-
...(input.
|
|
756
|
-
...(input.
|
|
757
|
-
...(input.
|
|
758
|
-
...(input.
|
|
741
|
+
...(input.eventTypeCodes != null && { eventTypeCodes: se_eventTypeList2(input.eventTypeCodes, context) }),
|
|
742
|
+
...(input.lastUpdatedTimes != null && { lastUpdatedTimes: se_dateTimeRangeList(input.lastUpdatedTimes, context) }),
|
|
743
|
+
...(input.regions != null && { regions: se_regionList(input.regions, context) }),
|
|
744
|
+
...(input.services != null && { services: se_serviceList(input.services, context) }),
|
|
745
|
+
...(input.startTimes != null && { startTimes: se_dateTimeRangeList(input.startTimes, context) }),
|
|
746
|
+
...(input.tags != null && { tags: se_tagFilter(input.tags, context) }),
|
|
759
747
|
};
|
|
760
748
|
};
|
|
761
|
-
const
|
|
749
|
+
const se_eventStatusCodeList = (input, context) => {
|
|
762
750
|
return input
|
|
763
751
|
.filter((e) => e != null)
|
|
764
752
|
.map((entry) => {
|
|
765
753
|
return entry;
|
|
766
754
|
});
|
|
767
755
|
};
|
|
768
|
-
const
|
|
756
|
+
const se_EventTypeCategoryList = (input, context) => {
|
|
769
757
|
return input
|
|
770
758
|
.filter((e) => e != null)
|
|
771
759
|
.map((entry) => {
|
|
772
760
|
return entry;
|
|
773
761
|
});
|
|
774
762
|
};
|
|
775
|
-
const
|
|
763
|
+
const se_eventTypeCategoryList2 = (input, context) => {
|
|
776
764
|
return input
|
|
777
765
|
.filter((e) => e != null)
|
|
778
766
|
.map((entry) => {
|
|
779
767
|
return entry;
|
|
780
768
|
});
|
|
781
769
|
};
|
|
782
|
-
const
|
|
770
|
+
const se_EventTypeCodeList = (input, context) => {
|
|
783
771
|
return input
|
|
784
772
|
.filter((e) => e != null)
|
|
785
773
|
.map((entry) => {
|
|
786
774
|
return entry;
|
|
787
775
|
});
|
|
788
776
|
};
|
|
789
|
-
const
|
|
777
|
+
const se_EventTypeFilter = (input, context) => {
|
|
790
778
|
return {
|
|
791
779
|
...(input.eventTypeCategories != null && {
|
|
792
|
-
eventTypeCategories:
|
|
780
|
+
eventTypeCategories: se_EventTypeCategoryList(input.eventTypeCategories, context),
|
|
793
781
|
}),
|
|
794
|
-
...(input.eventTypeCodes != null && {
|
|
795
|
-
|
|
796
|
-
}),
|
|
797
|
-
...(input.services != null && { services: serializeAws_json1_1serviceList(input.services, context) }),
|
|
782
|
+
...(input.eventTypeCodes != null && { eventTypeCodes: se_EventTypeCodeList(input.eventTypeCodes, context) }),
|
|
783
|
+
...(input.services != null && { services: se_serviceList(input.services, context) }),
|
|
798
784
|
};
|
|
799
785
|
};
|
|
800
|
-
const
|
|
786
|
+
const se_eventTypeList2 = (input, context) => {
|
|
801
787
|
return input
|
|
802
788
|
.filter((e) => e != null)
|
|
803
789
|
.map((entry) => {
|
|
804
790
|
return entry;
|
|
805
791
|
});
|
|
806
792
|
};
|
|
807
|
-
const
|
|
793
|
+
const se_OrganizationEntityFiltersList = (input, context) => {
|
|
808
794
|
return input
|
|
809
795
|
.filter((e) => e != null)
|
|
810
796
|
.map((entry) => {
|
|
811
|
-
return
|
|
797
|
+
return se_EventAccountFilter(entry, context);
|
|
812
798
|
});
|
|
813
799
|
};
|
|
814
|
-
const
|
|
800
|
+
const se_OrganizationEventDetailFiltersList = (input, context) => {
|
|
815
801
|
return input
|
|
816
802
|
.filter((e) => e != null)
|
|
817
803
|
.map((entry) => {
|
|
818
|
-
return
|
|
804
|
+
return se_EventAccountFilter(entry, context);
|
|
819
805
|
});
|
|
820
806
|
};
|
|
821
|
-
const
|
|
807
|
+
const se_OrganizationEventFilter = (input, context) => {
|
|
822
808
|
return {
|
|
823
|
-
...(input.awsAccountIds != null && {
|
|
824
|
-
|
|
825
|
-
}),
|
|
826
|
-
...(input.
|
|
827
|
-
...(input.entityArns != null && { entityArns: serializeAws_json1_1entityArnList(input.entityArns, context) }),
|
|
828
|
-
...(input.entityValues != null && {
|
|
829
|
-
entityValues: serializeAws_json1_1entityValueList(input.entityValues, context),
|
|
830
|
-
}),
|
|
809
|
+
...(input.awsAccountIds != null && { awsAccountIds: se_awsAccountIdsList(input.awsAccountIds, context) }),
|
|
810
|
+
...(input.endTime != null && { endTime: se_DateTimeRange(input.endTime, context) }),
|
|
811
|
+
...(input.entityArns != null && { entityArns: se_entityArnList(input.entityArns, context) }),
|
|
812
|
+
...(input.entityValues != null && { entityValues: se_entityValueList(input.entityValues, context) }),
|
|
831
813
|
...(input.eventStatusCodes != null && {
|
|
832
|
-
eventStatusCodes:
|
|
814
|
+
eventStatusCodes: se_eventStatusCodeList(input.eventStatusCodes, context),
|
|
833
815
|
}),
|
|
834
816
|
...(input.eventTypeCategories != null && {
|
|
835
|
-
eventTypeCategories:
|
|
836
|
-
}),
|
|
837
|
-
...(input.eventTypeCodes != null && {
|
|
838
|
-
eventTypeCodes: serializeAws_json1_1eventTypeList2(input.eventTypeCodes, context),
|
|
839
|
-
}),
|
|
840
|
-
...(input.lastUpdatedTime != null && {
|
|
841
|
-
lastUpdatedTime: serializeAws_json1_1DateTimeRange(input.lastUpdatedTime, context),
|
|
817
|
+
eventTypeCategories: se_eventTypeCategoryList2(input.eventTypeCategories, context),
|
|
842
818
|
}),
|
|
843
|
-
...(input.
|
|
844
|
-
...(input.
|
|
845
|
-
...(input.
|
|
819
|
+
...(input.eventTypeCodes != null && { eventTypeCodes: se_eventTypeList2(input.eventTypeCodes, context) }),
|
|
820
|
+
...(input.lastUpdatedTime != null && { lastUpdatedTime: se_DateTimeRange(input.lastUpdatedTime, context) }),
|
|
821
|
+
...(input.regions != null && { regions: se_regionList(input.regions, context) }),
|
|
822
|
+
...(input.services != null && { services: se_serviceList(input.services, context) }),
|
|
823
|
+
...(input.startTime != null && { startTime: se_DateTimeRange(input.startTime, context) }),
|
|
846
824
|
};
|
|
847
825
|
};
|
|
848
|
-
const
|
|
826
|
+
const se_regionList = (input, context) => {
|
|
849
827
|
return input
|
|
850
828
|
.filter((e) => e != null)
|
|
851
829
|
.map((entry) => {
|
|
852
830
|
return entry;
|
|
853
831
|
});
|
|
854
832
|
};
|
|
855
|
-
const
|
|
833
|
+
const se_serviceList = (input, context) => {
|
|
856
834
|
return input
|
|
857
835
|
.filter((e) => e != null)
|
|
858
836
|
.map((entry) => {
|
|
859
837
|
return entry;
|
|
860
838
|
});
|
|
861
839
|
};
|
|
862
|
-
const
|
|
840
|
+
const se_tagFilter = (input, context) => {
|
|
863
841
|
return input
|
|
864
842
|
.filter((e) => e != null)
|
|
865
843
|
.map((entry) => {
|
|
866
|
-
return
|
|
844
|
+
return se_tagSet(entry, context);
|
|
867
845
|
});
|
|
868
846
|
};
|
|
869
|
-
const
|
|
847
|
+
const se_tagSet = (input, context) => {
|
|
870
848
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
871
849
|
if (value === null) {
|
|
872
850
|
return acc;
|
|
@@ -875,7 +853,7 @@ const serializeAws_json1_1tagSet = (input, context) => {
|
|
|
875
853
|
return acc;
|
|
876
854
|
}, {});
|
|
877
855
|
};
|
|
878
|
-
const
|
|
856
|
+
const de_affectedAccountsList = (output, context) => {
|
|
879
857
|
const retVal = (output || [])
|
|
880
858
|
.filter((e) => e != null)
|
|
881
859
|
.map((entry) => {
|
|
@@ -886,7 +864,7 @@ const deserializeAws_json1_1affectedAccountsList = (output, context) => {
|
|
|
886
864
|
});
|
|
887
865
|
return retVal;
|
|
888
866
|
};
|
|
889
|
-
const
|
|
867
|
+
const de_AffectedEntity = (output, context) => {
|
|
890
868
|
return {
|
|
891
869
|
awsAccountId: __expectString(output.awsAccountId),
|
|
892
870
|
entityArn: __expectString(output.entityArn),
|
|
@@ -897,180 +875,168 @@ const deserializeAws_json1_1AffectedEntity = (output, context) => {
|
|
|
897
875
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedTime)))
|
|
898
876
|
: undefined,
|
|
899
877
|
statusCode: __expectString(output.statusCode),
|
|
900
|
-
tags: output.tags != null ?
|
|
878
|
+
tags: output.tags != null ? de_tagSet(output.tags, context) : undefined,
|
|
901
879
|
};
|
|
902
880
|
};
|
|
903
|
-
const
|
|
881
|
+
const de_ConcurrentModificationException = (output, context) => {
|
|
904
882
|
return {
|
|
905
883
|
message: __expectString(output.message),
|
|
906
884
|
};
|
|
907
885
|
};
|
|
908
|
-
const
|
|
886
|
+
const de_DescribeAffectedAccountsForOrganizationResponse = (output, context) => {
|
|
909
887
|
return {
|
|
910
|
-
affectedAccounts: output.affectedAccounts != null
|
|
911
|
-
? deserializeAws_json1_1affectedAccountsList(output.affectedAccounts, context)
|
|
912
|
-
: undefined,
|
|
888
|
+
affectedAccounts: output.affectedAccounts != null ? de_affectedAccountsList(output.affectedAccounts, context) : undefined,
|
|
913
889
|
eventScopeCode: __expectString(output.eventScopeCode),
|
|
914
890
|
nextToken: __expectString(output.nextToken),
|
|
915
891
|
};
|
|
916
892
|
};
|
|
917
|
-
const
|
|
893
|
+
const de_DescribeAffectedEntitiesForOrganizationFailedSet = (output, context) => {
|
|
918
894
|
const retVal = (output || [])
|
|
919
895
|
.filter((e) => e != null)
|
|
920
896
|
.map((entry) => {
|
|
921
897
|
if (entry === null) {
|
|
922
898
|
return null;
|
|
923
899
|
}
|
|
924
|
-
return
|
|
900
|
+
return de_OrganizationAffectedEntitiesErrorItem(entry, context);
|
|
925
901
|
});
|
|
926
902
|
return retVal;
|
|
927
903
|
};
|
|
928
|
-
const
|
|
904
|
+
const de_DescribeAffectedEntitiesForOrganizationResponse = (output, context) => {
|
|
929
905
|
return {
|
|
930
|
-
entities: output.entities != null ?
|
|
906
|
+
entities: output.entities != null ? de_EntityList(output.entities, context) : undefined,
|
|
931
907
|
failedSet: output.failedSet != null
|
|
932
|
-
?
|
|
908
|
+
? de_DescribeAffectedEntitiesForOrganizationFailedSet(output.failedSet, context)
|
|
933
909
|
: undefined,
|
|
934
910
|
nextToken: __expectString(output.nextToken),
|
|
935
911
|
};
|
|
936
912
|
};
|
|
937
|
-
const
|
|
913
|
+
const de_DescribeAffectedEntitiesResponse = (output, context) => {
|
|
938
914
|
return {
|
|
939
|
-
entities: output.entities != null ?
|
|
915
|
+
entities: output.entities != null ? de_EntityList(output.entities, context) : undefined,
|
|
940
916
|
nextToken: __expectString(output.nextToken),
|
|
941
917
|
};
|
|
942
918
|
};
|
|
943
|
-
const
|
|
919
|
+
const de_DescribeEntityAggregatesResponse = (output, context) => {
|
|
944
920
|
return {
|
|
945
|
-
entityAggregates: output.entityAggregates != null
|
|
946
|
-
? deserializeAws_json1_1EntityAggregateList(output.entityAggregates, context)
|
|
947
|
-
: undefined,
|
|
921
|
+
entityAggregates: output.entityAggregates != null ? de_EntityAggregateList(output.entityAggregates, context) : undefined,
|
|
948
922
|
};
|
|
949
923
|
};
|
|
950
|
-
const
|
|
924
|
+
const de_DescribeEventAggregatesResponse = (output, context) => {
|
|
951
925
|
return {
|
|
952
|
-
eventAggregates: output.eventAggregates != null
|
|
953
|
-
? deserializeAws_json1_1EventAggregateList(output.eventAggregates, context)
|
|
954
|
-
: undefined,
|
|
926
|
+
eventAggregates: output.eventAggregates != null ? de_EventAggregateList(output.eventAggregates, context) : undefined,
|
|
955
927
|
nextToken: __expectString(output.nextToken),
|
|
956
928
|
};
|
|
957
929
|
};
|
|
958
|
-
const
|
|
930
|
+
const de_DescribeEventDetailsFailedSet = (output, context) => {
|
|
959
931
|
const retVal = (output || [])
|
|
960
932
|
.filter((e) => e != null)
|
|
961
933
|
.map((entry) => {
|
|
962
934
|
if (entry === null) {
|
|
963
935
|
return null;
|
|
964
936
|
}
|
|
965
|
-
return
|
|
937
|
+
return de_EventDetailsErrorItem(entry, context);
|
|
966
938
|
});
|
|
967
939
|
return retVal;
|
|
968
940
|
};
|
|
969
|
-
const
|
|
941
|
+
const de_DescribeEventDetailsForOrganizationFailedSet = (output, context) => {
|
|
970
942
|
const retVal = (output || [])
|
|
971
943
|
.filter((e) => e != null)
|
|
972
944
|
.map((entry) => {
|
|
973
945
|
if (entry === null) {
|
|
974
946
|
return null;
|
|
975
947
|
}
|
|
976
|
-
return
|
|
948
|
+
return de_OrganizationEventDetailsErrorItem(entry, context);
|
|
977
949
|
});
|
|
978
950
|
return retVal;
|
|
979
951
|
};
|
|
980
|
-
const
|
|
952
|
+
const de_DescribeEventDetailsForOrganizationResponse = (output, context) => {
|
|
981
953
|
return {
|
|
982
|
-
failedSet: output.failedSet != null
|
|
983
|
-
? deserializeAws_json1_1DescribeEventDetailsForOrganizationFailedSet(output.failedSet, context)
|
|
984
|
-
: undefined,
|
|
954
|
+
failedSet: output.failedSet != null ? de_DescribeEventDetailsForOrganizationFailedSet(output.failedSet, context) : undefined,
|
|
985
955
|
successfulSet: output.successfulSet != null
|
|
986
|
-
?
|
|
956
|
+
? de_DescribeEventDetailsForOrganizationSuccessfulSet(output.successfulSet, context)
|
|
987
957
|
: undefined,
|
|
988
958
|
};
|
|
989
959
|
};
|
|
990
|
-
const
|
|
960
|
+
const de_DescribeEventDetailsForOrganizationSuccessfulSet = (output, context) => {
|
|
991
961
|
const retVal = (output || [])
|
|
992
962
|
.filter((e) => e != null)
|
|
993
963
|
.map((entry) => {
|
|
994
964
|
if (entry === null) {
|
|
995
965
|
return null;
|
|
996
966
|
}
|
|
997
|
-
return
|
|
967
|
+
return de_OrganizationEventDetails(entry, context);
|
|
998
968
|
});
|
|
999
969
|
return retVal;
|
|
1000
970
|
};
|
|
1001
|
-
const
|
|
971
|
+
const de_DescribeEventDetailsResponse = (output, context) => {
|
|
1002
972
|
return {
|
|
1003
|
-
failedSet: output.failedSet != null
|
|
1004
|
-
|
|
1005
|
-
: undefined,
|
|
1006
|
-
successfulSet: output.successfulSet != null
|
|
1007
|
-
? deserializeAws_json1_1DescribeEventDetailsSuccessfulSet(output.successfulSet, context)
|
|
1008
|
-
: undefined,
|
|
973
|
+
failedSet: output.failedSet != null ? de_DescribeEventDetailsFailedSet(output.failedSet, context) : undefined,
|
|
974
|
+
successfulSet: output.successfulSet != null ? de_DescribeEventDetailsSuccessfulSet(output.successfulSet, context) : undefined,
|
|
1009
975
|
};
|
|
1010
976
|
};
|
|
1011
|
-
const
|
|
977
|
+
const de_DescribeEventDetailsSuccessfulSet = (output, context) => {
|
|
1012
978
|
const retVal = (output || [])
|
|
1013
979
|
.filter((e) => e != null)
|
|
1014
980
|
.map((entry) => {
|
|
1015
981
|
if (entry === null) {
|
|
1016
982
|
return null;
|
|
1017
983
|
}
|
|
1018
|
-
return
|
|
984
|
+
return de_EventDetails(entry, context);
|
|
1019
985
|
});
|
|
1020
986
|
return retVal;
|
|
1021
987
|
};
|
|
1022
|
-
const
|
|
988
|
+
const de_DescribeEventsForOrganizationResponse = (output, context) => {
|
|
1023
989
|
return {
|
|
1024
|
-
events: output.events != null ?
|
|
990
|
+
events: output.events != null ? de_OrganizationEventList(output.events, context) : undefined,
|
|
1025
991
|
nextToken: __expectString(output.nextToken),
|
|
1026
992
|
};
|
|
1027
993
|
};
|
|
1028
|
-
const
|
|
994
|
+
const de_DescribeEventsResponse = (output, context) => {
|
|
1029
995
|
return {
|
|
1030
|
-
events: output.events != null ?
|
|
996
|
+
events: output.events != null ? de_EventList(output.events, context) : undefined,
|
|
1031
997
|
nextToken: __expectString(output.nextToken),
|
|
1032
998
|
};
|
|
1033
999
|
};
|
|
1034
|
-
const
|
|
1000
|
+
const de_DescribeEventTypesResponse = (output, context) => {
|
|
1035
1001
|
return {
|
|
1036
|
-
eventTypes: output.eventTypes != null ?
|
|
1002
|
+
eventTypes: output.eventTypes != null ? de_EventTypeList(output.eventTypes, context) : undefined,
|
|
1037
1003
|
nextToken: __expectString(output.nextToken),
|
|
1038
1004
|
};
|
|
1039
1005
|
};
|
|
1040
|
-
const
|
|
1006
|
+
const de_DescribeHealthServiceStatusForOrganizationResponse = (output, context) => {
|
|
1041
1007
|
return {
|
|
1042
1008
|
healthServiceAccessStatusForOrganization: __expectString(output.healthServiceAccessStatusForOrganization),
|
|
1043
1009
|
};
|
|
1044
1010
|
};
|
|
1045
|
-
const
|
|
1011
|
+
const de_EntityAggregate = (output, context) => {
|
|
1046
1012
|
return {
|
|
1047
1013
|
count: __expectInt32(output.count),
|
|
1048
1014
|
eventArn: __expectString(output.eventArn),
|
|
1049
1015
|
};
|
|
1050
1016
|
};
|
|
1051
|
-
const
|
|
1017
|
+
const de_EntityAggregateList = (output, context) => {
|
|
1052
1018
|
const retVal = (output || [])
|
|
1053
1019
|
.filter((e) => e != null)
|
|
1054
1020
|
.map((entry) => {
|
|
1055
1021
|
if (entry === null) {
|
|
1056
1022
|
return null;
|
|
1057
1023
|
}
|
|
1058
|
-
return
|
|
1024
|
+
return de_EntityAggregate(entry, context);
|
|
1059
1025
|
});
|
|
1060
1026
|
return retVal;
|
|
1061
1027
|
};
|
|
1062
|
-
const
|
|
1028
|
+
const de_EntityList = (output, context) => {
|
|
1063
1029
|
const retVal = (output || [])
|
|
1064
1030
|
.filter((e) => e != null)
|
|
1065
1031
|
.map((entry) => {
|
|
1066
1032
|
if (entry === null) {
|
|
1067
1033
|
return null;
|
|
1068
1034
|
}
|
|
1069
|
-
return
|
|
1035
|
+
return de_AffectedEntity(entry, context);
|
|
1070
1036
|
});
|
|
1071
1037
|
return retVal;
|
|
1072
1038
|
};
|
|
1073
|
-
const
|
|
1039
|
+
const de_Event = (output, context) => {
|
|
1074
1040
|
return {
|
|
1075
1041
|
arn: __expectString(output.arn),
|
|
1076
1042
|
availabilityZone: __expectString(output.availabilityZone),
|
|
@@ -1087,56 +1053,54 @@ const deserializeAws_json1_1Event = (output, context) => {
|
|
|
1087
1053
|
statusCode: __expectString(output.statusCode),
|
|
1088
1054
|
};
|
|
1089
1055
|
};
|
|
1090
|
-
const
|
|
1056
|
+
const de_EventAggregate = (output, context) => {
|
|
1091
1057
|
return {
|
|
1092
1058
|
aggregateValue: __expectString(output.aggregateValue),
|
|
1093
1059
|
count: __expectInt32(output.count),
|
|
1094
1060
|
};
|
|
1095
1061
|
};
|
|
1096
|
-
const
|
|
1062
|
+
const de_EventAggregateList = (output, context) => {
|
|
1097
1063
|
const retVal = (output || [])
|
|
1098
1064
|
.filter((e) => e != null)
|
|
1099
1065
|
.map((entry) => {
|
|
1100
1066
|
if (entry === null) {
|
|
1101
1067
|
return null;
|
|
1102
1068
|
}
|
|
1103
|
-
return
|
|
1069
|
+
return de_EventAggregate(entry, context);
|
|
1104
1070
|
});
|
|
1105
1071
|
return retVal;
|
|
1106
1072
|
};
|
|
1107
|
-
const
|
|
1073
|
+
const de_EventDescription = (output, context) => {
|
|
1108
1074
|
return {
|
|
1109
1075
|
latestDescription: __expectString(output.latestDescription),
|
|
1110
1076
|
};
|
|
1111
1077
|
};
|
|
1112
|
-
const
|
|
1078
|
+
const de_EventDetails = (output, context) => {
|
|
1113
1079
|
return {
|
|
1114
|
-
event: output.event != null ?
|
|
1115
|
-
eventDescription: output.eventDescription != null
|
|
1116
|
-
|
|
1117
|
-
: undefined,
|
|
1118
|
-
eventMetadata: output.eventMetadata != null ? deserializeAws_json1_1eventMetadata(output.eventMetadata, context) : undefined,
|
|
1080
|
+
event: output.event != null ? de_Event(output.event, context) : undefined,
|
|
1081
|
+
eventDescription: output.eventDescription != null ? de_EventDescription(output.eventDescription, context) : undefined,
|
|
1082
|
+
eventMetadata: output.eventMetadata != null ? de_eventMetadata(output.eventMetadata, context) : undefined,
|
|
1119
1083
|
};
|
|
1120
1084
|
};
|
|
1121
|
-
const
|
|
1085
|
+
const de_EventDetailsErrorItem = (output, context) => {
|
|
1122
1086
|
return {
|
|
1123
1087
|
errorMessage: __expectString(output.errorMessage),
|
|
1124
1088
|
errorName: __expectString(output.errorName),
|
|
1125
1089
|
eventArn: __expectString(output.eventArn),
|
|
1126
1090
|
};
|
|
1127
1091
|
};
|
|
1128
|
-
const
|
|
1092
|
+
const de_EventList = (output, context) => {
|
|
1129
1093
|
const retVal = (output || [])
|
|
1130
1094
|
.filter((e) => e != null)
|
|
1131
1095
|
.map((entry) => {
|
|
1132
1096
|
if (entry === null) {
|
|
1133
1097
|
return null;
|
|
1134
1098
|
}
|
|
1135
|
-
return
|
|
1099
|
+
return de_Event(entry, context);
|
|
1136
1100
|
});
|
|
1137
1101
|
return retVal;
|
|
1138
1102
|
};
|
|
1139
|
-
const
|
|
1103
|
+
const de_eventMetadata = (output, context) => {
|
|
1140
1104
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1141
1105
|
if (value === null) {
|
|
1142
1106
|
return acc;
|
|
@@ -1145,30 +1109,30 @@ const deserializeAws_json1_1eventMetadata = (output, context) => {
|
|
|
1145
1109
|
return acc;
|
|
1146
1110
|
}, {});
|
|
1147
1111
|
};
|
|
1148
|
-
const
|
|
1112
|
+
const de_EventType = (output, context) => {
|
|
1149
1113
|
return {
|
|
1150
1114
|
category: __expectString(output.category),
|
|
1151
1115
|
code: __expectString(output.code),
|
|
1152
1116
|
service: __expectString(output.service),
|
|
1153
1117
|
};
|
|
1154
1118
|
};
|
|
1155
|
-
const
|
|
1119
|
+
const de_EventTypeList = (output, context) => {
|
|
1156
1120
|
const retVal = (output || [])
|
|
1157
1121
|
.filter((e) => e != null)
|
|
1158
1122
|
.map((entry) => {
|
|
1159
1123
|
if (entry === null) {
|
|
1160
1124
|
return null;
|
|
1161
1125
|
}
|
|
1162
|
-
return
|
|
1126
|
+
return de_EventType(entry, context);
|
|
1163
1127
|
});
|
|
1164
1128
|
return retVal;
|
|
1165
1129
|
};
|
|
1166
|
-
const
|
|
1130
|
+
const de_InvalidPaginationToken = (output, context) => {
|
|
1167
1131
|
return {
|
|
1168
1132
|
message: __expectString(output.message),
|
|
1169
1133
|
};
|
|
1170
1134
|
};
|
|
1171
|
-
const
|
|
1135
|
+
const de_OrganizationAffectedEntitiesErrorItem = (output, context) => {
|
|
1172
1136
|
return {
|
|
1173
1137
|
awsAccountId: __expectString(output.awsAccountId),
|
|
1174
1138
|
errorMessage: __expectString(output.errorMessage),
|
|
@@ -1176,7 +1140,7 @@ const deserializeAws_json1_1OrganizationAffectedEntitiesErrorItem = (output, con
|
|
|
1176
1140
|
eventArn: __expectString(output.eventArn),
|
|
1177
1141
|
};
|
|
1178
1142
|
};
|
|
1179
|
-
const
|
|
1143
|
+
const de_OrganizationEvent = (output, context) => {
|
|
1180
1144
|
return {
|
|
1181
1145
|
arn: __expectString(output.arn),
|
|
1182
1146
|
endTime: output.endTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.endTime))) : undefined,
|
|
@@ -1192,17 +1156,15 @@ const deserializeAws_json1_1OrganizationEvent = (output, context) => {
|
|
|
1192
1156
|
statusCode: __expectString(output.statusCode),
|
|
1193
1157
|
};
|
|
1194
1158
|
};
|
|
1195
|
-
const
|
|
1159
|
+
const de_OrganizationEventDetails = (output, context) => {
|
|
1196
1160
|
return {
|
|
1197
1161
|
awsAccountId: __expectString(output.awsAccountId),
|
|
1198
|
-
event: output.event != null ?
|
|
1199
|
-
eventDescription: output.eventDescription != null
|
|
1200
|
-
|
|
1201
|
-
: undefined,
|
|
1202
|
-
eventMetadata: output.eventMetadata != null ? deserializeAws_json1_1eventMetadata(output.eventMetadata, context) : undefined,
|
|
1162
|
+
event: output.event != null ? de_Event(output.event, context) : undefined,
|
|
1163
|
+
eventDescription: output.eventDescription != null ? de_EventDescription(output.eventDescription, context) : undefined,
|
|
1164
|
+
eventMetadata: output.eventMetadata != null ? de_eventMetadata(output.eventMetadata, context) : undefined,
|
|
1203
1165
|
};
|
|
1204
1166
|
};
|
|
1205
|
-
const
|
|
1167
|
+
const de_OrganizationEventDetailsErrorItem = (output, context) => {
|
|
1206
1168
|
return {
|
|
1207
1169
|
awsAccountId: __expectString(output.awsAccountId),
|
|
1208
1170
|
errorMessage: __expectString(output.errorMessage),
|
|
@@ -1210,18 +1172,18 @@ const deserializeAws_json1_1OrganizationEventDetailsErrorItem = (output, context
|
|
|
1210
1172
|
eventArn: __expectString(output.eventArn),
|
|
1211
1173
|
};
|
|
1212
1174
|
};
|
|
1213
|
-
const
|
|
1175
|
+
const de_OrganizationEventList = (output, context) => {
|
|
1214
1176
|
const retVal = (output || [])
|
|
1215
1177
|
.filter((e) => e != null)
|
|
1216
1178
|
.map((entry) => {
|
|
1217
1179
|
if (entry === null) {
|
|
1218
1180
|
return null;
|
|
1219
1181
|
}
|
|
1220
|
-
return
|
|
1182
|
+
return de_OrganizationEvent(entry, context);
|
|
1221
1183
|
});
|
|
1222
1184
|
return retVal;
|
|
1223
1185
|
};
|
|
1224
|
-
const
|
|
1186
|
+
const de_tagSet = (output, context) => {
|
|
1225
1187
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1226
1188
|
if (value === null) {
|
|
1227
1189
|
return acc;
|
|
@@ -1230,7 +1192,7 @@ const deserializeAws_json1_1tagSet = (output, context) => {
|
|
|
1230
1192
|
return acc;
|
|
1231
1193
|
}, {});
|
|
1232
1194
|
};
|
|
1233
|
-
const
|
|
1195
|
+
const de_UnsupportedLocale = (output, context) => {
|
|
1234
1196
|
return {
|
|
1235
1197
|
message: __expectString(output.message),
|
|
1236
1198
|
};
|