@aws-sdk/client-ssm-incidents 3.476.0 → 3.477.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/protocols/Aws_restJson1.js +142 -361
- package/dist-es/protocols/Aws_restJson1.js +143 -362
- package/package.json +5 -4
|
@@ -3,62 +3,48 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.de_ListResponsePlansCommand = exports.de_ListReplicationSetsCommand = exports.de_ListRelatedItemsCommand = exports.de_ListIncidentRecordsCommand = exports.de_ListIncidentFindingsCommand = exports.de_GetTimelineEventCommand = exports.de_GetResponsePlanCommand = exports.de_GetResourcePoliciesCommand = exports.de_GetReplicationSetCommand = exports.de_GetIncidentRecordCommand = exports.de_DeleteTimelineEventCommand = exports.de_DeleteResponsePlanCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteReplicationSetCommand = exports.de_DeleteIncidentRecordCommand = exports.de_CreateTimelineEventCommand = exports.de_CreateResponsePlanCommand = exports.de_CreateReplicationSetCommand = exports.de_BatchGetIncidentFindingsCommand = exports.se_UpdateTimelineEventCommand = exports.se_UpdateResponsePlanCommand = exports.se_UpdateReplicationSetCommand = exports.se_UpdateRelatedItemsCommand = exports.se_UpdateIncidentRecordCommand = exports.se_UpdateDeletionProtectionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartIncidentCommand = exports.se_PutResourcePolicyCommand = exports.se_ListTimelineEventsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResponsePlansCommand = exports.se_ListReplicationSetsCommand = exports.se_ListRelatedItemsCommand = exports.se_ListIncidentRecordsCommand = exports.se_ListIncidentFindingsCommand = exports.se_GetTimelineEventCommand = exports.se_GetResponsePlanCommand = exports.se_GetResourcePoliciesCommand = exports.se_GetReplicationSetCommand = exports.se_GetIncidentRecordCommand = exports.se_DeleteTimelineEventCommand = exports.se_DeleteResponsePlanCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteReplicationSetCommand = exports.se_DeleteIncidentRecordCommand = exports.se_CreateTimelineEventCommand = exports.se_CreateResponsePlanCommand = exports.se_CreateReplicationSetCommand = exports.se_BatchGetIncidentFindingsCommand = void 0;
|
|
4
4
|
exports.de_UpdateTimelineEventCommand = exports.de_UpdateResponsePlanCommand = exports.de_UpdateReplicationSetCommand = exports.de_UpdateRelatedItemsCommand = exports.de_UpdateIncidentRecordCommand = exports.de_UpdateDeletionProtectionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartIncidentCommand = exports.de_PutResourcePolicyCommand = exports.de_ListTimelineEventsCommand = exports.de_ListTagsForResourceCommand = void 0;
|
|
5
5
|
const core_1 = require("@aws-sdk/core");
|
|
6
|
-
const
|
|
6
|
+
const core_2 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const SSMIncidentsServiceException_1 = require("../models/SSMIncidentsServiceException");
|
|
11
11
|
const se_BatchGetIncidentFindingsCommand = async (input, context) => {
|
|
12
|
-
const
|
|
12
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
13
13
|
const headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
b.bp("/batchGetIncidentFindings");
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
19
|
findingIds: (_) => (0, smithy_client_1._json)(_),
|
|
20
20
|
incidentRecordArn: [],
|
|
21
21
|
}));
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
hostname,
|
|
25
|
-
port,
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers,
|
|
28
|
-
path: resolvedPath,
|
|
29
|
-
body,
|
|
30
|
-
});
|
|
22
|
+
b.m("POST").h(headers).b(body);
|
|
23
|
+
return b.build();
|
|
31
24
|
};
|
|
32
25
|
exports.se_BatchGetIncidentFindingsCommand = se_BatchGetIncidentFindingsCommand;
|
|
33
26
|
const se_CreateReplicationSetCommand = async (input, context) => {
|
|
34
|
-
const
|
|
27
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
35
28
|
const headers = {
|
|
36
29
|
"content-type": "application/json",
|
|
37
30
|
};
|
|
38
|
-
|
|
31
|
+
b.bp("/createReplicationSet");
|
|
39
32
|
let body;
|
|
40
33
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
34
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
42
35
|
regions: (_) => (0, smithy_client_1._json)(_),
|
|
43
36
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
44
37
|
}));
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
hostname,
|
|
48
|
-
port,
|
|
49
|
-
method: "POST",
|
|
50
|
-
headers,
|
|
51
|
-
path: resolvedPath,
|
|
52
|
-
body,
|
|
53
|
-
});
|
|
38
|
+
b.m("POST").h(headers).b(body);
|
|
39
|
+
return b.build();
|
|
54
40
|
};
|
|
55
41
|
exports.se_CreateReplicationSetCommand = se_CreateReplicationSetCommand;
|
|
56
42
|
const se_CreateResponsePlanCommand = async (input, context) => {
|
|
57
|
-
const
|
|
43
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
58
44
|
const headers = {
|
|
59
45
|
"content-type": "application/json",
|
|
60
46
|
};
|
|
61
|
-
|
|
47
|
+
b.bp("/createResponsePlan");
|
|
62
48
|
let body;
|
|
63
49
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
50
|
actions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -71,23 +57,16 @@ const se_CreateResponsePlanCommand = async (input, context) => {
|
|
|
71
57
|
name: [],
|
|
72
58
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
73
59
|
}));
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
hostname,
|
|
77
|
-
port,
|
|
78
|
-
method: "POST",
|
|
79
|
-
headers,
|
|
80
|
-
path: resolvedPath,
|
|
81
|
-
body,
|
|
82
|
-
});
|
|
60
|
+
b.m("POST").h(headers).b(body);
|
|
61
|
+
return b.build();
|
|
83
62
|
};
|
|
84
63
|
exports.se_CreateResponsePlanCommand = se_CreateResponsePlanCommand;
|
|
85
64
|
const se_CreateTimelineEventCommand = async (input, context) => {
|
|
86
|
-
const
|
|
65
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
87
66
|
const headers = {
|
|
88
67
|
"content-type": "application/json",
|
|
89
68
|
};
|
|
90
|
-
|
|
69
|
+
b.bp("/createTimelineEvent");
|
|
91
70
|
let body;
|
|
92
71
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
93
72
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -97,366 +76,241 @@ const se_CreateTimelineEventCommand = async (input, context) => {
|
|
|
97
76
|
eventType: [],
|
|
98
77
|
incidentRecordArn: [],
|
|
99
78
|
}));
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
hostname,
|
|
103
|
-
port,
|
|
104
|
-
method: "POST",
|
|
105
|
-
headers,
|
|
106
|
-
path: resolvedPath,
|
|
107
|
-
body,
|
|
108
|
-
});
|
|
79
|
+
b.m("POST").h(headers).b(body);
|
|
80
|
+
return b.build();
|
|
109
81
|
};
|
|
110
82
|
exports.se_CreateTimelineEventCommand = se_CreateTimelineEventCommand;
|
|
111
83
|
const se_DeleteIncidentRecordCommand = async (input, context) => {
|
|
112
|
-
const
|
|
84
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
113
85
|
const headers = {
|
|
114
86
|
"content-type": "application/json",
|
|
115
87
|
};
|
|
116
|
-
|
|
88
|
+
b.bp("/deleteIncidentRecord");
|
|
117
89
|
let body;
|
|
118
90
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
119
91
|
arn: [],
|
|
120
92
|
}));
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
hostname,
|
|
124
|
-
port,
|
|
125
|
-
method: "POST",
|
|
126
|
-
headers,
|
|
127
|
-
path: resolvedPath,
|
|
128
|
-
body,
|
|
129
|
-
});
|
|
93
|
+
b.m("POST").h(headers).b(body);
|
|
94
|
+
return b.build();
|
|
130
95
|
};
|
|
131
96
|
exports.se_DeleteIncidentRecordCommand = se_DeleteIncidentRecordCommand;
|
|
132
97
|
const se_DeleteReplicationSetCommand = async (input, context) => {
|
|
133
|
-
const
|
|
98
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
134
99
|
const headers = {};
|
|
135
|
-
|
|
100
|
+
b.bp("/deleteReplicationSet");
|
|
136
101
|
const query = (0, smithy_client_1.map)({
|
|
137
|
-
|
|
102
|
+
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `arn`)],
|
|
138
103
|
});
|
|
139
104
|
let body;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
hostname,
|
|
143
|
-
port,
|
|
144
|
-
method: "POST",
|
|
145
|
-
headers,
|
|
146
|
-
path: resolvedPath,
|
|
147
|
-
query,
|
|
148
|
-
body,
|
|
149
|
-
});
|
|
105
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
106
|
+
return b.build();
|
|
150
107
|
};
|
|
151
108
|
exports.se_DeleteReplicationSetCommand = se_DeleteReplicationSetCommand;
|
|
152
109
|
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
153
|
-
const
|
|
110
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
154
111
|
const headers = {
|
|
155
112
|
"content-type": "application/json",
|
|
156
113
|
};
|
|
157
|
-
|
|
114
|
+
b.bp("/deleteResourcePolicy");
|
|
158
115
|
let body;
|
|
159
116
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
160
117
|
policyId: [],
|
|
161
118
|
resourceArn: [],
|
|
162
119
|
}));
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
hostname,
|
|
166
|
-
port,
|
|
167
|
-
method: "POST",
|
|
168
|
-
headers,
|
|
169
|
-
path: resolvedPath,
|
|
170
|
-
body,
|
|
171
|
-
});
|
|
120
|
+
b.m("POST").h(headers).b(body);
|
|
121
|
+
return b.build();
|
|
172
122
|
};
|
|
173
123
|
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
174
124
|
const se_DeleteResponsePlanCommand = async (input, context) => {
|
|
175
|
-
const
|
|
125
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
176
126
|
const headers = {
|
|
177
127
|
"content-type": "application/json",
|
|
178
128
|
};
|
|
179
|
-
|
|
129
|
+
b.bp("/deleteResponsePlan");
|
|
180
130
|
let body;
|
|
181
131
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
182
132
|
arn: [],
|
|
183
133
|
}));
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
hostname,
|
|
187
|
-
port,
|
|
188
|
-
method: "POST",
|
|
189
|
-
headers,
|
|
190
|
-
path: resolvedPath,
|
|
191
|
-
body,
|
|
192
|
-
});
|
|
134
|
+
b.m("POST").h(headers).b(body);
|
|
135
|
+
return b.build();
|
|
193
136
|
};
|
|
194
137
|
exports.se_DeleteResponsePlanCommand = se_DeleteResponsePlanCommand;
|
|
195
138
|
const se_DeleteTimelineEventCommand = async (input, context) => {
|
|
196
|
-
const
|
|
139
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
197
140
|
const headers = {
|
|
198
141
|
"content-type": "application/json",
|
|
199
142
|
};
|
|
200
|
-
|
|
143
|
+
b.bp("/deleteTimelineEvent");
|
|
201
144
|
let body;
|
|
202
145
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
203
146
|
eventId: [],
|
|
204
147
|
incidentRecordArn: [],
|
|
205
148
|
}));
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
hostname,
|
|
209
|
-
port,
|
|
210
|
-
method: "POST",
|
|
211
|
-
headers,
|
|
212
|
-
path: resolvedPath,
|
|
213
|
-
body,
|
|
214
|
-
});
|
|
149
|
+
b.m("POST").h(headers).b(body);
|
|
150
|
+
return b.build();
|
|
215
151
|
};
|
|
216
152
|
exports.se_DeleteTimelineEventCommand = se_DeleteTimelineEventCommand;
|
|
217
153
|
const se_GetIncidentRecordCommand = async (input, context) => {
|
|
218
|
-
const
|
|
154
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
219
155
|
const headers = {};
|
|
220
|
-
|
|
156
|
+
b.bp("/getIncidentRecord");
|
|
221
157
|
const query = (0, smithy_client_1.map)({
|
|
222
|
-
|
|
158
|
+
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `arn`)],
|
|
223
159
|
});
|
|
224
160
|
let body;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
hostname,
|
|
228
|
-
port,
|
|
229
|
-
method: "GET",
|
|
230
|
-
headers,
|
|
231
|
-
path: resolvedPath,
|
|
232
|
-
query,
|
|
233
|
-
body,
|
|
234
|
-
});
|
|
161
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
162
|
+
return b.build();
|
|
235
163
|
};
|
|
236
164
|
exports.se_GetIncidentRecordCommand = se_GetIncidentRecordCommand;
|
|
237
165
|
const se_GetReplicationSetCommand = async (input, context) => {
|
|
238
|
-
const
|
|
166
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
239
167
|
const headers = {};
|
|
240
|
-
|
|
168
|
+
b.bp("/getReplicationSet");
|
|
241
169
|
const query = (0, smithy_client_1.map)({
|
|
242
|
-
|
|
170
|
+
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `arn`)],
|
|
243
171
|
});
|
|
244
172
|
let body;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
hostname,
|
|
248
|
-
port,
|
|
249
|
-
method: "GET",
|
|
250
|
-
headers,
|
|
251
|
-
path: resolvedPath,
|
|
252
|
-
query,
|
|
253
|
-
body,
|
|
254
|
-
});
|
|
173
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
174
|
+
return b.build();
|
|
255
175
|
};
|
|
256
176
|
exports.se_GetReplicationSetCommand = se_GetReplicationSetCommand;
|
|
257
177
|
const se_GetResourcePoliciesCommand = async (input, context) => {
|
|
258
|
-
const
|
|
178
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
259
179
|
const headers = {
|
|
260
180
|
"content-type": "application/json",
|
|
261
181
|
};
|
|
262
|
-
|
|
182
|
+
b.bp("/getResourcePolicies");
|
|
263
183
|
const query = (0, smithy_client_1.map)({
|
|
264
|
-
|
|
184
|
+
[_rA]: [, (0, smithy_client_1.expectNonNull)(input[_rA], `resourceArn`)],
|
|
265
185
|
});
|
|
266
186
|
let body;
|
|
267
187
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
268
188
|
maxResults: [],
|
|
269
189
|
nextToken: [],
|
|
270
190
|
}));
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
hostname,
|
|
274
|
-
port,
|
|
275
|
-
method: "POST",
|
|
276
|
-
headers,
|
|
277
|
-
path: resolvedPath,
|
|
278
|
-
query,
|
|
279
|
-
body,
|
|
280
|
-
});
|
|
191
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
192
|
+
return b.build();
|
|
281
193
|
};
|
|
282
194
|
exports.se_GetResourcePoliciesCommand = se_GetResourcePoliciesCommand;
|
|
283
195
|
const se_GetResponsePlanCommand = async (input, context) => {
|
|
284
|
-
const
|
|
196
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
285
197
|
const headers = {};
|
|
286
|
-
|
|
198
|
+
b.bp("/getResponsePlan");
|
|
287
199
|
const query = (0, smithy_client_1.map)({
|
|
288
|
-
|
|
200
|
+
[_a]: [, (0, smithy_client_1.expectNonNull)(input[_a], `arn`)],
|
|
289
201
|
});
|
|
290
202
|
let body;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
hostname,
|
|
294
|
-
port,
|
|
295
|
-
method: "GET",
|
|
296
|
-
headers,
|
|
297
|
-
path: resolvedPath,
|
|
298
|
-
query,
|
|
299
|
-
body,
|
|
300
|
-
});
|
|
203
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
204
|
+
return b.build();
|
|
301
205
|
};
|
|
302
206
|
exports.se_GetResponsePlanCommand = se_GetResponsePlanCommand;
|
|
303
207
|
const se_GetTimelineEventCommand = async (input, context) => {
|
|
304
|
-
const
|
|
208
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
305
209
|
const headers = {};
|
|
306
|
-
|
|
210
|
+
b.bp("/getTimelineEvent");
|
|
307
211
|
const query = (0, smithy_client_1.map)({
|
|
308
|
-
|
|
309
|
-
|
|
212
|
+
[_iRA]: [, (0, smithy_client_1.expectNonNull)(input[_iRA], `incidentRecordArn`)],
|
|
213
|
+
[_eI]: [, (0, smithy_client_1.expectNonNull)(input[_eI], `eventId`)],
|
|
310
214
|
});
|
|
311
215
|
let body;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
hostname,
|
|
315
|
-
port,
|
|
316
|
-
method: "GET",
|
|
317
|
-
headers,
|
|
318
|
-
path: resolvedPath,
|
|
319
|
-
query,
|
|
320
|
-
body,
|
|
321
|
-
});
|
|
216
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
217
|
+
return b.build();
|
|
322
218
|
};
|
|
323
219
|
exports.se_GetTimelineEventCommand = se_GetTimelineEventCommand;
|
|
324
220
|
const se_ListIncidentFindingsCommand = async (input, context) => {
|
|
325
|
-
const
|
|
221
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
326
222
|
const headers = {
|
|
327
223
|
"content-type": "application/json",
|
|
328
224
|
};
|
|
329
|
-
|
|
225
|
+
b.bp("/listIncidentFindings");
|
|
330
226
|
let body;
|
|
331
227
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
332
228
|
incidentRecordArn: [],
|
|
333
229
|
maxResults: [],
|
|
334
230
|
nextToken: [],
|
|
335
231
|
}));
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
hostname,
|
|
339
|
-
port,
|
|
340
|
-
method: "POST",
|
|
341
|
-
headers,
|
|
342
|
-
path: resolvedPath,
|
|
343
|
-
body,
|
|
344
|
-
});
|
|
232
|
+
b.m("POST").h(headers).b(body);
|
|
233
|
+
return b.build();
|
|
345
234
|
};
|
|
346
235
|
exports.se_ListIncidentFindingsCommand = se_ListIncidentFindingsCommand;
|
|
347
236
|
const se_ListIncidentRecordsCommand = async (input, context) => {
|
|
348
|
-
const
|
|
237
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
349
238
|
const headers = {
|
|
350
239
|
"content-type": "application/json",
|
|
351
240
|
};
|
|
352
|
-
|
|
241
|
+
b.bp("/listIncidentRecords");
|
|
353
242
|
let body;
|
|
354
243
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
355
244
|
filters: (_) => se_FilterList(_, context),
|
|
356
245
|
maxResults: [],
|
|
357
246
|
nextToken: [],
|
|
358
247
|
}));
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
hostname,
|
|
362
|
-
port,
|
|
363
|
-
method: "POST",
|
|
364
|
-
headers,
|
|
365
|
-
path: resolvedPath,
|
|
366
|
-
body,
|
|
367
|
-
});
|
|
248
|
+
b.m("POST").h(headers).b(body);
|
|
249
|
+
return b.build();
|
|
368
250
|
};
|
|
369
251
|
exports.se_ListIncidentRecordsCommand = se_ListIncidentRecordsCommand;
|
|
370
252
|
const se_ListRelatedItemsCommand = async (input, context) => {
|
|
371
|
-
const
|
|
253
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
372
254
|
const headers = {
|
|
373
255
|
"content-type": "application/json",
|
|
374
256
|
};
|
|
375
|
-
|
|
257
|
+
b.bp("/listRelatedItems");
|
|
376
258
|
let body;
|
|
377
259
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
378
260
|
incidentRecordArn: [],
|
|
379
261
|
maxResults: [],
|
|
380
262
|
nextToken: [],
|
|
381
263
|
}));
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
hostname,
|
|
385
|
-
port,
|
|
386
|
-
method: "POST",
|
|
387
|
-
headers,
|
|
388
|
-
path: resolvedPath,
|
|
389
|
-
body,
|
|
390
|
-
});
|
|
264
|
+
b.m("POST").h(headers).b(body);
|
|
265
|
+
return b.build();
|
|
391
266
|
};
|
|
392
267
|
exports.se_ListRelatedItemsCommand = se_ListRelatedItemsCommand;
|
|
393
268
|
const se_ListReplicationSetsCommand = async (input, context) => {
|
|
394
|
-
const
|
|
269
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
395
270
|
const headers = {
|
|
396
271
|
"content-type": "application/json",
|
|
397
272
|
};
|
|
398
|
-
|
|
273
|
+
b.bp("/listReplicationSets");
|
|
399
274
|
let body;
|
|
400
275
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
401
276
|
maxResults: [],
|
|
402
277
|
nextToken: [],
|
|
403
278
|
}));
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
hostname,
|
|
407
|
-
port,
|
|
408
|
-
method: "POST",
|
|
409
|
-
headers,
|
|
410
|
-
path: resolvedPath,
|
|
411
|
-
body,
|
|
412
|
-
});
|
|
279
|
+
b.m("POST").h(headers).b(body);
|
|
280
|
+
return b.build();
|
|
413
281
|
};
|
|
414
282
|
exports.se_ListReplicationSetsCommand = se_ListReplicationSetsCommand;
|
|
415
283
|
const se_ListResponsePlansCommand = async (input, context) => {
|
|
416
|
-
const
|
|
284
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
417
285
|
const headers = {
|
|
418
286
|
"content-type": "application/json",
|
|
419
287
|
};
|
|
420
|
-
|
|
288
|
+
b.bp("/listResponsePlans");
|
|
421
289
|
let body;
|
|
422
290
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
423
291
|
maxResults: [],
|
|
424
292
|
nextToken: [],
|
|
425
293
|
}));
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
hostname,
|
|
429
|
-
port,
|
|
430
|
-
method: "POST",
|
|
431
|
-
headers,
|
|
432
|
-
path: resolvedPath,
|
|
433
|
-
body,
|
|
434
|
-
});
|
|
294
|
+
b.m("POST").h(headers).b(body);
|
|
295
|
+
return b.build();
|
|
435
296
|
};
|
|
436
297
|
exports.se_ListResponsePlansCommand = se_ListResponsePlansCommand;
|
|
437
298
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
438
|
-
const
|
|
299
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
439
300
|
const headers = {};
|
|
440
|
-
|
|
441
|
-
|
|
301
|
+
b.bp("/tags/{resourceArn}");
|
|
302
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
442
303
|
let body;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
hostname,
|
|
446
|
-
port,
|
|
447
|
-
method: "GET",
|
|
448
|
-
headers,
|
|
449
|
-
path: resolvedPath,
|
|
450
|
-
body,
|
|
451
|
-
});
|
|
304
|
+
b.m("GET").h(headers).b(body);
|
|
305
|
+
return b.build();
|
|
452
306
|
};
|
|
453
307
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
454
308
|
const se_ListTimelineEventsCommand = async (input, context) => {
|
|
455
|
-
const
|
|
309
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
456
310
|
const headers = {
|
|
457
311
|
"content-type": "application/json",
|
|
458
312
|
};
|
|
459
|
-
|
|
313
|
+
b.bp("/listTimelineEvents");
|
|
460
314
|
let body;
|
|
461
315
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
462
316
|
filters: (_) => se_FilterList(_, context),
|
|
@@ -466,45 +320,31 @@ const se_ListTimelineEventsCommand = async (input, context) => {
|
|
|
466
320
|
sortBy: [],
|
|
467
321
|
sortOrder: [],
|
|
468
322
|
}));
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
hostname,
|
|
472
|
-
port,
|
|
473
|
-
method: "POST",
|
|
474
|
-
headers,
|
|
475
|
-
path: resolvedPath,
|
|
476
|
-
body,
|
|
477
|
-
});
|
|
323
|
+
b.m("POST").h(headers).b(body);
|
|
324
|
+
return b.build();
|
|
478
325
|
};
|
|
479
326
|
exports.se_ListTimelineEventsCommand = se_ListTimelineEventsCommand;
|
|
480
327
|
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
481
|
-
const
|
|
328
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
482
329
|
const headers = {
|
|
483
330
|
"content-type": "application/json",
|
|
484
331
|
};
|
|
485
|
-
|
|
332
|
+
b.bp("/putResourcePolicy");
|
|
486
333
|
let body;
|
|
487
334
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
488
335
|
policy: [],
|
|
489
336
|
resourceArn: [],
|
|
490
337
|
}));
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
hostname,
|
|
494
|
-
port,
|
|
495
|
-
method: "POST",
|
|
496
|
-
headers,
|
|
497
|
-
path: resolvedPath,
|
|
498
|
-
body,
|
|
499
|
-
});
|
|
338
|
+
b.m("POST").h(headers).b(body);
|
|
339
|
+
return b.build();
|
|
500
340
|
};
|
|
501
341
|
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
502
342
|
const se_StartIncidentCommand = async (input, context) => {
|
|
503
|
-
const
|
|
343
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
504
344
|
const headers = {
|
|
505
345
|
"content-type": "application/json",
|
|
506
346
|
};
|
|
507
|
-
|
|
347
|
+
b.bp("/startIncident");
|
|
508
348
|
let body;
|
|
509
349
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
510
350
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -514,92 +354,63 @@ const se_StartIncidentCommand = async (input, context) => {
|
|
|
514
354
|
title: [],
|
|
515
355
|
triggerDetails: (_) => se_TriggerDetails(_, context),
|
|
516
356
|
}));
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
hostname,
|
|
520
|
-
port,
|
|
521
|
-
method: "POST",
|
|
522
|
-
headers,
|
|
523
|
-
path: resolvedPath,
|
|
524
|
-
body,
|
|
525
|
-
});
|
|
357
|
+
b.m("POST").h(headers).b(body);
|
|
358
|
+
return b.build();
|
|
526
359
|
};
|
|
527
360
|
exports.se_StartIncidentCommand = se_StartIncidentCommand;
|
|
528
361
|
const se_TagResourceCommand = async (input, context) => {
|
|
529
|
-
const
|
|
362
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
530
363
|
const headers = {
|
|
531
364
|
"content-type": "application/json",
|
|
532
365
|
};
|
|
533
|
-
|
|
534
|
-
|
|
366
|
+
b.bp("/tags/{resourceArn}");
|
|
367
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
535
368
|
let body;
|
|
536
369
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
537
370
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
538
371
|
}));
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
hostname,
|
|
542
|
-
port,
|
|
543
|
-
method: "POST",
|
|
544
|
-
headers,
|
|
545
|
-
path: resolvedPath,
|
|
546
|
-
body,
|
|
547
|
-
});
|
|
372
|
+
b.m("POST").h(headers).b(body);
|
|
373
|
+
return b.build();
|
|
548
374
|
};
|
|
549
375
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
550
376
|
const se_UntagResourceCommand = async (input, context) => {
|
|
551
|
-
const
|
|
377
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
552
378
|
const headers = {};
|
|
553
|
-
|
|
554
|
-
|
|
379
|
+
b.bp("/tags/{resourceArn}");
|
|
380
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
555
381
|
const query = (0, smithy_client_1.map)({
|
|
556
|
-
|
|
382
|
+
[_tK]: [
|
|
557
383
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
558
|
-
() => (input
|
|
384
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
559
385
|
],
|
|
560
386
|
});
|
|
561
387
|
let body;
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
hostname,
|
|
565
|
-
port,
|
|
566
|
-
method: "DELETE",
|
|
567
|
-
headers,
|
|
568
|
-
path: resolvedPath,
|
|
569
|
-
query,
|
|
570
|
-
body,
|
|
571
|
-
});
|
|
388
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
389
|
+
return b.build();
|
|
572
390
|
};
|
|
573
391
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
574
392
|
const se_UpdateDeletionProtectionCommand = async (input, context) => {
|
|
575
|
-
const
|
|
393
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
576
394
|
const headers = {
|
|
577
395
|
"content-type": "application/json",
|
|
578
396
|
};
|
|
579
|
-
|
|
397
|
+
b.bp("/updateDeletionProtection");
|
|
580
398
|
let body;
|
|
581
399
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
582
400
|
arn: [],
|
|
583
401
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
584
402
|
deletionProtected: [],
|
|
585
403
|
}));
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
hostname,
|
|
589
|
-
port,
|
|
590
|
-
method: "POST",
|
|
591
|
-
headers,
|
|
592
|
-
path: resolvedPath,
|
|
593
|
-
body,
|
|
594
|
-
});
|
|
404
|
+
b.m("POST").h(headers).b(body);
|
|
405
|
+
return b.build();
|
|
595
406
|
};
|
|
596
407
|
exports.se_UpdateDeletionProtectionCommand = se_UpdateDeletionProtectionCommand;
|
|
597
408
|
const se_UpdateIncidentRecordCommand = async (input, context) => {
|
|
598
|
-
const
|
|
409
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
599
410
|
const headers = {
|
|
600
411
|
"content-type": "application/json",
|
|
601
412
|
};
|
|
602
|
-
|
|
413
|
+
b.bp("/updateIncidentRecord");
|
|
603
414
|
let body;
|
|
604
415
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
605
416
|
arn: [],
|
|
@@ -611,69 +422,48 @@ const se_UpdateIncidentRecordCommand = async (input, context) => {
|
|
|
611
422
|
summary: [],
|
|
612
423
|
title: [],
|
|
613
424
|
}));
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
hostname,
|
|
617
|
-
port,
|
|
618
|
-
method: "POST",
|
|
619
|
-
headers,
|
|
620
|
-
path: resolvedPath,
|
|
621
|
-
body,
|
|
622
|
-
});
|
|
425
|
+
b.m("POST").h(headers).b(body);
|
|
426
|
+
return b.build();
|
|
623
427
|
};
|
|
624
428
|
exports.se_UpdateIncidentRecordCommand = se_UpdateIncidentRecordCommand;
|
|
625
429
|
const se_UpdateRelatedItemsCommand = async (input, context) => {
|
|
626
|
-
const
|
|
430
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
627
431
|
const headers = {
|
|
628
432
|
"content-type": "application/json",
|
|
629
433
|
};
|
|
630
|
-
|
|
434
|
+
b.bp("/updateRelatedItems");
|
|
631
435
|
let body;
|
|
632
436
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
633
437
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
634
438
|
incidentRecordArn: [],
|
|
635
439
|
relatedItemsUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
636
440
|
}));
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
hostname,
|
|
640
|
-
port,
|
|
641
|
-
method: "POST",
|
|
642
|
-
headers,
|
|
643
|
-
path: resolvedPath,
|
|
644
|
-
body,
|
|
645
|
-
});
|
|
441
|
+
b.m("POST").h(headers).b(body);
|
|
442
|
+
return b.build();
|
|
646
443
|
};
|
|
647
444
|
exports.se_UpdateRelatedItemsCommand = se_UpdateRelatedItemsCommand;
|
|
648
445
|
const se_UpdateReplicationSetCommand = async (input, context) => {
|
|
649
|
-
const
|
|
446
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
650
447
|
const headers = {
|
|
651
448
|
"content-type": "application/json",
|
|
652
449
|
};
|
|
653
|
-
|
|
450
|
+
b.bp("/updateReplicationSet");
|
|
654
451
|
let body;
|
|
655
452
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
656
453
|
actions: (_) => (0, smithy_client_1._json)(_),
|
|
657
454
|
arn: [],
|
|
658
455
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
659
456
|
}));
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
hostname,
|
|
663
|
-
port,
|
|
664
|
-
method: "POST",
|
|
665
|
-
headers,
|
|
666
|
-
path: resolvedPath,
|
|
667
|
-
body,
|
|
668
|
-
});
|
|
457
|
+
b.m("POST").h(headers).b(body);
|
|
458
|
+
return b.build();
|
|
669
459
|
};
|
|
670
460
|
exports.se_UpdateReplicationSetCommand = se_UpdateReplicationSetCommand;
|
|
671
461
|
const se_UpdateResponsePlanCommand = async (input, context) => {
|
|
672
|
-
const
|
|
462
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
673
463
|
const headers = {
|
|
674
464
|
"content-type": "application/json",
|
|
675
465
|
};
|
|
676
|
-
|
|
466
|
+
b.bp("/updateResponsePlan");
|
|
677
467
|
let body;
|
|
678
468
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
679
469
|
actions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -690,23 +480,16 @@ const se_UpdateResponsePlanCommand = async (input, context) => {
|
|
|
690
480
|
incidentTemplateTitle: [],
|
|
691
481
|
integrations: (_) => (0, smithy_client_1._json)(_),
|
|
692
482
|
}));
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
hostname,
|
|
696
|
-
port,
|
|
697
|
-
method: "POST",
|
|
698
|
-
headers,
|
|
699
|
-
path: resolvedPath,
|
|
700
|
-
body,
|
|
701
|
-
});
|
|
483
|
+
b.m("POST").h(headers).b(body);
|
|
484
|
+
return b.build();
|
|
702
485
|
};
|
|
703
486
|
exports.se_UpdateResponsePlanCommand = se_UpdateResponsePlanCommand;
|
|
704
487
|
const se_UpdateTimelineEventCommand = async (input, context) => {
|
|
705
|
-
const
|
|
488
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
706
489
|
const headers = {
|
|
707
490
|
"content-type": "application/json",
|
|
708
491
|
};
|
|
709
|
-
|
|
492
|
+
b.bp("/updateTimelineEvent");
|
|
710
493
|
let body;
|
|
711
494
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
712
495
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -717,15 +500,8 @@ const se_UpdateTimelineEventCommand = async (input, context) => {
|
|
|
717
500
|
eventType: [],
|
|
718
501
|
incidentRecordArn: [],
|
|
719
502
|
}));
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
hostname,
|
|
723
|
-
port,
|
|
724
|
-
method: "POST",
|
|
725
|
-
headers,
|
|
726
|
-
path: resolvedPath,
|
|
727
|
-
body,
|
|
728
|
-
});
|
|
503
|
+
b.m("POST").h(headers).b(body);
|
|
504
|
+
return b.build();
|
|
729
505
|
};
|
|
730
506
|
exports.se_UpdateTimelineEventCommand = se_UpdateTimelineEventCommand;
|
|
731
507
|
const de_BatchGetIncidentFindingsCommand = async (output, context) => {
|
|
@@ -2427,6 +2203,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2427
2203
|
value !== "" &&
|
|
2428
2204
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2429
2205
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2206
|
+
const _a = "arn";
|
|
2207
|
+
const _eI = "eventId";
|
|
2208
|
+
const _iRA = "incidentRecordArn";
|
|
2209
|
+
const _rA = "resourceArn";
|
|
2210
|
+
const _tK = "tagKeys";
|
|
2430
2211
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2431
2212
|
if (encoded.length) {
|
|
2432
2213
|
return JSON.parse(encoded);
|