@aws-sdk/client-ssm-incidents 3.200.0 → 3.202.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * **client-ssm-incidents:** Adds support for tagging replication-set on creation. ([dc1464e](https://github.com/aws/aws-sdk-js-v3/commit/dc1464ec38e529322ce907a9b212cc71531f91fb))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
18
+
19
+
20
+ ### Features
21
+
22
+ * end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
23
+
24
+
25
+
26
+
27
+
6
28
  # [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
7
29
 
8
30
  **Note:** Version bump only for package @aws-sdk/client-ssm-incidents
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
- var _a, _b;
6
5
  return {
7
6
  ...options,
8
- useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false,
9
- useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false,
7
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
8
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
10
9
  defaultSigningName: "ssm-incidents",
11
10
  };
12
11
  };
@@ -8,16 +8,16 @@ const uuid_1 = require("uuid");
8
8
  const models_0_1 = require("../models/models_0");
9
9
  const SSMIncidentsServiceException_1 = require("../models/SSMIncidentsServiceException");
10
10
  const serializeAws_restJson1CreateReplicationSetCommand = async (input, context) => {
11
- var _a;
12
11
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
13
12
  const headers = {
14
13
  "content-type": "application/json",
15
14
  };
16
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createReplicationSet";
15
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createReplicationSet";
17
16
  let body;
18
17
  body = JSON.stringify({
19
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
18
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
20
19
  ...(input.regions != null && { regions: serializeAws_restJson1RegionMapInput(input.regions, context) }),
20
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
21
21
  });
22
22
  return new protocol_http_1.HttpRequest({
23
23
  protocol,
@@ -31,17 +31,16 @@ const serializeAws_restJson1CreateReplicationSetCommand = async (input, context)
31
31
  };
32
32
  exports.serializeAws_restJson1CreateReplicationSetCommand = serializeAws_restJson1CreateReplicationSetCommand;
33
33
  const serializeAws_restJson1CreateResponsePlanCommand = async (input, context) => {
34
- var _a;
35
34
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
35
  const headers = {
37
36
  "content-type": "application/json",
38
37
  };
39
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createResponsePlan";
38
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createResponsePlan";
40
39
  let body;
41
40
  body = JSON.stringify({
42
41
  ...(input.actions != null && { actions: serializeAws_restJson1ActionsList(input.actions, context) }),
43
42
  ...(input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
44
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
43
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
45
44
  ...(input.displayName != null && { displayName: input.displayName }),
46
45
  ...(input.engagements != null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) }),
47
46
  ...(input.incidentTemplate != null && {
@@ -62,15 +61,14 @@ const serializeAws_restJson1CreateResponsePlanCommand = async (input, context) =
62
61
  };
63
62
  exports.serializeAws_restJson1CreateResponsePlanCommand = serializeAws_restJson1CreateResponsePlanCommand;
64
63
  const serializeAws_restJson1CreateTimelineEventCommand = async (input, context) => {
65
- var _a;
66
64
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
67
65
  const headers = {
68
66
  "content-type": "application/json",
69
67
  };
70
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createTimelineEvent";
68
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/createTimelineEvent";
71
69
  let body;
72
70
  body = JSON.stringify({
73
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
71
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
74
72
  ...(input.eventData != null && { eventData: input.eventData }),
75
73
  ...(input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
76
74
  ...(input.eventType != null && { eventType: input.eventType }),
@@ -92,7 +90,7 @@ const serializeAws_restJson1DeleteIncidentRecordCommand = async (input, context)
92
90
  const headers = {
93
91
  "content-type": "application/json",
94
92
  };
95
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteIncidentRecord";
93
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteIncidentRecord";
96
94
  let body;
97
95
  body = JSON.stringify({
98
96
  ...(input.arn != null && { arn: input.arn }),
@@ -111,7 +109,7 @@ exports.serializeAws_restJson1DeleteIncidentRecordCommand = serializeAws_restJso
111
109
  const serializeAws_restJson1DeleteReplicationSetCommand = async (input, context) => {
112
110
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
113
111
  const headers = {};
114
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteReplicationSet";
112
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteReplicationSet";
115
113
  const query = map({
116
114
  arn: [, input.arn],
117
115
  });
@@ -133,7 +131,7 @@ const serializeAws_restJson1DeleteResourcePolicyCommand = async (input, context)
133
131
  const headers = {
134
132
  "content-type": "application/json",
135
133
  };
136
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResourcePolicy";
134
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResourcePolicy";
137
135
  let body;
138
136
  body = JSON.stringify({
139
137
  ...(input.policyId != null && { policyId: input.policyId }),
@@ -155,7 +153,7 @@ const serializeAws_restJson1DeleteResponsePlanCommand = async (input, context) =
155
153
  const headers = {
156
154
  "content-type": "application/json",
157
155
  };
158
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResponsePlan";
156
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteResponsePlan";
159
157
  let body;
160
158
  body = JSON.stringify({
161
159
  ...(input.arn != null && { arn: input.arn }),
@@ -176,7 +174,7 @@ const serializeAws_restJson1DeleteTimelineEventCommand = async (input, context)
176
174
  const headers = {
177
175
  "content-type": "application/json",
178
176
  };
179
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteTimelineEvent";
177
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deleteTimelineEvent";
180
178
  let body;
181
179
  body = JSON.stringify({
182
180
  ...(input.eventId != null && { eventId: input.eventId }),
@@ -196,7 +194,7 @@ exports.serializeAws_restJson1DeleteTimelineEventCommand = serializeAws_restJson
196
194
  const serializeAws_restJson1GetIncidentRecordCommand = async (input, context) => {
197
195
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
198
196
  const headers = {};
199
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getIncidentRecord";
197
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getIncidentRecord";
200
198
  const query = map({
201
199
  arn: [, input.arn],
202
200
  });
@@ -216,7 +214,7 @@ exports.serializeAws_restJson1GetIncidentRecordCommand = serializeAws_restJson1G
216
214
  const serializeAws_restJson1GetReplicationSetCommand = async (input, context) => {
217
215
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
218
216
  const headers = {};
219
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getReplicationSet";
217
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getReplicationSet";
220
218
  const query = map({
221
219
  arn: [, input.arn],
222
220
  });
@@ -238,7 +236,7 @@ const serializeAws_restJson1GetResourcePoliciesCommand = async (input, context)
238
236
  const headers = {
239
237
  "content-type": "application/json",
240
238
  };
241
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getResourcePolicies";
239
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getResourcePolicies";
242
240
  const query = map({
243
241
  resourceArn: [, input.resourceArn],
244
242
  });
@@ -262,7 +260,7 @@ exports.serializeAws_restJson1GetResourcePoliciesCommand = serializeAws_restJson
262
260
  const serializeAws_restJson1GetResponsePlanCommand = async (input, context) => {
263
261
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
264
262
  const headers = {};
265
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getResponsePlan";
263
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getResponsePlan";
266
264
  const query = map({
267
265
  arn: [, input.arn],
268
266
  });
@@ -282,7 +280,7 @@ exports.serializeAws_restJson1GetResponsePlanCommand = serializeAws_restJson1Get
282
280
  const serializeAws_restJson1GetTimelineEventCommand = async (input, context) => {
283
281
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
284
282
  const headers = {};
285
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/getTimelineEvent";
283
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/getTimelineEvent";
286
284
  const query = map({
287
285
  incidentRecordArn: [, input.incidentRecordArn],
288
286
  eventId: [, input.eventId],
@@ -305,7 +303,7 @@ const serializeAws_restJson1ListIncidentRecordsCommand = async (input, context)
305
303
  const headers = {
306
304
  "content-type": "application/json",
307
305
  };
308
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentRecords";
306
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listIncidentRecords";
309
307
  let body;
310
308
  body = JSON.stringify({
311
309
  ...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
@@ -328,7 +326,7 @@ const serializeAws_restJson1ListRelatedItemsCommand = async (input, context) =>
328
326
  const headers = {
329
327
  "content-type": "application/json",
330
328
  };
331
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listRelatedItems";
329
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listRelatedItems";
332
330
  let body;
333
331
  body = JSON.stringify({
334
332
  ...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
@@ -351,7 +349,7 @@ const serializeAws_restJson1ListReplicationSetsCommand = async (input, context)
351
349
  const headers = {
352
350
  "content-type": "application/json",
353
351
  };
354
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listReplicationSets";
352
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listReplicationSets";
355
353
  let body;
356
354
  body = JSON.stringify({
357
355
  ...(input.maxResults != null && { maxResults: input.maxResults }),
@@ -373,7 +371,7 @@ const serializeAws_restJson1ListResponsePlansCommand = async (input, context) =>
373
371
  const headers = {
374
372
  "content-type": "application/json",
375
373
  };
376
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listResponsePlans";
374
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listResponsePlans";
377
375
  let body;
378
376
  body = JSON.stringify({
379
377
  ...(input.maxResults != null && { maxResults: input.maxResults }),
@@ -393,7 +391,7 @@ exports.serializeAws_restJson1ListResponsePlansCommand = serializeAws_restJson1L
393
391
  const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
394
392
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
395
393
  const headers = {};
396
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
394
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
397
395
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
398
396
  let body;
399
397
  return new protocol_http_1.HttpRequest({
@@ -412,7 +410,7 @@ const serializeAws_restJson1ListTimelineEventsCommand = async (input, context) =
412
410
  const headers = {
413
411
  "content-type": "application/json",
414
412
  };
415
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listTimelineEvents";
413
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTimelineEvents";
416
414
  let body;
417
415
  body = JSON.stringify({
418
416
  ...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
@@ -438,7 +436,7 @@ const serializeAws_restJson1PutResourcePolicyCommand = async (input, context) =>
438
436
  const headers = {
439
437
  "content-type": "application/json",
440
438
  };
441
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/putResourcePolicy";
439
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/putResourcePolicy";
442
440
  let body;
443
441
  body = JSON.stringify({
444
442
  ...(input.policy != null && { policy: input.policy }),
@@ -456,15 +454,14 @@ const serializeAws_restJson1PutResourcePolicyCommand = async (input, context) =>
456
454
  };
457
455
  exports.serializeAws_restJson1PutResourcePolicyCommand = serializeAws_restJson1PutResourcePolicyCommand;
458
456
  const serializeAws_restJson1StartIncidentCommand = async (input, context) => {
459
- var _a;
460
457
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
461
458
  const headers = {
462
459
  "content-type": "application/json",
463
460
  };
464
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/startIncident";
461
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/startIncident";
465
462
  let body;
466
463
  body = JSON.stringify({
467
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
464
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
468
465
  ...(input.impact != null && { impact: input.impact }),
469
466
  ...(input.relatedItems != null && {
470
467
  relatedItems: serializeAws_restJson1RelatedItemList(input.relatedItems, context),
@@ -491,7 +488,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
491
488
  const headers = {
492
489
  "content-type": "application/json",
493
490
  };
494
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
491
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
495
492
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
496
493
  let body;
497
494
  body = JSON.stringify({
@@ -511,7 +508,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
511
508
  const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
512
509
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
513
510
  const headers = {};
514
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
511
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
515
512
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
516
513
  const query = map({
517
514
  tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
@@ -530,16 +527,15 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
530
527
  };
531
528
  exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
532
529
  const serializeAws_restJson1UpdateDeletionProtectionCommand = async (input, context) => {
533
- var _a;
534
530
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
535
531
  const headers = {
536
532
  "content-type": "application/json",
537
533
  };
538
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateDeletionProtection";
534
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateDeletionProtection";
539
535
  let body;
540
536
  body = JSON.stringify({
541
537
  ...(input.arn != null && { arn: input.arn }),
542
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
538
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
543
539
  ...(input.deletionProtected != null && { deletionProtected: input.deletionProtected }),
544
540
  });
545
541
  return new protocol_http_1.HttpRequest({
@@ -554,17 +550,16 @@ const serializeAws_restJson1UpdateDeletionProtectionCommand = async (input, cont
554
550
  };
555
551
  exports.serializeAws_restJson1UpdateDeletionProtectionCommand = serializeAws_restJson1UpdateDeletionProtectionCommand;
556
552
  const serializeAws_restJson1UpdateIncidentRecordCommand = async (input, context) => {
557
- var _a;
558
553
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
559
554
  const headers = {
560
555
  "content-type": "application/json",
561
556
  };
562
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateIncidentRecord";
557
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateIncidentRecord";
563
558
  let body;
564
559
  body = JSON.stringify({
565
560
  ...(input.arn != null && { arn: input.arn }),
566
561
  ...(input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
567
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
562
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
568
563
  ...(input.impact != null && { impact: input.impact }),
569
564
  ...(input.notificationTargets != null && {
570
565
  notificationTargets: serializeAws_restJson1NotificationTargetSet(input.notificationTargets, context),
@@ -585,15 +580,14 @@ const serializeAws_restJson1UpdateIncidentRecordCommand = async (input, context)
585
580
  };
586
581
  exports.serializeAws_restJson1UpdateIncidentRecordCommand = serializeAws_restJson1UpdateIncidentRecordCommand;
587
582
  const serializeAws_restJson1UpdateRelatedItemsCommand = async (input, context) => {
588
- var _a;
589
583
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
590
584
  const headers = {
591
585
  "content-type": "application/json",
592
586
  };
593
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateRelatedItems";
587
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateRelatedItems";
594
588
  let body;
595
589
  body = JSON.stringify({
596
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
590
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
597
591
  ...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
598
592
  ...(input.relatedItemsUpdate != null && {
599
593
  relatedItemsUpdate: serializeAws_restJson1RelatedItemsUpdate(input.relatedItemsUpdate, context),
@@ -611,17 +605,16 @@ const serializeAws_restJson1UpdateRelatedItemsCommand = async (input, context) =
611
605
  };
612
606
  exports.serializeAws_restJson1UpdateRelatedItemsCommand = serializeAws_restJson1UpdateRelatedItemsCommand;
613
607
  const serializeAws_restJson1UpdateReplicationSetCommand = async (input, context) => {
614
- var _a;
615
608
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
616
609
  const headers = {
617
610
  "content-type": "application/json",
618
611
  };
619
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateReplicationSet";
612
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateReplicationSet";
620
613
  let body;
621
614
  body = JSON.stringify({
622
615
  ...(input.actions != null && { actions: serializeAws_restJson1UpdateActionList(input.actions, context) }),
623
616
  ...(input.arn != null && { arn: input.arn }),
624
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
617
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
625
618
  });
626
619
  return new protocol_http_1.HttpRequest({
627
620
  protocol,
@@ -635,18 +628,17 @@ const serializeAws_restJson1UpdateReplicationSetCommand = async (input, context)
635
628
  };
636
629
  exports.serializeAws_restJson1UpdateReplicationSetCommand = serializeAws_restJson1UpdateReplicationSetCommand;
637
630
  const serializeAws_restJson1UpdateResponsePlanCommand = async (input, context) => {
638
- var _a;
639
631
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
640
632
  const headers = {
641
633
  "content-type": "application/json",
642
634
  };
643
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateResponsePlan";
635
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateResponsePlan";
644
636
  let body;
645
637
  body = JSON.stringify({
646
638
  ...(input.actions != null && { actions: serializeAws_restJson1ActionsList(input.actions, context) }),
647
639
  ...(input.arn != null && { arn: input.arn }),
648
640
  ...(input.chatChannel != null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
649
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
641
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
650
642
  ...(input.displayName != null && { displayName: input.displayName }),
651
643
  ...(input.engagements != null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) }),
652
644
  ...(input.incidentTemplateDedupeString != null && {
@@ -674,15 +666,14 @@ const serializeAws_restJson1UpdateResponsePlanCommand = async (input, context) =
674
666
  };
675
667
  exports.serializeAws_restJson1UpdateResponsePlanCommand = serializeAws_restJson1UpdateResponsePlanCommand;
676
668
  const serializeAws_restJson1UpdateTimelineEventCommand = async (input, context) => {
677
- var _a;
678
669
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
679
670
  const headers = {
680
671
  "content-type": "application/json",
681
672
  };
682
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateTimelineEvent";
673
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/updateTimelineEvent";
683
674
  let body;
684
675
  body = JSON.stringify({
685
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
676
+ clientToken: input.clientToken ?? (0, uuid_1.v4)(),
686
677
  ...(input.eventData != null && { eventData: input.eventData }),
687
678
  ...(input.eventId != null && { eventId: input.eventId }),
688
679
  ...(input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
@@ -2806,15 +2797,12 @@ const deserializeAws_restJson1TimelineEvent = (output, context) => {
2806
2797
  incidentRecordArn: (0, smithy_client_1.expectString)(output.incidentRecordArn),
2807
2798
  };
2808
2799
  };
2809
- const deserializeMetadata = (output) => {
2810
- var _a, _b;
2811
- return ({
2812
- httpStatusCode: output.statusCode,
2813
- requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2814
- extendedRequestId: output.headers["x-amz-id-2"],
2815
- cfId: output.headers["x-amz-cf-id"],
2816
- });
2817
- };
2800
+ const deserializeMetadata = (output) => ({
2801
+ httpStatusCode: output.statusCode,
2802
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2803
+ extendedRequestId: output.headers["x-amz-id-2"],
2804
+ cfId: output.headers["x-amz-cf-id"],
2805
+ });
2818
2806
  const collectBody = (streamBody = new Uint8Array(), context) => {
2819
2807
  if (streamBody instanceof Uint8Array) {
2820
2808
  return Promise.resolve(streamBody);
@@ -2834,9 +2822,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
2834
2822
  return {};
2835
2823
  });
2836
2824
  const parseErrorBody = async (errorBody, context) => {
2837
- var _a;
2838
2825
  const value = await parseBody(errorBody, context);
2839
- value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
2826
+ value.message = value.message ?? value.Message;
2840
2827
  return value;
2841
2828
  };
2842
2829
  const loadRestJsonErrorCode = (output, data) => {
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
16
  const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
19
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
20
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
21
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
25
24
  ...config,
26
25
  runtime: "browser",
27
26
  defaultsMode,
28
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
29
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
38
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
39
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
42
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
27
+ base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
+ maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
+ requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
38
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
39
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
40
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
41
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
42
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
43
43
  };
44
44
  };
45
45
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const smithy_client_2 = require("@aws-sdk/smithy-client");
21
21
  const getRuntimeConfig = (config) => {
22
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
23
22
  (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
24
23
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
25
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
29
28
  ...config,
30
29
  runtime: "node",
31
30
  defaultsMode,
32
- base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
33
- base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
34
- bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
35
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
36
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
41
- ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
42
- default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
43
- }),
44
- sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
45
- streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
46
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
47
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
48
- utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
49
- utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
31
+ base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
32
+ base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
33
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
35
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
36
+ (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
38
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
39
+ requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ (0, node_config_provider_1.loadConfig)({
42
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
44
+ }),
45
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
49
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
50
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
50
51
  };
51
52
  };
52
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
- var _a;
8
7
  const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
8
  return {
10
9
  ...browserDefaults,
11
10
  ...config,
12
11
  runtime: "react-native",
13
- sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
14
13
  };
15
14
  };
16
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpointResolver_1 = require("./endpoint/endpointResolver");
6
- const getRuntimeConfig = (config) => {
7
- var _a, _b, _c, _d, _e;
8
- return ({
9
- apiVersion: "2018-05-10",
10
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
- endpointProvider: (_b = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _b !== void 0 ? _b : endpointResolver_1.defaultEndpointResolver,
12
- logger: (_c = config === null || config === void 0 ? void 0 : config.logger) !== null && _c !== void 0 ? _c : {},
13
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "SSM Incidents",
14
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
- });
16
- };
6
+ const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2018-05-10",
8
+ disableHostPrefix: config?.disableHostPrefix ?? false,
9
+ endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
10
+ logger: config?.logger ?? {},
11
+ serviceId: config?.serviceId ?? "SSM Incidents",
12
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
13
+ });
17
14
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -13,6 +13,7 @@ export const serializeAws_restJson1CreateReplicationSetCommand = async (input, c
13
13
  body = JSON.stringify({
14
14
  clientToken: input.clientToken ?? generateIdempotencyToken(),
15
15
  ...(input.regions != null && { regions: serializeAws_restJson1RegionMapInput(input.regions, context) }),
16
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
16
17
  });
17
18
  return new __HttpRequest({
18
19
  protocol,
@@ -167,8 +167,8 @@ export declare class SSMIncidents extends SSMIncidentsClient {
167
167
  /**
168
168
  * <p>Adds a resource policy to the specified response plan. The resource policy is used to
169
169
  * share the response plan using Resource Access Manager (RAM). For more
170
- * information about cross-account sharing, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/xa.html">Setting up
171
- * cross-account functionality</a>.</p>
170
+ * information about cross-account sharing, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/incident-manager-cross-account-cross-region.html">Cross-Region and cross-account incident
171
+ * management</a>.</p>
172
172
  */
173
173
  putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
174
174
  putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
@@ -10,8 +10,8 @@ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyOutput,
10
10
  /**
11
11
  * <p>Adds a resource policy to the specified response plan. The resource policy is used to
12
12
  * share the response plan using Resource Access Manager (RAM). For more
13
- * information about cross-account sharing, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/xa.html">Setting up
14
- * cross-account functionality</a>.</p>
13
+ * information about cross-account sharing, see <a href="https://docs.aws.amazon.com/incident-manager/latest/userguide/incident-manager-cross-account-cross-region.html">Cross-Region and cross-account incident
14
+ * management</a>.</p>
15
15
  * @example
16
16
  * Use a bare-bones client and the command you need to make an API call.
17
17
  * ```javascript
@@ -306,10 +306,14 @@ export interface CreateReplicationSetInput {
306
306
  */
307
307
  regions: Record<string, RegionMapInputValue> | undefined;
308
308
  /**
309
- * <p>A token ensuring that the operation is called only once with the specified
309
+ * <p>A token that ensures that the operation is called only once with the specified
310
310
  * details.</p>
311
311
  */
312
312
  clientToken?: string;
313
+ /**
314
+ * <p>A list of tags to add to the replication set.</p>
315
+ */
316
+ tags?: Record<string, string>;
313
317
  }
314
318
  export interface CreateReplicationSetOutput {
315
319
  /**
@@ -441,7 +445,9 @@ export interface IncidentTemplate {
441
445
  */
442
446
  notificationTargets?: NotificationTargetItem[];
443
447
  /**
444
- * <p>Tags to apply to an incident when calling the <code>StartIncident</code> API action.</p>
448
+ * <p>Tags to assign to the template. When the <code>StartIncident</code> API action is
449
+ * called, Incident Manager assigns the tags specified in the template to the
450
+ * incident.</p>
445
451
  */
446
452
  incidentTags?: Record<string, string>;
447
453
  }
@@ -469,8 +475,8 @@ export interface CreateResponsePlanInput {
469
475
  */
470
476
  chatChannel?: ChatChannel;
471
477
  /**
472
- * <p>The contacts and escalation plans that the response plan engages during an
473
- * incident.</p>
478
+ * <p>The Amazon Resource Name (ARN) for the contacts and escalation plans that the response
479
+ * plan engages during an incident.</p>
474
480
  */
475
481
  engagements?: string[];
476
482
  /**
@@ -862,11 +868,12 @@ export interface GetReplicationSetOutput {
862
868
  }
863
869
  export interface GetResourcePoliciesInput {
864
870
  /**
865
- * <p>The Amazon Resource Name (ARN) of the response plan with the attached resource policy. </p>
871
+ * <p>The Amazon Resource Name (ARN) of the response plan with the attached resource policy.
872
+ * </p>
866
873
  */
867
874
  resourceArn: string | undefined;
868
875
  /**
869
- * <p>The maximum number of resource policies to display per page of results.</p>
876
+ * <p>The maximum number of resource policies to display for each page of results.</p>
870
877
  */
871
878
  maxResults?: number;
872
879
  /**
@@ -931,8 +938,8 @@ export interface GetResponsePlanOutput {
931
938
  */
932
939
  chatChannel?: ChatChannel;
933
940
  /**
934
- * <p>The contacts and escalation plans that the response plan engages during an
935
- * incident.</p>
941
+ * <p>The Amazon Resource Name (ARN) for the contacts and escalation plans that the response
942
+ * plan engages during an incident.</p>
936
943
  */
937
944
  engagements?: string[];
938
945
  /**
@@ -1337,7 +1344,7 @@ export interface ListTimelineEventsOutput {
1337
1344
  }
1338
1345
  export interface PutResourcePolicyInput {
1339
1346
  /**
1340
- * <p>The Amazon Resource Name (ARN) of the response plan you're adding the resource policy
1347
+ * <p>The Amazon Resource Name (ARN) of the response plan to add the resource policy
1341
1348
  * to.</p>
1342
1349
  */
1343
1350
  resourceArn: string | undefined;
@@ -1482,7 +1489,7 @@ export interface TagResourceRequest {
1482
1489
  */
1483
1490
  resourceArn: string | undefined;
1484
1491
  /**
1485
- * <p>A list of tags that you are adding to the response plan.</p>
1492
+ * <p>A list of tags to add to the response plan.</p>
1486
1493
  */
1487
1494
  tags: Record<string, string> | undefined;
1488
1495
  }
@@ -1494,7 +1501,7 @@ export interface UntagResourceRequest {
1494
1501
  */
1495
1502
  resourceArn: string | undefined;
1496
1503
  /**
1497
- * <p>The name of the tag you're removing from the response plan.</p>
1504
+ * <p>The name of the tag to remove from the response plan.</p>
1498
1505
  */
1499
1506
  tagKeys: string[] | undefined;
1500
1507
  }
@@ -1502,15 +1509,15 @@ export interface UntagResourceResponse {
1502
1509
  }
1503
1510
  export interface UpdateDeletionProtectionInput {
1504
1511
  /**
1505
- * <p>The Amazon Resource Name (ARN) of the replication set you're updating.</p>
1512
+ * <p>The Amazon Resource Name (ARN) of the replication set to update.</p>
1506
1513
  */
1507
1514
  arn: string | undefined;
1508
1515
  /**
1509
- * <p>Details if deletion protection is enabled or disabled in your account.</p>
1516
+ * <p>Specifies if deletion protection is turned on or off in your account. </p>
1510
1517
  */
1511
1518
  deletionProtected: boolean | undefined;
1512
1519
  /**
1513
- * <p>A token ensuring that the operation is called only once with the specified
1520
+ * <p>A token that ensures that the operation is called only once with the specified
1514
1521
  * details.</p>
1515
1522
  */
1516
1523
  clientToken?: string;
@@ -1652,7 +1659,7 @@ export interface UpdateReplicationSetInput {
1652
1659
  */
1653
1660
  actions: UpdateReplicationSetAction[] | undefined;
1654
1661
  /**
1655
- * <p>A token ensuring that the operation is called only once with the specified
1662
+ * <p>A token that ensures that the operation is called only once with the specified
1656
1663
  * details.</p>
1657
1664
  */
1658
1665
  clientToken?: string;
@@ -1730,8 +1737,8 @@ export interface UpdateResponsePlanInput {
1730
1737
  */
1731
1738
  chatChannel?: ChatChannel;
1732
1739
  /**
1733
- * <p>The contacts and escalation plans that Incident Manager engages at the start of the
1734
- * incident.</p>
1740
+ * <p>The Amazon Resource Name (ARN) for the contacts and escalation plans that the response
1741
+ * plan engages during an incident.</p>
1735
1742
  */
1736
1743
  engagements?: string[];
1737
1744
  /**
@@ -1739,9 +1746,10 @@ export interface UpdateResponsePlanInput {
1739
1746
  */
1740
1747
  actions?: Action[];
1741
1748
  /**
1742
- * <p>Tags to apply to an incident when calling the <code>StartIncident</code> API action.
1743
- * To call this action, you must also have permission to call the <code>TagResource</code>
1744
- * API action for the incident record resource.</p>
1749
+ * <p>Tags to assign to the template. When the <code>StartIncident</code> API action is
1750
+ * called, Incident Manager assigns the tags specified in the template to the
1751
+ * incident. To call this action, you must also have permission to call the
1752
+ * <code>TagResource</code> API action for the incident record resource.</p>
1745
1753
  */
1746
1754
  incidentTemplateTags?: Record<string, string>;
1747
1755
  }
@@ -193,6 +193,7 @@ export interface RegionMapInputValue {
193
193
  export interface CreateReplicationSetInput {
194
194
  regions: Record<string, RegionMapInputValue> | undefined;
195
195
  clientToken?: string;
196
+ tags?: Record<string, string>;
196
197
  }
197
198
  export interface CreateReplicationSetOutput {
198
199
  arn: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ssm-incidents",
3
3
  "description": "AWS SDK for JavaScript Ssm Incidents Client for Node.js, Browser and React Native",
4
- "version": "3.200.0",
4
+ "version": "3.202.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,46 +19,46 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.200.0",
23
- "@aws-sdk/config-resolver": "3.200.0",
24
- "@aws-sdk/credential-provider-node": "3.200.0",
25
- "@aws-sdk/fetch-http-handler": "3.200.0",
26
- "@aws-sdk/hash-node": "3.200.0",
27
- "@aws-sdk/invalid-dependency": "3.200.0",
28
- "@aws-sdk/middleware-content-length": "3.200.0",
29
- "@aws-sdk/middleware-endpoint": "3.200.0",
30
- "@aws-sdk/middleware-host-header": "3.200.0",
31
- "@aws-sdk/middleware-logger": "3.200.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.200.0",
33
- "@aws-sdk/middleware-retry": "3.200.0",
34
- "@aws-sdk/middleware-serde": "3.200.0",
35
- "@aws-sdk/middleware-signing": "3.200.0",
36
- "@aws-sdk/middleware-stack": "3.200.0",
37
- "@aws-sdk/middleware-user-agent": "3.200.0",
38
- "@aws-sdk/node-config-provider": "3.200.0",
39
- "@aws-sdk/node-http-handler": "3.200.0",
40
- "@aws-sdk/protocol-http": "3.200.0",
41
- "@aws-sdk/smithy-client": "3.200.0",
42
- "@aws-sdk/types": "3.200.0",
43
- "@aws-sdk/url-parser": "3.200.0",
22
+ "@aws-sdk/client-sts": "3.202.0",
23
+ "@aws-sdk/config-resolver": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.202.0",
25
+ "@aws-sdk/fetch-http-handler": "3.201.0",
26
+ "@aws-sdk/hash-node": "3.201.0",
27
+ "@aws-sdk/invalid-dependency": "3.201.0",
28
+ "@aws-sdk/middleware-content-length": "3.201.0",
29
+ "@aws-sdk/middleware-endpoint": "3.201.0",
30
+ "@aws-sdk/middleware-host-header": "3.201.0",
31
+ "@aws-sdk/middleware-logger": "3.201.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.201.0",
33
+ "@aws-sdk/middleware-retry": "3.201.0",
34
+ "@aws-sdk/middleware-serde": "3.201.0",
35
+ "@aws-sdk/middleware-signing": "3.201.0",
36
+ "@aws-sdk/middleware-stack": "3.201.0",
37
+ "@aws-sdk/middleware-user-agent": "3.201.0",
38
+ "@aws-sdk/node-config-provider": "3.201.0",
39
+ "@aws-sdk/node-http-handler": "3.201.0",
40
+ "@aws-sdk/protocol-http": "3.201.0",
41
+ "@aws-sdk/smithy-client": "3.201.0",
42
+ "@aws-sdk/types": "3.201.0",
43
+ "@aws-sdk/url-parser": "3.201.0",
44
44
  "@aws-sdk/util-base64-browser": "3.188.0",
45
- "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-base64-node": "3.201.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
- "@aws-sdk/util-body-length-node": "3.188.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.200.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.200.0",
50
- "@aws-sdk/util-endpoints": "3.200.0",
51
- "@aws-sdk/util-user-agent-browser": "3.200.0",
52
- "@aws-sdk/util-user-agent-node": "3.200.0",
47
+ "@aws-sdk/util-body-length-node": "3.201.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.202.0",
51
+ "@aws-sdk/util-user-agent-browser": "3.201.0",
52
+ "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",
54
- "@aws-sdk/util-utf8-node": "3.199.0",
55
- "@aws-sdk/util-waiter": "3.200.0",
54
+ "@aws-sdk/util-utf8-node": "3.201.0",
55
+ "@aws-sdk/util-waiter": "3.201.0",
56
56
  "tslib": "^2.3.1",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@aws-sdk/service-client-documentation-generator": "3.188.0",
61
- "@tsconfig/recommended": "1.0.1",
61
+ "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^12.7.5",
63
63
  "@types/uuid": "^8.3.0",
64
64
  "concurrently": "7.0.0",
@@ -73,7 +73,7 @@
73
73
  }
74
74
  },
75
75
  "engines": {
76
- "node": ">=12.0.0"
76
+ "node": ">=14.0.0"
77
77
  },
78
78
  "typesVersions": {
79
79
  "<4.0": {