@aws-sdk/client-ssm-incidents 3.315.0 → 3.316.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/SSMIncidents.js +33 -406
- package/dist-cjs/protocols/Aws_restJson1.js +10 -10
- package/dist-es/SSMIncidents.js +33 -406
- package/dist-es/protocols/Aws_restJson1.js +10 -10
- package/dist-types/SSMIncidents.d.ts +43 -86
- package/dist-types/ts3.4/SSMIncidents.d.ts +4 -1
- package/package.json +6 -6
package/dist-cjs/SSMIncidents.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SSMIncidents = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateReplicationSetCommand_1 = require("./commands/CreateReplicationSetCommand");
|
|
5
6
|
const CreateResponsePlanCommand_1 = require("./commands/CreateResponsePlanCommand");
|
|
6
7
|
const CreateTimelineEventCommand_1 = require("./commands/CreateTimelineEventCommand");
|
|
@@ -31,412 +32,38 @@ const UpdateReplicationSetCommand_1 = require("./commands/UpdateReplicationSetCo
|
|
|
31
32
|
const UpdateResponsePlanCommand_1 = require("./commands/UpdateResponsePlanCommand");
|
|
32
33
|
const UpdateTimelineEventCommand_1 = require("./commands/UpdateTimelineEventCommand");
|
|
33
34
|
const SSMIncidentsClient_1 = require("./SSMIncidentsClient");
|
|
35
|
+
const commands = {
|
|
36
|
+
CreateReplicationSetCommand: CreateReplicationSetCommand_1.CreateReplicationSetCommand,
|
|
37
|
+
CreateResponsePlanCommand: CreateResponsePlanCommand_1.CreateResponsePlanCommand,
|
|
38
|
+
CreateTimelineEventCommand: CreateTimelineEventCommand_1.CreateTimelineEventCommand,
|
|
39
|
+
DeleteIncidentRecordCommand: DeleteIncidentRecordCommand_1.DeleteIncidentRecordCommand,
|
|
40
|
+
DeleteReplicationSetCommand: DeleteReplicationSetCommand_1.DeleteReplicationSetCommand,
|
|
41
|
+
DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
|
|
42
|
+
DeleteResponsePlanCommand: DeleteResponsePlanCommand_1.DeleteResponsePlanCommand,
|
|
43
|
+
DeleteTimelineEventCommand: DeleteTimelineEventCommand_1.DeleteTimelineEventCommand,
|
|
44
|
+
GetIncidentRecordCommand: GetIncidentRecordCommand_1.GetIncidentRecordCommand,
|
|
45
|
+
GetReplicationSetCommand: GetReplicationSetCommand_1.GetReplicationSetCommand,
|
|
46
|
+
GetResourcePoliciesCommand: GetResourcePoliciesCommand_1.GetResourcePoliciesCommand,
|
|
47
|
+
GetResponsePlanCommand: GetResponsePlanCommand_1.GetResponsePlanCommand,
|
|
48
|
+
GetTimelineEventCommand: GetTimelineEventCommand_1.GetTimelineEventCommand,
|
|
49
|
+
ListIncidentRecordsCommand: ListIncidentRecordsCommand_1.ListIncidentRecordsCommand,
|
|
50
|
+
ListRelatedItemsCommand: ListRelatedItemsCommand_1.ListRelatedItemsCommand,
|
|
51
|
+
ListReplicationSetsCommand: ListReplicationSetsCommand_1.ListReplicationSetsCommand,
|
|
52
|
+
ListResponsePlansCommand: ListResponsePlansCommand_1.ListResponsePlansCommand,
|
|
53
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
54
|
+
ListTimelineEventsCommand: ListTimelineEventsCommand_1.ListTimelineEventsCommand,
|
|
55
|
+
PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
|
|
56
|
+
StartIncidentCommand: StartIncidentCommand_1.StartIncidentCommand,
|
|
57
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
58
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
59
|
+
UpdateDeletionProtectionCommand: UpdateDeletionProtectionCommand_1.UpdateDeletionProtectionCommand,
|
|
60
|
+
UpdateIncidentRecordCommand: UpdateIncidentRecordCommand_1.UpdateIncidentRecordCommand,
|
|
61
|
+
UpdateRelatedItemsCommand: UpdateRelatedItemsCommand_1.UpdateRelatedItemsCommand,
|
|
62
|
+
UpdateReplicationSetCommand: UpdateReplicationSetCommand_1.UpdateReplicationSetCommand,
|
|
63
|
+
UpdateResponsePlanCommand: UpdateResponsePlanCommand_1.UpdateResponsePlanCommand,
|
|
64
|
+
UpdateTimelineEventCommand: UpdateTimelineEventCommand_1.UpdateTimelineEventCommand,
|
|
65
|
+
};
|
|
34
66
|
class SSMIncidents extends SSMIncidentsClient_1.SSMIncidentsClient {
|
|
35
|
-
createReplicationSet(args, optionsOrCb, cb) {
|
|
36
|
-
const command = new CreateReplicationSetCommand_1.CreateReplicationSetCommand(args);
|
|
37
|
-
if (typeof optionsOrCb === "function") {
|
|
38
|
-
this.send(command, optionsOrCb);
|
|
39
|
-
}
|
|
40
|
-
else if (typeof cb === "function") {
|
|
41
|
-
if (typeof optionsOrCb !== "object")
|
|
42
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
43
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
return this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
createResponsePlan(args, optionsOrCb, cb) {
|
|
50
|
-
const command = new CreateResponsePlanCommand_1.CreateResponsePlanCommand(args);
|
|
51
|
-
if (typeof optionsOrCb === "function") {
|
|
52
|
-
this.send(command, optionsOrCb);
|
|
53
|
-
}
|
|
54
|
-
else if (typeof cb === "function") {
|
|
55
|
-
if (typeof optionsOrCb !== "object")
|
|
56
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
57
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
return this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
createTimelineEvent(args, optionsOrCb, cb) {
|
|
64
|
-
const command = new CreateTimelineEventCommand_1.CreateTimelineEventCommand(args);
|
|
65
|
-
if (typeof optionsOrCb === "function") {
|
|
66
|
-
this.send(command, optionsOrCb);
|
|
67
|
-
}
|
|
68
|
-
else if (typeof cb === "function") {
|
|
69
|
-
if (typeof optionsOrCb !== "object")
|
|
70
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
71
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
return this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
deleteIncidentRecord(args, optionsOrCb, cb) {
|
|
78
|
-
const command = new DeleteIncidentRecordCommand_1.DeleteIncidentRecordCommand(args);
|
|
79
|
-
if (typeof optionsOrCb === "function") {
|
|
80
|
-
this.send(command, optionsOrCb);
|
|
81
|
-
}
|
|
82
|
-
else if (typeof cb === "function") {
|
|
83
|
-
if (typeof optionsOrCb !== "object")
|
|
84
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
85
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
return this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
deleteReplicationSet(args, optionsOrCb, cb) {
|
|
92
|
-
const command = new DeleteReplicationSetCommand_1.DeleteReplicationSetCommand(args);
|
|
93
|
-
if (typeof optionsOrCb === "function") {
|
|
94
|
-
this.send(command, optionsOrCb);
|
|
95
|
-
}
|
|
96
|
-
else if (typeof cb === "function") {
|
|
97
|
-
if (typeof optionsOrCb !== "object")
|
|
98
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
99
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
return this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
106
|
-
const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
|
|
107
|
-
if (typeof optionsOrCb === "function") {
|
|
108
|
-
this.send(command, optionsOrCb);
|
|
109
|
-
}
|
|
110
|
-
else if (typeof cb === "function") {
|
|
111
|
-
if (typeof optionsOrCb !== "object")
|
|
112
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
113
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
return this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
deleteResponsePlan(args, optionsOrCb, cb) {
|
|
120
|
-
const command = new DeleteResponsePlanCommand_1.DeleteResponsePlanCommand(args);
|
|
121
|
-
if (typeof optionsOrCb === "function") {
|
|
122
|
-
this.send(command, optionsOrCb);
|
|
123
|
-
}
|
|
124
|
-
else if (typeof cb === "function") {
|
|
125
|
-
if (typeof optionsOrCb !== "object")
|
|
126
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
127
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
return this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
deleteTimelineEvent(args, optionsOrCb, cb) {
|
|
134
|
-
const command = new DeleteTimelineEventCommand_1.DeleteTimelineEventCommand(args);
|
|
135
|
-
if (typeof optionsOrCb === "function") {
|
|
136
|
-
this.send(command, optionsOrCb);
|
|
137
|
-
}
|
|
138
|
-
else if (typeof cb === "function") {
|
|
139
|
-
if (typeof optionsOrCb !== "object")
|
|
140
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
141
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
return this.send(command, optionsOrCb);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
getIncidentRecord(args, optionsOrCb, cb) {
|
|
148
|
-
const command = new GetIncidentRecordCommand_1.GetIncidentRecordCommand(args);
|
|
149
|
-
if (typeof optionsOrCb === "function") {
|
|
150
|
-
this.send(command, optionsOrCb);
|
|
151
|
-
}
|
|
152
|
-
else if (typeof cb === "function") {
|
|
153
|
-
if (typeof optionsOrCb !== "object")
|
|
154
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
155
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
return this.send(command, optionsOrCb);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
getReplicationSet(args, optionsOrCb, cb) {
|
|
162
|
-
const command = new GetReplicationSetCommand_1.GetReplicationSetCommand(args);
|
|
163
|
-
if (typeof optionsOrCb === "function") {
|
|
164
|
-
this.send(command, optionsOrCb);
|
|
165
|
-
}
|
|
166
|
-
else if (typeof cb === "function") {
|
|
167
|
-
if (typeof optionsOrCb !== "object")
|
|
168
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
169
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
return this.send(command, optionsOrCb);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
getResourcePolicies(args, optionsOrCb, cb) {
|
|
176
|
-
const command = new GetResourcePoliciesCommand_1.GetResourcePoliciesCommand(args);
|
|
177
|
-
if (typeof optionsOrCb === "function") {
|
|
178
|
-
this.send(command, optionsOrCb);
|
|
179
|
-
}
|
|
180
|
-
else if (typeof cb === "function") {
|
|
181
|
-
if (typeof optionsOrCb !== "object")
|
|
182
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
183
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
return this.send(command, optionsOrCb);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
getResponsePlan(args, optionsOrCb, cb) {
|
|
190
|
-
const command = new GetResponsePlanCommand_1.GetResponsePlanCommand(args);
|
|
191
|
-
if (typeof optionsOrCb === "function") {
|
|
192
|
-
this.send(command, optionsOrCb);
|
|
193
|
-
}
|
|
194
|
-
else if (typeof cb === "function") {
|
|
195
|
-
if (typeof optionsOrCb !== "object")
|
|
196
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
197
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
198
|
-
}
|
|
199
|
-
else {
|
|
200
|
-
return this.send(command, optionsOrCb);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
getTimelineEvent(args, optionsOrCb, cb) {
|
|
204
|
-
const command = new GetTimelineEventCommand_1.GetTimelineEventCommand(args);
|
|
205
|
-
if (typeof optionsOrCb === "function") {
|
|
206
|
-
this.send(command, optionsOrCb);
|
|
207
|
-
}
|
|
208
|
-
else if (typeof cb === "function") {
|
|
209
|
-
if (typeof optionsOrCb !== "object")
|
|
210
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
211
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
212
|
-
}
|
|
213
|
-
else {
|
|
214
|
-
return this.send(command, optionsOrCb);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
listIncidentRecords(args, optionsOrCb, cb) {
|
|
218
|
-
const command = new ListIncidentRecordsCommand_1.ListIncidentRecordsCommand(args);
|
|
219
|
-
if (typeof optionsOrCb === "function") {
|
|
220
|
-
this.send(command, optionsOrCb);
|
|
221
|
-
}
|
|
222
|
-
else if (typeof cb === "function") {
|
|
223
|
-
if (typeof optionsOrCb !== "object")
|
|
224
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
225
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
return this.send(command, optionsOrCb);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
listRelatedItems(args, optionsOrCb, cb) {
|
|
232
|
-
const command = new ListRelatedItemsCommand_1.ListRelatedItemsCommand(args);
|
|
233
|
-
if (typeof optionsOrCb === "function") {
|
|
234
|
-
this.send(command, optionsOrCb);
|
|
235
|
-
}
|
|
236
|
-
else if (typeof cb === "function") {
|
|
237
|
-
if (typeof optionsOrCb !== "object")
|
|
238
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
239
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
240
|
-
}
|
|
241
|
-
else {
|
|
242
|
-
return this.send(command, optionsOrCb);
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
listReplicationSets(args, optionsOrCb, cb) {
|
|
246
|
-
const command = new ListReplicationSetsCommand_1.ListReplicationSetsCommand(args);
|
|
247
|
-
if (typeof optionsOrCb === "function") {
|
|
248
|
-
this.send(command, optionsOrCb);
|
|
249
|
-
}
|
|
250
|
-
else if (typeof cb === "function") {
|
|
251
|
-
if (typeof optionsOrCb !== "object")
|
|
252
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
253
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
return this.send(command, optionsOrCb);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
listResponsePlans(args, optionsOrCb, cb) {
|
|
260
|
-
const command = new ListResponsePlansCommand_1.ListResponsePlansCommand(args);
|
|
261
|
-
if (typeof optionsOrCb === "function") {
|
|
262
|
-
this.send(command, optionsOrCb);
|
|
263
|
-
}
|
|
264
|
-
else if (typeof cb === "function") {
|
|
265
|
-
if (typeof optionsOrCb !== "object")
|
|
266
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
267
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
268
|
-
}
|
|
269
|
-
else {
|
|
270
|
-
return this.send(command, optionsOrCb);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
274
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
275
|
-
if (typeof optionsOrCb === "function") {
|
|
276
|
-
this.send(command, optionsOrCb);
|
|
277
|
-
}
|
|
278
|
-
else if (typeof cb === "function") {
|
|
279
|
-
if (typeof optionsOrCb !== "object")
|
|
280
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
281
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
282
|
-
}
|
|
283
|
-
else {
|
|
284
|
-
return this.send(command, optionsOrCb);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
listTimelineEvents(args, optionsOrCb, cb) {
|
|
288
|
-
const command = new ListTimelineEventsCommand_1.ListTimelineEventsCommand(args);
|
|
289
|
-
if (typeof optionsOrCb === "function") {
|
|
290
|
-
this.send(command, optionsOrCb);
|
|
291
|
-
}
|
|
292
|
-
else if (typeof cb === "function") {
|
|
293
|
-
if (typeof optionsOrCb !== "object")
|
|
294
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
295
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
296
|
-
}
|
|
297
|
-
else {
|
|
298
|
-
return this.send(command, optionsOrCb);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
302
|
-
const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
|
|
303
|
-
if (typeof optionsOrCb === "function") {
|
|
304
|
-
this.send(command, optionsOrCb);
|
|
305
|
-
}
|
|
306
|
-
else if (typeof cb === "function") {
|
|
307
|
-
if (typeof optionsOrCb !== "object")
|
|
308
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
309
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
310
|
-
}
|
|
311
|
-
else {
|
|
312
|
-
return this.send(command, optionsOrCb);
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
startIncident(args, optionsOrCb, cb) {
|
|
316
|
-
const command = new StartIncidentCommand_1.StartIncidentCommand(args);
|
|
317
|
-
if (typeof optionsOrCb === "function") {
|
|
318
|
-
this.send(command, optionsOrCb);
|
|
319
|
-
}
|
|
320
|
-
else if (typeof cb === "function") {
|
|
321
|
-
if (typeof optionsOrCb !== "object")
|
|
322
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
323
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
return this.send(command, optionsOrCb);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
tagResource(args, optionsOrCb, cb) {
|
|
330
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
331
|
-
if (typeof optionsOrCb === "function") {
|
|
332
|
-
this.send(command, optionsOrCb);
|
|
333
|
-
}
|
|
334
|
-
else if (typeof cb === "function") {
|
|
335
|
-
if (typeof optionsOrCb !== "object")
|
|
336
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
337
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
338
|
-
}
|
|
339
|
-
else {
|
|
340
|
-
return this.send(command, optionsOrCb);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
untagResource(args, optionsOrCb, cb) {
|
|
344
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
345
|
-
if (typeof optionsOrCb === "function") {
|
|
346
|
-
this.send(command, optionsOrCb);
|
|
347
|
-
}
|
|
348
|
-
else if (typeof cb === "function") {
|
|
349
|
-
if (typeof optionsOrCb !== "object")
|
|
350
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
351
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
return this.send(command, optionsOrCb);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
updateDeletionProtection(args, optionsOrCb, cb) {
|
|
358
|
-
const command = new UpdateDeletionProtectionCommand_1.UpdateDeletionProtectionCommand(args);
|
|
359
|
-
if (typeof optionsOrCb === "function") {
|
|
360
|
-
this.send(command, optionsOrCb);
|
|
361
|
-
}
|
|
362
|
-
else if (typeof cb === "function") {
|
|
363
|
-
if (typeof optionsOrCb !== "object")
|
|
364
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
365
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
return this.send(command, optionsOrCb);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
updateIncidentRecord(args, optionsOrCb, cb) {
|
|
372
|
-
const command = new UpdateIncidentRecordCommand_1.UpdateIncidentRecordCommand(args);
|
|
373
|
-
if (typeof optionsOrCb === "function") {
|
|
374
|
-
this.send(command, optionsOrCb);
|
|
375
|
-
}
|
|
376
|
-
else if (typeof cb === "function") {
|
|
377
|
-
if (typeof optionsOrCb !== "object")
|
|
378
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
379
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
380
|
-
}
|
|
381
|
-
else {
|
|
382
|
-
return this.send(command, optionsOrCb);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
updateRelatedItems(args, optionsOrCb, cb) {
|
|
386
|
-
const command = new UpdateRelatedItemsCommand_1.UpdateRelatedItemsCommand(args);
|
|
387
|
-
if (typeof optionsOrCb === "function") {
|
|
388
|
-
this.send(command, optionsOrCb);
|
|
389
|
-
}
|
|
390
|
-
else if (typeof cb === "function") {
|
|
391
|
-
if (typeof optionsOrCb !== "object")
|
|
392
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
393
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
394
|
-
}
|
|
395
|
-
else {
|
|
396
|
-
return this.send(command, optionsOrCb);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
updateReplicationSet(args, optionsOrCb, cb) {
|
|
400
|
-
const command = new UpdateReplicationSetCommand_1.UpdateReplicationSetCommand(args);
|
|
401
|
-
if (typeof optionsOrCb === "function") {
|
|
402
|
-
this.send(command, optionsOrCb);
|
|
403
|
-
}
|
|
404
|
-
else if (typeof cb === "function") {
|
|
405
|
-
if (typeof optionsOrCb !== "object")
|
|
406
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
407
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
return this.send(command, optionsOrCb);
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
updateResponsePlan(args, optionsOrCb, cb) {
|
|
414
|
-
const command = new UpdateResponsePlanCommand_1.UpdateResponsePlanCommand(args);
|
|
415
|
-
if (typeof optionsOrCb === "function") {
|
|
416
|
-
this.send(command, optionsOrCb);
|
|
417
|
-
}
|
|
418
|
-
else if (typeof cb === "function") {
|
|
419
|
-
if (typeof optionsOrCb !== "object")
|
|
420
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
421
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
422
|
-
}
|
|
423
|
-
else {
|
|
424
|
-
return this.send(command, optionsOrCb);
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
updateTimelineEvent(args, optionsOrCb, cb) {
|
|
428
|
-
const command = new UpdateTimelineEventCommand_1.UpdateTimelineEventCommand(args);
|
|
429
|
-
if (typeof optionsOrCb === "function") {
|
|
430
|
-
this.send(command, optionsOrCb);
|
|
431
|
-
}
|
|
432
|
-
else if (typeof cb === "function") {
|
|
433
|
-
if (typeof optionsOrCb !== "object")
|
|
434
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
435
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
436
|
-
}
|
|
437
|
-
else {
|
|
438
|
-
return this.send(command, optionsOrCb);
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
67
|
}
|
|
442
68
|
exports.SSMIncidents = SSMIncidents;
|
|
69
|
+
(0, smithy_client_1.createAggregatedClient)(commands, SSMIncidents);
|
|
@@ -15,7 +15,7 @@ const se_CreateReplicationSetCommand = async (input, context) => {
|
|
|
15
15
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createReplicationSet";
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
18
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
19
19
|
regions: (_) => (0, smithy_client_1._json)(_),
|
|
20
20
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
21
21
|
}));
|
|
@@ -40,7 +40,7 @@ const se_CreateResponsePlanCommand = async (input, context) => {
|
|
|
40
40
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
41
41
|
actions: (_) => (0, smithy_client_1._json)(_),
|
|
42
42
|
chatChannel: (_) => (0, smithy_client_1._json)(_),
|
|
43
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
43
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
44
44
|
displayName: [],
|
|
45
45
|
engagements: (_) => (0, smithy_client_1._json)(_),
|
|
46
46
|
incidentTemplate: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -67,7 +67,7 @@ const se_CreateTimelineEventCommand = async (input, context) => {
|
|
|
67
67
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createTimelineEvent";
|
|
68
68
|
let body;
|
|
69
69
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
70
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
70
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
71
71
|
eventData: [],
|
|
72
72
|
eventReferences: (_) => (0, smithy_client_1._json)(_),
|
|
73
73
|
eventTime: (_) => Math.round(_.getTime() / 1000),
|
|
@@ -461,7 +461,7 @@ const se_StartIncidentCommand = async (input, context) => {
|
|
|
461
461
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startIncident";
|
|
462
462
|
let body;
|
|
463
463
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
464
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
464
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
465
465
|
impact: [],
|
|
466
466
|
relatedItems: (_) => (0, smithy_client_1._json)(_),
|
|
467
467
|
responsePlanArn: [],
|
|
@@ -534,7 +534,7 @@ const se_UpdateDeletionProtectionCommand = async (input, context) => {
|
|
|
534
534
|
let body;
|
|
535
535
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
536
536
|
arn: [],
|
|
537
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
537
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
538
538
|
deletionProtected: [],
|
|
539
539
|
}));
|
|
540
540
|
return new protocol_http_1.HttpRequest({
|
|
@@ -558,7 +558,7 @@ const se_UpdateIncidentRecordCommand = async (input, context) => {
|
|
|
558
558
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
559
559
|
arn: [],
|
|
560
560
|
chatChannel: (_) => (0, smithy_client_1._json)(_),
|
|
561
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
561
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
562
562
|
impact: [],
|
|
563
563
|
notificationTargets: (_) => (0, smithy_client_1._json)(_),
|
|
564
564
|
status: [],
|
|
@@ -584,7 +584,7 @@ const se_UpdateRelatedItemsCommand = async (input, context) => {
|
|
|
584
584
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateRelatedItems";
|
|
585
585
|
let body;
|
|
586
586
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
587
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
587
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
588
588
|
incidentRecordArn: [],
|
|
589
589
|
relatedItemsUpdate: (_) => (0, smithy_client_1._json)(_),
|
|
590
590
|
}));
|
|
@@ -609,7 +609,7 @@ const se_UpdateReplicationSetCommand = async (input, context) => {
|
|
|
609
609
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
610
610
|
actions: (_) => (0, smithy_client_1._json)(_),
|
|
611
611
|
arn: [],
|
|
612
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
612
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
613
613
|
}));
|
|
614
614
|
return new protocol_http_1.HttpRequest({
|
|
615
615
|
protocol,
|
|
@@ -633,7 +633,7 @@ const se_UpdateResponsePlanCommand = async (input, context) => {
|
|
|
633
633
|
actions: (_) => (0, smithy_client_1._json)(_),
|
|
634
634
|
arn: [],
|
|
635
635
|
chatChannel: (_) => (0, smithy_client_1._json)(_),
|
|
636
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
636
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
637
637
|
displayName: [],
|
|
638
638
|
engagements: (_) => (0, smithy_client_1._json)(_),
|
|
639
639
|
incidentTemplateDedupeString: [],
|
|
@@ -663,7 +663,7 @@ const se_UpdateTimelineEventCommand = async (input, context) => {
|
|
|
663
663
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateTimelineEvent";
|
|
664
664
|
let body;
|
|
665
665
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
666
|
-
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
666
|
+
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
667
667
|
eventData: [],
|
|
668
668
|
eventId: [],
|
|
669
669
|
eventReferences: (_) => (0, smithy_client_1._json)(_),
|