@aws-sdk/client-ssm-incidents 3.490.0 → 3.496.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.
Files changed (55) hide show
  1. package/dist-cjs/SSMIncidents.js +1 -73
  2. package/dist-cjs/SSMIncidentsClient.js +1 -43
  3. package/dist-cjs/commands/BatchGetIncidentFindingsCommand.js +1 -28
  4. package/dist-cjs/commands/CreateReplicationSetCommand.js +1 -28
  5. package/dist-cjs/commands/CreateResponsePlanCommand.js +1 -28
  6. package/dist-cjs/commands/CreateTimelineEventCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteIncidentRecordCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteReplicationSetCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteResponsePlanCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteTimelineEventCommand.js +1 -28
  12. package/dist-cjs/commands/GetIncidentRecordCommand.js +1 -28
  13. package/dist-cjs/commands/GetReplicationSetCommand.js +1 -28
  14. package/dist-cjs/commands/GetResourcePoliciesCommand.js +1 -28
  15. package/dist-cjs/commands/GetResponsePlanCommand.js +1 -28
  16. package/dist-cjs/commands/GetTimelineEventCommand.js +1 -28
  17. package/dist-cjs/commands/ListIncidentFindingsCommand.js +1 -28
  18. package/dist-cjs/commands/ListIncidentRecordsCommand.js +1 -28
  19. package/dist-cjs/commands/ListRelatedItemsCommand.js +1 -28
  20. package/dist-cjs/commands/ListReplicationSetsCommand.js +1 -28
  21. package/dist-cjs/commands/ListResponsePlansCommand.js +1 -28
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  23. package/dist-cjs/commands/ListTimelineEventsCommand.js +1 -28
  24. package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
  25. package/dist-cjs/commands/StartIncidentCommand.js +1 -28
  26. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  27. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  28. package/dist-cjs/commands/UpdateDeletionProtectionCommand.js +1 -28
  29. package/dist-cjs/commands/UpdateIncidentRecordCommand.js +1 -28
  30. package/dist-cjs/commands/UpdateRelatedItemsCommand.js +1 -28
  31. package/dist-cjs/commands/UpdateReplicationSetCommand.js +1 -28
  32. package/dist-cjs/commands/UpdateResponsePlanCommand.js +1 -28
  33. package/dist-cjs/commands/UpdateTimelineEventCommand.js +1 -28
  34. package/dist-cjs/commands/index.js +1 -34
  35. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  36. package/dist-cjs/extensionConfiguration.js +1 -2
  37. package/dist-cjs/index.js +3541 -12
  38. package/dist-cjs/models/SSMIncidentsServiceException.js +1 -12
  39. package/dist-cjs/models/index.js +1 -4
  40. package/dist-cjs/models/models_0.js +1 -285
  41. package/dist-cjs/pagination/GetResourcePoliciesPaginator.js +1 -7
  42. package/dist-cjs/pagination/Interfaces.js +1 -2
  43. package/dist-cjs/pagination/ListIncidentFindingsPaginator.js +1 -7
  44. package/dist-cjs/pagination/ListIncidentRecordsPaginator.js +1 -7
  45. package/dist-cjs/pagination/ListRelatedItemsPaginator.js +1 -7
  46. package/dist-cjs/pagination/ListReplicationSetsPaginator.js +1 -7
  47. package/dist-cjs/pagination/ListResponsePlansPaginator.js +1 -7
  48. package/dist-cjs/pagination/ListTimelineEventsPaginator.js +1 -7
  49. package/dist-cjs/pagination/index.js +1 -11
  50. package/dist-cjs/protocols/Aws_restJson1.js +1 -2250
  51. package/dist-cjs/runtimeExtensions.js +1 -22
  52. package/dist-cjs/waiters/index.js +1 -5
  53. package/dist-cjs/waiters/waitForWaitForReplicationSetActive.js +1 -63
  54. package/dist-cjs/waiters/waitForWaitForReplicationSetDeleted.js +1 -48
  55. package/package.json +41 -41
