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