@aws-sdk/client-ssm-incidents 3.928.0 → 3.930.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/index.js +1242 -1559
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SSMIncidentsClient.js +2 -0
- package/dist-es/commands/BatchGetIncidentFindingsCommand.js +3 -9
- package/dist-es/commands/CreateReplicationSetCommand.js +3 -9
- package/dist-es/commands/CreateResponsePlanCommand.js +3 -9
- package/dist-es/commands/CreateTimelineEventCommand.js +3 -9
- package/dist-es/commands/DeleteIncidentRecordCommand.js +3 -9
- package/dist-es/commands/DeleteReplicationSetCommand.js +3 -9
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DeleteResponsePlanCommand.js +3 -9
- package/dist-es/commands/DeleteTimelineEventCommand.js +3 -9
- package/dist-es/commands/GetIncidentRecordCommand.js +3 -9
- package/dist-es/commands/GetReplicationSetCommand.js +3 -9
- package/dist-es/commands/GetResourcePoliciesCommand.js +3 -9
- package/dist-es/commands/GetResponsePlanCommand.js +3 -9
- package/dist-es/commands/GetTimelineEventCommand.js +3 -9
- package/dist-es/commands/ListIncidentFindingsCommand.js +3 -9
- package/dist-es/commands/ListIncidentRecordsCommand.js +3 -9
- package/dist-es/commands/ListRelatedItemsCommand.js +3 -9
- package/dist-es/commands/ListReplicationSetsCommand.js +3 -9
- package/dist-es/commands/ListResponsePlansCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTimelineEventsCommand.js +3 -9
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
- package/dist-es/commands/StartIncidentCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateDeletionProtectionCommand.js +3 -9
- package/dist-es/commands/UpdateIncidentRecordCommand.js +3 -9
- package/dist-es/commands/UpdateRelatedItemsCommand.js +3 -9
- package/dist-es/commands/UpdateReplicationSetCommand.js +3 -9
- package/dist-es/commands/UpdateResponsePlanCommand.js +3 -9
- package/dist-es/commands/UpdateTimelineEventCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -126
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1172 -0
- package/dist-types/SSMIncidentsClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +52 -13
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +171 -0
- package/dist-types/ts3.4/SSMIncidentsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -13
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +177 -0
- package/package.json +34 -35
- package/dist-es/protocols/Aws_restJson1.js +0 -1200
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -377
|
@@ -1,1200 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AccessDeniedException, Condition, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
import { SSMIncidentsServiceException as __BaseException } from "../models/SSMIncidentsServiceException";
|
|
7
|
-
export const se_BatchGetIncidentFindingsCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/batchGetIncidentFindings");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
findingIds: (_) => _json(_),
|
|
16
|
-
incidentRecordArn: [],
|
|
17
|
-
}));
|
|
18
|
-
b.m("POST").h(headers).b(body);
|
|
19
|
-
return b.build();
|
|
20
|
-
};
|
|
21
|
-
export const se_CreateReplicationSetCommand = async (input, context) => {
|
|
22
|
-
const b = rb(input, context);
|
|
23
|
-
const headers = {
|
|
24
|
-
"content-type": "application/json",
|
|
25
|
-
};
|
|
26
|
-
b.bp("/createReplicationSet");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(take(input, {
|
|
29
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
30
|
-
regions: (_) => _json(_),
|
|
31
|
-
tags: (_) => _json(_),
|
|
32
|
-
}));
|
|
33
|
-
b.m("POST").h(headers).b(body);
|
|
34
|
-
return b.build();
|
|
35
|
-
};
|
|
36
|
-
export const se_CreateResponsePlanCommand = async (input, context) => {
|
|
37
|
-
const b = rb(input, context);
|
|
38
|
-
const headers = {
|
|
39
|
-
"content-type": "application/json",
|
|
40
|
-
};
|
|
41
|
-
b.bp("/createResponsePlan");
|
|
42
|
-
let body;
|
|
43
|
-
body = JSON.stringify(take(input, {
|
|
44
|
-
actions: (_) => _json(_),
|
|
45
|
-
chatChannel: (_) => _json(_),
|
|
46
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
47
|
-
displayName: [],
|
|
48
|
-
engagements: (_) => _json(_),
|
|
49
|
-
incidentTemplate: (_) => _json(_),
|
|
50
|
-
integrations: (_) => _json(_),
|
|
51
|
-
name: [],
|
|
52
|
-
tags: (_) => _json(_),
|
|
53
|
-
}));
|
|
54
|
-
b.m("POST").h(headers).b(body);
|
|
55
|
-
return b.build();
|
|
56
|
-
};
|
|
57
|
-
export const se_CreateTimelineEventCommand = async (input, context) => {
|
|
58
|
-
const b = rb(input, context);
|
|
59
|
-
const headers = {
|
|
60
|
-
"content-type": "application/json",
|
|
61
|
-
};
|
|
62
|
-
b.bp("/createTimelineEvent");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(take(input, {
|
|
65
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
66
|
-
eventData: [],
|
|
67
|
-
eventReferences: (_) => _json(_),
|
|
68
|
-
eventTime: (_) => _.getTime() / 1_000,
|
|
69
|
-
eventType: [],
|
|
70
|
-
incidentRecordArn: [],
|
|
71
|
-
}));
|
|
72
|
-
b.m("POST").h(headers).b(body);
|
|
73
|
-
return b.build();
|
|
74
|
-
};
|
|
75
|
-
export const se_DeleteIncidentRecordCommand = async (input, context) => {
|
|
76
|
-
const b = rb(input, context);
|
|
77
|
-
const headers = {
|
|
78
|
-
"content-type": "application/json",
|
|
79
|
-
};
|
|
80
|
-
b.bp("/deleteIncidentRecord");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(take(input, {
|
|
83
|
-
arn: [],
|
|
84
|
-
}));
|
|
85
|
-
b.m("POST").h(headers).b(body);
|
|
86
|
-
return b.build();
|
|
87
|
-
};
|
|
88
|
-
export const se_DeleteReplicationSetCommand = async (input, context) => {
|
|
89
|
-
const b = rb(input, context);
|
|
90
|
-
const headers = {};
|
|
91
|
-
b.bp("/deleteReplicationSet");
|
|
92
|
-
const query = map({
|
|
93
|
-
[_a]: [, __expectNonNull(input[_a], `arn`)],
|
|
94
|
-
});
|
|
95
|
-
let body;
|
|
96
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
97
|
-
return b.build();
|
|
98
|
-
};
|
|
99
|
-
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
100
|
-
const b = rb(input, context);
|
|
101
|
-
const headers = {
|
|
102
|
-
"content-type": "application/json",
|
|
103
|
-
};
|
|
104
|
-
b.bp("/deleteResourcePolicy");
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(take(input, {
|
|
107
|
-
policyId: [],
|
|
108
|
-
resourceArn: [],
|
|
109
|
-
}));
|
|
110
|
-
b.m("POST").h(headers).b(body);
|
|
111
|
-
return b.build();
|
|
112
|
-
};
|
|
113
|
-
export const se_DeleteResponsePlanCommand = async (input, context) => {
|
|
114
|
-
const b = rb(input, context);
|
|
115
|
-
const headers = {
|
|
116
|
-
"content-type": "application/json",
|
|
117
|
-
};
|
|
118
|
-
b.bp("/deleteResponsePlan");
|
|
119
|
-
let body;
|
|
120
|
-
body = JSON.stringify(take(input, {
|
|
121
|
-
arn: [],
|
|
122
|
-
}));
|
|
123
|
-
b.m("POST").h(headers).b(body);
|
|
124
|
-
return b.build();
|
|
125
|
-
};
|
|
126
|
-
export const se_DeleteTimelineEventCommand = async (input, context) => {
|
|
127
|
-
const b = rb(input, context);
|
|
128
|
-
const headers = {
|
|
129
|
-
"content-type": "application/json",
|
|
130
|
-
};
|
|
131
|
-
b.bp("/deleteTimelineEvent");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify(take(input, {
|
|
134
|
-
eventId: [],
|
|
135
|
-
incidentRecordArn: [],
|
|
136
|
-
}));
|
|
137
|
-
b.m("POST").h(headers).b(body);
|
|
138
|
-
return b.build();
|
|
139
|
-
};
|
|
140
|
-
export const se_GetIncidentRecordCommand = async (input, context) => {
|
|
141
|
-
const b = rb(input, context);
|
|
142
|
-
const headers = {};
|
|
143
|
-
b.bp("/getIncidentRecord");
|
|
144
|
-
const query = map({
|
|
145
|
-
[_a]: [, __expectNonNull(input[_a], `arn`)],
|
|
146
|
-
});
|
|
147
|
-
let body;
|
|
148
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
149
|
-
return b.build();
|
|
150
|
-
};
|
|
151
|
-
export const se_GetReplicationSetCommand = async (input, context) => {
|
|
152
|
-
const b = rb(input, context);
|
|
153
|
-
const headers = {};
|
|
154
|
-
b.bp("/getReplicationSet");
|
|
155
|
-
const query = map({
|
|
156
|
-
[_a]: [, __expectNonNull(input[_a], `arn`)],
|
|
157
|
-
});
|
|
158
|
-
let body;
|
|
159
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
160
|
-
return b.build();
|
|
161
|
-
};
|
|
162
|
-
export const se_GetResourcePoliciesCommand = async (input, context) => {
|
|
163
|
-
const b = rb(input, context);
|
|
164
|
-
const headers = {
|
|
165
|
-
"content-type": "application/json",
|
|
166
|
-
};
|
|
167
|
-
b.bp("/getResourcePolicies");
|
|
168
|
-
const query = map({
|
|
169
|
-
[_rA]: [, __expectNonNull(input[_rA], `resourceArn`)],
|
|
170
|
-
});
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(take(input, {
|
|
173
|
-
maxResults: [],
|
|
174
|
-
nextToken: [],
|
|
175
|
-
}));
|
|
176
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
177
|
-
return b.build();
|
|
178
|
-
};
|
|
179
|
-
export const se_GetResponsePlanCommand = async (input, context) => {
|
|
180
|
-
const b = rb(input, context);
|
|
181
|
-
const headers = {};
|
|
182
|
-
b.bp("/getResponsePlan");
|
|
183
|
-
const query = map({
|
|
184
|
-
[_a]: [, __expectNonNull(input[_a], `arn`)],
|
|
185
|
-
});
|
|
186
|
-
let body;
|
|
187
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
188
|
-
return b.build();
|
|
189
|
-
};
|
|
190
|
-
export const se_GetTimelineEventCommand = async (input, context) => {
|
|
191
|
-
const b = rb(input, context);
|
|
192
|
-
const headers = {};
|
|
193
|
-
b.bp("/getTimelineEvent");
|
|
194
|
-
const query = map({
|
|
195
|
-
[_iRA]: [, __expectNonNull(input[_iRA], `incidentRecordArn`)],
|
|
196
|
-
[_eI]: [, __expectNonNull(input[_eI], `eventId`)],
|
|
197
|
-
});
|
|
198
|
-
let body;
|
|
199
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
200
|
-
return b.build();
|
|
201
|
-
};
|
|
202
|
-
export const se_ListIncidentFindingsCommand = async (input, context) => {
|
|
203
|
-
const b = rb(input, context);
|
|
204
|
-
const headers = {
|
|
205
|
-
"content-type": "application/json",
|
|
206
|
-
};
|
|
207
|
-
b.bp("/listIncidentFindings");
|
|
208
|
-
let body;
|
|
209
|
-
body = JSON.stringify(take(input, {
|
|
210
|
-
incidentRecordArn: [],
|
|
211
|
-
maxResults: [],
|
|
212
|
-
nextToken: [],
|
|
213
|
-
}));
|
|
214
|
-
b.m("POST").h(headers).b(body);
|
|
215
|
-
return b.build();
|
|
216
|
-
};
|
|
217
|
-
export const se_ListIncidentRecordsCommand = async (input, context) => {
|
|
218
|
-
const b = rb(input, context);
|
|
219
|
-
const headers = {
|
|
220
|
-
"content-type": "application/json",
|
|
221
|
-
};
|
|
222
|
-
b.bp("/listIncidentRecords");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify(take(input, {
|
|
225
|
-
filters: (_) => se_FilterList(_, context),
|
|
226
|
-
maxResults: [],
|
|
227
|
-
nextToken: [],
|
|
228
|
-
}));
|
|
229
|
-
b.m("POST").h(headers).b(body);
|
|
230
|
-
return b.build();
|
|
231
|
-
};
|
|
232
|
-
export const se_ListRelatedItemsCommand = async (input, context) => {
|
|
233
|
-
const b = rb(input, context);
|
|
234
|
-
const headers = {
|
|
235
|
-
"content-type": "application/json",
|
|
236
|
-
};
|
|
237
|
-
b.bp("/listRelatedItems");
|
|
238
|
-
let body;
|
|
239
|
-
body = JSON.stringify(take(input, {
|
|
240
|
-
incidentRecordArn: [],
|
|
241
|
-
maxResults: [],
|
|
242
|
-
nextToken: [],
|
|
243
|
-
}));
|
|
244
|
-
b.m("POST").h(headers).b(body);
|
|
245
|
-
return b.build();
|
|
246
|
-
};
|
|
247
|
-
export const se_ListReplicationSetsCommand = async (input, context) => {
|
|
248
|
-
const b = rb(input, context);
|
|
249
|
-
const headers = {
|
|
250
|
-
"content-type": "application/json",
|
|
251
|
-
};
|
|
252
|
-
b.bp("/listReplicationSets");
|
|
253
|
-
let body;
|
|
254
|
-
body = JSON.stringify(take(input, {
|
|
255
|
-
maxResults: [],
|
|
256
|
-
nextToken: [],
|
|
257
|
-
}));
|
|
258
|
-
b.m("POST").h(headers).b(body);
|
|
259
|
-
return b.build();
|
|
260
|
-
};
|
|
261
|
-
export const se_ListResponsePlansCommand = async (input, context) => {
|
|
262
|
-
const b = rb(input, context);
|
|
263
|
-
const headers = {
|
|
264
|
-
"content-type": "application/json",
|
|
265
|
-
};
|
|
266
|
-
b.bp("/listResponsePlans");
|
|
267
|
-
let body;
|
|
268
|
-
body = JSON.stringify(take(input, {
|
|
269
|
-
maxResults: [],
|
|
270
|
-
nextToken: [],
|
|
271
|
-
}));
|
|
272
|
-
b.m("POST").h(headers).b(body);
|
|
273
|
-
return b.build();
|
|
274
|
-
};
|
|
275
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
276
|
-
const b = rb(input, context);
|
|
277
|
-
const headers = {};
|
|
278
|
-
b.bp("/tags/{resourceArn}");
|
|
279
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
280
|
-
let body;
|
|
281
|
-
b.m("GET").h(headers).b(body);
|
|
282
|
-
return b.build();
|
|
283
|
-
};
|
|
284
|
-
export const se_ListTimelineEventsCommand = async (input, context) => {
|
|
285
|
-
const b = rb(input, context);
|
|
286
|
-
const headers = {
|
|
287
|
-
"content-type": "application/json",
|
|
288
|
-
};
|
|
289
|
-
b.bp("/listTimelineEvents");
|
|
290
|
-
let body;
|
|
291
|
-
body = JSON.stringify(take(input, {
|
|
292
|
-
filters: (_) => se_FilterList(_, context),
|
|
293
|
-
incidentRecordArn: [],
|
|
294
|
-
maxResults: [],
|
|
295
|
-
nextToken: [],
|
|
296
|
-
sortBy: [],
|
|
297
|
-
sortOrder: [],
|
|
298
|
-
}));
|
|
299
|
-
b.m("POST").h(headers).b(body);
|
|
300
|
-
return b.build();
|
|
301
|
-
};
|
|
302
|
-
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
303
|
-
const b = rb(input, context);
|
|
304
|
-
const headers = {
|
|
305
|
-
"content-type": "application/json",
|
|
306
|
-
};
|
|
307
|
-
b.bp("/putResourcePolicy");
|
|
308
|
-
let body;
|
|
309
|
-
body = JSON.stringify(take(input, {
|
|
310
|
-
policy: [],
|
|
311
|
-
resourceArn: [],
|
|
312
|
-
}));
|
|
313
|
-
b.m("POST").h(headers).b(body);
|
|
314
|
-
return b.build();
|
|
315
|
-
};
|
|
316
|
-
export const se_StartIncidentCommand = async (input, context) => {
|
|
317
|
-
const b = rb(input, context);
|
|
318
|
-
const headers = {
|
|
319
|
-
"content-type": "application/json",
|
|
320
|
-
};
|
|
321
|
-
b.bp("/startIncident");
|
|
322
|
-
let body;
|
|
323
|
-
body = JSON.stringify(take(input, {
|
|
324
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
325
|
-
impact: [],
|
|
326
|
-
relatedItems: (_) => _json(_),
|
|
327
|
-
responsePlanArn: [],
|
|
328
|
-
title: [],
|
|
329
|
-
triggerDetails: (_) => se_TriggerDetails(_, context),
|
|
330
|
-
}));
|
|
331
|
-
b.m("POST").h(headers).b(body);
|
|
332
|
-
return b.build();
|
|
333
|
-
};
|
|
334
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
335
|
-
const b = rb(input, context);
|
|
336
|
-
const headers = {
|
|
337
|
-
"content-type": "application/json",
|
|
338
|
-
};
|
|
339
|
-
b.bp("/tags/{resourceArn}");
|
|
340
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
341
|
-
let body;
|
|
342
|
-
body = JSON.stringify(take(input, {
|
|
343
|
-
tags: (_) => _json(_),
|
|
344
|
-
}));
|
|
345
|
-
b.m("POST").h(headers).b(body);
|
|
346
|
-
return b.build();
|
|
347
|
-
};
|
|
348
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
349
|
-
const b = rb(input, context);
|
|
350
|
-
const headers = {};
|
|
351
|
-
b.bp("/tags/{resourceArn}");
|
|
352
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
353
|
-
const query = map({
|
|
354
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
355
|
-
});
|
|
356
|
-
let body;
|
|
357
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
358
|
-
return b.build();
|
|
359
|
-
};
|
|
360
|
-
export const se_UpdateDeletionProtectionCommand = async (input, context) => {
|
|
361
|
-
const b = rb(input, context);
|
|
362
|
-
const headers = {
|
|
363
|
-
"content-type": "application/json",
|
|
364
|
-
};
|
|
365
|
-
b.bp("/updateDeletionProtection");
|
|
366
|
-
let body;
|
|
367
|
-
body = JSON.stringify(take(input, {
|
|
368
|
-
arn: [],
|
|
369
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
370
|
-
deletionProtected: [],
|
|
371
|
-
}));
|
|
372
|
-
b.m("POST").h(headers).b(body);
|
|
373
|
-
return b.build();
|
|
374
|
-
};
|
|
375
|
-
export const se_UpdateIncidentRecordCommand = async (input, context) => {
|
|
376
|
-
const b = rb(input, context);
|
|
377
|
-
const headers = {
|
|
378
|
-
"content-type": "application/json",
|
|
379
|
-
};
|
|
380
|
-
b.bp("/updateIncidentRecord");
|
|
381
|
-
let body;
|
|
382
|
-
body = JSON.stringify(take(input, {
|
|
383
|
-
arn: [],
|
|
384
|
-
chatChannel: (_) => _json(_),
|
|
385
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
386
|
-
impact: [],
|
|
387
|
-
notificationTargets: (_) => _json(_),
|
|
388
|
-
status: [],
|
|
389
|
-
summary: [],
|
|
390
|
-
title: [],
|
|
391
|
-
}));
|
|
392
|
-
b.m("POST").h(headers).b(body);
|
|
393
|
-
return b.build();
|
|
394
|
-
};
|
|
395
|
-
export const se_UpdateRelatedItemsCommand = async (input, context) => {
|
|
396
|
-
const b = rb(input, context);
|
|
397
|
-
const headers = {
|
|
398
|
-
"content-type": "application/json",
|
|
399
|
-
};
|
|
400
|
-
b.bp("/updateRelatedItems");
|
|
401
|
-
let body;
|
|
402
|
-
body = JSON.stringify(take(input, {
|
|
403
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
404
|
-
incidentRecordArn: [],
|
|
405
|
-
relatedItemsUpdate: (_) => _json(_),
|
|
406
|
-
}));
|
|
407
|
-
b.m("POST").h(headers).b(body);
|
|
408
|
-
return b.build();
|
|
409
|
-
};
|
|
410
|
-
export const se_UpdateReplicationSetCommand = async (input, context) => {
|
|
411
|
-
const b = rb(input, context);
|
|
412
|
-
const headers = {
|
|
413
|
-
"content-type": "application/json",
|
|
414
|
-
};
|
|
415
|
-
b.bp("/updateReplicationSet");
|
|
416
|
-
let body;
|
|
417
|
-
body = JSON.stringify(take(input, {
|
|
418
|
-
actions: (_) => _json(_),
|
|
419
|
-
arn: [],
|
|
420
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
421
|
-
}));
|
|
422
|
-
b.m("POST").h(headers).b(body);
|
|
423
|
-
return b.build();
|
|
424
|
-
};
|
|
425
|
-
export const se_UpdateResponsePlanCommand = async (input, context) => {
|
|
426
|
-
const b = rb(input, context);
|
|
427
|
-
const headers = {
|
|
428
|
-
"content-type": "application/json",
|
|
429
|
-
};
|
|
430
|
-
b.bp("/updateResponsePlan");
|
|
431
|
-
let body;
|
|
432
|
-
body = JSON.stringify(take(input, {
|
|
433
|
-
actions: (_) => _json(_),
|
|
434
|
-
arn: [],
|
|
435
|
-
chatChannel: (_) => _json(_),
|
|
436
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
437
|
-
displayName: [],
|
|
438
|
-
engagements: (_) => _json(_),
|
|
439
|
-
incidentTemplateDedupeString: [],
|
|
440
|
-
incidentTemplateImpact: [],
|
|
441
|
-
incidentTemplateNotificationTargets: (_) => _json(_),
|
|
442
|
-
incidentTemplateSummary: [],
|
|
443
|
-
incidentTemplateTags: (_) => _json(_),
|
|
444
|
-
incidentTemplateTitle: [],
|
|
445
|
-
integrations: (_) => _json(_),
|
|
446
|
-
}));
|
|
447
|
-
b.m("POST").h(headers).b(body);
|
|
448
|
-
return b.build();
|
|
449
|
-
};
|
|
450
|
-
export const se_UpdateTimelineEventCommand = async (input, context) => {
|
|
451
|
-
const b = rb(input, context);
|
|
452
|
-
const headers = {
|
|
453
|
-
"content-type": "application/json",
|
|
454
|
-
};
|
|
455
|
-
b.bp("/updateTimelineEvent");
|
|
456
|
-
let body;
|
|
457
|
-
body = JSON.stringify(take(input, {
|
|
458
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
459
|
-
eventData: [],
|
|
460
|
-
eventId: [],
|
|
461
|
-
eventReferences: (_) => _json(_),
|
|
462
|
-
eventTime: (_) => _.getTime() / 1_000,
|
|
463
|
-
eventType: [],
|
|
464
|
-
incidentRecordArn: [],
|
|
465
|
-
}));
|
|
466
|
-
b.m("POST").h(headers).b(body);
|
|
467
|
-
return b.build();
|
|
468
|
-
};
|
|
469
|
-
export const de_BatchGetIncidentFindingsCommand = async (output, context) => {
|
|
470
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
471
|
-
return de_CommandError(output, context);
|
|
472
|
-
}
|
|
473
|
-
const contents = map({
|
|
474
|
-
$metadata: deserializeMetadata(output),
|
|
475
|
-
});
|
|
476
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
477
|
-
const doc = take(data, {
|
|
478
|
-
errors: _json,
|
|
479
|
-
findings: (_) => de_FindingList(_, context),
|
|
480
|
-
});
|
|
481
|
-
Object.assign(contents, doc);
|
|
482
|
-
return contents;
|
|
483
|
-
};
|
|
484
|
-
export const de_CreateReplicationSetCommand = async (output, context) => {
|
|
485
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
486
|
-
return de_CommandError(output, context);
|
|
487
|
-
}
|
|
488
|
-
const contents = map({
|
|
489
|
-
$metadata: deserializeMetadata(output),
|
|
490
|
-
});
|
|
491
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
492
|
-
const doc = take(data, {
|
|
493
|
-
arn: __expectString,
|
|
494
|
-
});
|
|
495
|
-
Object.assign(contents, doc);
|
|
496
|
-
return contents;
|
|
497
|
-
};
|
|
498
|
-
export const de_CreateResponsePlanCommand = async (output, context) => {
|
|
499
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
500
|
-
return de_CommandError(output, context);
|
|
501
|
-
}
|
|
502
|
-
const contents = map({
|
|
503
|
-
$metadata: deserializeMetadata(output),
|
|
504
|
-
});
|
|
505
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
506
|
-
const doc = take(data, {
|
|
507
|
-
arn: __expectString,
|
|
508
|
-
});
|
|
509
|
-
Object.assign(contents, doc);
|
|
510
|
-
return contents;
|
|
511
|
-
};
|
|
512
|
-
export const de_CreateTimelineEventCommand = async (output, context) => {
|
|
513
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
514
|
-
return de_CommandError(output, context);
|
|
515
|
-
}
|
|
516
|
-
const contents = map({
|
|
517
|
-
$metadata: deserializeMetadata(output),
|
|
518
|
-
});
|
|
519
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
520
|
-
const doc = take(data, {
|
|
521
|
-
eventId: __expectString,
|
|
522
|
-
incidentRecordArn: __expectString,
|
|
523
|
-
});
|
|
524
|
-
Object.assign(contents, doc);
|
|
525
|
-
return contents;
|
|
526
|
-
};
|
|
527
|
-
export const de_DeleteIncidentRecordCommand = async (output, context) => {
|
|
528
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
529
|
-
return de_CommandError(output, context);
|
|
530
|
-
}
|
|
531
|
-
const contents = map({
|
|
532
|
-
$metadata: deserializeMetadata(output),
|
|
533
|
-
});
|
|
534
|
-
await collectBody(output.body, context);
|
|
535
|
-
return contents;
|
|
536
|
-
};
|
|
537
|
-
export const de_DeleteReplicationSetCommand = async (output, context) => {
|
|
538
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
539
|
-
return de_CommandError(output, context);
|
|
540
|
-
}
|
|
541
|
-
const contents = map({
|
|
542
|
-
$metadata: deserializeMetadata(output),
|
|
543
|
-
});
|
|
544
|
-
await collectBody(output.body, context);
|
|
545
|
-
return contents;
|
|
546
|
-
};
|
|
547
|
-
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
548
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
549
|
-
return de_CommandError(output, context);
|
|
550
|
-
}
|
|
551
|
-
const contents = map({
|
|
552
|
-
$metadata: deserializeMetadata(output),
|
|
553
|
-
});
|
|
554
|
-
await collectBody(output.body, context);
|
|
555
|
-
return contents;
|
|
556
|
-
};
|
|
557
|
-
export const de_DeleteResponsePlanCommand = async (output, context) => {
|
|
558
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
559
|
-
return de_CommandError(output, context);
|
|
560
|
-
}
|
|
561
|
-
const contents = map({
|
|
562
|
-
$metadata: deserializeMetadata(output),
|
|
563
|
-
});
|
|
564
|
-
await collectBody(output.body, context);
|
|
565
|
-
return contents;
|
|
566
|
-
};
|
|
567
|
-
export const de_DeleteTimelineEventCommand = async (output, context) => {
|
|
568
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
569
|
-
return de_CommandError(output, context);
|
|
570
|
-
}
|
|
571
|
-
const contents = map({
|
|
572
|
-
$metadata: deserializeMetadata(output),
|
|
573
|
-
});
|
|
574
|
-
await collectBody(output.body, context);
|
|
575
|
-
return contents;
|
|
576
|
-
};
|
|
577
|
-
export const de_GetIncidentRecordCommand = async (output, context) => {
|
|
578
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
579
|
-
return de_CommandError(output, context);
|
|
580
|
-
}
|
|
581
|
-
const contents = map({
|
|
582
|
-
$metadata: deserializeMetadata(output),
|
|
583
|
-
});
|
|
584
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
585
|
-
const doc = take(data, {
|
|
586
|
-
incidentRecord: (_) => de_IncidentRecord(_, context),
|
|
587
|
-
});
|
|
588
|
-
Object.assign(contents, doc);
|
|
589
|
-
return contents;
|
|
590
|
-
};
|
|
591
|
-
export const de_GetReplicationSetCommand = async (output, context) => {
|
|
592
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
593
|
-
return de_CommandError(output, context);
|
|
594
|
-
}
|
|
595
|
-
const contents = map({
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
});
|
|
598
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
599
|
-
const doc = take(data, {
|
|
600
|
-
replicationSet: (_) => de_ReplicationSet(_, context),
|
|
601
|
-
});
|
|
602
|
-
Object.assign(contents, doc);
|
|
603
|
-
return contents;
|
|
604
|
-
};
|
|
605
|
-
export const de_GetResourcePoliciesCommand = async (output, context) => {
|
|
606
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
607
|
-
return de_CommandError(output, context);
|
|
608
|
-
}
|
|
609
|
-
const contents = map({
|
|
610
|
-
$metadata: deserializeMetadata(output),
|
|
611
|
-
});
|
|
612
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
613
|
-
const doc = take(data, {
|
|
614
|
-
nextToken: __expectString,
|
|
615
|
-
resourcePolicies: _json,
|
|
616
|
-
});
|
|
617
|
-
Object.assign(contents, doc);
|
|
618
|
-
return contents;
|
|
619
|
-
};
|
|
620
|
-
export const de_GetResponsePlanCommand = async (output, context) => {
|
|
621
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
-
return de_CommandError(output, context);
|
|
623
|
-
}
|
|
624
|
-
const contents = map({
|
|
625
|
-
$metadata: deserializeMetadata(output),
|
|
626
|
-
});
|
|
627
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
628
|
-
const doc = take(data, {
|
|
629
|
-
actions: _json,
|
|
630
|
-
arn: __expectString,
|
|
631
|
-
chatChannel: (_) => _json(__expectUnion(_)),
|
|
632
|
-
displayName: __expectString,
|
|
633
|
-
engagements: _json,
|
|
634
|
-
incidentTemplate: _json,
|
|
635
|
-
integrations: _json,
|
|
636
|
-
name: __expectString,
|
|
637
|
-
});
|
|
638
|
-
Object.assign(contents, doc);
|
|
639
|
-
return contents;
|
|
640
|
-
};
|
|
641
|
-
export const de_GetTimelineEventCommand = async (output, context) => {
|
|
642
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
643
|
-
return de_CommandError(output, context);
|
|
644
|
-
}
|
|
645
|
-
const contents = map({
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
});
|
|
648
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
649
|
-
const doc = take(data, {
|
|
650
|
-
event: (_) => de_TimelineEvent(_, context),
|
|
651
|
-
});
|
|
652
|
-
Object.assign(contents, doc);
|
|
653
|
-
return contents;
|
|
654
|
-
};
|
|
655
|
-
export const de_ListIncidentFindingsCommand = async (output, context) => {
|
|
656
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
657
|
-
return de_CommandError(output, context);
|
|
658
|
-
}
|
|
659
|
-
const contents = map({
|
|
660
|
-
$metadata: deserializeMetadata(output),
|
|
661
|
-
});
|
|
662
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
663
|
-
const doc = take(data, {
|
|
664
|
-
findings: (_) => de_FindingSummaryList(_, context),
|
|
665
|
-
nextToken: __expectString,
|
|
666
|
-
});
|
|
667
|
-
Object.assign(contents, doc);
|
|
668
|
-
return contents;
|
|
669
|
-
};
|
|
670
|
-
export const de_ListIncidentRecordsCommand = async (output, context) => {
|
|
671
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
672
|
-
return de_CommandError(output, context);
|
|
673
|
-
}
|
|
674
|
-
const contents = map({
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
});
|
|
677
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
678
|
-
const doc = take(data, {
|
|
679
|
-
incidentRecordSummaries: (_) => de_IncidentRecordSummaryList(_, context),
|
|
680
|
-
nextToken: __expectString,
|
|
681
|
-
});
|
|
682
|
-
Object.assign(contents, doc);
|
|
683
|
-
return contents;
|
|
684
|
-
};
|
|
685
|
-
export const de_ListRelatedItemsCommand = async (output, context) => {
|
|
686
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
687
|
-
return de_CommandError(output, context);
|
|
688
|
-
}
|
|
689
|
-
const contents = map({
|
|
690
|
-
$metadata: deserializeMetadata(output),
|
|
691
|
-
});
|
|
692
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
693
|
-
const doc = take(data, {
|
|
694
|
-
nextToken: __expectString,
|
|
695
|
-
relatedItems: _json,
|
|
696
|
-
});
|
|
697
|
-
Object.assign(contents, doc);
|
|
698
|
-
return contents;
|
|
699
|
-
};
|
|
700
|
-
export const de_ListReplicationSetsCommand = async (output, context) => {
|
|
701
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
702
|
-
return de_CommandError(output, context);
|
|
703
|
-
}
|
|
704
|
-
const contents = map({
|
|
705
|
-
$metadata: deserializeMetadata(output),
|
|
706
|
-
});
|
|
707
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
708
|
-
const doc = take(data, {
|
|
709
|
-
nextToken: __expectString,
|
|
710
|
-
replicationSetArns: _json,
|
|
711
|
-
});
|
|
712
|
-
Object.assign(contents, doc);
|
|
713
|
-
return contents;
|
|
714
|
-
};
|
|
715
|
-
export const de_ListResponsePlansCommand = async (output, context) => {
|
|
716
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
-
return de_CommandError(output, context);
|
|
718
|
-
}
|
|
719
|
-
const contents = map({
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
});
|
|
722
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
723
|
-
const doc = take(data, {
|
|
724
|
-
nextToken: __expectString,
|
|
725
|
-
responsePlanSummaries: _json,
|
|
726
|
-
});
|
|
727
|
-
Object.assign(contents, doc);
|
|
728
|
-
return contents;
|
|
729
|
-
};
|
|
730
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
731
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
732
|
-
return de_CommandError(output, context);
|
|
733
|
-
}
|
|
734
|
-
const contents = map({
|
|
735
|
-
$metadata: deserializeMetadata(output),
|
|
736
|
-
});
|
|
737
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
738
|
-
const doc = take(data, {
|
|
739
|
-
tags: _json,
|
|
740
|
-
});
|
|
741
|
-
Object.assign(contents, doc);
|
|
742
|
-
return contents;
|
|
743
|
-
};
|
|
744
|
-
export const de_ListTimelineEventsCommand = async (output, context) => {
|
|
745
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
746
|
-
return de_CommandError(output, context);
|
|
747
|
-
}
|
|
748
|
-
const contents = map({
|
|
749
|
-
$metadata: deserializeMetadata(output),
|
|
750
|
-
});
|
|
751
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
752
|
-
const doc = take(data, {
|
|
753
|
-
eventSummaries: (_) => de_EventSummaryList(_, context),
|
|
754
|
-
nextToken: __expectString,
|
|
755
|
-
});
|
|
756
|
-
Object.assign(contents, doc);
|
|
757
|
-
return contents;
|
|
758
|
-
};
|
|
759
|
-
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
760
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
761
|
-
return de_CommandError(output, context);
|
|
762
|
-
}
|
|
763
|
-
const contents = map({
|
|
764
|
-
$metadata: deserializeMetadata(output),
|
|
765
|
-
});
|
|
766
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
767
|
-
const doc = take(data, {
|
|
768
|
-
policyId: __expectString,
|
|
769
|
-
});
|
|
770
|
-
Object.assign(contents, doc);
|
|
771
|
-
return contents;
|
|
772
|
-
};
|
|
773
|
-
export const de_StartIncidentCommand = async (output, context) => {
|
|
774
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
775
|
-
return de_CommandError(output, context);
|
|
776
|
-
}
|
|
777
|
-
const contents = map({
|
|
778
|
-
$metadata: deserializeMetadata(output),
|
|
779
|
-
});
|
|
780
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
781
|
-
const doc = take(data, {
|
|
782
|
-
incidentRecordArn: __expectString,
|
|
783
|
-
});
|
|
784
|
-
Object.assign(contents, doc);
|
|
785
|
-
return contents;
|
|
786
|
-
};
|
|
787
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
788
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
789
|
-
return de_CommandError(output, context);
|
|
790
|
-
}
|
|
791
|
-
const contents = map({
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
});
|
|
794
|
-
await collectBody(output.body, context);
|
|
795
|
-
return contents;
|
|
796
|
-
};
|
|
797
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
798
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
799
|
-
return de_CommandError(output, context);
|
|
800
|
-
}
|
|
801
|
-
const contents = map({
|
|
802
|
-
$metadata: deserializeMetadata(output),
|
|
803
|
-
});
|
|
804
|
-
await collectBody(output.body, context);
|
|
805
|
-
return contents;
|
|
806
|
-
};
|
|
807
|
-
export const de_UpdateDeletionProtectionCommand = async (output, context) => {
|
|
808
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
809
|
-
return de_CommandError(output, context);
|
|
810
|
-
}
|
|
811
|
-
const contents = map({
|
|
812
|
-
$metadata: deserializeMetadata(output),
|
|
813
|
-
});
|
|
814
|
-
await collectBody(output.body, context);
|
|
815
|
-
return contents;
|
|
816
|
-
};
|
|
817
|
-
export const de_UpdateIncidentRecordCommand = async (output, context) => {
|
|
818
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
819
|
-
return de_CommandError(output, context);
|
|
820
|
-
}
|
|
821
|
-
const contents = map({
|
|
822
|
-
$metadata: deserializeMetadata(output),
|
|
823
|
-
});
|
|
824
|
-
await collectBody(output.body, context);
|
|
825
|
-
return contents;
|
|
826
|
-
};
|
|
827
|
-
export const de_UpdateRelatedItemsCommand = async (output, context) => {
|
|
828
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
829
|
-
return de_CommandError(output, context);
|
|
830
|
-
}
|
|
831
|
-
const contents = map({
|
|
832
|
-
$metadata: deserializeMetadata(output),
|
|
833
|
-
});
|
|
834
|
-
await collectBody(output.body, context);
|
|
835
|
-
return contents;
|
|
836
|
-
};
|
|
837
|
-
export const de_UpdateReplicationSetCommand = async (output, context) => {
|
|
838
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
839
|
-
return de_CommandError(output, context);
|
|
840
|
-
}
|
|
841
|
-
const contents = map({
|
|
842
|
-
$metadata: deserializeMetadata(output),
|
|
843
|
-
});
|
|
844
|
-
await collectBody(output.body, context);
|
|
845
|
-
return contents;
|
|
846
|
-
};
|
|
847
|
-
export const de_UpdateResponsePlanCommand = async (output, context) => {
|
|
848
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
849
|
-
return de_CommandError(output, context);
|
|
850
|
-
}
|
|
851
|
-
const contents = map({
|
|
852
|
-
$metadata: deserializeMetadata(output),
|
|
853
|
-
});
|
|
854
|
-
await collectBody(output.body, context);
|
|
855
|
-
return contents;
|
|
856
|
-
};
|
|
857
|
-
export const de_UpdateTimelineEventCommand = async (output, context) => {
|
|
858
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
859
|
-
return de_CommandError(output, context);
|
|
860
|
-
}
|
|
861
|
-
const contents = map({
|
|
862
|
-
$metadata: deserializeMetadata(output),
|
|
863
|
-
});
|
|
864
|
-
await collectBody(output.body, context);
|
|
865
|
-
return contents;
|
|
866
|
-
};
|
|
867
|
-
const de_CommandError = async (output, context) => {
|
|
868
|
-
const parsedOutput = {
|
|
869
|
-
...output,
|
|
870
|
-
body: await parseErrorBody(output.body, context),
|
|
871
|
-
};
|
|
872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
873
|
-
switch (errorCode) {
|
|
874
|
-
case "AccessDeniedException":
|
|
875
|
-
case "com.amazonaws.ssmincidents#AccessDeniedException":
|
|
876
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
877
|
-
case "InternalServerException":
|
|
878
|
-
case "com.amazonaws.ssmincidents#InternalServerException":
|
|
879
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ResourceNotFoundException":
|
|
881
|
-
case "com.amazonaws.ssmincidents#ResourceNotFoundException":
|
|
882
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
883
|
-
case "ThrottlingException":
|
|
884
|
-
case "com.amazonaws.ssmincidents#ThrottlingException":
|
|
885
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
886
|
-
case "ValidationException":
|
|
887
|
-
case "com.amazonaws.ssmincidents#ValidationException":
|
|
888
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
889
|
-
case "ConflictException":
|
|
890
|
-
case "com.amazonaws.ssmincidents#ConflictException":
|
|
891
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
892
|
-
case "ServiceQuotaExceededException":
|
|
893
|
-
case "com.amazonaws.ssmincidents#ServiceQuotaExceededException":
|
|
894
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
895
|
-
default:
|
|
896
|
-
const parsedBody = parsedOutput.body;
|
|
897
|
-
return throwDefaultError({
|
|
898
|
-
output,
|
|
899
|
-
parsedBody,
|
|
900
|
-
errorCode,
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
905
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
906
|
-
const contents = map({});
|
|
907
|
-
const data = parsedOutput.body;
|
|
908
|
-
const doc = take(data, {
|
|
909
|
-
message: __expectString,
|
|
910
|
-
});
|
|
911
|
-
Object.assign(contents, doc);
|
|
912
|
-
const exception = new AccessDeniedException({
|
|
913
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
914
|
-
...contents,
|
|
915
|
-
});
|
|
916
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
917
|
-
};
|
|
918
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
919
|
-
const contents = map({});
|
|
920
|
-
const data = parsedOutput.body;
|
|
921
|
-
const doc = take(data, {
|
|
922
|
-
message: __expectString,
|
|
923
|
-
resourceIdentifier: __expectString,
|
|
924
|
-
resourceType: __expectString,
|
|
925
|
-
retryAfter: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
926
|
-
});
|
|
927
|
-
Object.assign(contents, doc);
|
|
928
|
-
const exception = new ConflictException({
|
|
929
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
930
|
-
...contents,
|
|
931
|
-
});
|
|
932
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
933
|
-
};
|
|
934
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
935
|
-
const contents = map({});
|
|
936
|
-
const data = parsedOutput.body;
|
|
937
|
-
const doc = take(data, {
|
|
938
|
-
message: __expectString,
|
|
939
|
-
});
|
|
940
|
-
Object.assign(contents, doc);
|
|
941
|
-
const exception = new InternalServerException({
|
|
942
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
943
|
-
...contents,
|
|
944
|
-
});
|
|
945
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
946
|
-
};
|
|
947
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
948
|
-
const contents = map({});
|
|
949
|
-
const data = parsedOutput.body;
|
|
950
|
-
const doc = take(data, {
|
|
951
|
-
message: __expectString,
|
|
952
|
-
resourceIdentifier: __expectString,
|
|
953
|
-
resourceType: __expectString,
|
|
954
|
-
});
|
|
955
|
-
Object.assign(contents, doc);
|
|
956
|
-
const exception = new ResourceNotFoundException({
|
|
957
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
958
|
-
...contents,
|
|
959
|
-
});
|
|
960
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
961
|
-
};
|
|
962
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
963
|
-
const contents = map({});
|
|
964
|
-
const data = parsedOutput.body;
|
|
965
|
-
const doc = take(data, {
|
|
966
|
-
message: __expectString,
|
|
967
|
-
quotaCode: __expectString,
|
|
968
|
-
resourceIdentifier: __expectString,
|
|
969
|
-
resourceType: __expectString,
|
|
970
|
-
serviceCode: __expectString,
|
|
971
|
-
});
|
|
972
|
-
Object.assign(contents, doc);
|
|
973
|
-
const exception = new ServiceQuotaExceededException({
|
|
974
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
975
|
-
...contents,
|
|
976
|
-
});
|
|
977
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
978
|
-
};
|
|
979
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
980
|
-
const contents = map({});
|
|
981
|
-
const data = parsedOutput.body;
|
|
982
|
-
const doc = take(data, {
|
|
983
|
-
message: __expectString,
|
|
984
|
-
quotaCode: __expectString,
|
|
985
|
-
serviceCode: __expectString,
|
|
986
|
-
});
|
|
987
|
-
Object.assign(contents, doc);
|
|
988
|
-
const exception = new ThrottlingException({
|
|
989
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
990
|
-
...contents,
|
|
991
|
-
});
|
|
992
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
993
|
-
};
|
|
994
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
995
|
-
const contents = map({});
|
|
996
|
-
const data = parsedOutput.body;
|
|
997
|
-
const doc = take(data, {
|
|
998
|
-
message: __expectString,
|
|
999
|
-
});
|
|
1000
|
-
Object.assign(contents, doc);
|
|
1001
|
-
const exception = new ValidationException({
|
|
1002
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1003
|
-
...contents,
|
|
1004
|
-
});
|
|
1005
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1006
|
-
};
|
|
1007
|
-
const se_Condition = (input, context) => {
|
|
1008
|
-
return Condition.visit(input, {
|
|
1009
|
-
after: (value) => ({ after: value.getTime() / 1_000 }),
|
|
1010
|
-
before: (value) => ({ before: value.getTime() / 1_000 }),
|
|
1011
|
-
equals: (value) => ({ equals: _json(value) }),
|
|
1012
|
-
_: (name, value) => ({ [name]: value }),
|
|
1013
|
-
});
|
|
1014
|
-
};
|
|
1015
|
-
const se_Filter = (input, context) => {
|
|
1016
|
-
return take(input, {
|
|
1017
|
-
condition: (_) => se_Condition(_, context),
|
|
1018
|
-
key: [],
|
|
1019
|
-
});
|
|
1020
|
-
};
|
|
1021
|
-
const se_FilterList = (input, context) => {
|
|
1022
|
-
return input
|
|
1023
|
-
.filter((e) => e != null)
|
|
1024
|
-
.map((entry) => {
|
|
1025
|
-
return se_Filter(entry, context);
|
|
1026
|
-
});
|
|
1027
|
-
};
|
|
1028
|
-
const se_TriggerDetails = (input, context) => {
|
|
1029
|
-
return take(input, {
|
|
1030
|
-
rawData: [],
|
|
1031
|
-
source: [],
|
|
1032
|
-
timestamp: (_) => _.getTime() / 1_000,
|
|
1033
|
-
triggerArn: [],
|
|
1034
|
-
});
|
|
1035
|
-
};
|
|
1036
|
-
const de_CloudFormationStackUpdate = (output, context) => {
|
|
1037
|
-
return take(output, {
|
|
1038
|
-
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1039
|
-
stackArn: __expectString,
|
|
1040
|
-
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1041
|
-
});
|
|
1042
|
-
};
|
|
1043
|
-
const de_CodeDeployDeployment = (output, context) => {
|
|
1044
|
-
return take(output, {
|
|
1045
|
-
deploymentGroupArn: __expectString,
|
|
1046
|
-
deploymentId: __expectString,
|
|
1047
|
-
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1048
|
-
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1049
|
-
});
|
|
1050
|
-
};
|
|
1051
|
-
const de_EventSummary = (output, context) => {
|
|
1052
|
-
return take(output, {
|
|
1053
|
-
eventId: __expectString,
|
|
1054
|
-
eventReferences: _json,
|
|
1055
|
-
eventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1056
|
-
eventType: __expectString,
|
|
1057
|
-
eventUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1058
|
-
incidentRecordArn: __expectString,
|
|
1059
|
-
});
|
|
1060
|
-
};
|
|
1061
|
-
const de_EventSummaryList = (output, context) => {
|
|
1062
|
-
const retVal = (output || [])
|
|
1063
|
-
.filter((e) => e != null)
|
|
1064
|
-
.map((entry) => {
|
|
1065
|
-
return de_EventSummary(entry, context);
|
|
1066
|
-
});
|
|
1067
|
-
return retVal;
|
|
1068
|
-
};
|
|
1069
|
-
const de_Finding = (output, context) => {
|
|
1070
|
-
return take(output, {
|
|
1071
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1072
|
-
details: (_) => de_FindingDetails(__expectUnion(_), context),
|
|
1073
|
-
id: __expectString,
|
|
1074
|
-
lastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1075
|
-
});
|
|
1076
|
-
};
|
|
1077
|
-
const de_FindingDetails = (output, context) => {
|
|
1078
|
-
if (output.cloudFormationStackUpdate != null) {
|
|
1079
|
-
return {
|
|
1080
|
-
cloudFormationStackUpdate: de_CloudFormationStackUpdate(output.cloudFormationStackUpdate, context),
|
|
1081
|
-
};
|
|
1082
|
-
}
|
|
1083
|
-
if (output.codeDeployDeployment != null) {
|
|
1084
|
-
return {
|
|
1085
|
-
codeDeployDeployment: de_CodeDeployDeployment(output.codeDeployDeployment, context),
|
|
1086
|
-
};
|
|
1087
|
-
}
|
|
1088
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1089
|
-
};
|
|
1090
|
-
const de_FindingList = (output, context) => {
|
|
1091
|
-
const retVal = (output || [])
|
|
1092
|
-
.filter((e) => e != null)
|
|
1093
|
-
.map((entry) => {
|
|
1094
|
-
return de_Finding(entry, context);
|
|
1095
|
-
});
|
|
1096
|
-
return retVal;
|
|
1097
|
-
};
|
|
1098
|
-
const de_FindingSummary = (output, context) => {
|
|
1099
|
-
return take(output, {
|
|
1100
|
-
id: __expectString,
|
|
1101
|
-
lastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1102
|
-
});
|
|
1103
|
-
};
|
|
1104
|
-
const de_FindingSummaryList = (output, context) => {
|
|
1105
|
-
const retVal = (output || [])
|
|
1106
|
-
.filter((e) => e != null)
|
|
1107
|
-
.map((entry) => {
|
|
1108
|
-
return de_FindingSummary(entry, context);
|
|
1109
|
-
});
|
|
1110
|
-
return retVal;
|
|
1111
|
-
};
|
|
1112
|
-
const de_IncidentRecord = (output, context) => {
|
|
1113
|
-
return take(output, {
|
|
1114
|
-
arn: __expectString,
|
|
1115
|
-
automationExecutions: _json,
|
|
1116
|
-
chatChannel: (_) => _json(__expectUnion(_)),
|
|
1117
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1118
|
-
dedupeString: __expectString,
|
|
1119
|
-
impact: __expectInt32,
|
|
1120
|
-
incidentRecordSource: _json,
|
|
1121
|
-
lastModifiedBy: __expectString,
|
|
1122
|
-
lastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1123
|
-
notificationTargets: _json,
|
|
1124
|
-
resolvedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1125
|
-
status: __expectString,
|
|
1126
|
-
summary: __expectString,
|
|
1127
|
-
title: __expectString,
|
|
1128
|
-
});
|
|
1129
|
-
};
|
|
1130
|
-
const de_IncidentRecordSummary = (output, context) => {
|
|
1131
|
-
return take(output, {
|
|
1132
|
-
arn: __expectString,
|
|
1133
|
-
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1134
|
-
impact: __expectInt32,
|
|
1135
|
-
incidentRecordSource: _json,
|
|
1136
|
-
resolvedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1137
|
-
status: __expectString,
|
|
1138
|
-
title: __expectString,
|
|
1139
|
-
});
|
|
1140
|
-
};
|
|
1141
|
-
const de_IncidentRecordSummaryList = (output, context) => {
|
|
1142
|
-
const retVal = (output || [])
|
|
1143
|
-
.filter((e) => e != null)
|
|
1144
|
-
.map((entry) => {
|
|
1145
|
-
return de_IncidentRecordSummary(entry, context);
|
|
1146
|
-
});
|
|
1147
|
-
return retVal;
|
|
1148
|
-
};
|
|
1149
|
-
const de_RegionInfo = (output, context) => {
|
|
1150
|
-
return take(output, {
|
|
1151
|
-
sseKmsKeyId: __expectString,
|
|
1152
|
-
status: __expectString,
|
|
1153
|
-
statusMessage: __expectString,
|
|
1154
|
-
statusUpdateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1155
|
-
});
|
|
1156
|
-
};
|
|
1157
|
-
const de_RegionInfoMap = (output, context) => {
|
|
1158
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1159
|
-
if (value === null) {
|
|
1160
|
-
return acc;
|
|
1161
|
-
}
|
|
1162
|
-
acc[key] = de_RegionInfo(value, context);
|
|
1163
|
-
return acc;
|
|
1164
|
-
}, {});
|
|
1165
|
-
};
|
|
1166
|
-
const de_ReplicationSet = (output, context) => {
|
|
1167
|
-
return take(output, {
|
|
1168
|
-
arn: __expectString,
|
|
1169
|
-
createdBy: __expectString,
|
|
1170
|
-
createdTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1171
|
-
deletionProtected: __expectBoolean,
|
|
1172
|
-
lastModifiedBy: __expectString,
|
|
1173
|
-
lastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1174
|
-
regionMap: (_) => de_RegionInfoMap(_, context),
|
|
1175
|
-
status: __expectString,
|
|
1176
|
-
});
|
|
1177
|
-
};
|
|
1178
|
-
const de_TimelineEvent = (output, context) => {
|
|
1179
|
-
return take(output, {
|
|
1180
|
-
eventData: __expectString,
|
|
1181
|
-
eventId: __expectString,
|
|
1182
|
-
eventReferences: _json,
|
|
1183
|
-
eventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1184
|
-
eventType: __expectString,
|
|
1185
|
-
eventUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1186
|
-
incidentRecordArn: __expectString,
|
|
1187
|
-
});
|
|
1188
|
-
};
|
|
1189
|
-
const deserializeMetadata = (output) => ({
|
|
1190
|
-
httpStatusCode: output.statusCode,
|
|
1191
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1192
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1193
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1194
|
-
});
|
|
1195
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1196
|
-
const _a = "arn";
|
|
1197
|
-
const _eI = "eventId";
|
|
1198
|
-
const _iRA = "incidentRecordArn";
|
|
1199
|
-
const _rA = "resourceArn";
|
|
1200
|
-
const _tK = "tagKeys";
|