package/dist-cjs/index.js CHANGED
@@ -1,13 +1,3542 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SSMIncidentsServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./SSMIncidentsClient"), exports);
6
- tslib_1.__exportStar(require("./SSMIncidents"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./waiters"), exports);
10
- tslib_1.__exportStar(require("./models"), exports);
11
- require("@aws-sdk/util-endpoints");
12
- var SSMIncidentsServiceException_1 = require("./models/SSMIncidentsServiceException");
13
- Object.defineProperty(exports, "SSMIncidentsServiceException", { enumerable: true, get: function () { return SSMIncidentsServiceException_1.SSMIncidentsServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ Action: () => Action,
26
+ AttributeValueList: () => AttributeValueList,
27
+ AutomationExecution: () => AutomationExecution,
28
+ BatchGetIncidentFindingsCommand: () => BatchGetIncidentFindingsCommand,
29
+ ChatChannel: () => ChatChannel,
30
+ Condition: () => Condition,
31
+ ConflictException: () => ConflictException,
32
+ CreateReplicationSetCommand: () => CreateReplicationSetCommand,
33
+ CreateResponsePlanCommand: () => CreateResponsePlanCommand,
34
+ CreateTimelineEventCommand: () => CreateTimelineEventCommand,
35
+ DeleteIncidentRecordCommand: () => DeleteIncidentRecordCommand,
36
+ DeleteReplicationSetCommand: () => DeleteReplicationSetCommand,
37
+ DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
38
+ DeleteResponsePlanCommand: () => DeleteResponsePlanCommand,
39
+ DeleteTimelineEventCommand: () => DeleteTimelineEventCommand,
40
+ DynamicSsmParameterValue: () => DynamicSsmParameterValue,
41
+ EventReference: () => EventReference,
42
+ FindingDetails: () => FindingDetails,
43
+ GetIncidentRecordCommand: () => GetIncidentRecordCommand,
44
+ GetReplicationSetCommand: () => GetReplicationSetCommand,
45
+ GetResourcePoliciesCommand: () => GetResourcePoliciesCommand,
46
+ GetResponsePlanCommand: () => GetResponsePlanCommand,
47
+ GetTimelineEventCommand: () => GetTimelineEventCommand,
48
+ IncidentRecordStatus: () => IncidentRecordStatus,
49
+ Integration: () => Integration,
50
+ InternalServerException: () => InternalServerException,
51
+ ItemType: () => ItemType,
52
+ ItemValue: () => ItemValue,
53
+ ListIncidentFindingsCommand: () => ListIncidentFindingsCommand,
54
+ ListIncidentRecordsCommand: () => ListIncidentRecordsCommand,
55
+ ListRelatedItemsCommand: () => ListRelatedItemsCommand,
56
+ ListReplicationSetsCommand: () => ListReplicationSetsCommand,
57
+ ListResponsePlansCommand: () => ListResponsePlansCommand,
58
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
59
+ ListTimelineEventsCommand: () => ListTimelineEventsCommand,
60
+ NotificationTargetItem: () => NotificationTargetItem,
61
+ PutResourcePolicyCommand: () => PutResourcePolicyCommand,
62
+ RegionStatus: () => RegionStatus,
63
+ RelatedItemsUpdate: () => RelatedItemsUpdate,
64
+ ReplicationSetStatus: () => ReplicationSetStatus,
65
+ ResourceNotFoundException: () => ResourceNotFoundException,
66
+ ResourceType: () => ResourceType,
67
+ SSMIncidents: () => SSMIncidents,
68
+ SSMIncidentsClient: () => SSMIncidentsClient,
69
+ SSMIncidentsServiceException: () => SSMIncidentsServiceException,
70
+ ServiceCode: () => ServiceCode,
71
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
72
+ SortOrder: () => SortOrder,
73
+ SsmTargetAccount: () => SsmTargetAccount,
74
+ StartIncidentCommand: () => StartIncidentCommand,
75
+ TagResourceCommand: () => TagResourceCommand,
76
+ ThrottlingException: () => ThrottlingException,
77
+ TimelineEventSort: () => TimelineEventSort,
78
+ UntagResourceCommand: () => UntagResourceCommand,
79
+ UpdateDeletionProtectionCommand: () => UpdateDeletionProtectionCommand,
80
+ UpdateIncidentRecordCommand: () => UpdateIncidentRecordCommand,
81
+ UpdateRelatedItemsCommand: () => UpdateRelatedItemsCommand,
82
+ UpdateReplicationSetAction: () => UpdateReplicationSetAction,
83
+ UpdateReplicationSetCommand: () => UpdateReplicationSetCommand,
84
+ UpdateResponsePlanCommand: () => UpdateResponsePlanCommand,
85
+ UpdateTimelineEventCommand: () => UpdateTimelineEventCommand,
86
+ ValidationException: () => ValidationException,
87
+ VariableType: () => VariableType,
88
+ __Client: () => import_smithy_client.Client,
89
+ paginateGetResourcePolicies: () => paginateGetResourcePolicies,
90
+ paginateListIncidentFindings: () => paginateListIncidentFindings,
91
+ paginateListIncidentRecords: () => paginateListIncidentRecords,
92
+ paginateListRelatedItems: () => paginateListRelatedItems,
93
+ paginateListReplicationSets: () => paginateListReplicationSets,
94
+ paginateListResponsePlans: () => paginateListResponsePlans,
95
+ paginateListTimelineEvents: () => paginateListTimelineEvents,
96
+ waitForWaitForReplicationSetActive: () => waitForWaitForReplicationSetActive,
97
+ waitForWaitForReplicationSetDeleted: () => waitForWaitForReplicationSetDeleted,
98
+ waitUntilWaitForReplicationSetActive: () => waitUntilWaitForReplicationSetActive,
99
+ waitUntilWaitForReplicationSetDeleted: () => waitUntilWaitForReplicationSetDeleted
100
+ });
101
+ module.exports = __toCommonJS(src_exports);
102
+
103
+ // src/SSMIncidentsClient.ts
104
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
105
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
106
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
107
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
108
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
109
+ var import_config_resolver = require("@smithy/config-resolver");
110
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
111
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
112
+ var import_middleware_retry = require("@smithy/middleware-retry");
113
+
114
+
115
+ // src/endpoint/EndpointParameters.ts
116
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
117
+ return {
118
+ ...options,
119
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
120
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
121
+ defaultSigningName: "ssm-incidents"
122
+ };
123
+ }, "resolveClientEndpointParameters");
124
+ var commonParams = {
125
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
126
+ Endpoint: { type: "builtInParams", name: "endpoint" },
127
+ Region: { type: "builtInParams", name: "region" },
128
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
129
+ };
130
+
131
+ // src/SSMIncidentsClient.ts
132
+ var import_runtimeConfig = require("././runtimeConfig");
133
+
134
+ // src/runtimeExtensions.ts
135
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
136
+ var import_protocol_http = require("@smithy/protocol-http");
137
+ var import_smithy_client = require("@smithy/smithy-client");
138
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
139
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
140
+ const extensionConfiguration = {
141
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
142
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
143
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
144
+ };
145
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
146
+ return {
147
+ ...runtimeConfig,
148
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
149
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
150
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
151
+ };
152
+ }, "resolveRuntimeExtensions");
153
+
154
+ // src/SSMIncidentsClient.ts
155
+ var _SSMIncidentsClient = class _SSMIncidentsClient extends import_smithy_client.Client {
156
+ constructor(...[configuration]) {
157
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
158
+ const _config_1 = resolveClientEndpointParameters(_config_0);
159
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
160
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
161
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
162
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
163
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
164
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
165
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
166
+ super(_config_8);
167
+ this.config = _config_8;
168
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
169
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
170
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
171
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
172
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
173
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
174
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
175
+ }
176
+ /**
177
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
178
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
179
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
180
+ */
181
+ destroy() {
182
+ super.destroy();
183
+ }
184
+ };
185
+ __name(_SSMIncidentsClient, "SSMIncidentsClient");
186
+ var SSMIncidentsClient = _SSMIncidentsClient;
187
+
188
+ // src/SSMIncidents.ts
189
+
190
+
191
+ // src/commands/BatchGetIncidentFindingsCommand.ts
192
+
193
+ var import_middleware_serde = require("@smithy/middleware-serde");
194
+
195
+ var import_types = require("@smithy/types");
196
+
197
+ // src/protocols/Aws_restJson1.ts
198
+ var import_core = require("@aws-sdk/core");
199
+ var import_core2 = require("@smithy/core");
200
+
201
+ var import_uuid = require("uuid");
202
+
203
+ // src/models/SSMIncidentsServiceException.ts
204
+
205
+ var _SSMIncidentsServiceException = class _SSMIncidentsServiceException extends import_smithy_client.ServiceException {
206
+ /**
207
+ * @internal
208
+ */
209
+ constructor(options) {
210
+ super(options);
211
+ Object.setPrototypeOf(this, _SSMIncidentsServiceException.prototype);
212
+ }
213
+ };
214
+ __name(_SSMIncidentsServiceException, "SSMIncidentsServiceException");
215
+ var SSMIncidentsServiceException = _SSMIncidentsServiceException;
216
+
217
+ // src/models/models_0.ts
218
+ var _AccessDeniedException = class _AccessDeniedException extends SSMIncidentsServiceException {
219
+ /**
220
+ * @internal
221
+ */
222
+ constructor(opts) {
223
+ super({
224
+ name: "AccessDeniedException",
225
+ $fault: "client",
226
+ ...opts
227
+ });
228
+ this.name = "AccessDeniedException";
229
+ this.$fault = "client";
230
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
231
+ }
232
+ };
233
+ __name(_AccessDeniedException, "AccessDeniedException");
234
+ var AccessDeniedException = _AccessDeniedException;
235
+ var VariableType = {
236
+ INCIDENT_RECORD_ARN: "INCIDENT_RECORD_ARN",
237
+ INVOLVED_RESOURCES: "INVOLVED_RESOURCES"
238
+ };
239
+ var DynamicSsmParameterValue;
240
+ ((DynamicSsmParameterValue3) => {
241
+ DynamicSsmParameterValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
242
+ if (value.variable !== void 0)
243
+ return visitor.variable(value.variable);
244
+ return visitor._(value.$unknown[0], value.$unknown[1]);
245
+ }, "visit");
246
+ })(DynamicSsmParameterValue || (DynamicSsmParameterValue = {}));
247
+ var SsmTargetAccount = {
248
+ IMPACTED_ACCOUNT: "IMPACTED_ACCOUNT",
249
+ RESPONSE_PLAN_OWNER_ACCOUNT: "RESPONSE_PLAN_OWNER_ACCOUNT"
250
+ };
251
+ var Action;
252
+ ((Action3) => {
253
+ Action3.visit = /* @__PURE__ */ __name((value, visitor) => {
254
+ if (value.ssmAutomation !== void 0)
255
+ return visitor.ssmAutomation(value.ssmAutomation);
256
+ return visitor._(value.$unknown[0], value.$unknown[1]);
257
+ }, "visit");
258
+ })(Action || (Action = {}));
259
+ var AttributeValueList;
260
+ ((AttributeValueList3) => {
261
+ AttributeValueList3.visit = /* @__PURE__ */ __name((value, visitor) => {
262
+ if (value.stringValues !== void 0)
263
+ return visitor.stringValues(value.stringValues);
264
+ if (value.integerValues !== void 0)
265
+ return visitor.integerValues(value.integerValues);
266
+ return visitor._(value.$unknown[0], value.$unknown[1]);
267
+ }, "visit");
268
+ })(AttributeValueList || (AttributeValueList = {}));
269
+ var AutomationExecution;
270
+ ((AutomationExecution2) => {
271
+ AutomationExecution2.visit = /* @__PURE__ */ __name((value, visitor) => {
272
+ if (value.ssmExecutionArn !== void 0)
273
+ return visitor.ssmExecutionArn(value.ssmExecutionArn);
274
+ return visitor._(value.$unknown[0], value.$unknown[1]);
275
+ }, "visit");
276
+ })(AutomationExecution || (AutomationExecution = {}));
277
+ var FindingDetails;
278
+ ((FindingDetails3) => {
279
+ FindingDetails3.visit = /* @__PURE__ */ __name((value, visitor) => {
280
+ if (value.codeDeployDeployment !== void 0)
281
+ return visitor.codeDeployDeployment(value.codeDeployDeployment);
282
+ if (value.cloudFormationStackUpdate !== void 0)
283
+ return visitor.cloudFormationStackUpdate(value.cloudFormationStackUpdate);
284
+ return visitor._(value.$unknown[0], value.$unknown[1]);
285
+ }, "visit");
286
+ })(FindingDetails || (FindingDetails = {}));
287
+ var _InternalServerException = class _InternalServerException extends SSMIncidentsServiceException {
288
+ /**
289
+ * @internal
290
+ */
291
+ constructor(opts) {
292
+ super({
293
+ name: "InternalServerException",
294
+ $fault: "server",
295
+ ...opts
296
+ });
297
+ this.name = "InternalServerException";
298
+ this.$fault = "server";
299
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
300
+ }
301
+ };
302
+ __name(_InternalServerException, "InternalServerException");
303
+ var InternalServerException = _InternalServerException;
304
+ var ResourceType = {
305
+ INCIDENT_RECORD: "INCIDENT_RECORD",
306
+ REPLICATION_SET: "REPLICATION_SET",
307
+ RESOURCE_POLICY: "RESOURCE_POLICY",
308
+ RESPONSE_PLAN: "RESPONSE_PLAN",
309
+ TIMELINE_EVENT: "TIMELINE_EVENT"
310
+ };
311
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends SSMIncidentsServiceException {
312
+ /**
313
+ * @internal
314
+ */
315
+ constructor(opts) {
316
+ super({
317
+ name: "ResourceNotFoundException",
318
+ $fault: "client",
319
+ ...opts
320
+ });
321
+ this.name = "ResourceNotFoundException";
322
+ this.$fault = "client";
323
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
324
+ this.resourceIdentifier = opts.resourceIdentifier;
325
+ this.resourceType = opts.resourceType;
326
+ }
327
+ };
328
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
329
+ var ResourceNotFoundException = _ResourceNotFoundException;
330
+ var ServiceCode = {
331
+ SSM_INCIDENTS: "ssm-incidents"
332
+ };
333
+ var _ThrottlingException = class _ThrottlingException extends SSMIncidentsServiceException {
334
+ /**
335
+ * @internal
336
+ */
337
+ constructor(opts) {
338
+ super({
339
+ name: "ThrottlingException",
340
+ $fault: "client",
341
+ ...opts
342
+ });
343
+ this.name = "ThrottlingException";
344
+ this.$fault = "client";
345
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
346
+ this.serviceCode = opts.serviceCode;
347
+ this.quotaCode = opts.quotaCode;
348
+ }
349
+ };
350
+ __name(_ThrottlingException, "ThrottlingException");
351
+ var ThrottlingException = _ThrottlingException;
352
+ var _ValidationException = class _ValidationException extends SSMIncidentsServiceException {
353
+ /**
354
+ * @internal
355
+ */
356
+ constructor(opts) {
357
+ super({
358
+ name: "ValidationException",
359
+ $fault: "client",
360
+ ...opts
361
+ });
362
+ this.name = "ValidationException";
363
+ this.$fault = "client";
364
+ Object.setPrototypeOf(this, _ValidationException.prototype);
365
+ }
366
+ };
367
+ __name(_ValidationException, "ValidationException");
368
+ var ValidationException = _ValidationException;
369
+ var ChatChannel;
370
+ ((ChatChannel3) => {
371
+ ChatChannel3.visit = /* @__PURE__ */ __name((value, visitor) => {
372
+ if (value.empty !== void 0)
373
+ return visitor.empty(value.empty);
374
+ if (value.chatbotSns !== void 0)
375
+ return visitor.chatbotSns(value.chatbotSns);
376
+ return visitor._(value.$unknown[0], value.$unknown[1]);
377
+ }, "visit");
378
+ })(ChatChannel || (ChatChannel = {}));
379
+ var Condition;
380
+ ((Condition2) => {
381
+ Condition2.visit = /* @__PURE__ */ __name((value, visitor) => {
382
+ if (value.before !== void 0)
383
+ return visitor.before(value.before);
384
+ if (value.after !== void 0)
385
+ return visitor.after(value.after);
386
+ if (value.equals !== void 0)
387
+ return visitor.equals(value.equals);
388
+ return visitor._(value.$unknown[0], value.$unknown[1]);
389
+ }, "visit");
390
+ })(Condition || (Condition = {}));
391
+ var _ConflictException = class _ConflictException extends SSMIncidentsServiceException {
392
+ /**
393
+ * @internal
394
+ */
395
+ constructor(opts) {
396
+ super({
397
+ name: "ConflictException",
398
+ $fault: "client",
399
+ ...opts
400
+ });
401
+ this.name = "ConflictException";
402
+ this.$fault = "client";
403
+ Object.setPrototypeOf(this, _ConflictException.prototype);
404
+ this.resourceIdentifier = opts.resourceIdentifier;
405
+ this.resourceType = opts.resourceType;
406
+ this.retryAfter = opts.retryAfter;
407
+ }
408
+ };
409
+ __name(_ConflictException, "ConflictException");
410
+ var ConflictException = _ConflictException;
411
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SSMIncidentsServiceException {
412
+ /**
413
+ * @internal
414
+ */
415
+ constructor(opts) {
416
+ super({
417
+ name: "ServiceQuotaExceededException",
418
+ $fault: "client",
419
+ ...opts
420
+ });
421
+ this.name = "ServiceQuotaExceededException";
422
+ this.$fault = "client";
423
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
424
+ this.resourceIdentifier = opts.resourceIdentifier;
425
+ this.resourceType = opts.resourceType;
426
+ this.serviceCode = opts.serviceCode;
427
+ this.quotaCode = opts.quotaCode;
428
+ }
429
+ };
430
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
431
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
432
+ var NotificationTargetItem;
433
+ ((NotificationTargetItem3) => {
434
+ NotificationTargetItem3.visit = /* @__PURE__ */ __name((value, visitor) => {
435
+ if (value.snsTopicArn !== void 0)
436
+ return visitor.snsTopicArn(value.snsTopicArn);
437
+ return visitor._(value.$unknown[0], value.$unknown[1]);
438
+ }, "visit");
439
+ })(NotificationTargetItem || (NotificationTargetItem = {}));
440
+ var Integration;
441
+ ((Integration3) => {
442
+ Integration3.visit = /* @__PURE__ */ __name((value, visitor) => {
443
+ if (value.pagerDutyConfiguration !== void 0)
444
+ return visitor.pagerDutyConfiguration(value.pagerDutyConfiguration);
445
+ return visitor._(value.$unknown[0], value.$unknown[1]);
446
+ }, "visit");
447
+ })(Integration || (Integration = {}));
448
+ var EventReference;
449
+ ((EventReference3) => {
450
+ EventReference3.visit = /* @__PURE__ */ __name((value, visitor) => {
451
+ if (value.resource !== void 0)
452
+ return visitor.resource(value.resource);
453
+ if (value.relatedItemId !== void 0)
454
+ return visitor.relatedItemId(value.relatedItemId);
455
+ return visitor._(value.$unknown[0], value.$unknown[1]);
456
+ }, "visit");
457
+ })(EventReference || (EventReference = {}));
458
+ var IncidentRecordStatus = {
459
+ OPEN: "OPEN",
460
+ RESOLVED: "RESOLVED"
461
+ };
462
+ var RegionStatus = {
463
+ /**
464
+ * All operations have completed successfully and the region is ready to use
465
+ */
466
+ ACTIVE: "ACTIVE",
467
+ /**
468
+ * The region is in the process of being created.
469
+ */
470
+ CREATING: "CREATING",
471
+ /**
472
+ * The region is in the process of being deleted.
473
+ */
474
+ DELETING: "DELETING",
475
+ /**
476
+ * The region is not healthy and we cannot automatically fix it.
477
+ */
478
+ FAILED: "FAILED"
479
+ };
480
+ var ReplicationSetStatus = {
481
+ /**
482
+ * All operations have completed successfully and the replication set is ready to use
483
+ */
484
+ ACTIVE: "ACTIVE",
485
+ /**
486
+ * Replication set is in the process of being created.
487
+ */
488
+ CREATING: "CREATING",
489
+ /**
490
+ * Replication set is in the process of being deleted.
491
+ */
492
+ DELETING: "DELETING",
493
+ /**
494
+ * Replication set is not healthy and we cannot fix it.
495
+ */
496
+ FAILED: "FAILED",
497
+ /**
498
+ * Replication set is in the process of being updated.
499
+ */
500
+ UPDATING: "UPDATING"
501
+ };
502
+ var ItemType = {
503
+ ANALYSIS: "ANALYSIS",
504
+ ATTACHMENT: "ATTACHMENT",
505
+ AUTOMATION: "AUTOMATION",
506
+ INCIDENT: "INCIDENT",
507
+ INVOLVED_RESOURCE: "INVOLVED_RESOURCE",
508
+ METRIC: "METRIC",
509
+ OTHER: "OTHER",
510
+ PARENT: "PARENT",
511
+ TASK: "TASK"
512
+ };
513
+ var ItemValue;
514
+ ((ItemValue3) => {
515
+ ItemValue3.visit = /* @__PURE__ */ __name((value, visitor) => {
516
+ if (value.arn !== void 0)
517
+ return visitor.arn(value.arn);
518
+ if (value.url !== void 0)
519
+ return visitor.url(value.url);
520
+ if (value.metricDefinition !== void 0)
521
+ return visitor.metricDefinition(value.metricDefinition);
522
+ if (value.pagerDutyIncidentDetail !== void 0)
523
+ return visitor.pagerDutyIncidentDetail(value.pagerDutyIncidentDetail);
524
+ return visitor._(value.$unknown[0], value.$unknown[1]);
525
+ }, "visit");
526
+ })(ItemValue || (ItemValue = {}));
527
+ var TimelineEventSort = {
528
+ EVENT_TIME: "EVENT_TIME"
529
+ };
530
+ var SortOrder = {
531
+ ASCENDING: "ASCENDING",
532
+ DESCENDING: "DESCENDING"
533
+ };
534
+ var RelatedItemsUpdate;
535
+ ((RelatedItemsUpdate3) => {
536
+ RelatedItemsUpdate3.visit = /* @__PURE__ */ __name((value, visitor) => {
537
+ if (value.itemToAdd !== void 0)
538
+ return visitor.itemToAdd(value.itemToAdd);
539
+ if (value.itemToRemove !== void 0)
540
+ return visitor.itemToRemove(value.itemToRemove);
541
+ return visitor._(value.$unknown[0], value.$unknown[1]);
542
+ }, "visit");
543
+ })(RelatedItemsUpdate || (RelatedItemsUpdate = {}));
544
+ var UpdateReplicationSetAction;
545
+ ((UpdateReplicationSetAction3) => {
546
+ UpdateReplicationSetAction3.visit = /* @__PURE__ */ __name((value, visitor) => {
547
+ if (value.addRegionAction !== void 0)
548
+ return visitor.addRegionAction(value.addRegionAction);
549
+ if (value.deleteRegionAction !== void 0)
550
+ return visitor.deleteRegionAction(value.deleteRegionAction);
551
+ return visitor._(value.$unknown[0], value.$unknown[1]);
552
+ }, "visit");
553
+ })(UpdateReplicationSetAction || (UpdateReplicationSetAction = {}));
554
+
555
+ // src/protocols/Aws_restJson1.ts
556
+ var se_BatchGetIncidentFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
557
+ const b = (0, import_core2.requestBuilder)(input, context);
558
+ const headers = {
559
+ "content-type": "application/json"
560
+ };
561
+ b.bp("/batchGetIncidentFindings");
562
+ let body;
563
+ body = JSON.stringify(
564
+ (0, import_smithy_client.take)(input, {
565
+ findingIds: (_) => (0, import_smithy_client._json)(_),
566
+ incidentRecordArn: []
567
+ })
568
+ );
569
+ b.m("POST").h(headers).b(body);
570
+ return b.build();
571
+ }, "se_BatchGetIncidentFindingsCommand");
572
+ var se_CreateReplicationSetCommand = /* @__PURE__ */ __name(async (input, context) => {
573
+ const b = (0, import_core2.requestBuilder)(input, context);
574
+ const headers = {
575
+ "content-type": "application/json"
576
+ };
577
+ b.bp("/createReplicationSet");
578
+ let body;
579
+ body = JSON.stringify(
580
+ (0, import_smithy_client.take)(input, {
581
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
582
+ regions: (_) => (0, import_smithy_client._json)(_),
583
+ tags: (_) => (0, import_smithy_client._json)(_)
584
+ })
585
+ );
586
+ b.m("POST").h(headers).b(body);
587
+ return b.build();
588
+ }, "se_CreateReplicationSetCommand");
589
+ var se_CreateResponsePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
590
+ const b = (0, import_core2.requestBuilder)(input, context);
591
+ const headers = {
592
+ "content-type": "application/json"
593
+ };
594
+ b.bp("/createResponsePlan");
595
+ let body;
596
+ body = JSON.stringify(
597
+ (0, import_smithy_client.take)(input, {
598
+ actions: (_) => (0, import_smithy_client._json)(_),
599
+ chatChannel: (_) => (0, import_smithy_client._json)(_),
600
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
601
+ displayName: [],
602
+ engagements: (_) => (0, import_smithy_client._json)(_),
603
+ incidentTemplate: (_) => (0, import_smithy_client._json)(_),
604
+ integrations: (_) => (0, import_smithy_client._json)(_),
605
+ name: [],
606
+ tags: (_) => (0, import_smithy_client._json)(_)
607
+ })
608
+ );
609
+ b.m("POST").h(headers).b(body);
610
+ return b.build();
611
+ }, "se_CreateResponsePlanCommand");
612
+ var se_CreateTimelineEventCommand = /* @__PURE__ */ __name(async (input, context) => {
613
+ const b = (0, import_core2.requestBuilder)(input, context);
614
+ const headers = {
615
+ "content-type": "application/json"
616
+ };
617
+ b.bp("/createTimelineEvent");
618
+ let body;
619
+ body = JSON.stringify(
620
+ (0, import_smithy_client.take)(input, {
621
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
622
+ eventData: [],
623
+ eventReferences: (_) => (0, import_smithy_client._json)(_),
624
+ eventTime: (_) => Math.round(_.getTime() / 1e3),
625
+ eventType: [],
626
+ incidentRecordArn: []
627
+ })
628
+ );
629
+ b.m("POST").h(headers).b(body);
630
+ return b.build();
631
+ }, "se_CreateTimelineEventCommand");
632
+ var se_DeleteIncidentRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
633
+ const b = (0, import_core2.requestBuilder)(input, context);
634
+ const headers = {
635
+ "content-type": "application/json"
636
+ };
637
+ b.bp("/deleteIncidentRecord");
638
+ let body;
639
+ body = JSON.stringify(
640
+ (0, import_smithy_client.take)(input, {
641
+ arn: []
642
+ })
643
+ );
644
+ b.m("POST").h(headers).b(body);
645
+ return b.build();
646
+ }, "se_DeleteIncidentRecordCommand");
647
+ var se_DeleteReplicationSetCommand = /* @__PURE__ */ __name(async (input, context) => {
648
+ const b = (0, import_core2.requestBuilder)(input, context);
649
+ const headers = {};
650
+ b.bp("/deleteReplicationSet");
651
+ const query = (0, import_smithy_client.map)({
652
+ [_a]: [, (0, import_smithy_client.expectNonNull)(input[_a], `arn`)]
653
+ });
654
+ let body;
655
+ b.m("POST").h(headers).q(query).b(body);
656
+ return b.build();
657
+ }, "se_DeleteReplicationSetCommand");
658
+ var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
659
+ const b = (0, import_core2.requestBuilder)(input, context);
660
+ const headers = {
661
+ "content-type": "application/json"
662
+ };
663
+ b.bp("/deleteResourcePolicy");
664
+ let body;
665
+ body = JSON.stringify(
666
+ (0, import_smithy_client.take)(input, {
667
+ policyId: [],
668
+ resourceArn: []
669
+ })
670
+ );
671
+ b.m("POST").h(headers).b(body);
672
+ return b.build();
673
+ }, "se_DeleteResourcePolicyCommand");
674
+ var se_DeleteResponsePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
675
+ const b = (0, import_core2.requestBuilder)(input, context);
676
+ const headers = {
677
+ "content-type": "application/json"
678
+ };
679
+ b.bp("/deleteResponsePlan");
680
+ let body;
681
+ body = JSON.stringify(
682
+ (0, import_smithy_client.take)(input, {
683
+ arn: []
684
+ })
685
+ );
686
+ b.m("POST").h(headers).b(body);
687
+ return b.build();
688
+ }, "se_DeleteResponsePlanCommand");
689
+ var se_DeleteTimelineEventCommand = /* @__PURE__ */ __name(async (input, context) => {
690
+ const b = (0, import_core2.requestBuilder)(input, context);
691
+ const headers = {
692
+ "content-type": "application/json"
693
+ };
694
+ b.bp("/deleteTimelineEvent");
695
+ let body;
696
+ body = JSON.stringify(
697
+ (0, import_smithy_client.take)(input, {
698
+ eventId: [],
699
+ incidentRecordArn: []
700
+ })
701
+ );
702
+ b.m("POST").h(headers).b(body);
703
+ return b.build();
704
+ }, "se_DeleteTimelineEventCommand");
705
+ var se_GetIncidentRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
706
+ const b = (0, import_core2.requestBuilder)(input, context);
707
+ const headers = {};
708
+ b.bp("/getIncidentRecord");
709
+ const query = (0, import_smithy_client.map)({
710
+ [_a]: [, (0, import_smithy_client.expectNonNull)(input[_a], `arn`)]
711
+ });
712
+ let body;
713
+ b.m("GET").h(headers).q(query).b(body);
714
+ return b.build();
715
+ }, "se_GetIncidentRecordCommand");
716
+ var se_GetReplicationSetCommand = /* @__PURE__ */ __name(async (input, context) => {
717
+ const b = (0, import_core2.requestBuilder)(input, context);
718
+ const headers = {};
719
+ b.bp("/getReplicationSet");
720
+ const query = (0, import_smithy_client.map)({
721
+ [_a]: [, (0, import_smithy_client.expectNonNull)(input[_a], `arn`)]
722
+ });
723
+ let body;
724
+ b.m("GET").h(headers).q(query).b(body);
725
+ return b.build();
726
+ }, "se_GetReplicationSetCommand");
727
+ var se_GetResourcePoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
728
+ const b = (0, import_core2.requestBuilder)(input, context);
729
+ const headers = {
730
+ "content-type": "application/json"
731
+ };
732
+ b.bp("/getResourcePolicies");
733
+ const query = (0, import_smithy_client.map)({
734
+ [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
735
+ });
736
+ let body;
737
+ body = JSON.stringify(
738
+ (0, import_smithy_client.take)(input, {
739
+ maxResults: [],
740
+ nextToken: []
741
+ })
742
+ );
743
+ b.m("POST").h(headers).q(query).b(body);
744
+ return b.build();
745
+ }, "se_GetResourcePoliciesCommand");
746
+ var se_GetResponsePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
747
+ const b = (0, import_core2.requestBuilder)(input, context);
748
+ const headers = {};
749
+ b.bp("/getResponsePlan");
750
+ const query = (0, import_smithy_client.map)({
751
+ [_a]: [, (0, import_smithy_client.expectNonNull)(input[_a], `arn`)]
752
+ });
753
+ let body;
754
+ b.m("GET").h(headers).q(query).b(body);
755
+ return b.build();
756
+ }, "se_GetResponsePlanCommand");
757
+ var se_GetTimelineEventCommand = /* @__PURE__ */ __name(async (input, context) => {
758
+ const b = (0, import_core2.requestBuilder)(input, context);
759
+ const headers = {};
760
+ b.bp("/getTimelineEvent");
761
+ const query = (0, import_smithy_client.map)({
762
+ [_iRA]: [, (0, import_smithy_client.expectNonNull)(input[_iRA], `incidentRecordArn`)],
763
+ [_eI]: [, (0, import_smithy_client.expectNonNull)(input[_eI], `eventId`)]
764
+ });
765
+ let body;
766
+ b.m("GET").h(headers).q(query).b(body);
767
+ return b.build();
768
+ }, "se_GetTimelineEventCommand");
769
+ var se_ListIncidentFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {
770
+ const b = (0, import_core2.requestBuilder)(input, context);
771
+ const headers = {
772
+ "content-type": "application/json"
773
+ };
774
+ b.bp("/listIncidentFindings");
775
+ let body;
776
+ body = JSON.stringify(
777
+ (0, import_smithy_client.take)(input, {
778
+ incidentRecordArn: [],
779
+ maxResults: [],
780
+ nextToken: []
781
+ })
782
+ );
783
+ b.m("POST").h(headers).b(body);
784
+ return b.build();
785
+ }, "se_ListIncidentFindingsCommand");
786
+ var se_ListIncidentRecordsCommand = /* @__PURE__ */ __name(async (input, context) => {
787
+ const b = (0, import_core2.requestBuilder)(input, context);
788
+ const headers = {
789
+ "content-type": "application/json"
790
+ };
791
+ b.bp("/listIncidentRecords");
792
+ let body;
793
+ body = JSON.stringify(
794
+ (0, import_smithy_client.take)(input, {
795
+ filters: (_) => se_FilterList(_, context),
796
+ maxResults: [],
797
+ nextToken: []
798
+ })
799
+ );
800
+ b.m("POST").h(headers).b(body);
801
+ return b.build();
802
+ }, "se_ListIncidentRecordsCommand");
803
+ var se_ListRelatedItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
804
+ const b = (0, import_core2.requestBuilder)(input, context);
805
+ const headers = {
806
+ "content-type": "application/json"
807
+ };
808
+ b.bp("/listRelatedItems");
809
+ let body;
810
+ body = JSON.stringify(
811
+ (0, import_smithy_client.take)(input, {
812
+ incidentRecordArn: [],
813
+ maxResults: [],
814
+ nextToken: []
815
+ })
816
+ );
817
+ b.m("POST").h(headers).b(body);
818
+ return b.build();
819
+ }, "se_ListRelatedItemsCommand");
820
+ var se_ListReplicationSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
821
+ const b = (0, import_core2.requestBuilder)(input, context);
822
+ const headers = {
823
+ "content-type": "application/json"
824
+ };
825
+ b.bp("/listReplicationSets");
826
+ let body;
827
+ body = JSON.stringify(
828
+ (0, import_smithy_client.take)(input, {
829
+ maxResults: [],
830
+ nextToken: []
831
+ })
832
+ );
833
+ b.m("POST").h(headers).b(body);
834
+ return b.build();
835
+ }, "se_ListReplicationSetsCommand");
836
+ var se_ListResponsePlansCommand = /* @__PURE__ */ __name(async (input, context) => {
837
+ const b = (0, import_core2.requestBuilder)(input, context);
838
+ const headers = {
839
+ "content-type": "application/json"
840
+ };
841
+ b.bp("/listResponsePlans");
842
+ let body;
843
+ body = JSON.stringify(
844
+ (0, import_smithy_client.take)(input, {
845
+ maxResults: [],
846
+ nextToken: []
847
+ })
848
+ );
849
+ b.m("POST").h(headers).b(body);
850
+ return b.build();
851
+ }, "se_ListResponsePlansCommand");
852
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
853
+ const b = (0, import_core2.requestBuilder)(input, context);
854
+ const headers = {};
855
+ b.bp("/tags/{resourceArn}");
856
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
857
+ let body;
858
+ b.m("GET").h(headers).b(body);
859
+ return b.build();
860
+ }, "se_ListTagsForResourceCommand");
861
+ var se_ListTimelineEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
862
+ const b = (0, import_core2.requestBuilder)(input, context);
863
+ const headers = {
864
+ "content-type": "application/json"
865
+ };
866
+ b.bp("/listTimelineEvents");
867
+ let body;
868
+ body = JSON.stringify(
869
+ (0, import_smithy_client.take)(input, {
870
+ filters: (_) => se_FilterList(_, context),
871
+ incidentRecordArn: [],
872
+ maxResults: [],
873
+ nextToken: [],
874
+ sortBy: [],
875
+ sortOrder: []
876
+ })
877
+ );
878
+ b.m("POST").h(headers).b(body);
879
+ return b.build();
880
+ }, "se_ListTimelineEventsCommand");
881
+ var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
882
+ const b = (0, import_core2.requestBuilder)(input, context);
883
+ const headers = {
884
+ "content-type": "application/json"
885
+ };
886
+ b.bp("/putResourcePolicy");
887
+ let body;
888
+ body = JSON.stringify(
889
+ (0, import_smithy_client.take)(input, {
890
+ policy: [],
891
+ resourceArn: []
892
+ })
893
+ );
894
+ b.m("POST").h(headers).b(body);
895
+ return b.build();
896
+ }, "se_PutResourcePolicyCommand");
897
+ var se_StartIncidentCommand = /* @__PURE__ */ __name(async (input, context) => {
898
+ const b = (0, import_core2.requestBuilder)(input, context);
899
+ const headers = {
900
+ "content-type": "application/json"
901
+ };
902
+ b.bp("/startIncident");
903
+ let body;
904
+ body = JSON.stringify(
905
+ (0, import_smithy_client.take)(input, {
906
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
907
+ impact: [],
908
+ relatedItems: (_) => (0, import_smithy_client._json)(_),
909
+ responsePlanArn: [],
910
+ title: [],
911
+ triggerDetails: (_) => se_TriggerDetails(_, context)
912
+ })
913
+ );
914
+ b.m("POST").h(headers).b(body);
915
+ return b.build();
916
+ }, "se_StartIncidentCommand");
917
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
918
+ const b = (0, import_core2.requestBuilder)(input, context);
919
+ const headers = {
920
+ "content-type": "application/json"
921
+ };
922
+ b.bp("/tags/{resourceArn}");
923
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
924
+ let body;
925
+ body = JSON.stringify(
926
+ (0, import_smithy_client.take)(input, {
927
+ tags: (_) => (0, import_smithy_client._json)(_)
928
+ })
929
+ );
930
+ b.m("POST").h(headers).b(body);
931
+ return b.build();
932
+ }, "se_TagResourceCommand");
933
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
934
+ const b = (0, import_core2.requestBuilder)(input, context);
935
+ const headers = {};
936
+ b.bp("/tags/{resourceArn}");
937
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
938
+ const query = (0, import_smithy_client.map)({
939
+ [_tK]: [
940
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
941
+ () => (input[_tK] || []).map((_entry) => _entry)
942
+ ]
943
+ });
944
+ let body;
945
+ b.m("DELETE").h(headers).q(query).b(body);
946
+ return b.build();
947
+ }, "se_UntagResourceCommand");
948
+ var se_UpdateDeletionProtectionCommand = /* @__PURE__ */ __name(async (input, context) => {
949
+ const b = (0, import_core2.requestBuilder)(input, context);
950
+ const headers = {
951
+ "content-type": "application/json"
952
+ };
953
+ b.bp("/updateDeletionProtection");
954
+ let body;
955
+ body = JSON.stringify(
956
+ (0, import_smithy_client.take)(input, {
957
+ arn: [],
958
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
959
+ deletionProtected: []
960
+ })
961
+ );
962
+ b.m("POST").h(headers).b(body);
963
+ return b.build();
964
+ }, "se_UpdateDeletionProtectionCommand");
965
+ var se_UpdateIncidentRecordCommand = /* @__PURE__ */ __name(async (input, context) => {
966
+ const b = (0, import_core2.requestBuilder)(input, context);
967
+ const headers = {
968
+ "content-type": "application/json"
969
+ };
970
+ b.bp("/updateIncidentRecord");
971
+ let body;
972
+ body = JSON.stringify(
973
+ (0, import_smithy_client.take)(input, {
974
+ arn: [],
975
+ chatChannel: (_) => (0, import_smithy_client._json)(_),
976
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
977
+ impact: [],
978
+ notificationTargets: (_) => (0, import_smithy_client._json)(_),
979
+ status: [],
980
+ summary: [],
981
+ title: []
982
+ })
983
+ );
984
+ b.m("POST").h(headers).b(body);
985
+ return b.build();
986
+ }, "se_UpdateIncidentRecordCommand");
987
+ var se_UpdateRelatedItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
988
+ const b = (0, import_core2.requestBuilder)(input, context);
989
+ const headers = {
990
+ "content-type": "application/json"
991
+ };
992
+ b.bp("/updateRelatedItems");
993
+ let body;
994
+ body = JSON.stringify(
995
+ (0, import_smithy_client.take)(input, {
996
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
997
+ incidentRecordArn: [],
998
+ relatedItemsUpdate: (_) => (0, import_smithy_client._json)(_)
999
+ })
1000
+ );
1001
+ b.m("POST").h(headers).b(body);
1002
+ return b.build();
1003
+ }, "se_UpdateRelatedItemsCommand");
1004
+ var se_UpdateReplicationSetCommand = /* @__PURE__ */ __name(async (input, context) => {
1005
+ const b = (0, import_core2.requestBuilder)(input, context);
1006
+ const headers = {
1007
+ "content-type": "application/json"
1008
+ };
1009
+ b.bp("/updateReplicationSet");
1010
+ let body;
1011
+ body = JSON.stringify(
1012
+ (0, import_smithy_client.take)(input, {
1013
+ actions: (_) => (0, import_smithy_client._json)(_),
1014
+ arn: [],
1015
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()]
1016
+ })
1017
+ );
1018
+ b.m("POST").h(headers).b(body);
1019
+ return b.build();
1020
+ }, "se_UpdateReplicationSetCommand");
1021
+ var se_UpdateResponsePlanCommand = /* @__PURE__ */ __name(async (input, context) => {
1022
+ const b = (0, import_core2.requestBuilder)(input, context);
1023
+ const headers = {
1024
+ "content-type": "application/json"
1025
+ };
1026
+ b.bp("/updateResponsePlan");
1027
+ let body;
1028
+ body = JSON.stringify(
1029
+ (0, import_smithy_client.take)(input, {
1030
+ actions: (_) => (0, import_smithy_client._json)(_),
1031
+ arn: [],
1032
+ chatChannel: (_) => (0, import_smithy_client._json)(_),
1033
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1034
+ displayName: [],
1035
+ engagements: (_) => (0, import_smithy_client._json)(_),
1036
+ incidentTemplateDedupeString: [],
1037
+ incidentTemplateImpact: [],
1038
+ incidentTemplateNotificationTargets: (_) => (0, import_smithy_client._json)(_),
1039
+ incidentTemplateSummary: [],
1040
+ incidentTemplateTags: (_) => (0, import_smithy_client._json)(_),
1041
+ incidentTemplateTitle: [],
1042
+ integrations: (_) => (0, import_smithy_client._json)(_)
1043
+ })
1044
+ );
1045
+ b.m("POST").h(headers).b(body);
1046
+ return b.build();
1047
+ }, "se_UpdateResponsePlanCommand");
1048
+ var se_UpdateTimelineEventCommand = /* @__PURE__ */ __name(async (input, context) => {
1049
+ const b = (0, import_core2.requestBuilder)(input, context);
1050
+ const headers = {
1051
+ "content-type": "application/json"
1052
+ };
1053
+ b.bp("/updateTimelineEvent");
1054
+ let body;
1055
+ body = JSON.stringify(
1056
+ (0, import_smithy_client.take)(input, {
1057
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1058
+ eventData: [],
1059
+ eventId: [],
1060
+ eventReferences: (_) => (0, import_smithy_client._json)(_),
1061
+ eventTime: (_) => Math.round(_.getTime() / 1e3),
1062
+ eventType: [],
1063
+ incidentRecordArn: []
1064
+ })
1065
+ );
1066
+ b.m("POST").h(headers).b(body);
1067
+ return b.build();
1068
+ }, "se_UpdateTimelineEventCommand");
1069
+ var de_BatchGetIncidentFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1070
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1071
+ return de_BatchGetIncidentFindingsCommandError(output, context);
1072
+ }
1073
+ const contents = (0, import_smithy_client.map)({
1074
+ $metadata: deserializeMetadata(output)
1075
+ });
1076
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1077
+ const doc = (0, import_smithy_client.take)(data, {
1078
+ errors: import_smithy_client._json,
1079
+ findings: (_) => de_FindingList(_, context)
1080
+ });
1081
+ Object.assign(contents, doc);
1082
+ return contents;
1083
+ }, "de_BatchGetIncidentFindingsCommand");
1084
+ var de_BatchGetIncidentFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1085
+ const parsedOutput = {
1086
+ ...output,
1087
+ body: await parseErrorBody(output.body, context)
1088
+ };
1089
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1090
+ switch (errorCode) {
1091
+ case "AccessDeniedException":
1092
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1093
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1094
+ case "InternalServerException":
1095
+ case "com.amazonaws.ssmincidents#InternalServerException":
1096
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1097
+ case "ResourceNotFoundException":
1098
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1099
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1100
+ case "ThrottlingException":
1101
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1102
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1103
+ case "ValidationException":
1104
+ case "com.amazonaws.ssmincidents#ValidationException":
1105
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1106
+ default:
1107
+ const parsedBody = parsedOutput.body;
1108
+ return throwDefaultError({
1109
+ output,
1110
+ parsedBody,
1111
+ errorCode
1112
+ });
1113
+ }
1114
+ }, "de_BatchGetIncidentFindingsCommandError");
1115
+ var de_CreateReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1116
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1117
+ return de_CreateReplicationSetCommandError(output, context);
1118
+ }
1119
+ const contents = (0, import_smithy_client.map)({
1120
+ $metadata: deserializeMetadata(output)
1121
+ });
1122
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1123
+ const doc = (0, import_smithy_client.take)(data, {
1124
+ arn: import_smithy_client.expectString
1125
+ });
1126
+ Object.assign(contents, doc);
1127
+ return contents;
1128
+ }, "de_CreateReplicationSetCommand");
1129
+ var de_CreateReplicationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1130
+ const parsedOutput = {
1131
+ ...output,
1132
+ body: await parseErrorBody(output.body, context)
1133
+ };
1134
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1135
+ switch (errorCode) {
1136
+ case "AccessDeniedException":
1137
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1138
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1139
+ case "ConflictException":
1140
+ case "com.amazonaws.ssmincidents#ConflictException":
1141
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1142
+ case "InternalServerException":
1143
+ case "com.amazonaws.ssmincidents#InternalServerException":
1144
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1145
+ case "ServiceQuotaExceededException":
1146
+ case "com.amazonaws.ssmincidents#ServiceQuotaExceededException":
1147
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1148
+ case "ThrottlingException":
1149
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1150
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1151
+ case "ValidationException":
1152
+ case "com.amazonaws.ssmincidents#ValidationException":
1153
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1154
+ default:
1155
+ const parsedBody = parsedOutput.body;
1156
+ return throwDefaultError({
1157
+ output,
1158
+ parsedBody,
1159
+ errorCode
1160
+ });
1161
+ }
1162
+ }, "de_CreateReplicationSetCommandError");
1163
+ var de_CreateResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1164
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1165
+ return de_CreateResponsePlanCommandError(output, context);
1166
+ }
1167
+ const contents = (0, import_smithy_client.map)({
1168
+ $metadata: deserializeMetadata(output)
1169
+ });
1170
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1171
+ const doc = (0, import_smithy_client.take)(data, {
1172
+ arn: import_smithy_client.expectString
1173
+ });
1174
+ Object.assign(contents, doc);
1175
+ return contents;
1176
+ }, "de_CreateResponsePlanCommand");
1177
+ var de_CreateResponsePlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
1178
+ const parsedOutput = {
1179
+ ...output,
1180
+ body: await parseErrorBody(output.body, context)
1181
+ };
1182
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1183
+ switch (errorCode) {
1184
+ case "AccessDeniedException":
1185
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1186
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1187
+ case "ConflictException":
1188
+ case "com.amazonaws.ssmincidents#ConflictException":
1189
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1190
+ case "InternalServerException":
1191
+ case "com.amazonaws.ssmincidents#InternalServerException":
1192
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1193
+ case "ResourceNotFoundException":
1194
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1195
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1196
+ case "ThrottlingException":
1197
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1198
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1199
+ case "ValidationException":
1200
+ case "com.amazonaws.ssmincidents#ValidationException":
1201
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1202
+ default:
1203
+ const parsedBody = parsedOutput.body;
1204
+ return throwDefaultError({
1205
+ output,
1206
+ parsedBody,
1207
+ errorCode
1208
+ });
1209
+ }
1210
+ }, "de_CreateResponsePlanCommandError");
1211
+ var de_CreateTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1212
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1213
+ return de_CreateTimelineEventCommandError(output, context);
1214
+ }
1215
+ const contents = (0, import_smithy_client.map)({
1216
+ $metadata: deserializeMetadata(output)
1217
+ });
1218
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1219
+ const doc = (0, import_smithy_client.take)(data, {
1220
+ eventId: import_smithy_client.expectString,
1221
+ incidentRecordArn: import_smithy_client.expectString
1222
+ });
1223
+ Object.assign(contents, doc);
1224
+ return contents;
1225
+ }, "de_CreateTimelineEventCommand");
1226
+ var de_CreateTimelineEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
1227
+ const parsedOutput = {
1228
+ ...output,
1229
+ body: await parseErrorBody(output.body, context)
1230
+ };
1231
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1232
+ switch (errorCode) {
1233
+ case "AccessDeniedException":
1234
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1235
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1236
+ case "ConflictException":
1237
+ case "com.amazonaws.ssmincidents#ConflictException":
1238
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1239
+ case "InternalServerException":
1240
+ case "com.amazonaws.ssmincidents#InternalServerException":
1241
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1242
+ case "ResourceNotFoundException":
1243
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1244
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1245
+ case "ThrottlingException":
1246
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1247
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1248
+ case "ValidationException":
1249
+ case "com.amazonaws.ssmincidents#ValidationException":
1250
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1251
+ default:
1252
+ const parsedBody = parsedOutput.body;
1253
+ return throwDefaultError({
1254
+ output,
1255
+ parsedBody,
1256
+ errorCode
1257
+ });
1258
+ }
1259
+ }, "de_CreateTimelineEventCommandError");
1260
+ var de_DeleteIncidentRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
1261
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1262
+ return de_DeleteIncidentRecordCommandError(output, context);
1263
+ }
1264
+ const contents = (0, import_smithy_client.map)({
1265
+ $metadata: deserializeMetadata(output)
1266
+ });
1267
+ await (0, import_smithy_client.collectBody)(output.body, context);
1268
+ return contents;
1269
+ }, "de_DeleteIncidentRecordCommand");
1270
+ var de_DeleteIncidentRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
1271
+ const parsedOutput = {
1272
+ ...output,
1273
+ body: await parseErrorBody(output.body, context)
1274
+ };
1275
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1276
+ switch (errorCode) {
1277
+ case "AccessDeniedException":
1278
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1279
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1280
+ case "InternalServerException":
1281
+ case "com.amazonaws.ssmincidents#InternalServerException":
1282
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1283
+ case "ThrottlingException":
1284
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1285
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1286
+ case "ValidationException":
1287
+ case "com.amazonaws.ssmincidents#ValidationException":
1288
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1289
+ default:
1290
+ const parsedBody = parsedOutput.body;
1291
+ return throwDefaultError({
1292
+ output,
1293
+ parsedBody,
1294
+ errorCode
1295
+ });
1296
+ }
1297
+ }, "de_DeleteIncidentRecordCommandError");
1298
+ var de_DeleteReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1299
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1300
+ return de_DeleteReplicationSetCommandError(output, context);
1301
+ }
1302
+ const contents = (0, import_smithy_client.map)({
1303
+ $metadata: deserializeMetadata(output)
1304
+ });
1305
+ await (0, import_smithy_client.collectBody)(output.body, context);
1306
+ return contents;
1307
+ }, "de_DeleteReplicationSetCommand");
1308
+ var de_DeleteReplicationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1309
+ const parsedOutput = {
1310
+ ...output,
1311
+ body: await parseErrorBody(output.body, context)
1312
+ };
1313
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1314
+ switch (errorCode) {
1315
+ case "AccessDeniedException":
1316
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1317
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1318
+ case "InternalServerException":
1319
+ case "com.amazonaws.ssmincidents#InternalServerException":
1320
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1321
+ case "ResourceNotFoundException":
1322
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1323
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1324
+ case "ThrottlingException":
1325
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1326
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1327
+ case "ValidationException":
1328
+ case "com.amazonaws.ssmincidents#ValidationException":
1329
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1330
+ default:
1331
+ const parsedBody = parsedOutput.body;
1332
+ return throwDefaultError({
1333
+ output,
1334
+ parsedBody,
1335
+ errorCode
1336
+ });
1337
+ }
1338
+ }, "de_DeleteReplicationSetCommandError");
1339
+ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1340
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1341
+ return de_DeleteResourcePolicyCommandError(output, context);
1342
+ }
1343
+ const contents = (0, import_smithy_client.map)({
1344
+ $metadata: deserializeMetadata(output)
1345
+ });
1346
+ await (0, import_smithy_client.collectBody)(output.body, context);
1347
+ return contents;
1348
+ }, "de_DeleteResourcePolicyCommand");
1349
+ var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1350
+ const parsedOutput = {
1351
+ ...output,
1352
+ body: await parseErrorBody(output.body, context)
1353
+ };
1354
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1355
+ switch (errorCode) {
1356
+ case "AccessDeniedException":
1357
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1358
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1359
+ case "InternalServerException":
1360
+ case "com.amazonaws.ssmincidents#InternalServerException":
1361
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1362
+ case "ResourceNotFoundException":
1363
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1364
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1365
+ case "ThrottlingException":
1366
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1367
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1368
+ case "ValidationException":
1369
+ case "com.amazonaws.ssmincidents#ValidationException":
1370
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1371
+ default:
1372
+ const parsedBody = parsedOutput.body;
1373
+ return throwDefaultError({
1374
+ output,
1375
+ parsedBody,
1376
+ errorCode
1377
+ });
1378
+ }
1379
+ }, "de_DeleteResourcePolicyCommandError");
1380
+ var de_DeleteResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1381
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1382
+ return de_DeleteResponsePlanCommandError(output, context);
1383
+ }
1384
+ const contents = (0, import_smithy_client.map)({
1385
+ $metadata: deserializeMetadata(output)
1386
+ });
1387
+ await (0, import_smithy_client.collectBody)(output.body, context);
1388
+ return contents;
1389
+ }, "de_DeleteResponsePlanCommand");
1390
+ var de_DeleteResponsePlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
1391
+ const parsedOutput = {
1392
+ ...output,
1393
+ body: await parseErrorBody(output.body, context)
1394
+ };
1395
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1396
+ switch (errorCode) {
1397
+ case "AccessDeniedException":
1398
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1399
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1400
+ case "InternalServerException":
1401
+ case "com.amazonaws.ssmincidents#InternalServerException":
1402
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1403
+ case "ThrottlingException":
1404
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1405
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1406
+ case "ValidationException":
1407
+ case "com.amazonaws.ssmincidents#ValidationException":
1408
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1409
+ default:
1410
+ const parsedBody = parsedOutput.body;
1411
+ return throwDefaultError({
1412
+ output,
1413
+ parsedBody,
1414
+ errorCode
1415
+ });
1416
+ }
1417
+ }, "de_DeleteResponsePlanCommandError");
1418
+ var de_DeleteTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1419
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1420
+ return de_DeleteTimelineEventCommandError(output, context);
1421
+ }
1422
+ const contents = (0, import_smithy_client.map)({
1423
+ $metadata: deserializeMetadata(output)
1424
+ });
1425
+ await (0, import_smithy_client.collectBody)(output.body, context);
1426
+ return contents;
1427
+ }, "de_DeleteTimelineEventCommand");
1428
+ var de_DeleteTimelineEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
1429
+ const parsedOutput = {
1430
+ ...output,
1431
+ body: await parseErrorBody(output.body, context)
1432
+ };
1433
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1434
+ switch (errorCode) {
1435
+ case "AccessDeniedException":
1436
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1437
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1438
+ case "InternalServerException":
1439
+ case "com.amazonaws.ssmincidents#InternalServerException":
1440
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1441
+ case "ThrottlingException":
1442
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1443
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1444
+ case "ValidationException":
1445
+ case "com.amazonaws.ssmincidents#ValidationException":
1446
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1447
+ default:
1448
+ const parsedBody = parsedOutput.body;
1449
+ return throwDefaultError({
1450
+ output,
1451
+ parsedBody,
1452
+ errorCode
1453
+ });
1454
+ }
1455
+ }, "de_DeleteTimelineEventCommandError");
1456
+ var de_GetIncidentRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
1457
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1458
+ return de_GetIncidentRecordCommandError(output, context);
1459
+ }
1460
+ const contents = (0, import_smithy_client.map)({
1461
+ $metadata: deserializeMetadata(output)
1462
+ });
1463
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1464
+ const doc = (0, import_smithy_client.take)(data, {
1465
+ incidentRecord: (_) => de_IncidentRecord(_, context)
1466
+ });
1467
+ Object.assign(contents, doc);
1468
+ return contents;
1469
+ }, "de_GetIncidentRecordCommand");
1470
+ var de_GetIncidentRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
1471
+ const parsedOutput = {
1472
+ ...output,
1473
+ body: await parseErrorBody(output.body, context)
1474
+ };
1475
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1476
+ switch (errorCode) {
1477
+ case "AccessDeniedException":
1478
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1479
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1480
+ case "InternalServerException":
1481
+ case "com.amazonaws.ssmincidents#InternalServerException":
1482
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1483
+ case "ResourceNotFoundException":
1484
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1485
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1486
+ case "ThrottlingException":
1487
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1488
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1489
+ case "ValidationException":
1490
+ case "com.amazonaws.ssmincidents#ValidationException":
1491
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1492
+ default:
1493
+ const parsedBody = parsedOutput.body;
1494
+ return throwDefaultError({
1495
+ output,
1496
+ parsedBody,
1497
+ errorCode
1498
+ });
1499
+ }
1500
+ }, "de_GetIncidentRecordCommandError");
1501
+ var de_GetReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1502
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1503
+ return de_GetReplicationSetCommandError(output, context);
1504
+ }
1505
+ const contents = (0, import_smithy_client.map)({
1506
+ $metadata: deserializeMetadata(output)
1507
+ });
1508
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1509
+ const doc = (0, import_smithy_client.take)(data, {
1510
+ replicationSet: (_) => de_ReplicationSet(_, context)
1511
+ });
1512
+ Object.assign(contents, doc);
1513
+ return contents;
1514
+ }, "de_GetReplicationSetCommand");
1515
+ var de_GetReplicationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1516
+ const parsedOutput = {
1517
+ ...output,
1518
+ body: await parseErrorBody(output.body, context)
1519
+ };
1520
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1521
+ switch (errorCode) {
1522
+ case "AccessDeniedException":
1523
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1524
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1525
+ case "InternalServerException":
1526
+ case "com.amazonaws.ssmincidents#InternalServerException":
1527
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1528
+ case "ResourceNotFoundException":
1529
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1530
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1531
+ case "ThrottlingException":
1532
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1533
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1534
+ case "ValidationException":
1535
+ case "com.amazonaws.ssmincidents#ValidationException":
1536
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1537
+ default:
1538
+ const parsedBody = parsedOutput.body;
1539
+ return throwDefaultError({
1540
+ output,
1541
+ parsedBody,
1542
+ errorCode
1543
+ });
1544
+ }
1545
+ }, "de_GetReplicationSetCommandError");
1546
+ var de_GetResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
1547
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1548
+ return de_GetResourcePoliciesCommandError(output, context);
1549
+ }
1550
+ const contents = (0, import_smithy_client.map)({
1551
+ $metadata: deserializeMetadata(output)
1552
+ });
1553
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1554
+ const doc = (0, import_smithy_client.take)(data, {
1555
+ nextToken: import_smithy_client.expectString,
1556
+ resourcePolicies: import_smithy_client._json
1557
+ });
1558
+ Object.assign(contents, doc);
1559
+ return contents;
1560
+ }, "de_GetResourcePoliciesCommand");
1561
+ var de_GetResourcePoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1562
+ const parsedOutput = {
1563
+ ...output,
1564
+ body: await parseErrorBody(output.body, context)
1565
+ };
1566
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1567
+ switch (errorCode) {
1568
+ case "AccessDeniedException":
1569
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1570
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1571
+ case "InternalServerException":
1572
+ case "com.amazonaws.ssmincidents#InternalServerException":
1573
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1574
+ case "ResourceNotFoundException":
1575
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1576
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1577
+ case "ThrottlingException":
1578
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1579
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1580
+ case "ValidationException":
1581
+ case "com.amazonaws.ssmincidents#ValidationException":
1582
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1583
+ default:
1584
+ const parsedBody = parsedOutput.body;
1585
+ return throwDefaultError({
1586
+ output,
1587
+ parsedBody,
1588
+ errorCode
1589
+ });
1590
+ }
1591
+ }, "de_GetResourcePoliciesCommandError");
1592
+ var de_GetResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1593
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1594
+ return de_GetResponsePlanCommandError(output, context);
1595
+ }
1596
+ const contents = (0, import_smithy_client.map)({
1597
+ $metadata: deserializeMetadata(output)
1598
+ });
1599
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1600
+ const doc = (0, import_smithy_client.take)(data, {
1601
+ actions: import_smithy_client._json,
1602
+ arn: import_smithy_client.expectString,
1603
+ chatChannel: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
1604
+ displayName: import_smithy_client.expectString,
1605
+ engagements: import_smithy_client._json,
1606
+ incidentTemplate: import_smithy_client._json,
1607
+ integrations: import_smithy_client._json,
1608
+ name: import_smithy_client.expectString
1609
+ });
1610
+ Object.assign(contents, doc);
1611
+ return contents;
1612
+ }, "de_GetResponsePlanCommand");
1613
+ var de_GetResponsePlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
1614
+ const parsedOutput = {
1615
+ ...output,
1616
+ body: await parseErrorBody(output.body, context)
1617
+ };
1618
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1619
+ switch (errorCode) {
1620
+ case "AccessDeniedException":
1621
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1622
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1623
+ case "InternalServerException":
1624
+ case "com.amazonaws.ssmincidents#InternalServerException":
1625
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1626
+ case "ResourceNotFoundException":
1627
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1628
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1629
+ case "ThrottlingException":
1630
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1631
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1632
+ case "ValidationException":
1633
+ case "com.amazonaws.ssmincidents#ValidationException":
1634
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1635
+ default:
1636
+ const parsedBody = parsedOutput.body;
1637
+ return throwDefaultError({
1638
+ output,
1639
+ parsedBody,
1640
+ errorCode
1641
+ });
1642
+ }
1643
+ }, "de_GetResponsePlanCommandError");
1644
+ var de_GetTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
1645
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1646
+ return de_GetTimelineEventCommandError(output, context);
1647
+ }
1648
+ const contents = (0, import_smithy_client.map)({
1649
+ $metadata: deserializeMetadata(output)
1650
+ });
1651
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1652
+ const doc = (0, import_smithy_client.take)(data, {
1653
+ event: (_) => de_TimelineEvent(_, context)
1654
+ });
1655
+ Object.assign(contents, doc);
1656
+ return contents;
1657
+ }, "de_GetTimelineEventCommand");
1658
+ var de_GetTimelineEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
1659
+ const parsedOutput = {
1660
+ ...output,
1661
+ body: await parseErrorBody(output.body, context)
1662
+ };
1663
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1664
+ switch (errorCode) {
1665
+ case "AccessDeniedException":
1666
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1667
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1668
+ case "InternalServerException":
1669
+ case "com.amazonaws.ssmincidents#InternalServerException":
1670
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1671
+ case "ResourceNotFoundException":
1672
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1673
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1674
+ case "ThrottlingException":
1675
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1676
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1677
+ case "ValidationException":
1678
+ case "com.amazonaws.ssmincidents#ValidationException":
1679
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1680
+ default:
1681
+ const parsedBody = parsedOutput.body;
1682
+ return throwDefaultError({
1683
+ output,
1684
+ parsedBody,
1685
+ errorCode
1686
+ });
1687
+ }
1688
+ }, "de_GetTimelineEventCommandError");
1689
+ var de_ListIncidentFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1690
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1691
+ return de_ListIncidentFindingsCommandError(output, context);
1692
+ }
1693
+ const contents = (0, import_smithy_client.map)({
1694
+ $metadata: deserializeMetadata(output)
1695
+ });
1696
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1697
+ const doc = (0, import_smithy_client.take)(data, {
1698
+ findings: (_) => de_FindingSummaryList(_, context),
1699
+ nextToken: import_smithy_client.expectString
1700
+ });
1701
+ Object.assign(contents, doc);
1702
+ return contents;
1703
+ }, "de_ListIncidentFindingsCommand");
1704
+ var de_ListIncidentFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1705
+ const parsedOutput = {
1706
+ ...output,
1707
+ body: await parseErrorBody(output.body, context)
1708
+ };
1709
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1710
+ switch (errorCode) {
1711
+ case "AccessDeniedException":
1712
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1713
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1714
+ case "InternalServerException":
1715
+ case "com.amazonaws.ssmincidents#InternalServerException":
1716
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1717
+ case "ResourceNotFoundException":
1718
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1719
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1720
+ case "ThrottlingException":
1721
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1722
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1723
+ case "ValidationException":
1724
+ case "com.amazonaws.ssmincidents#ValidationException":
1725
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1726
+ default:
1727
+ const parsedBody = parsedOutput.body;
1728
+ return throwDefaultError({
1729
+ output,
1730
+ parsedBody,
1731
+ errorCode
1732
+ });
1733
+ }
1734
+ }, "de_ListIncidentFindingsCommandError");
1735
+ var de_ListIncidentRecordsCommand = /* @__PURE__ */ __name(async (output, context) => {
1736
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1737
+ return de_ListIncidentRecordsCommandError(output, context);
1738
+ }
1739
+ const contents = (0, import_smithy_client.map)({
1740
+ $metadata: deserializeMetadata(output)
1741
+ });
1742
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1743
+ const doc = (0, import_smithy_client.take)(data, {
1744
+ incidentRecordSummaries: (_) => de_IncidentRecordSummaryList(_, context),
1745
+ nextToken: import_smithy_client.expectString
1746
+ });
1747
+ Object.assign(contents, doc);
1748
+ return contents;
1749
+ }, "de_ListIncidentRecordsCommand");
1750
+ var de_ListIncidentRecordsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1751
+ const parsedOutput = {
1752
+ ...output,
1753
+ body: await parseErrorBody(output.body, context)
1754
+ };
1755
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1756
+ switch (errorCode) {
1757
+ case "AccessDeniedException":
1758
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1759
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1760
+ case "InternalServerException":
1761
+ case "com.amazonaws.ssmincidents#InternalServerException":
1762
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1763
+ case "ThrottlingException":
1764
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1765
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1766
+ case "ValidationException":
1767
+ case "com.amazonaws.ssmincidents#ValidationException":
1768
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1769
+ default:
1770
+ const parsedBody = parsedOutput.body;
1771
+ return throwDefaultError({
1772
+ output,
1773
+ parsedBody,
1774
+ errorCode
1775
+ });
1776
+ }
1777
+ }, "de_ListIncidentRecordsCommandError");
1778
+ var de_ListRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
1779
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1780
+ return de_ListRelatedItemsCommandError(output, context);
1781
+ }
1782
+ const contents = (0, import_smithy_client.map)({
1783
+ $metadata: deserializeMetadata(output)
1784
+ });
1785
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1786
+ const doc = (0, import_smithy_client.take)(data, {
1787
+ nextToken: import_smithy_client.expectString,
1788
+ relatedItems: import_smithy_client._json
1789
+ });
1790
+ Object.assign(contents, doc);
1791
+ return contents;
1792
+ }, "de_ListRelatedItemsCommand");
1793
+ var de_ListRelatedItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1794
+ const parsedOutput = {
1795
+ ...output,
1796
+ body: await parseErrorBody(output.body, context)
1797
+ };
1798
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1799
+ switch (errorCode) {
1800
+ case "AccessDeniedException":
1801
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1802
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1803
+ case "InternalServerException":
1804
+ case "com.amazonaws.ssmincidents#InternalServerException":
1805
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1806
+ case "ThrottlingException":
1807
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1808
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1809
+ case "ValidationException":
1810
+ case "com.amazonaws.ssmincidents#ValidationException":
1811
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1812
+ default:
1813
+ const parsedBody = parsedOutput.body;
1814
+ return throwDefaultError({
1815
+ output,
1816
+ parsedBody,
1817
+ errorCode
1818
+ });
1819
+ }
1820
+ }, "de_ListRelatedItemsCommandError");
1821
+ var de_ListReplicationSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1822
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1823
+ return de_ListReplicationSetsCommandError(output, context);
1824
+ }
1825
+ const contents = (0, import_smithy_client.map)({
1826
+ $metadata: deserializeMetadata(output)
1827
+ });
1828
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1829
+ const doc = (0, import_smithy_client.take)(data, {
1830
+ nextToken: import_smithy_client.expectString,
1831
+ replicationSetArns: import_smithy_client._json
1832
+ });
1833
+ Object.assign(contents, doc);
1834
+ return contents;
1835
+ }, "de_ListReplicationSetsCommand");
1836
+ var de_ListReplicationSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1837
+ const parsedOutput = {
1838
+ ...output,
1839
+ body: await parseErrorBody(output.body, context)
1840
+ };
1841
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1842
+ switch (errorCode) {
1843
+ case "AccessDeniedException":
1844
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1845
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1846
+ case "InternalServerException":
1847
+ case "com.amazonaws.ssmincidents#InternalServerException":
1848
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1849
+ case "ThrottlingException":
1850
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1851
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1852
+ case "ValidationException":
1853
+ case "com.amazonaws.ssmincidents#ValidationException":
1854
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1855
+ default:
1856
+ const parsedBody = parsedOutput.body;
1857
+ return throwDefaultError({
1858
+ output,
1859
+ parsedBody,
1860
+ errorCode
1861
+ });
1862
+ }
1863
+ }, "de_ListReplicationSetsCommandError");
1864
+ var de_ListResponsePlansCommand = /* @__PURE__ */ __name(async (output, context) => {
1865
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1866
+ return de_ListResponsePlansCommandError(output, context);
1867
+ }
1868
+ const contents = (0, import_smithy_client.map)({
1869
+ $metadata: deserializeMetadata(output)
1870
+ });
1871
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1872
+ const doc = (0, import_smithy_client.take)(data, {
1873
+ nextToken: import_smithy_client.expectString,
1874
+ responsePlanSummaries: import_smithy_client._json
1875
+ });
1876
+ Object.assign(contents, doc);
1877
+ return contents;
1878
+ }, "de_ListResponsePlansCommand");
1879
+ var de_ListResponsePlansCommandError = /* @__PURE__ */ __name(async (output, context) => {
1880
+ const parsedOutput = {
1881
+ ...output,
1882
+ body: await parseErrorBody(output.body, context)
1883
+ };
1884
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1885
+ switch (errorCode) {
1886
+ case "AccessDeniedException":
1887
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1888
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1889
+ case "InternalServerException":
1890
+ case "com.amazonaws.ssmincidents#InternalServerException":
1891
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1892
+ case "ThrottlingException":
1893
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1894
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1895
+ case "ValidationException":
1896
+ case "com.amazonaws.ssmincidents#ValidationException":
1897
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1898
+ default:
1899
+ const parsedBody = parsedOutput.body;
1900
+ return throwDefaultError({
1901
+ output,
1902
+ parsedBody,
1903
+ errorCode
1904
+ });
1905
+ }
1906
+ }, "de_ListResponsePlansCommandError");
1907
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1908
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1909
+ return de_ListTagsForResourceCommandError(output, context);
1910
+ }
1911
+ const contents = (0, import_smithy_client.map)({
1912
+ $metadata: deserializeMetadata(output)
1913
+ });
1914
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1915
+ const doc = (0, import_smithy_client.take)(data, {
1916
+ tags: import_smithy_client._json
1917
+ });
1918
+ Object.assign(contents, doc);
1919
+ return contents;
1920
+ }, "de_ListTagsForResourceCommand");
1921
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1922
+ const parsedOutput = {
1923
+ ...output,
1924
+ body: await parseErrorBody(output.body, context)
1925
+ };
1926
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1927
+ switch (errorCode) {
1928
+ case "AccessDeniedException":
1929
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1930
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1931
+ case "InternalServerException":
1932
+ case "com.amazonaws.ssmincidents#InternalServerException":
1933
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1934
+ case "ResourceNotFoundException":
1935
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
1936
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1937
+ case "ThrottlingException":
1938
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1939
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1940
+ case "ValidationException":
1941
+ case "com.amazonaws.ssmincidents#ValidationException":
1942
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1943
+ default:
1944
+ const parsedBody = parsedOutput.body;
1945
+ return throwDefaultError({
1946
+ output,
1947
+ parsedBody,
1948
+ errorCode
1949
+ });
1950
+ }
1951
+ }, "de_ListTagsForResourceCommandError");
1952
+ var de_ListTimelineEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
1953
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1954
+ return de_ListTimelineEventsCommandError(output, context);
1955
+ }
1956
+ const contents = (0, import_smithy_client.map)({
1957
+ $metadata: deserializeMetadata(output)
1958
+ });
1959
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1960
+ const doc = (0, import_smithy_client.take)(data, {
1961
+ eventSummaries: (_) => de_EventSummaryList(_, context),
1962
+ nextToken: import_smithy_client.expectString
1963
+ });
1964
+ Object.assign(contents, doc);
1965
+ return contents;
1966
+ }, "de_ListTimelineEventsCommand");
1967
+ var de_ListTimelineEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1968
+ const parsedOutput = {
1969
+ ...output,
1970
+ body: await parseErrorBody(output.body, context)
1971
+ };
1972
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1973
+ switch (errorCode) {
1974
+ case "AccessDeniedException":
1975
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
1976
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1977
+ case "InternalServerException":
1978
+ case "com.amazonaws.ssmincidents#InternalServerException":
1979
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1980
+ case "ThrottlingException":
1981
+ case "com.amazonaws.ssmincidents#ThrottlingException":
1982
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1983
+ case "ValidationException":
1984
+ case "com.amazonaws.ssmincidents#ValidationException":
1985
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1986
+ default:
1987
+ const parsedBody = parsedOutput.body;
1988
+ return throwDefaultError({
1989
+ output,
1990
+ parsedBody,
1991
+ errorCode
1992
+ });
1993
+ }
1994
+ }, "de_ListTimelineEventsCommandError");
1995
+ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1996
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1997
+ return de_PutResourcePolicyCommandError(output, context);
1998
+ }
1999
+ const contents = (0, import_smithy_client.map)({
2000
+ $metadata: deserializeMetadata(output)
2001
+ });
2002
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2003
+ const doc = (0, import_smithy_client.take)(data, {
2004
+ policyId: import_smithy_client.expectString
2005
+ });
2006
+ Object.assign(contents, doc);
2007
+ return contents;
2008
+ }, "de_PutResourcePolicyCommand");
2009
+ var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2010
+ const parsedOutput = {
2011
+ ...output,
2012
+ body: await parseErrorBody(output.body, context)
2013
+ };
2014
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2015
+ switch (errorCode) {
2016
+ case "AccessDeniedException":
2017
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
2018
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2019
+ case "InternalServerException":
2020
+ case "com.amazonaws.ssmincidents#InternalServerException":
2021
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2022
+ case "ResourceNotFoundException":
2023
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
2024
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2025
+ case "ThrottlingException":
2026
+ case "com.amazonaws.ssmincidents#ThrottlingException":
2027
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2028
+ case "ValidationException":
2029
+ case "com.amazonaws.ssmincidents#ValidationException":
2030
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2031
+ default:
2032
+ const parsedBody = parsedOutput.body;
2033
+ return throwDefaultError({
2034
+ output,
2035
+ parsedBody,
2036
+ errorCode
2037
+ });
2038
+ }
2039
+ }, "de_PutResourcePolicyCommandError");
2040
+ var de_StartIncidentCommand = /* @__PURE__ */ __name(async (output, context) => {
2041
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2042
+ return de_StartIncidentCommandError(output, context);
2043
+ }
2044
+ const contents = (0, import_smithy_client.map)({
2045
+ $metadata: deserializeMetadata(output)
2046
+ });
2047
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2048
+ const doc = (0, import_smithy_client.take)(data, {
2049
+ incidentRecordArn: import_smithy_client.expectString
2050
+ });
2051
+ Object.assign(contents, doc);
2052
+ return contents;
2053
+ }, "de_StartIncidentCommand");
2054
+ var de_StartIncidentCommandError = /* @__PURE__ */ __name(async (output, context) => {
2055
+ const parsedOutput = {
2056
+ ...output,
2057
+ body: await parseErrorBody(output.body, context)
2058
+ };
2059
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2060
+ switch (errorCode) {
2061
+ case "AccessDeniedException":
2062
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
2063
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2064
+ case "ConflictException":
2065
+ case "com.amazonaws.ssmincidents#ConflictException":
2066
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2067
+ case "InternalServerException":
2068
+ case "com.amazonaws.ssmincidents#InternalServerException":
2069
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2070
+ case "ResourceNotFoundException":
2071
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
2072
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2073
+ case "ThrottlingException":
2074
+ case "com.amazonaws.ssmincidents#ThrottlingException":
2075
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2076
+ case "ValidationException":
2077
+ case "com.amazonaws.ssmincidents#ValidationException":
2078
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2079
+ default:
2080
+ const parsedBody = parsedOutput.body;
2081
+ return throwDefaultError({
2082
+ output,
2083
+ parsedBody,
2084
+ errorCode
2085
+ });
2086
+ }
2087
+ }, "de_StartIncidentCommandError");
2088
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2089
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2090
+ return de_TagResourceCommandError(output, context);
2091
+ }
2092
+ const contents = (0, import_smithy_client.map)({
2093
+ $metadata: deserializeMetadata(output)
2094
+ });
2095
+ await (0, import_smithy_client.collectBody)(output.body, context);
2096
+ return contents;
2097
+ }, "de_TagResourceCommand");
2098
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2099
+ const parsedOutput = {
2100
+ ...output,
2101
+ body: await parseErrorBody(output.body, context)
2102
+ };
2103
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2104
+ switch (errorCode) {
2105
+ case "AccessDeniedException":
2106
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
2107
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2108
+ case "ConflictException":
2109
+ case "com.amazonaws.ssmincidents#ConflictException":
2110
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2111
+ case "InternalServerException":
2112
+ case "com.amazonaws.ssmincidents#InternalServerException":
2113
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2114
+ case "ResourceNotFoundException":
2115
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
2116
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2117
+ case "ServiceQuotaExceededException":
2118
+ case "com.amazonaws.ssmincidents#ServiceQuotaExceededException":
2119
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2120
+ case "ThrottlingException":
2121
+ case "com.amazonaws.ssmincidents#ThrottlingException":
2122
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2123
+ case "ValidationException":
2124
+ case "com.amazonaws.ssmincidents#ValidationException":
2125
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2126
+ default:
2127
+ const parsedBody = parsedOutput.body;
2128
+ return throwDefaultError({
2129
+ output,
2130
+ parsedBody,
2131
+ errorCode
2132
+ });
2133
+ }
2134
+ }, "de_TagResourceCommandError");
2135
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2136
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2137
+ return de_UntagResourceCommandError(output, context);
2138
+ }
2139
+ const contents = (0, import_smithy_client.map)({
2140
+ $metadata: deserializeMetadata(output)
2141
+ });
2142
+ await (0, import_smithy_client.collectBody)(output.body, context);
2143
+ return contents;
2144
+ }, "de_UntagResourceCommand");
2145
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2146
+ const parsedOutput = {
2147
+ ...output,
2148
+ body: await parseErrorBody(output.body, context)
2149
+ };
2150
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2151
+ switch (errorCode) {
2152
+ case "AccessDeniedException":
2153
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
2154
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2155
+ case "ConflictException":
2156
+ case "com.amazonaws.ssmincidents#ConflictException":
2157
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2158
+ case "InternalServerException":
2159
+ case "com.amazonaws.ssmincidents#InternalServerException":
2160
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2161
+ case "ResourceNotFoundException":
2162
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
2163
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2164
+ case "ThrottlingException":
2165
+ case "com.amazonaws.ssmincidents#ThrottlingException":
2166
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2167
+ case "ValidationException":
2168
+ case "com.amazonaws.ssmincidents#ValidationException":
2169
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2170
+ default:
2171
+ const parsedBody = parsedOutput.body;
2172
+ return throwDefaultError({
2173
+ output,
2174
+ parsedBody,
2175
+ errorCode
2176
+ });
2177
+ }
2178
+ }, "de_UntagResourceCommandError");
2179
+ var de_UpdateDeletionProtectionCommand = /* @__PURE__ */ __name(async (output, context) => {
2180
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2181
+ return de_UpdateDeletionProtectionCommandError(output, context);
2182
+ }
2183
+ const contents = (0, import_smithy_client.map)({
2184
+ $metadata: deserializeMetadata(output)
2185
+ });
2186
+ await (0, import_smithy_client.collectBody)(output.body, context);
2187
+ return contents;
2188
+ }, "de_UpdateDeletionProtectionCommand");
2189
+ var de_UpdateDeletionProtectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2190
+ const parsedOutput = {
2191
+ ...output,
2192
+ body: await parseErrorBody(output.body, context)
2193
+ };
2194
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2195
+ switch (errorCode) {
2196
+ case "AccessDeniedException":
2197
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
2198
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2199
+ case "InternalServerException":
2200
+ case "com.amazonaws.ssmincidents#InternalServerException":
2201
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2202
+ case "ResourceNotFoundException":
2203
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
2204
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2205
+ case "ThrottlingException":
2206
+ case "com.amazonaws.ssmincidents#ThrottlingException":
2207
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2208
+ case "ValidationException":
2209
+ case "com.amazonaws.ssmincidents#ValidationException":
2210
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2211
+ default:
2212
+ const parsedBody = parsedOutput.body;
2213
+ return throwDefaultError({
2214
+ output,
2215
+ parsedBody,
2216
+ errorCode
2217
+ });
2218
+ }
2219
+ }, "de_UpdateDeletionProtectionCommandError");
2220
+ var de_UpdateIncidentRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
2221
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2222
+ return de_UpdateIncidentRecordCommandError(output, context);
2223
+ }
2224
+ const contents = (0, import_smithy_client.map)({
2225
+ $metadata: deserializeMetadata(output)
2226
+ });
2227
+ await (0, import_smithy_client.collectBody)(output.body, context);
2228
+ return contents;
2229
+ }, "de_UpdateIncidentRecordCommand");
2230
+ var de_UpdateIncidentRecordCommandError = /* @__PURE__ */ __name(async (output, context) => {
2231
+ const parsedOutput = {
2232
+ ...output,
2233
+ body: await parseErrorBody(output.body, context)
2234
+ };
2235
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2236
+ switch (errorCode) {
2237
+ case "AccessDeniedException":
2238
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
2239
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2240
+ case "ConflictException":
2241
+ case "com.amazonaws.ssmincidents#ConflictException":
2242
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2243
+ case "InternalServerException":
2244
+ case "com.amazonaws.ssmincidents#InternalServerException":
2245
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2246
+ case "ResourceNotFoundException":
2247
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
2248
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2249
+ case "ThrottlingException":
2250
+ case "com.amazonaws.ssmincidents#ThrottlingException":
2251
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2252
+ case "ValidationException":
2253
+ case "com.amazonaws.ssmincidents#ValidationException":
2254
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2255
+ default:
2256
+ const parsedBody = parsedOutput.body;
2257
+ return throwDefaultError({
2258
+ output,
2259
+ parsedBody,
2260
+ errorCode
2261
+ });
2262
+ }
2263
+ }, "de_UpdateIncidentRecordCommandError");
2264
+ var de_UpdateRelatedItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
2265
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2266
+ return de_UpdateRelatedItemsCommandError(output, context);
2267
+ }
2268
+ const contents = (0, import_smithy_client.map)({
2269
+ $metadata: deserializeMetadata(output)
2270
+ });
2271
+ await (0, import_smithy_client.collectBody)(output.body, context);
2272
+ return contents;
2273
+ }, "de_UpdateRelatedItemsCommand");
2274
+ var de_UpdateRelatedItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2275
+ const parsedOutput = {
2276
+ ...output,
2277
+ body: await parseErrorBody(output.body, context)
2278
+ };
2279
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2280
+ switch (errorCode) {
2281
+ case "AccessDeniedException":
2282
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
2283
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2284
+ case "ConflictException":
2285
+ case "com.amazonaws.ssmincidents#ConflictException":
2286
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2287
+ case "InternalServerException":
2288
+ case "com.amazonaws.ssmincidents#InternalServerException":
2289
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2290
+ case "ResourceNotFoundException":
2291
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
2292
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2293
+ case "ThrottlingException":
2294
+ case "com.amazonaws.ssmincidents#ThrottlingException":
2295
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2296
+ case "ValidationException":
2297
+ case "com.amazonaws.ssmincidents#ValidationException":
2298
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2299
+ default:
2300
+ const parsedBody = parsedOutput.body;
2301
+ return throwDefaultError({
2302
+ output,
2303
+ parsedBody,
2304
+ errorCode
2305
+ });
2306
+ }
2307
+ }, "de_UpdateRelatedItemsCommandError");
2308
+ var de_UpdateReplicationSetCommand = /* @__PURE__ */ __name(async (output, context) => {
2309
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2310
+ return de_UpdateReplicationSetCommandError(output, context);
2311
+ }
2312
+ const contents = (0, import_smithy_client.map)({
2313
+ $metadata: deserializeMetadata(output)
2314
+ });
2315
+ await (0, import_smithy_client.collectBody)(output.body, context);
2316
+ return contents;
2317
+ }, "de_UpdateReplicationSetCommand");
2318
+ var de_UpdateReplicationSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2319
+ const parsedOutput = {
2320
+ ...output,
2321
+ body: await parseErrorBody(output.body, context)
2322
+ };
2323
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2324
+ switch (errorCode) {
2325
+ case "AccessDeniedException":
2326
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
2327
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2328
+ case "ConflictException":
2329
+ case "com.amazonaws.ssmincidents#ConflictException":
2330
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2331
+ case "InternalServerException":
2332
+ case "com.amazonaws.ssmincidents#InternalServerException":
2333
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2334
+ case "ResourceNotFoundException":
2335
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
2336
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2337
+ case "ThrottlingException":
2338
+ case "com.amazonaws.ssmincidents#ThrottlingException":
2339
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2340
+ case "ValidationException":
2341
+ case "com.amazonaws.ssmincidents#ValidationException":
2342
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2343
+ default:
2344
+ const parsedBody = parsedOutput.body;
2345
+ return throwDefaultError({
2346
+ output,
2347
+ parsedBody,
2348
+ errorCode
2349
+ });
2350
+ }
2351
+ }, "de_UpdateReplicationSetCommandError");
2352
+ var de_UpdateResponsePlanCommand = /* @__PURE__ */ __name(async (output, context) => {
2353
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2354
+ return de_UpdateResponsePlanCommandError(output, context);
2355
+ }
2356
+ const contents = (0, import_smithy_client.map)({
2357
+ $metadata: deserializeMetadata(output)
2358
+ });
2359
+ await (0, import_smithy_client.collectBody)(output.body, context);
2360
+ return contents;
2361
+ }, "de_UpdateResponsePlanCommand");
2362
+ var de_UpdateResponsePlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
2363
+ const parsedOutput = {
2364
+ ...output,
2365
+ body: await parseErrorBody(output.body, context)
2366
+ };
2367
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2368
+ switch (errorCode) {
2369
+ case "AccessDeniedException":
2370
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
2371
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2372
+ case "ConflictException":
2373
+ case "com.amazonaws.ssmincidents#ConflictException":
2374
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2375
+ case "InternalServerException":
2376
+ case "com.amazonaws.ssmincidents#InternalServerException":
2377
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2378
+ case "ResourceNotFoundException":
2379
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
2380
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2381
+ case "ThrottlingException":
2382
+ case "com.amazonaws.ssmincidents#ThrottlingException":
2383
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2384
+ case "ValidationException":
2385
+ case "com.amazonaws.ssmincidents#ValidationException":
2386
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2387
+ default:
2388
+ const parsedBody = parsedOutput.body;
2389
+ return throwDefaultError({
2390
+ output,
2391
+ parsedBody,
2392
+ errorCode
2393
+ });
2394
+ }
2395
+ }, "de_UpdateResponsePlanCommandError");
2396
+ var de_UpdateTimelineEventCommand = /* @__PURE__ */ __name(async (output, context) => {
2397
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2398
+ return de_UpdateTimelineEventCommandError(output, context);
2399
+ }
2400
+ const contents = (0, import_smithy_client.map)({
2401
+ $metadata: deserializeMetadata(output)
2402
+ });
2403
+ await (0, import_smithy_client.collectBody)(output.body, context);
2404
+ return contents;
2405
+ }, "de_UpdateTimelineEventCommand");
2406
+ var de_UpdateTimelineEventCommandError = /* @__PURE__ */ __name(async (output, context) => {
2407
+ const parsedOutput = {
2408
+ ...output,
2409
+ body: await parseErrorBody(output.body, context)
2410
+ };
2411
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2412
+ switch (errorCode) {
2413
+ case "AccessDeniedException":
2414
+ case "com.amazonaws.ssmincidents#AccessDeniedException":
2415
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2416
+ case "ConflictException":
2417
+ case "com.amazonaws.ssmincidents#ConflictException":
2418
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2419
+ case "InternalServerException":
2420
+ case "com.amazonaws.ssmincidents#InternalServerException":
2421
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2422
+ case "ResourceNotFoundException":
2423
+ case "com.amazonaws.ssmincidents#ResourceNotFoundException":
2424
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2425
+ case "ThrottlingException":
2426
+ case "com.amazonaws.ssmincidents#ThrottlingException":
2427
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2428
+ case "ValidationException":
2429
+ case "com.amazonaws.ssmincidents#ValidationException":
2430
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2431
+ default:
2432
+ const parsedBody = parsedOutput.body;
2433
+ return throwDefaultError({
2434
+ output,
2435
+ parsedBody,
2436
+ errorCode
2437
+ });
2438
+ }
2439
+ }, "de_UpdateTimelineEventCommandError");
2440
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(SSMIncidentsServiceException);
2441
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2442
+ const contents = (0, import_smithy_client.map)({});
2443
+ const data = parsedOutput.body;
2444
+ const doc = (0, import_smithy_client.take)(data, {
2445
+ message: import_smithy_client.expectString
2446
+ });
2447
+ Object.assign(contents, doc);
2448
+ const exception = new AccessDeniedException({
2449
+ $metadata: deserializeMetadata(parsedOutput),
2450
+ ...contents
2451
+ });
2452
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2453
+ }, "de_AccessDeniedExceptionRes");
2454
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2455
+ const contents = (0, import_smithy_client.map)({});
2456
+ const data = parsedOutput.body;
2457
+ const doc = (0, import_smithy_client.take)(data, {
2458
+ message: import_smithy_client.expectString,
2459
+ resourceIdentifier: import_smithy_client.expectString,
2460
+ resourceType: import_smithy_client.expectString,
2461
+ retryAfter: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2462
+ });
2463
+ Object.assign(contents, doc);
2464
+ const exception = new ConflictException({
2465
+ $metadata: deserializeMetadata(parsedOutput),
2466
+ ...contents
2467
+ });
2468
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2469
+ }, "de_ConflictExceptionRes");
2470
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2471
+ const contents = (0, import_smithy_client.map)({});
2472
+ const data = parsedOutput.body;
2473
+ const doc = (0, import_smithy_client.take)(data, {
2474
+ message: import_smithy_client.expectString
2475
+ });
2476
+ Object.assign(contents, doc);
2477
+ const exception = new InternalServerException({
2478
+ $metadata: deserializeMetadata(parsedOutput),
2479
+ ...contents
2480
+ });
2481
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2482
+ }, "de_InternalServerExceptionRes");
2483
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2484
+ const contents = (0, import_smithy_client.map)({});
2485
+ const data = parsedOutput.body;
2486
+ const doc = (0, import_smithy_client.take)(data, {
2487
+ message: import_smithy_client.expectString,
2488
+ resourceIdentifier: import_smithy_client.expectString,
2489
+ resourceType: import_smithy_client.expectString
2490
+ });
2491
+ Object.assign(contents, doc);
2492
+ const exception = new ResourceNotFoundException({
2493
+ $metadata: deserializeMetadata(parsedOutput),
2494
+ ...contents
2495
+ });
2496
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2497
+ }, "de_ResourceNotFoundExceptionRes");
2498
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2499
+ const contents = (0, import_smithy_client.map)({});
2500
+ const data = parsedOutput.body;
2501
+ const doc = (0, import_smithy_client.take)(data, {
2502
+ message: import_smithy_client.expectString,
2503
+ quotaCode: import_smithy_client.expectString,
2504
+ resourceIdentifier: import_smithy_client.expectString,
2505
+ resourceType: import_smithy_client.expectString,
2506
+ serviceCode: import_smithy_client.expectString
2507
+ });
2508
+ Object.assign(contents, doc);
2509
+ const exception = new ServiceQuotaExceededException({
2510
+ $metadata: deserializeMetadata(parsedOutput),
2511
+ ...contents
2512
+ });
2513
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2514
+ }, "de_ServiceQuotaExceededExceptionRes");
2515
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2516
+ const contents = (0, import_smithy_client.map)({});
2517
+ const data = parsedOutput.body;
2518
+ const doc = (0, import_smithy_client.take)(data, {
2519
+ message: import_smithy_client.expectString,
2520
+ quotaCode: import_smithy_client.expectString,
2521
+ serviceCode: import_smithy_client.expectString
2522
+ });
2523
+ Object.assign(contents, doc);
2524
+ const exception = new ThrottlingException({
2525
+ $metadata: deserializeMetadata(parsedOutput),
2526
+ ...contents
2527
+ });
2528
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2529
+ }, "de_ThrottlingExceptionRes");
2530
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2531
+ const contents = (0, import_smithy_client.map)({});
2532
+ const data = parsedOutput.body;
2533
+ const doc = (0, import_smithy_client.take)(data, {
2534
+ message: import_smithy_client.expectString
2535
+ });
2536
+ Object.assign(contents, doc);
2537
+ const exception = new ValidationException({
2538
+ $metadata: deserializeMetadata(parsedOutput),
2539
+ ...contents
2540
+ });
2541
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2542
+ }, "de_ValidationExceptionRes");
2543
+ var se_Condition = /* @__PURE__ */ __name((input, context) => {
2544
+ return Condition.visit(input, {
2545
+ after: (value) => ({ after: Math.round(value.getTime() / 1e3) }),
2546
+ before: (value) => ({ before: Math.round(value.getTime() / 1e3) }),
2547
+ equals: (value) => ({ equals: (0, import_smithy_client._json)(value) }),
2548
+ _: (name, value) => ({ name: value })
2549
+ });
2550
+ }, "se_Condition");
2551
+ var se_Filter = /* @__PURE__ */ __name((input, context) => {
2552
+ return (0, import_smithy_client.take)(input, {
2553
+ condition: (_) => se_Condition(_, context),
2554
+ key: []
2555
+ });
2556
+ }, "se_Filter");
2557
+ var se_FilterList = /* @__PURE__ */ __name((input, context) => {
2558
+ return input.filter((e) => e != null).map((entry) => {
2559
+ return se_Filter(entry, context);
2560
+ });
2561
+ }, "se_FilterList");
2562
+ var se_TriggerDetails = /* @__PURE__ */ __name((input, context) => {
2563
+ return (0, import_smithy_client.take)(input, {
2564
+ rawData: [],
2565
+ source: [],
2566
+ timestamp: (_) => Math.round(_.getTime() / 1e3),
2567
+ triggerArn: []
2568
+ });
2569
+ }, "se_TriggerDetails");
2570
+ var de_CloudFormationStackUpdate = /* @__PURE__ */ __name((output, context) => {
2571
+ return (0, import_smithy_client.take)(output, {
2572
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2573
+ stackArn: import_smithy_client.expectString,
2574
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2575
+ });
2576
+ }, "de_CloudFormationStackUpdate");
2577
+ var de_CodeDeployDeployment = /* @__PURE__ */ __name((output, context) => {
2578
+ return (0, import_smithy_client.take)(output, {
2579
+ deploymentGroupArn: import_smithy_client.expectString,
2580
+ deploymentId: import_smithy_client.expectString,
2581
+ endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2582
+ startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2583
+ });
2584
+ }, "de_CodeDeployDeployment");
2585
+ var de_EventSummary = /* @__PURE__ */ __name((output, context) => {
2586
+ return (0, import_smithy_client.take)(output, {
2587
+ eventId: import_smithy_client.expectString,
2588
+ eventReferences: import_smithy_client._json,
2589
+ eventTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2590
+ eventType: import_smithy_client.expectString,
2591
+ eventUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2592
+ incidentRecordArn: import_smithy_client.expectString
2593
+ });
2594
+ }, "de_EventSummary");
2595
+ var de_EventSummaryList = /* @__PURE__ */ __name((output, context) => {
2596
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2597
+ return de_EventSummary(entry, context);
2598
+ });
2599
+ return retVal;
2600
+ }, "de_EventSummaryList");
2601
+ var de_Finding = /* @__PURE__ */ __name((output, context) => {
2602
+ return (0, import_smithy_client.take)(output, {
2603
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2604
+ details: (_) => de_FindingDetails((0, import_core.awsExpectUnion)(_), context),
2605
+ id: import_smithy_client.expectString,
2606
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2607
+ });
2608
+ }, "de_Finding");
2609
+ var de_FindingDetails = /* @__PURE__ */ __name((output, context) => {
2610
+ if (output.cloudFormationStackUpdate != null) {
2611
+ return {
2612
+ cloudFormationStackUpdate: de_CloudFormationStackUpdate(output.cloudFormationStackUpdate, context)
2613
+ };
2614
+ }
2615
+ if (output.codeDeployDeployment != null) {
2616
+ return {
2617
+ codeDeployDeployment: de_CodeDeployDeployment(output.codeDeployDeployment, context)
2618
+ };
2619
+ }
2620
+ return { $unknown: Object.entries(output)[0] };
2621
+ }, "de_FindingDetails");
2622
+ var de_FindingList = /* @__PURE__ */ __name((output, context) => {
2623
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2624
+ return de_Finding(entry, context);
2625
+ });
2626
+ return retVal;
2627
+ }, "de_FindingList");
2628
+ var de_FindingSummary = /* @__PURE__ */ __name((output, context) => {
2629
+ return (0, import_smithy_client.take)(output, {
2630
+ id: import_smithy_client.expectString,
2631
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2632
+ });
2633
+ }, "de_FindingSummary");
2634
+ var de_FindingSummaryList = /* @__PURE__ */ __name((output, context) => {
2635
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2636
+ return de_FindingSummary(entry, context);
2637
+ });
2638
+ return retVal;
2639
+ }, "de_FindingSummaryList");
2640
+ var de_IncidentRecord = /* @__PURE__ */ __name((output, context) => {
2641
+ return (0, import_smithy_client.take)(output, {
2642
+ arn: import_smithy_client.expectString,
2643
+ automationExecutions: import_smithy_client._json,
2644
+ chatChannel: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2645
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2646
+ dedupeString: import_smithy_client.expectString,
2647
+ impact: import_smithy_client.expectInt32,
2648
+ incidentRecordSource: import_smithy_client._json,
2649
+ lastModifiedBy: import_smithy_client.expectString,
2650
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2651
+ notificationTargets: import_smithy_client._json,
2652
+ resolvedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2653
+ status: import_smithy_client.expectString,
2654
+ summary: import_smithy_client.expectString,
2655
+ title: import_smithy_client.expectString
2656
+ });
2657
+ }, "de_IncidentRecord");
2658
+ var de_IncidentRecordSummary = /* @__PURE__ */ __name((output, context) => {
2659
+ return (0, import_smithy_client.take)(output, {
2660
+ arn: import_smithy_client.expectString,
2661
+ creationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2662
+ impact: import_smithy_client.expectInt32,
2663
+ incidentRecordSource: import_smithy_client._json,
2664
+ resolvedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2665
+ status: import_smithy_client.expectString,
2666
+ title: import_smithy_client.expectString
2667
+ });
2668
+ }, "de_IncidentRecordSummary");
2669
+ var de_IncidentRecordSummaryList = /* @__PURE__ */ __name((output, context) => {
2670
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2671
+ return de_IncidentRecordSummary(entry, context);
2672
+ });
2673
+ return retVal;
2674
+ }, "de_IncidentRecordSummaryList");
2675
+ var de_RegionInfo = /* @__PURE__ */ __name((output, context) => {
2676
+ return (0, import_smithy_client.take)(output, {
2677
+ sseKmsKeyId: import_smithy_client.expectString,
2678
+ status: import_smithy_client.expectString,
2679
+ statusMessage: import_smithy_client.expectString,
2680
+ statusUpdateDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2681
+ });
2682
+ }, "de_RegionInfo");
2683
+ var de_RegionInfoMap = /* @__PURE__ */ __name((output, context) => {
2684
+ return Object.entries(output).reduce((acc, [key, value]) => {
2685
+ if (value === null) {
2686
+ return acc;
2687
+ }
2688
+ acc[key] = de_RegionInfo(value, context);
2689
+ return acc;
2690
+ }, {});
2691
+ }, "de_RegionInfoMap");
2692
+ var de_ReplicationSet = /* @__PURE__ */ __name((output, context) => {
2693
+ return (0, import_smithy_client.take)(output, {
2694
+ arn: import_smithy_client.expectString,
2695
+ createdBy: import_smithy_client.expectString,
2696
+ createdTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2697
+ deletionProtected: import_smithy_client.expectBoolean,
2698
+ lastModifiedBy: import_smithy_client.expectString,
2699
+ lastModifiedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2700
+ regionMap: (_) => de_RegionInfoMap(_, context),
2701
+ status: import_smithy_client.expectString
2702
+ });
2703
+ }, "de_ReplicationSet");
2704
+ var de_TimelineEvent = /* @__PURE__ */ __name((output, context) => {
2705
+ return (0, import_smithy_client.take)(output, {
2706
+ eventData: import_smithy_client.expectString,
2707
+ eventId: import_smithy_client.expectString,
2708
+ eventReferences: import_smithy_client._json,
2709
+ eventTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2710
+ eventType: import_smithy_client.expectString,
2711
+ eventUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2712
+ incidentRecordArn: import_smithy_client.expectString
2713
+ });
2714
+ }, "de_TimelineEvent");
2715
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2716
+ httpStatusCode: output.statusCode,
2717
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2718
+ extendedRequestId: output.headers["x-amz-id-2"],
2719
+ cfId: output.headers["x-amz-cf-id"]
2720
+ }), "deserializeMetadata");
2721
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2722
+ var _a = "arn";
2723
+ var _eI = "eventId";
2724
+ var _iRA = "incidentRecordArn";
2725
+ var _rA = "resourceArn";
2726
+ var _tK = "tagKeys";
2727
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2728
+ if (encoded.length) {
2729
+ return JSON.parse(encoded);
2730
+ }
2731
+ return {};
2732
+ }), "parseBody");
2733
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2734
+ const value = await parseBody(errorBody, context);
2735
+ value.message = value.message ?? value.Message;
2736
+ return value;
2737
+ }, "parseErrorBody");
2738
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2739
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2740
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2741
+ let cleanValue = rawValue;
2742
+ if (typeof cleanValue === "number") {
2743
+ cleanValue = cleanValue.toString();
2744
+ }
2745
+ if (cleanValue.indexOf(",") >= 0) {
2746
+ cleanValue = cleanValue.split(",")[0];
2747
+ }
2748
+ if (cleanValue.indexOf(":") >= 0) {
2749
+ cleanValue = cleanValue.split(":")[0];
2750
+ }
2751
+ if (cleanValue.indexOf("#") >= 0) {
2752
+ cleanValue = cleanValue.split("#")[1];
2753
+ }
2754
+ return cleanValue;
2755
+ }, "sanitizeErrorCode");
2756
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2757
+ if (headerKey !== void 0) {
2758
+ return sanitizeErrorCode(output.headers[headerKey]);
2759
+ }
2760
+ if (data.code !== void 0) {
2761
+ return sanitizeErrorCode(data.code);
2762
+ }
2763
+ if (data["__type"] !== void 0) {
2764
+ return sanitizeErrorCode(data["__type"]);
2765
+ }
2766
+ }, "loadRestJsonErrorCode");
2767
+
2768
+ // src/commands/BatchGetIncidentFindingsCommand.ts
2769
+ var _BatchGetIncidentFindingsCommand = class _BatchGetIncidentFindingsCommand extends import_smithy_client.Command.classBuilder().ep({
2770
+ ...commonParams
2771
+ }).m(function(Command, cs, config, o) {
2772
+ return [
2773
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2774
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2775
+ ];
2776
+ }).s("SSMIncidents", "BatchGetIncidentFindings", {}).n("SSMIncidentsClient", "BatchGetIncidentFindingsCommand").f(void 0, void 0).ser(se_BatchGetIncidentFindingsCommand).de(de_BatchGetIncidentFindingsCommand).build() {
2777
+ };
2778
+ __name(_BatchGetIncidentFindingsCommand, "BatchGetIncidentFindingsCommand");
2779
+ var BatchGetIncidentFindingsCommand = _BatchGetIncidentFindingsCommand;
2780
+
2781
+ // src/commands/CreateReplicationSetCommand.ts
2782
+
2783
+
2784
+
2785
+
2786
+ var _CreateReplicationSetCommand = class _CreateReplicationSetCommand extends import_smithy_client.Command.classBuilder().ep({
2787
+ ...commonParams
2788
+ }).m(function(Command, cs, config, o) {
2789
+ return [
2790
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2791
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2792
+ ];
2793
+ }).s("SSMIncidents", "CreateReplicationSet", {}).n("SSMIncidentsClient", "CreateReplicationSetCommand").f(void 0, void 0).ser(se_CreateReplicationSetCommand).de(de_CreateReplicationSetCommand).build() {
2794
+ };
2795
+ __name(_CreateReplicationSetCommand, "CreateReplicationSetCommand");
2796
+ var CreateReplicationSetCommand = _CreateReplicationSetCommand;
2797
+
2798
+ // src/commands/CreateResponsePlanCommand.ts
2799
+
2800
+
2801
+
2802
+
2803
+ var _CreateResponsePlanCommand = class _CreateResponsePlanCommand extends import_smithy_client.Command.classBuilder().ep({
2804
+ ...commonParams
2805
+ }).m(function(Command, cs, config, o) {
2806
+ return [
2807
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2808
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2809
+ ];
2810
+ }).s("SSMIncidents", "CreateResponsePlan", {}).n("SSMIncidentsClient", "CreateResponsePlanCommand").f(void 0, void 0).ser(se_CreateResponsePlanCommand).de(de_CreateResponsePlanCommand).build() {
2811
+ };
2812
+ __name(_CreateResponsePlanCommand, "CreateResponsePlanCommand");
2813
+ var CreateResponsePlanCommand = _CreateResponsePlanCommand;
2814
+
2815
+ // src/commands/CreateTimelineEventCommand.ts
2816
+
2817
+
2818
+
2819
+
2820
+ var _CreateTimelineEventCommand = class _CreateTimelineEventCommand extends import_smithy_client.Command.classBuilder().ep({
2821
+ ...commonParams
2822
+ }).m(function(Command, cs, config, o) {
2823
+ return [
2824
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2825
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2826
+ ];
2827
+ }).s("SSMIncidents", "CreateTimelineEvent", {}).n("SSMIncidentsClient", "CreateTimelineEventCommand").f(void 0, void 0).ser(se_CreateTimelineEventCommand).de(de_CreateTimelineEventCommand).build() {
2828
+ };
2829
+ __name(_CreateTimelineEventCommand, "CreateTimelineEventCommand");
2830
+ var CreateTimelineEventCommand = _CreateTimelineEventCommand;
2831
+
2832
+ // src/commands/DeleteIncidentRecordCommand.ts
2833
+
2834
+
2835
+
2836
+
2837
+ var _DeleteIncidentRecordCommand = class _DeleteIncidentRecordCommand extends import_smithy_client.Command.classBuilder().ep({
2838
+ ...commonParams
2839
+ }).m(function(Command, cs, config, o) {
2840
+ return [
2841
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2842
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2843
+ ];
2844
+ }).s("SSMIncidents", "DeleteIncidentRecord", {}).n("SSMIncidentsClient", "DeleteIncidentRecordCommand").f(void 0, void 0).ser(se_DeleteIncidentRecordCommand).de(de_DeleteIncidentRecordCommand).build() {
2845
+ };
2846
+ __name(_DeleteIncidentRecordCommand, "DeleteIncidentRecordCommand");
2847
+ var DeleteIncidentRecordCommand = _DeleteIncidentRecordCommand;
2848
+
2849
+ // src/commands/DeleteReplicationSetCommand.ts
2850
+
2851
+
2852
+
2853
+
2854
+ var _DeleteReplicationSetCommand = class _DeleteReplicationSetCommand extends import_smithy_client.Command.classBuilder().ep({
2855
+ ...commonParams
2856
+ }).m(function(Command, cs, config, o) {
2857
+ return [
2858
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2859
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2860
+ ];
2861
+ }).s("SSMIncidents", "DeleteReplicationSet", {}).n("SSMIncidentsClient", "DeleteReplicationSetCommand").f(void 0, void 0).ser(se_DeleteReplicationSetCommand).de(de_DeleteReplicationSetCommand).build() {
2862
+ };
2863
+ __name(_DeleteReplicationSetCommand, "DeleteReplicationSetCommand");
2864
+ var DeleteReplicationSetCommand = _DeleteReplicationSetCommand;
2865
+
2866
+ // src/commands/DeleteResourcePolicyCommand.ts
2867
+
2868
+
2869
+
2870
+
2871
+ var _DeleteResourcePolicyCommand = class _DeleteResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2872
+ ...commonParams
2873
+ }).m(function(Command, cs, config, o) {
2874
+ return [
2875
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2876
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2877
+ ];
2878
+ }).s("SSMIncidents", "DeleteResourcePolicy", {}).n("SSMIncidentsClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
2879
+ };
2880
+ __name(_DeleteResourcePolicyCommand, "DeleteResourcePolicyCommand");
2881
+ var DeleteResourcePolicyCommand = _DeleteResourcePolicyCommand;
2882
+
2883
+ // src/commands/DeleteResponsePlanCommand.ts
2884
+
2885
+
2886
+
2887
+
2888
+ var _DeleteResponsePlanCommand = class _DeleteResponsePlanCommand extends import_smithy_client.Command.classBuilder().ep({
2889
+ ...commonParams
2890
+ }).m(function(Command, cs, config, o) {
2891
+ return [
2892
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2893
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2894
+ ];
2895
+ }).s("SSMIncidents", "DeleteResponsePlan", {}).n("SSMIncidentsClient", "DeleteResponsePlanCommand").f(void 0, void 0).ser(se_DeleteResponsePlanCommand).de(de_DeleteResponsePlanCommand).build() {
2896
+ };
2897
+ __name(_DeleteResponsePlanCommand, "DeleteResponsePlanCommand");
2898
+ var DeleteResponsePlanCommand = _DeleteResponsePlanCommand;
2899
+
2900
+ // src/commands/DeleteTimelineEventCommand.ts
2901
+
2902
+
2903
+
2904
+
2905
+ var _DeleteTimelineEventCommand = class _DeleteTimelineEventCommand extends import_smithy_client.Command.classBuilder().ep({
2906
+ ...commonParams
2907
+ }).m(function(Command, cs, config, o) {
2908
+ return [
2909
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2910
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2911
+ ];
2912
+ }).s("SSMIncidents", "DeleteTimelineEvent", {}).n("SSMIncidentsClient", "DeleteTimelineEventCommand").f(void 0, void 0).ser(se_DeleteTimelineEventCommand).de(de_DeleteTimelineEventCommand).build() {
2913
+ };
2914
+ __name(_DeleteTimelineEventCommand, "DeleteTimelineEventCommand");
2915
+ var DeleteTimelineEventCommand = _DeleteTimelineEventCommand;
2916
+
2917
+ // src/commands/GetIncidentRecordCommand.ts
2918
+
2919
+
2920
+
2921
+
2922
+ var _GetIncidentRecordCommand = class _GetIncidentRecordCommand extends import_smithy_client.Command.classBuilder().ep({
2923
+ ...commonParams
2924
+ }).m(function(Command, cs, config, o) {
2925
+ return [
2926
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2927
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2928
+ ];
2929
+ }).s("SSMIncidents", "GetIncidentRecord", {}).n("SSMIncidentsClient", "GetIncidentRecordCommand").f(void 0, void 0).ser(se_GetIncidentRecordCommand).de(de_GetIncidentRecordCommand).build() {
2930
+ };
2931
+ __name(_GetIncidentRecordCommand, "GetIncidentRecordCommand");
2932
+ var GetIncidentRecordCommand = _GetIncidentRecordCommand;
2933
+
2934
+ // src/commands/GetReplicationSetCommand.ts
2935
+
2936
+
2937
+
2938
+
2939
+ var _GetReplicationSetCommand = class _GetReplicationSetCommand extends import_smithy_client.Command.classBuilder().ep({
2940
+ ...commonParams
2941
+ }).m(function(Command, cs, config, o) {
2942
+ return [
2943
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2944
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2945
+ ];
2946
+ }).s("SSMIncidents", "GetReplicationSet", {}).n("SSMIncidentsClient", "GetReplicationSetCommand").f(void 0, void 0).ser(se_GetReplicationSetCommand).de(de_GetReplicationSetCommand).build() {
2947
+ };
2948
+ __name(_GetReplicationSetCommand, "GetReplicationSetCommand");
2949
+ var GetReplicationSetCommand = _GetReplicationSetCommand;
2950
+
2951
+ // src/commands/GetResourcePoliciesCommand.ts
2952
+
2953
+
2954
+
2955
+
2956
+ var _GetResourcePoliciesCommand = class _GetResourcePoliciesCommand extends import_smithy_client.Command.classBuilder().ep({
2957
+ ...commonParams
2958
+ }).m(function(Command, cs, config, o) {
2959
+ return [
2960
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2961
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2962
+ ];
2963
+ }).s("SSMIncidents", "GetResourcePolicies", {}).n("SSMIncidentsClient", "GetResourcePoliciesCommand").f(void 0, void 0).ser(se_GetResourcePoliciesCommand).de(de_GetResourcePoliciesCommand).build() {
2964
+ };
2965
+ __name(_GetResourcePoliciesCommand, "GetResourcePoliciesCommand");
2966
+ var GetResourcePoliciesCommand = _GetResourcePoliciesCommand;
2967
+
2968
+ // src/commands/GetResponsePlanCommand.ts
2969
+
2970
+
2971
+
2972
+
2973
+ var _GetResponsePlanCommand = class _GetResponsePlanCommand extends import_smithy_client.Command.classBuilder().ep({
2974
+ ...commonParams
2975
+ }).m(function(Command, cs, config, o) {
2976
+ return [
2977
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2978
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2979
+ ];
2980
+ }).s("SSMIncidents", "GetResponsePlan", {}).n("SSMIncidentsClient", "GetResponsePlanCommand").f(void 0, void 0).ser(se_GetResponsePlanCommand).de(de_GetResponsePlanCommand).build() {
2981
+ };
2982
+ __name(_GetResponsePlanCommand, "GetResponsePlanCommand");
2983
+ var GetResponsePlanCommand = _GetResponsePlanCommand;
2984
+
2985
+ // src/commands/GetTimelineEventCommand.ts
2986
+
2987
+
2988
+
2989
+
2990
+ var _GetTimelineEventCommand = class _GetTimelineEventCommand extends import_smithy_client.Command.classBuilder().ep({
2991
+ ...commonParams
2992
+ }).m(function(Command, cs, config, o) {
2993
+ return [
2994
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2995
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2996
+ ];
2997
+ }).s("SSMIncidents", "GetTimelineEvent", {}).n("SSMIncidentsClient", "GetTimelineEventCommand").f(void 0, void 0).ser(se_GetTimelineEventCommand).de(de_GetTimelineEventCommand).build() {
2998
+ };
2999
+ __name(_GetTimelineEventCommand, "GetTimelineEventCommand");
3000
+ var GetTimelineEventCommand = _GetTimelineEventCommand;
3001
+
3002
+ // src/commands/ListIncidentFindingsCommand.ts
3003
+
3004
+
3005
+
3006
+
3007
+ var _ListIncidentFindingsCommand = class _ListIncidentFindingsCommand extends import_smithy_client.Command.classBuilder().ep({
3008
+ ...commonParams
3009
+ }).m(function(Command, cs, config, o) {
3010
+ return [
3011
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3012
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3013
+ ];
3014
+ }).s("SSMIncidents", "ListIncidentFindings", {}).n("SSMIncidentsClient", "ListIncidentFindingsCommand").f(void 0, void 0).ser(se_ListIncidentFindingsCommand).de(de_ListIncidentFindingsCommand).build() {
3015
+ };
3016
+ __name(_ListIncidentFindingsCommand, "ListIncidentFindingsCommand");
3017
+ var ListIncidentFindingsCommand = _ListIncidentFindingsCommand;
3018
+
3019
+ // src/commands/ListIncidentRecordsCommand.ts
3020
+
3021
+
3022
+
3023
+
3024
+ var _ListIncidentRecordsCommand = class _ListIncidentRecordsCommand extends import_smithy_client.Command.classBuilder().ep({
3025
+ ...commonParams
3026
+ }).m(function(Command, cs, config, o) {
3027
+ return [
3028
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3029
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3030
+ ];
3031
+ }).s("SSMIncidents", "ListIncidentRecords", {}).n("SSMIncidentsClient", "ListIncidentRecordsCommand").f(void 0, void 0).ser(se_ListIncidentRecordsCommand).de(de_ListIncidentRecordsCommand).build() {
3032
+ };
3033
+ __name(_ListIncidentRecordsCommand, "ListIncidentRecordsCommand");
3034
+ var ListIncidentRecordsCommand = _ListIncidentRecordsCommand;
3035
+
3036
+ // src/commands/ListRelatedItemsCommand.ts
3037
+
3038
+
3039
+
3040
+
3041
+ var _ListRelatedItemsCommand = class _ListRelatedItemsCommand extends import_smithy_client.Command.classBuilder().ep({
3042
+ ...commonParams
3043
+ }).m(function(Command, cs, config, o) {
3044
+ return [
3045
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3046
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3047
+ ];
3048
+ }).s("SSMIncidents", "ListRelatedItems", {}).n("SSMIncidentsClient", "ListRelatedItemsCommand").f(void 0, void 0).ser(se_ListRelatedItemsCommand).de(de_ListRelatedItemsCommand).build() {
3049
+ };
3050
+ __name(_ListRelatedItemsCommand, "ListRelatedItemsCommand");
3051
+ var ListRelatedItemsCommand = _ListRelatedItemsCommand;
3052
+
3053
+ // src/commands/ListReplicationSetsCommand.ts
3054
+
3055
+
3056
+
3057
+
3058
+ var _ListReplicationSetsCommand = class _ListReplicationSetsCommand extends import_smithy_client.Command.classBuilder().ep({
3059
+ ...commonParams
3060
+ }).m(function(Command, cs, config, o) {
3061
+ return [
3062
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3063
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3064
+ ];
3065
+ }).s("SSMIncidents", "ListReplicationSets", {}).n("SSMIncidentsClient", "ListReplicationSetsCommand").f(void 0, void 0).ser(se_ListReplicationSetsCommand).de(de_ListReplicationSetsCommand).build() {
3066
+ };
3067
+ __name(_ListReplicationSetsCommand, "ListReplicationSetsCommand");
3068
+ var ListReplicationSetsCommand = _ListReplicationSetsCommand;
3069
+
3070
+ // src/commands/ListResponsePlansCommand.ts
3071
+
3072
+
3073
+
3074
+
3075
+ var _ListResponsePlansCommand = class _ListResponsePlansCommand extends import_smithy_client.Command.classBuilder().ep({
3076
+ ...commonParams
3077
+ }).m(function(Command, cs, config, o) {
3078
+ return [
3079
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3080
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3081
+ ];
3082
+ }).s("SSMIncidents", "ListResponsePlans", {}).n("SSMIncidentsClient", "ListResponsePlansCommand").f(void 0, void 0).ser(se_ListResponsePlansCommand).de(de_ListResponsePlansCommand).build() {
3083
+ };
3084
+ __name(_ListResponsePlansCommand, "ListResponsePlansCommand");
3085
+ var ListResponsePlansCommand = _ListResponsePlansCommand;
3086
+
3087
+ // src/commands/ListTagsForResourceCommand.ts
3088
+
3089
+
3090
+
3091
+
3092
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3093
+ ...commonParams
3094
+ }).m(function(Command, cs, config, o) {
3095
+ return [
3096
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3097
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3098
+ ];
3099
+ }).s("SSMIncidents", "ListTagsForResource", {}).n("SSMIncidentsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
3100
+ };
3101
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
3102
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
3103
+
3104
+ // src/commands/ListTimelineEventsCommand.ts
3105
+
3106
+
3107
+
3108
+
3109
+ var _ListTimelineEventsCommand = class _ListTimelineEventsCommand extends import_smithy_client.Command.classBuilder().ep({
3110
+ ...commonParams
3111
+ }).m(function(Command, cs, config, o) {
3112
+ return [
3113
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3114
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3115
+ ];
3116
+ }).s("SSMIncidents", "ListTimelineEvents", {}).n("SSMIncidentsClient", "ListTimelineEventsCommand").f(void 0, void 0).ser(se_ListTimelineEventsCommand).de(de_ListTimelineEventsCommand).build() {
3117
+ };
3118
+ __name(_ListTimelineEventsCommand, "ListTimelineEventsCommand");
3119
+ var ListTimelineEventsCommand = _ListTimelineEventsCommand;
3120
+
3121
+ // src/commands/PutResourcePolicyCommand.ts
3122
+
3123
+
3124
+
3125
+
3126
+ var _PutResourcePolicyCommand = class _PutResourcePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
3127
+ ...commonParams
3128
+ }).m(function(Command, cs, config, o) {
3129
+ return [
3130
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3131
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3132
+ ];
3133
+ }).s("SSMIncidents", "PutResourcePolicy", {}).n("SSMIncidentsClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
3134
+ };
3135
+ __name(_PutResourcePolicyCommand, "PutResourcePolicyCommand");
3136
+ var PutResourcePolicyCommand = _PutResourcePolicyCommand;
3137
+
3138
+ // src/commands/StartIncidentCommand.ts
3139
+
3140
+
3141
+
3142
+
3143
+ var _StartIncidentCommand = class _StartIncidentCommand extends import_smithy_client.Command.classBuilder().ep({
3144
+ ...commonParams
3145
+ }).m(function(Command, cs, config, o) {
3146
+ return [
3147
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3148
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3149
+ ];
3150
+ }).s("SSMIncidents", "StartIncident", {}).n("SSMIncidentsClient", "StartIncidentCommand").f(void 0, void 0).ser(se_StartIncidentCommand).de(de_StartIncidentCommand).build() {
3151
+ };
3152
+ __name(_StartIncidentCommand, "StartIncidentCommand");
3153
+ var StartIncidentCommand = _StartIncidentCommand;
3154
+
3155
+ // src/commands/TagResourceCommand.ts
3156
+
3157
+
3158
+
3159
+
3160
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3161
+ ...commonParams
3162
+ }).m(function(Command, cs, config, o) {
3163
+ return [
3164
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3165
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3166
+ ];
3167
+ }).s("SSMIncidents", "TagResource", {}).n("SSMIncidentsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
3168
+ };
3169
+ __name(_TagResourceCommand, "TagResourceCommand");
3170
+ var TagResourceCommand = _TagResourceCommand;
3171
+
3172
+ // src/commands/UntagResourceCommand.ts
3173
+
3174
+
3175
+
3176
+
3177
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3178
+ ...commonParams
3179
+ }).m(function(Command, cs, config, o) {
3180
+ return [
3181
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3182
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3183
+ ];
3184
+ }).s("SSMIncidents", "UntagResource", {}).n("SSMIncidentsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
3185
+ };
3186
+ __name(_UntagResourceCommand, "UntagResourceCommand");
3187
+ var UntagResourceCommand = _UntagResourceCommand;
3188
+
3189
+ // src/commands/UpdateDeletionProtectionCommand.ts
3190
+
3191
+
3192
+
3193
+
3194
+ var _UpdateDeletionProtectionCommand = class _UpdateDeletionProtectionCommand extends import_smithy_client.Command.classBuilder().ep({
3195
+ ...commonParams
3196
+ }).m(function(Command, cs, config, o) {
3197
+ return [
3198
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3199
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3200
+ ];
3201
+ }).s("SSMIncidents", "UpdateDeletionProtection", {}).n("SSMIncidentsClient", "UpdateDeletionProtectionCommand").f(void 0, void 0).ser(se_UpdateDeletionProtectionCommand).de(de_UpdateDeletionProtectionCommand).build() {
3202
+ };
3203
+ __name(_UpdateDeletionProtectionCommand, "UpdateDeletionProtectionCommand");
3204
+ var UpdateDeletionProtectionCommand = _UpdateDeletionProtectionCommand;
3205
+
3206
+ // src/commands/UpdateIncidentRecordCommand.ts
3207
+
3208
+
3209
+
3210
+
3211
+ var _UpdateIncidentRecordCommand = class _UpdateIncidentRecordCommand extends import_smithy_client.Command.classBuilder().ep({
3212
+ ...commonParams
3213
+ }).m(function(Command, cs, config, o) {
3214
+ return [
3215
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3216
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3217
+ ];
3218
+ }).s("SSMIncidents", "UpdateIncidentRecord", {}).n("SSMIncidentsClient", "UpdateIncidentRecordCommand").f(void 0, void 0).ser(se_UpdateIncidentRecordCommand).de(de_UpdateIncidentRecordCommand).build() {
3219
+ };
3220
+ __name(_UpdateIncidentRecordCommand, "UpdateIncidentRecordCommand");
3221
+ var UpdateIncidentRecordCommand = _UpdateIncidentRecordCommand;
3222
+
3223
+ // src/commands/UpdateRelatedItemsCommand.ts
3224
+
3225
+
3226
+
3227
+
3228
+ var _UpdateRelatedItemsCommand = class _UpdateRelatedItemsCommand extends import_smithy_client.Command.classBuilder().ep({
3229
+ ...commonParams
3230
+ }).m(function(Command, cs, config, o) {
3231
+ return [
3232
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3233
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3234
+ ];
3235
+ }).s("SSMIncidents", "UpdateRelatedItems", {}).n("SSMIncidentsClient", "UpdateRelatedItemsCommand").f(void 0, void 0).ser(se_UpdateRelatedItemsCommand).de(de_UpdateRelatedItemsCommand).build() {
3236
+ };
3237
+ __name(_UpdateRelatedItemsCommand, "UpdateRelatedItemsCommand");
3238
+ var UpdateRelatedItemsCommand = _UpdateRelatedItemsCommand;
3239
+
3240
+ // src/commands/UpdateReplicationSetCommand.ts
3241
+
3242
+
3243
+
3244
+
3245
+ var _UpdateReplicationSetCommand = class _UpdateReplicationSetCommand extends import_smithy_client.Command.classBuilder().ep({
3246
+ ...commonParams
3247
+ }).m(function(Command, cs, config, o) {
3248
+ return [
3249
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3250
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3251
+ ];
3252
+ }).s("SSMIncidents", "UpdateReplicationSet", {}).n("SSMIncidentsClient", "UpdateReplicationSetCommand").f(void 0, void 0).ser(se_UpdateReplicationSetCommand).de(de_UpdateReplicationSetCommand).build() {
3253
+ };
3254
+ __name(_UpdateReplicationSetCommand, "UpdateReplicationSetCommand");
3255
+ var UpdateReplicationSetCommand = _UpdateReplicationSetCommand;
3256
+
3257
+ // src/commands/UpdateResponsePlanCommand.ts
3258
+
3259
+
3260
+
3261
+
3262
+ var _UpdateResponsePlanCommand = class _UpdateResponsePlanCommand extends import_smithy_client.Command.classBuilder().ep({
3263
+ ...commonParams
3264
+ }).m(function(Command, cs, config, o) {
3265
+ return [
3266
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3267
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3268
+ ];
3269
+ }).s("SSMIncidents", "UpdateResponsePlan", {}).n("SSMIncidentsClient", "UpdateResponsePlanCommand").f(void 0, void 0).ser(se_UpdateResponsePlanCommand).de(de_UpdateResponsePlanCommand).build() {
3270
+ };
3271
+ __name(_UpdateResponsePlanCommand, "UpdateResponsePlanCommand");
3272
+ var UpdateResponsePlanCommand = _UpdateResponsePlanCommand;
3273
+
3274
+ // src/commands/UpdateTimelineEventCommand.ts
3275
+
3276
+
3277
+
3278
+
3279
+ var _UpdateTimelineEventCommand = class _UpdateTimelineEventCommand extends import_smithy_client.Command.classBuilder().ep({
3280
+ ...commonParams
3281
+ }).m(function(Command, cs, config, o) {
3282
+ return [
3283
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3284
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3285
+ ];
3286
+ }).s("SSMIncidents", "UpdateTimelineEvent", {}).n("SSMIncidentsClient", "UpdateTimelineEventCommand").f(void 0, void 0).ser(se_UpdateTimelineEventCommand).de(de_UpdateTimelineEventCommand).build() {
3287
+ };
3288
+ __name(_UpdateTimelineEventCommand, "UpdateTimelineEventCommand");
3289
+ var UpdateTimelineEventCommand = _UpdateTimelineEventCommand;
3290
+
3291
+ // src/SSMIncidents.ts
3292
+ var commands = {
3293
+ BatchGetIncidentFindingsCommand,
3294
+ CreateReplicationSetCommand,
3295
+ CreateResponsePlanCommand,
3296
+ CreateTimelineEventCommand,
3297
+ DeleteIncidentRecordCommand,
3298
+ DeleteReplicationSetCommand,
3299
+ DeleteResourcePolicyCommand,
3300
+ DeleteResponsePlanCommand,
3301
+ DeleteTimelineEventCommand,
3302
+ GetIncidentRecordCommand,
3303
+ GetReplicationSetCommand,
3304
+ GetResourcePoliciesCommand,
3305
+ GetResponsePlanCommand,
3306
+ GetTimelineEventCommand,
3307
+ ListIncidentFindingsCommand,
3308
+ ListIncidentRecordsCommand,
3309
+ ListRelatedItemsCommand,
3310
+ ListReplicationSetsCommand,
3311
+ ListResponsePlansCommand,
3312
+ ListTagsForResourceCommand,
3313
+ ListTimelineEventsCommand,
3314
+ PutResourcePolicyCommand,
3315
+ StartIncidentCommand,
3316
+ TagResourceCommand,
3317
+ UntagResourceCommand,
3318
+ UpdateDeletionProtectionCommand,
3319
+ UpdateIncidentRecordCommand,
3320
+ UpdateRelatedItemsCommand,
3321
+ UpdateReplicationSetCommand,
3322
+ UpdateResponsePlanCommand,
3323
+ UpdateTimelineEventCommand
3324
+ };
3325
+ var _SSMIncidents = class _SSMIncidents extends SSMIncidentsClient {
3326
+ };
3327
+ __name(_SSMIncidents, "SSMIncidents");
3328
+ var SSMIncidents = _SSMIncidents;
3329
+ (0, import_smithy_client.createAggregatedClient)(commands, SSMIncidents);
3330
+
3331
+ // src/pagination/GetResourcePoliciesPaginator.ts
3332
+ var import_core3 = require("@smithy/core");
3333
+ var paginateGetResourcePolicies = (0, import_core3.createPaginator)(SSMIncidentsClient, GetResourcePoliciesCommand, "nextToken", "nextToken", "maxResults");
3334
+
3335
+ // src/pagination/ListIncidentFindingsPaginator.ts
3336
+ var import_core4 = require("@smithy/core");
3337
+ var paginateListIncidentFindings = (0, import_core4.createPaginator)(SSMIncidentsClient, ListIncidentFindingsCommand, "nextToken", "nextToken", "maxResults");
3338
+
3339
+ // src/pagination/ListIncidentRecordsPaginator.ts
3340
+ var import_core5 = require("@smithy/core");
3341
+ var paginateListIncidentRecords = (0, import_core5.createPaginator)(SSMIncidentsClient, ListIncidentRecordsCommand, "nextToken", "nextToken", "maxResults");
3342
+
3343
+ // src/pagination/ListRelatedItemsPaginator.ts
3344
+ var import_core6 = require("@smithy/core");
3345
+ var paginateListRelatedItems = (0, import_core6.createPaginator)(SSMIncidentsClient, ListRelatedItemsCommand, "nextToken", "nextToken", "maxResults");
3346
+
3347
+ // src/pagination/ListReplicationSetsPaginator.ts
3348
+ var import_core7 = require("@smithy/core");
3349
+ var paginateListReplicationSets = (0, import_core7.createPaginator)(SSMIncidentsClient, ListReplicationSetsCommand, "nextToken", "nextToken", "maxResults");
3350
+
3351
+ // src/pagination/ListResponsePlansPaginator.ts
3352
+ var import_core8 = require("@smithy/core");
3353
+ var paginateListResponsePlans = (0, import_core8.createPaginator)(SSMIncidentsClient, ListResponsePlansCommand, "nextToken", "nextToken", "maxResults");
3354
+
3355
+ // src/pagination/ListTimelineEventsPaginator.ts
3356
+ var import_core9 = require("@smithy/core");
3357
+ var paginateListTimelineEvents = (0, import_core9.createPaginator)(SSMIncidentsClient, ListTimelineEventsCommand, "nextToken", "nextToken", "maxResults");
3358
+
3359
+ // src/waiters/waitForWaitForReplicationSetActive.ts
3360
+ var import_util_waiter = require("@smithy/util-waiter");
3361
+ var checkState = /* @__PURE__ */ __name(async (client, input) => {
3362
+ let reason;
3363
+ try {
3364
+ const result = await client.send(new GetReplicationSetCommand(input));
3365
+ reason = result;
3366
+ try {
3367
+ const returnComparator = /* @__PURE__ */ __name(() => {
3368
+ return result.replicationSet.status;
3369
+ }, "returnComparator");
3370
+ if (returnComparator() === "ACTIVE") {
3371
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
3372
+ }
3373
+ } catch (e) {
3374
+ }
3375
+ try {
3376
+ const returnComparator = /* @__PURE__ */ __name(() => {
3377
+ return result.replicationSet.status;
3378
+ }, "returnComparator");
3379
+ if (returnComparator() === "CREATING") {
3380
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
3381
+ }
3382
+ } catch (e) {
3383
+ }
3384
+ try {
3385
+ const returnComparator = /* @__PURE__ */ __name(() => {
3386
+ return result.replicationSet.status;
3387
+ }, "returnComparator");
3388
+ if (returnComparator() === "UPDATING") {
3389
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
3390
+ }
3391
+ } catch (e) {
3392
+ }
3393
+ try {
3394
+ const returnComparator = /* @__PURE__ */ __name(() => {
3395
+ return result.replicationSet.status;
3396
+ }, "returnComparator");
3397
+ if (returnComparator() === "FAILED") {
3398
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
3399
+ }
3400
+ } catch (e) {
3401
+ }
3402
+ } catch (exception) {
3403
+ reason = exception;
3404
+ }
3405
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
3406
+ }, "checkState");
3407
+ var waitForWaitForReplicationSetActive = /* @__PURE__ */ __name(async (params, input) => {
3408
+ const serviceDefaults = { minDelay: 30, maxDelay: 30 };
3409
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
3410
+ }, "waitForWaitForReplicationSetActive");
3411
+ var waitUntilWaitForReplicationSetActive = /* @__PURE__ */ __name(async (params, input) => {
3412
+ const serviceDefaults = { minDelay: 30, maxDelay: 30 };
3413
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
3414
+ return (0, import_util_waiter.checkExceptions)(result);
3415
+ }, "waitUntilWaitForReplicationSetActive");
3416
+
3417
+ // src/waiters/waitForWaitForReplicationSetDeleted.ts
3418
+
3419
+ var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
3420
+ let reason;
3421
+ try {
3422
+ const result = await client.send(new GetReplicationSetCommand(input));
3423
+ reason = result;
3424
+ try {
3425
+ const returnComparator = /* @__PURE__ */ __name(() => {
3426
+ return result.replicationSet.status;
3427
+ }, "returnComparator");
3428
+ if (returnComparator() === "DELETING") {
3429
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
3430
+ }
3431
+ } catch (e) {
3432
+ }
3433
+ try {
3434
+ const returnComparator = /* @__PURE__ */ __name(() => {
3435
+ return result.replicationSet.status;
3436
+ }, "returnComparator");
3437
+ if (returnComparator() === "FAILED") {
3438
+ return { state: import_util_waiter.WaiterState.FAILURE, reason };
3439
+ }
3440
+ } catch (e) {
3441
+ }
3442
+ } catch (exception) {
3443
+ reason = exception;
3444
+ if (exception.name && exception.name == "ResourceNotFoundException") {
3445
+ return { state: import_util_waiter.WaiterState.SUCCESS, reason };
3446
+ }
3447
+ }
3448
+ return { state: import_util_waiter.WaiterState.RETRY, reason };
3449
+ }, "checkState");
3450
+ var waitForWaitForReplicationSetDeleted = /* @__PURE__ */ __name(async (params, input) => {
3451
+ const serviceDefaults = { minDelay: 30, maxDelay: 30 };
3452
+ return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
3453
+ }, "waitForWaitForReplicationSetDeleted");
3454
+ var waitUntilWaitForReplicationSetDeleted = /* @__PURE__ */ __name(async (params, input) => {
3455
+ const serviceDefaults = { minDelay: 30, maxDelay: 30 };
3456
+ const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
3457
+ return (0, import_util_waiter.checkExceptions)(result);
3458
+ }, "waitUntilWaitForReplicationSetDeleted");
3459
+
3460
+ // src/index.ts
3461
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3462
+ // Annotate the CommonJS export names for ESM import in node:
3463
+
3464
+ 0 && (module.exports = {
3465
+ AccessDeniedException,
3466
+ Action,
3467
+ AttributeValueList,
3468
+ AutomationExecution,
3469
+ BatchGetIncidentFindingsCommand,
3470
+ ChatChannel,
3471
+ Condition,
3472
+ ConflictException,
3473
+ CreateReplicationSetCommand,
3474
+ CreateResponsePlanCommand,
3475
+ CreateTimelineEventCommand,
3476
+ DeleteIncidentRecordCommand,
3477
+ DeleteReplicationSetCommand,
3478
+ DeleteResourcePolicyCommand,
3479
+ DeleteResponsePlanCommand,
3480
+ DeleteTimelineEventCommand,
3481
+ DynamicSsmParameterValue,
3482
+ EventReference,
3483
+ FindingDetails,
3484
+ GetIncidentRecordCommand,
3485
+ GetReplicationSetCommand,
3486
+ GetResourcePoliciesCommand,
3487
+ GetResponsePlanCommand,
3488
+ GetTimelineEventCommand,
3489
+ IncidentRecordStatus,
3490
+ Integration,
3491
+ InternalServerException,
3492
+ ItemType,
3493
+ ItemValue,
3494
+ ListIncidentFindingsCommand,
3495
+ ListIncidentRecordsCommand,
3496
+ ListRelatedItemsCommand,
3497
+ ListReplicationSetsCommand,
3498
+ ListResponsePlansCommand,
3499
+ ListTagsForResourceCommand,
3500
+ ListTimelineEventsCommand,
3501
+ NotificationTargetItem,
3502
+ PutResourcePolicyCommand,
3503
+ RegionStatus,
3504
+ RelatedItemsUpdate,
3505
+ ReplicationSetStatus,
3506
+ ResourceNotFoundException,
3507
+ ResourceType,
3508
+ SSMIncidents,
3509
+ SSMIncidentsClient,
3510
+ SSMIncidentsServiceException,
3511
+ ServiceCode,
3512
+ ServiceQuotaExceededException,
3513
+ SortOrder,
3514
+ SsmTargetAccount,
3515
+ StartIncidentCommand,
3516
+ TagResourceCommand,
3517
+ ThrottlingException,
3518
+ TimelineEventSort,
3519
+ UntagResourceCommand,
3520
+ UpdateDeletionProtectionCommand,
3521
+ UpdateIncidentRecordCommand,
3522
+ UpdateRelatedItemsCommand,
3523
+ UpdateReplicationSetAction,
3524
+ UpdateReplicationSetCommand,
3525
+ UpdateResponsePlanCommand,
3526
+ UpdateTimelineEventCommand,
3527
+ ValidationException,
3528
+ VariableType,
3529
+ __Client,
3530
+ paginateGetResourcePolicies,
3531
+ paginateListIncidentFindings,
3532
+ paginateListIncidentRecords,
3533
+ paginateListRelatedItems,
3534
+ paginateListReplicationSets,
3535
+ paginateListResponsePlans,
3536
+ paginateListTimelineEvents,
3537
+ waitForWaitForReplicationSetActive,
3538
+ waitForWaitForReplicationSetDeleted,
3539
+ waitUntilWaitForReplicationSetActive,
3540
+ waitUntilWaitForReplicationSetDeleted
3541
+ });
3542
+