@aws-sdk/client-ssm-incidents 3.211.0 → 3.212.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/models/models_0.js +38 -7
- package/dist-cjs/protocols/Aws_restJson1.js +111 -36
- package/dist-es/models/models_0.js +31 -4
- package/dist-es/protocols/Aws_restJson1.js +112 -37
- package/dist-types/models/models_0.d.ts +133 -5
- package/dist-types/ts3.4/models/models_0.d.ts +57 -0
- package/package.json +29 -29
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateTimelineEventOutputFilterSensitiveLog = exports.UpdateTimelineEventInputFilterSensitiveLog = exports.UpdateResponsePlanOutputFilterSensitiveLog = exports.UpdateResponsePlanInputFilterSensitiveLog = exports.UpdateReplicationSetOutputFilterSensitiveLog = exports.UpdateReplicationSetInputFilterSensitiveLog = exports.UpdateReplicationSetActionFilterSensitiveLog = exports.UpdateRelatedItemsOutputFilterSensitiveLog = exports.UpdateRelatedItemsInputFilterSensitiveLog = exports.UpdateIncidentRecordOutputFilterSensitiveLog = exports.UpdateIncidentRecordInputFilterSensitiveLog = exports.UpdateDeletionProtectionOutputFilterSensitiveLog = exports.UpdateDeletionProtectionInputFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.CreateTimelineEventInputFilterSensitiveLog = exports.EventReferenceFilterSensitiveLog = exports.CreateResponsePlanOutputFilterSensitiveLog = exports.CreateResponsePlanInputFilterSensitiveLog = exports.IntegrationFilterSensitiveLog = exports.PagerDutyConfigurationFilterSensitiveLog = exports.PagerDutyIncidentConfigurationFilterSensitiveLog = exports.IncidentTemplateFilterSensitiveLog = exports.NotificationTargetItemFilterSensitiveLog = exports.CreateReplicationSetOutputFilterSensitiveLog = exports.CreateReplicationSetInputFilterSensitiveLog = exports.RegionMapInputValueFilterSensitiveLog = exports.ConditionFilterSensitiveLog = exports.ChatChannelFilterSensitiveLog = exports.EmptyChatChannelFilterSensitiveLog = exports.AutomationExecutionFilterSensitiveLog = exports.AttributeValueListFilterSensitiveLog = exports.AddRegionActionFilterSensitiveLog = exports.ActionFilterSensitiveLog = exports.SsmAutomationFilterSensitiveLog = exports.DynamicSsmParameterValueFilterSensitiveLog = exports.UpdateReplicationSetAction = exports.RelatedItemsUpdate = exports.SortOrder = exports.TimelineEventSort = exports.ItemValue = exports.ItemType = exports.ReplicationSetStatus = exports.RegionStatus = exports.IncidentRecordStatus = exports.EventReference = exports.ResourceNotFoundException = exports.Integration = exports.NotificationTargetItem = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ServiceCode = exports.InternalServerException = exports.ConflictException = exports.ResourceType = exports.Condition = exports.ChatChannel = exports.AutomationExecution = exports.AttributeValueList = exports.Action = exports.SsmTargetAccount = exports.DynamicSsmParameterValue = exports.VariableType = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.PutResourcePolicyOutputFilterSensitiveLog = exports.PutResourcePolicyInputFilterSensitiveLog = exports.ListTimelineEventsOutputFilterSensitiveLog = exports.ListTimelineEventsInputFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListResponsePlansOutputFilterSensitiveLog = exports.ResponsePlanSummaryFilterSensitiveLog = exports.ListResponsePlansInputFilterSensitiveLog = exports.ListReplicationSetsOutputFilterSensitiveLog = exports.ListReplicationSetsInputFilterSensitiveLog = exports.ListRelatedItemsOutputFilterSensitiveLog = exports.RelatedItemFilterSensitiveLog = exports.ListRelatedItemsInputFilterSensitiveLog = exports.ListIncidentRecordsOutputFilterSensitiveLog = exports.ListIncidentRecordsInputFilterSensitiveLog = exports.ItemIdentifierFilterSensitiveLog = exports.ItemValueFilterSensitiveLog = exports.PagerDutyIncidentDetailFilterSensitiveLog = exports.IncidentRecordSummaryFilterSensitiveLog = exports.GetTimelineEventOutputFilterSensitiveLog = exports.TimelineEventFilterSensitiveLog = exports.GetTimelineEventInputFilterSensitiveLog = exports.GetResponsePlanOutputFilterSensitiveLog = exports.GetResponsePlanInputFilterSensitiveLog = exports.GetResourcePoliciesOutputFilterSensitiveLog = exports.ResourcePolicyFilterSensitiveLog = exports.GetResourcePoliciesInputFilterSensitiveLog = exports.GetReplicationSetOutputFilterSensitiveLog = exports.ReplicationSetFilterSensitiveLog = exports.RegionInfoFilterSensitiveLog = exports.GetReplicationSetInputFilterSensitiveLog = exports.GetIncidentRecordOutputFilterSensitiveLog = exports.IncidentRecordFilterSensitiveLog = exports.IncidentRecordSourceFilterSensitiveLog = exports.GetIncidentRecordInputFilterSensitiveLog = exports.FilterFilterSensitiveLog = exports.EventSummaryFilterSensitiveLog = exports.DeleteTimelineEventOutputFilterSensitiveLog = exports.DeleteTimelineEventInputFilterSensitiveLog = exports.DeleteResponsePlanOutputFilterSensitiveLog = exports.DeleteResponsePlanInputFilterSensitiveLog = exports.DeleteResourcePolicyOutputFilterSensitiveLog = exports.DeleteResourcePolicyInputFilterSensitiveLog = exports.DeleteReplicationSetOutputFilterSensitiveLog = exports.DeleteReplicationSetInputFilterSensitiveLog = exports.DeleteRegionActionFilterSensitiveLog = exports.DeleteIncidentRecordOutputFilterSensitiveLog = exports.DeleteIncidentRecordInputFilterSensitiveLog = exports.CreateTimelineEventOutputFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UpdateTimelineEventOutputFilterSensitiveLog = exports.UpdateTimelineEventInputFilterSensitiveLog = exports.UpdateResponsePlanOutputFilterSensitiveLog = exports.UpdateResponsePlanInputFilterSensitiveLog = exports.UpdateReplicationSetOutputFilterSensitiveLog = exports.UpdateReplicationSetInputFilterSensitiveLog = exports.UpdateReplicationSetActionFilterSensitiveLog = exports.UpdateRelatedItemsOutputFilterSensitiveLog = exports.UpdateRelatedItemsInputFilterSensitiveLog = exports.UpdateIncidentRecordOutputFilterSensitiveLog = exports.UpdateIncidentRecordInputFilterSensitiveLog = exports.UpdateDeletionProtectionOutputFilterSensitiveLog = exports.UpdateDeletionProtectionInputFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.StartIncidentOutputFilterSensitiveLog = exports.StartIncidentInputFilterSensitiveLog = exports.TriggerDetailsFilterSensitiveLog = exports.RelatedItemsUpdateFilterSensitiveLog = void 0;
|
|
6
6
|
const SSMIncidentsServiceException_1 = require("./SSMIncidentsServiceException");
|
|
7
7
|
class AccessDeniedException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -177,6 +177,14 @@ var NotificationTargetItem;
|
|
|
177
177
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
178
178
|
};
|
|
179
179
|
})(NotificationTargetItem = exports.NotificationTargetItem || (exports.NotificationTargetItem = {}));
|
|
180
|
+
var Integration;
|
|
181
|
+
(function (Integration) {
|
|
182
|
+
Integration.visit = (value, visitor) => {
|
|
183
|
+
if (value.pagerDutyConfiguration !== undefined)
|
|
184
|
+
return visitor.pagerDutyConfiguration(value.pagerDutyConfiguration);
|
|
185
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
186
|
+
};
|
|
187
|
+
})(Integration = exports.Integration || (exports.Integration = {}));
|
|
180
188
|
class ResourceNotFoundException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
|
|
181
189
|
constructor(opts) {
|
|
182
190
|
super({
|
|
@@ -243,6 +251,8 @@ var ItemValue;
|
|
|
243
251
|
return visitor.url(value.url);
|
|
244
252
|
if (value.metricDefinition !== undefined)
|
|
245
253
|
return visitor.metricDefinition(value.metricDefinition);
|
|
254
|
+
if (value.pagerDutyIncidentDetail !== undefined)
|
|
255
|
+
return visitor.pagerDutyIncidentDetail(value.pagerDutyIncidentDetail);
|
|
246
256
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
247
257
|
};
|
|
248
258
|
})(ItemValue = exports.ItemValue || (exports.ItemValue = {}));
|
|
@@ -285,10 +295,7 @@ exports.DynamicSsmParameterValueFilterSensitiveLog = DynamicSsmParameterValueFil
|
|
|
285
295
|
const SsmAutomationFilterSensitiveLog = (obj) => ({
|
|
286
296
|
...obj,
|
|
287
297
|
...(obj.dynamicParameters && {
|
|
288
|
-
dynamicParameters: Object.entries(obj.dynamicParameters).reduce((acc, [key, value]) => ({
|
|
289
|
-
...acc,
|
|
290
|
-
[key]: (0, exports.DynamicSsmParameterValueFilterSensitiveLog)(value),
|
|
291
|
-
}), {}),
|
|
298
|
+
dynamicParameters: Object.entries(obj.dynamicParameters).reduce((acc, [key, value]) => ((acc[key] = (0, exports.DynamicSsmParameterValueFilterSensitiveLog)(value)), acc), {}),
|
|
292
299
|
}),
|
|
293
300
|
});
|
|
294
301
|
exports.SsmAutomationFilterSensitiveLog = SsmAutomationFilterSensitiveLog;
|
|
@@ -369,11 +376,27 @@ const IncidentTemplateFilterSensitiveLog = (obj) => ({
|
|
|
369
376
|
}),
|
|
370
377
|
});
|
|
371
378
|
exports.IncidentTemplateFilterSensitiveLog = IncidentTemplateFilterSensitiveLog;
|
|
379
|
+
const PagerDutyIncidentConfigurationFilterSensitiveLog = (obj) => ({
|
|
380
|
+
...obj,
|
|
381
|
+
});
|
|
382
|
+
exports.PagerDutyIncidentConfigurationFilterSensitiveLog = PagerDutyIncidentConfigurationFilterSensitiveLog;
|
|
383
|
+
const PagerDutyConfigurationFilterSensitiveLog = (obj) => ({
|
|
384
|
+
...obj,
|
|
385
|
+
});
|
|
386
|
+
exports.PagerDutyConfigurationFilterSensitiveLog = PagerDutyConfigurationFilterSensitiveLog;
|
|
387
|
+
const IntegrationFilterSensitiveLog = (obj) => {
|
|
388
|
+
if (obj.pagerDutyConfiguration !== undefined)
|
|
389
|
+
return { pagerDutyConfiguration: (0, exports.PagerDutyConfigurationFilterSensitiveLog)(obj.pagerDutyConfiguration) };
|
|
390
|
+
if (obj.$unknown !== undefined)
|
|
391
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
392
|
+
};
|
|
393
|
+
exports.IntegrationFilterSensitiveLog = IntegrationFilterSensitiveLog;
|
|
372
394
|
const CreateResponsePlanInputFilterSensitiveLog = (obj) => ({
|
|
373
395
|
...obj,
|
|
374
396
|
...(obj.incidentTemplate && { incidentTemplate: (0, exports.IncidentTemplateFilterSensitiveLog)(obj.incidentTemplate) }),
|
|
375
397
|
...(obj.chatChannel && { chatChannel: (0, exports.ChatChannelFilterSensitiveLog)(obj.chatChannel) }),
|
|
376
398
|
...(obj.actions && { actions: obj.actions.map((item) => (0, exports.ActionFilterSensitiveLog)(item)) }),
|
|
399
|
+
...(obj.integrations && { integrations: obj.integrations.map((item) => (0, exports.IntegrationFilterSensitiveLog)(item)) }),
|
|
377
400
|
});
|
|
378
401
|
exports.CreateResponsePlanInputFilterSensitiveLog = CreateResponsePlanInputFilterSensitiveLog;
|
|
379
402
|
const CreateResponsePlanOutputFilterSensitiveLog = (obj) => ({
|
|
@@ -517,6 +540,7 @@ const GetResponsePlanOutputFilterSensitiveLog = (obj) => ({
|
|
|
517
540
|
...(obj.incidentTemplate && { incidentTemplate: (0, exports.IncidentTemplateFilterSensitiveLog)(obj.incidentTemplate) }),
|
|
518
541
|
...(obj.chatChannel && { chatChannel: (0, exports.ChatChannelFilterSensitiveLog)(obj.chatChannel) }),
|
|
519
542
|
...(obj.actions && { actions: obj.actions.map((item) => (0, exports.ActionFilterSensitiveLog)(item)) }),
|
|
543
|
+
...(obj.integrations && { integrations: obj.integrations.map((item) => (0, exports.IntegrationFilterSensitiveLog)(item)) }),
|
|
520
544
|
});
|
|
521
545
|
exports.GetResponsePlanOutputFilterSensitiveLog = GetResponsePlanOutputFilterSensitiveLog;
|
|
522
546
|
const GetTimelineEventInputFilterSensitiveLog = (obj) => ({
|
|
@@ -539,6 +563,10 @@ const IncidentRecordSummaryFilterSensitiveLog = (obj) => ({
|
|
|
539
563
|
...obj,
|
|
540
564
|
});
|
|
541
565
|
exports.IncidentRecordSummaryFilterSensitiveLog = IncidentRecordSummaryFilterSensitiveLog;
|
|
566
|
+
const PagerDutyIncidentDetailFilterSensitiveLog = (obj) => ({
|
|
567
|
+
...obj,
|
|
568
|
+
});
|
|
569
|
+
exports.PagerDutyIncidentDetailFilterSensitiveLog = PagerDutyIncidentDetailFilterSensitiveLog;
|
|
542
570
|
const ItemValueFilterSensitiveLog = (obj) => {
|
|
543
571
|
if (obj.arn !== undefined)
|
|
544
572
|
return { arn: obj.arn };
|
|
@@ -546,6 +574,8 @@ const ItemValueFilterSensitiveLog = (obj) => {
|
|
|
546
574
|
return { url: obj.url };
|
|
547
575
|
if (obj.metricDefinition !== undefined)
|
|
548
576
|
return { metricDefinition: obj.metricDefinition };
|
|
577
|
+
if (obj.pagerDutyIncidentDetail !== undefined)
|
|
578
|
+
return { pagerDutyIncidentDetail: (0, exports.PagerDutyIncidentDetailFilterSensitiveLog)(obj.pagerDutyIncidentDetail) };
|
|
549
579
|
if (obj.$unknown !== undefined)
|
|
550
580
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
551
581
|
};
|
|
@@ -716,6 +746,7 @@ const UpdateResponsePlanInputFilterSensitiveLog = (obj) => ({
|
|
|
716
746
|
}),
|
|
717
747
|
...(obj.chatChannel && { chatChannel: (0, exports.ChatChannelFilterSensitiveLog)(obj.chatChannel) }),
|
|
718
748
|
...(obj.actions && { actions: obj.actions.map((item) => (0, exports.ActionFilterSensitiveLog)(item)) }),
|
|
749
|
+
...(obj.integrations && { integrations: obj.integrations.map((item) => (0, exports.IntegrationFilterSensitiveLog)(item)) }),
|
|
719
750
|
});
|
|
720
751
|
exports.UpdateResponsePlanInputFilterSensitiveLog = UpdateResponsePlanInputFilterSensitiveLog;
|
|
721
752
|
const UpdateResponsePlanOutputFilterSensitiveLog = (obj) => ({
|
|
@@ -46,6 +46,9 @@ const serializeAws_restJson1CreateResponsePlanCommand = async (input, context) =
|
|
|
46
46
|
...(input.incidentTemplate != null && {
|
|
47
47
|
incidentTemplate: serializeAws_restJson1IncidentTemplate(input.incidentTemplate, context),
|
|
48
48
|
}),
|
|
49
|
+
...(input.integrations != null && {
|
|
50
|
+
integrations: serializeAws_restJson1Integrations(input.integrations, context),
|
|
51
|
+
}),
|
|
49
52
|
...(input.name != null && { name: input.name }),
|
|
50
53
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
51
54
|
});
|
|
@@ -656,6 +659,9 @@ const serializeAws_restJson1UpdateResponsePlanCommand = async (input, context) =
|
|
|
656
659
|
incidentTemplateTags: serializeAws_restJson1TagMapUpdate(input.incidentTemplateTags, context),
|
|
657
660
|
}),
|
|
658
661
|
...(input.incidentTemplateTitle != null && { incidentTemplateTitle: input.incidentTemplateTitle }),
|
|
662
|
+
...(input.integrations != null && {
|
|
663
|
+
integrations: serializeAws_restJson1Integrations(input.integrations, context),
|
|
664
|
+
}),
|
|
659
665
|
});
|
|
660
666
|
return new protocol_http_1.HttpRequest({
|
|
661
667
|
protocol,
|
|
@@ -1220,6 +1226,9 @@ const deserializeAws_restJson1GetResponsePlanCommand = async (output, context) =
|
|
|
1220
1226
|
if (data.incidentTemplate != null) {
|
|
1221
1227
|
contents.incidentTemplate = deserializeAws_restJson1IncidentTemplate(data.incidentTemplate, context);
|
|
1222
1228
|
}
|
|
1229
|
+
if (data.integrations != null) {
|
|
1230
|
+
contents.integrations = deserializeAws_restJson1Integrations(data.integrations, context);
|
|
1231
|
+
}
|
|
1223
1232
|
if (data.name != null) {
|
|
1224
1233
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1225
1234
|
}
|
|
@@ -2219,10 +2228,8 @@ const serializeAws_restJson1DynamicSsmParameters = (input, context) => {
|
|
|
2219
2228
|
if (value === null) {
|
|
2220
2229
|
return acc;
|
|
2221
2230
|
}
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
[key]: serializeAws_restJson1DynamicSsmParameterValue(value, context),
|
|
2225
|
-
};
|
|
2231
|
+
acc[key] = serializeAws_restJson1DynamicSsmParameterValue(value, context);
|
|
2232
|
+
return acc;
|
|
2226
2233
|
}, {});
|
|
2227
2234
|
};
|
|
2228
2235
|
const serializeAws_restJson1DynamicSsmParameterValue = (input, context) => {
|
|
@@ -2287,6 +2294,21 @@ const serializeAws_restJson1IntegerList = (input, context) => {
|
|
|
2287
2294
|
return entry;
|
|
2288
2295
|
});
|
|
2289
2296
|
};
|
|
2297
|
+
const serializeAws_restJson1Integration = (input, context) => {
|
|
2298
|
+
return models_0_1.Integration.visit(input, {
|
|
2299
|
+
pagerDutyConfiguration: (value) => ({
|
|
2300
|
+
pagerDutyConfiguration: serializeAws_restJson1PagerDutyConfiguration(value, context),
|
|
2301
|
+
}),
|
|
2302
|
+
_: (name, value) => ({ name: value }),
|
|
2303
|
+
});
|
|
2304
|
+
};
|
|
2305
|
+
const serializeAws_restJson1Integrations = (input, context) => {
|
|
2306
|
+
return input
|
|
2307
|
+
.filter((e) => e != null)
|
|
2308
|
+
.map((entry) => {
|
|
2309
|
+
return serializeAws_restJson1Integration(entry, context);
|
|
2310
|
+
});
|
|
2311
|
+
};
|
|
2290
2312
|
const serializeAws_restJson1ItemIdentifier = (input, context) => {
|
|
2291
2313
|
return {
|
|
2292
2314
|
...(input.type != null && { type: input.type }),
|
|
@@ -2297,6 +2319,9 @@ const serializeAws_restJson1ItemValue = (input, context) => {
|
|
|
2297
2319
|
return models_0_1.ItemValue.visit(input, {
|
|
2298
2320
|
arn: (value) => ({ arn: value }),
|
|
2299
2321
|
metricDefinition: (value) => ({ metricDefinition: value }),
|
|
2322
|
+
pagerDutyIncidentDetail: (value) => ({
|
|
2323
|
+
pagerDutyIncidentDetail: serializeAws_restJson1PagerDutyIncidentDetail(value, context),
|
|
2324
|
+
}),
|
|
2300
2325
|
url: (value) => ({ url: value }),
|
|
2301
2326
|
_: (name, value) => ({ name: value }),
|
|
2302
2327
|
});
|
|
@@ -2314,15 +2339,34 @@ const serializeAws_restJson1NotificationTargetSet = (input, context) => {
|
|
|
2314
2339
|
return serializeAws_restJson1NotificationTargetItem(entry, context);
|
|
2315
2340
|
});
|
|
2316
2341
|
};
|
|
2342
|
+
const serializeAws_restJson1PagerDutyConfiguration = (input, context) => {
|
|
2343
|
+
return {
|
|
2344
|
+
...(input.name != null && { name: input.name }),
|
|
2345
|
+
...(input.pagerDutyIncidentConfiguration != null && {
|
|
2346
|
+
pagerDutyIncidentConfiguration: serializeAws_restJson1PagerDutyIncidentConfiguration(input.pagerDutyIncidentConfiguration, context),
|
|
2347
|
+
}),
|
|
2348
|
+
...(input.secretId != null && { secretId: input.secretId }),
|
|
2349
|
+
};
|
|
2350
|
+
};
|
|
2351
|
+
const serializeAws_restJson1PagerDutyIncidentConfiguration = (input, context) => {
|
|
2352
|
+
return {
|
|
2353
|
+
...(input.serviceId != null && { serviceId: input.serviceId }),
|
|
2354
|
+
};
|
|
2355
|
+
};
|
|
2356
|
+
const serializeAws_restJson1PagerDutyIncidentDetail = (input, context) => {
|
|
2357
|
+
return {
|
|
2358
|
+
...(input.autoResolve != null && { autoResolve: input.autoResolve }),
|
|
2359
|
+
...(input.id != null && { id: input.id }),
|
|
2360
|
+
...(input.secretId != null && { secretId: input.secretId }),
|
|
2361
|
+
};
|
|
2362
|
+
};
|
|
2317
2363
|
const serializeAws_restJson1RegionMapInput = (input, context) => {
|
|
2318
2364
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2319
2365
|
if (value === null) {
|
|
2320
2366
|
return acc;
|
|
2321
2367
|
}
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
[key]: serializeAws_restJson1RegionMapInputValue(value, context),
|
|
2325
|
-
};
|
|
2368
|
+
acc[key] = serializeAws_restJson1RegionMapInputValue(value, context);
|
|
2369
|
+
return acc;
|
|
2326
2370
|
}, {});
|
|
2327
2371
|
};
|
|
2328
2372
|
const serializeAws_restJson1RegionMapInputValue = (input, context) => {
|
|
@@ -2368,10 +2412,8 @@ const serializeAws_restJson1SsmParameters = (input, context) => {
|
|
|
2368
2412
|
if (value === null) {
|
|
2369
2413
|
return acc;
|
|
2370
2414
|
}
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
[key]: serializeAws_restJson1SsmParameterValues(value, context),
|
|
2374
|
-
};
|
|
2415
|
+
acc[key] = serializeAws_restJson1SsmParameterValues(value, context);
|
|
2416
|
+
return acc;
|
|
2375
2417
|
}, {});
|
|
2376
2418
|
};
|
|
2377
2419
|
const serializeAws_restJson1SsmParameterValues = (input, context) => {
|
|
@@ -2393,10 +2435,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2393
2435
|
if (value === null) {
|
|
2394
2436
|
return acc;
|
|
2395
2437
|
}
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
[key]: value,
|
|
2399
|
-
};
|
|
2438
|
+
acc[key] = value;
|
|
2439
|
+
return acc;
|
|
2400
2440
|
}, {});
|
|
2401
2441
|
};
|
|
2402
2442
|
const serializeAws_restJson1TagMapUpdate = (input, context) => {
|
|
@@ -2404,10 +2444,8 @@ const serializeAws_restJson1TagMapUpdate = (input, context) => {
|
|
|
2404
2444
|
if (value === null) {
|
|
2405
2445
|
return acc;
|
|
2406
2446
|
}
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
[key]: value,
|
|
2410
|
-
};
|
|
2447
|
+
acc[key] = value;
|
|
2448
|
+
return acc;
|
|
2411
2449
|
}, {});
|
|
2412
2450
|
};
|
|
2413
2451
|
const serializeAws_restJson1TriggerDetails = (input, context) => {
|
|
@@ -2497,10 +2535,8 @@ const deserializeAws_restJson1DynamicSsmParameters = (output, context) => {
|
|
|
2497
2535
|
if (value === null) {
|
|
2498
2536
|
return acc;
|
|
2499
2537
|
}
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
[key]: deserializeAws_restJson1DynamicSsmParameterValue((0, smithy_client_1.expectUnion)(value), context),
|
|
2503
|
-
};
|
|
2538
|
+
acc[key] = deserializeAws_restJson1DynamicSsmParameterValue((0, smithy_client_1.expectUnion)(value), context);
|
|
2539
|
+
return acc;
|
|
2504
2540
|
}, {});
|
|
2505
2541
|
};
|
|
2506
2542
|
const deserializeAws_restJson1DynamicSsmParameterValue = (output, context) => {
|
|
@@ -2648,6 +2684,25 @@ const deserializeAws_restJson1IncidentTemplate = (output, context) => {
|
|
|
2648
2684
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
2649
2685
|
};
|
|
2650
2686
|
};
|
|
2687
|
+
const deserializeAws_restJson1Integration = (output, context) => {
|
|
2688
|
+
if (output.pagerDutyConfiguration != null) {
|
|
2689
|
+
return {
|
|
2690
|
+
pagerDutyConfiguration: deserializeAws_restJson1PagerDutyConfiguration(output.pagerDutyConfiguration, context),
|
|
2691
|
+
};
|
|
2692
|
+
}
|
|
2693
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2694
|
+
};
|
|
2695
|
+
const deserializeAws_restJson1Integrations = (output, context) => {
|
|
2696
|
+
const retVal = (output || [])
|
|
2697
|
+
.filter((e) => e != null)
|
|
2698
|
+
.map((entry) => {
|
|
2699
|
+
if (entry === null) {
|
|
2700
|
+
return null;
|
|
2701
|
+
}
|
|
2702
|
+
return deserializeAws_restJson1Integration((0, smithy_client_1.expectUnion)(entry), context);
|
|
2703
|
+
});
|
|
2704
|
+
return retVal;
|
|
2705
|
+
};
|
|
2651
2706
|
const deserializeAws_restJson1ItemIdentifier = (output, context) => {
|
|
2652
2707
|
return {
|
|
2653
2708
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -2661,6 +2716,11 @@ const deserializeAws_restJson1ItemValue = (output, context) => {
|
|
|
2661
2716
|
if ((0, smithy_client_1.expectString)(output.metricDefinition) !== undefined) {
|
|
2662
2717
|
return { metricDefinition: (0, smithy_client_1.expectString)(output.metricDefinition) };
|
|
2663
2718
|
}
|
|
2719
|
+
if (output.pagerDutyIncidentDetail != null) {
|
|
2720
|
+
return {
|
|
2721
|
+
pagerDutyIncidentDetail: deserializeAws_restJson1PagerDutyIncidentDetail(output.pagerDutyIncidentDetail, context),
|
|
2722
|
+
};
|
|
2723
|
+
}
|
|
2664
2724
|
if ((0, smithy_client_1.expectString)(output.url) !== undefined) {
|
|
2665
2725
|
return { url: (0, smithy_client_1.expectString)(output.url) };
|
|
2666
2726
|
}
|
|
@@ -2683,6 +2743,27 @@ const deserializeAws_restJson1NotificationTargetSet = (output, context) => {
|
|
|
2683
2743
|
});
|
|
2684
2744
|
return retVal;
|
|
2685
2745
|
};
|
|
2746
|
+
const deserializeAws_restJson1PagerDutyConfiguration = (output, context) => {
|
|
2747
|
+
return {
|
|
2748
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2749
|
+
pagerDutyIncidentConfiguration: output.pagerDutyIncidentConfiguration != null
|
|
2750
|
+
? deserializeAws_restJson1PagerDutyIncidentConfiguration(output.pagerDutyIncidentConfiguration, context)
|
|
2751
|
+
: undefined,
|
|
2752
|
+
secretId: (0, smithy_client_1.expectString)(output.secretId),
|
|
2753
|
+
};
|
|
2754
|
+
};
|
|
2755
|
+
const deserializeAws_restJson1PagerDutyIncidentConfiguration = (output, context) => {
|
|
2756
|
+
return {
|
|
2757
|
+
serviceId: (0, smithy_client_1.expectString)(output.serviceId),
|
|
2758
|
+
};
|
|
2759
|
+
};
|
|
2760
|
+
const deserializeAws_restJson1PagerDutyIncidentDetail = (output, context) => {
|
|
2761
|
+
return {
|
|
2762
|
+
autoResolve: (0, smithy_client_1.expectBoolean)(output.autoResolve),
|
|
2763
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2764
|
+
secretId: (0, smithy_client_1.expectString)(output.secretId),
|
|
2765
|
+
};
|
|
2766
|
+
};
|
|
2686
2767
|
const deserializeAws_restJson1RegionInfo = (output, context) => {
|
|
2687
2768
|
return {
|
|
2688
2769
|
sseKmsKeyId: (0, smithy_client_1.expectString)(output.sseKmsKeyId),
|
|
@@ -2698,10 +2779,8 @@ const deserializeAws_restJson1RegionInfoMap = (output, context) => {
|
|
|
2698
2779
|
if (value === null) {
|
|
2699
2780
|
return acc;
|
|
2700
2781
|
}
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
[key]: deserializeAws_restJson1RegionInfo(value, context),
|
|
2704
|
-
};
|
|
2782
|
+
acc[key] = deserializeAws_restJson1RegionInfo(value, context);
|
|
2783
|
+
return acc;
|
|
2705
2784
|
}, {});
|
|
2706
2785
|
};
|
|
2707
2786
|
const deserializeAws_restJson1RelatedItem = (output, context) => {
|
|
@@ -2802,10 +2881,8 @@ const deserializeAws_restJson1SsmParameters = (output, context) => {
|
|
|
2802
2881
|
if (value === null) {
|
|
2803
2882
|
return acc;
|
|
2804
2883
|
}
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
[key]: deserializeAws_restJson1SsmParameterValues(value, context),
|
|
2808
|
-
};
|
|
2884
|
+
acc[key] = deserializeAws_restJson1SsmParameterValues(value, context);
|
|
2885
|
+
return acc;
|
|
2809
2886
|
}, {});
|
|
2810
2887
|
};
|
|
2811
2888
|
const deserializeAws_restJson1SsmParameterValues = (output, context) => {
|
|
@@ -2824,10 +2901,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2824
2901
|
if (value === null) {
|
|
2825
2902
|
return acc;
|
|
2826
2903
|
}
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
[key]: (0, smithy_client_1.expectString)(value),
|
|
2830
|
-
};
|
|
2904
|
+
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2905
|
+
return acc;
|
|
2831
2906
|
}, {});
|
|
2832
2907
|
};
|
|
2833
2908
|
const deserializeAws_restJson1TimelineEvent = (output, context) => {
|
|
@@ -166,6 +166,14 @@ export var NotificationTargetItem;
|
|
|
166
166
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
167
167
|
};
|
|
168
168
|
})(NotificationTargetItem || (NotificationTargetItem = {}));
|
|
169
|
+
export var Integration;
|
|
170
|
+
(function (Integration) {
|
|
171
|
+
Integration.visit = (value, visitor) => {
|
|
172
|
+
if (value.pagerDutyConfiguration !== undefined)
|
|
173
|
+
return visitor.pagerDutyConfiguration(value.pagerDutyConfiguration);
|
|
174
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
175
|
+
};
|
|
176
|
+
})(Integration || (Integration = {}));
|
|
169
177
|
export class ResourceNotFoundException extends __BaseException {
|
|
170
178
|
constructor(opts) {
|
|
171
179
|
super({
|
|
@@ -231,6 +239,8 @@ export var ItemValue;
|
|
|
231
239
|
return visitor.url(value.url);
|
|
232
240
|
if (value.metricDefinition !== undefined)
|
|
233
241
|
return visitor.metricDefinition(value.metricDefinition);
|
|
242
|
+
if (value.pagerDutyIncidentDetail !== undefined)
|
|
243
|
+
return visitor.pagerDutyIncidentDetail(value.pagerDutyIncidentDetail);
|
|
234
244
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
235
245
|
};
|
|
236
246
|
})(ItemValue || (ItemValue = {}));
|
|
@@ -272,10 +282,7 @@ export const DynamicSsmParameterValueFilterSensitiveLog = (obj) => {
|
|
|
272
282
|
export const SsmAutomationFilterSensitiveLog = (obj) => ({
|
|
273
283
|
...obj,
|
|
274
284
|
...(obj.dynamicParameters && {
|
|
275
|
-
dynamicParameters: Object.entries(obj.dynamicParameters).reduce((acc, [key, value]) => ({
|
|
276
|
-
...acc,
|
|
277
|
-
[key]: DynamicSsmParameterValueFilterSensitiveLog(value),
|
|
278
|
-
}), {}),
|
|
285
|
+
dynamicParameters: Object.entries(obj.dynamicParameters).reduce((acc, [key, value]) => ((acc[key] = DynamicSsmParameterValueFilterSensitiveLog(value)), acc), {}),
|
|
279
286
|
}),
|
|
280
287
|
});
|
|
281
288
|
export const ActionFilterSensitiveLog = (obj) => {
|
|
@@ -343,11 +350,24 @@ export const IncidentTemplateFilterSensitiveLog = (obj) => ({
|
|
|
343
350
|
notificationTargets: obj.notificationTargets.map((item) => NotificationTargetItemFilterSensitiveLog(item)),
|
|
344
351
|
}),
|
|
345
352
|
});
|
|
353
|
+
export const PagerDutyIncidentConfigurationFilterSensitiveLog = (obj) => ({
|
|
354
|
+
...obj,
|
|
355
|
+
});
|
|
356
|
+
export const PagerDutyConfigurationFilterSensitiveLog = (obj) => ({
|
|
357
|
+
...obj,
|
|
358
|
+
});
|
|
359
|
+
export const IntegrationFilterSensitiveLog = (obj) => {
|
|
360
|
+
if (obj.pagerDutyConfiguration !== undefined)
|
|
361
|
+
return { pagerDutyConfiguration: PagerDutyConfigurationFilterSensitiveLog(obj.pagerDutyConfiguration) };
|
|
362
|
+
if (obj.$unknown !== undefined)
|
|
363
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
364
|
+
};
|
|
346
365
|
export const CreateResponsePlanInputFilterSensitiveLog = (obj) => ({
|
|
347
366
|
...obj,
|
|
348
367
|
...(obj.incidentTemplate && { incidentTemplate: IncidentTemplateFilterSensitiveLog(obj.incidentTemplate) }),
|
|
349
368
|
...(obj.chatChannel && { chatChannel: ChatChannelFilterSensitiveLog(obj.chatChannel) }),
|
|
350
369
|
...(obj.actions && { actions: obj.actions.map((item) => ActionFilterSensitiveLog(item)) }),
|
|
370
|
+
...(obj.integrations && { integrations: obj.integrations.map((item) => IntegrationFilterSensitiveLog(item)) }),
|
|
351
371
|
});
|
|
352
372
|
export const CreateResponsePlanOutputFilterSensitiveLog = (obj) => ({
|
|
353
373
|
...obj,
|
|
@@ -461,6 +481,7 @@ export const GetResponsePlanOutputFilterSensitiveLog = (obj) => ({
|
|
|
461
481
|
...(obj.incidentTemplate && { incidentTemplate: IncidentTemplateFilterSensitiveLog(obj.incidentTemplate) }),
|
|
462
482
|
...(obj.chatChannel && { chatChannel: ChatChannelFilterSensitiveLog(obj.chatChannel) }),
|
|
463
483
|
...(obj.actions && { actions: obj.actions.map((item) => ActionFilterSensitiveLog(item)) }),
|
|
484
|
+
...(obj.integrations && { integrations: obj.integrations.map((item) => IntegrationFilterSensitiveLog(item)) }),
|
|
464
485
|
});
|
|
465
486
|
export const GetTimelineEventInputFilterSensitiveLog = (obj) => ({
|
|
466
487
|
...obj,
|
|
@@ -478,6 +499,9 @@ export const GetTimelineEventOutputFilterSensitiveLog = (obj) => ({
|
|
|
478
499
|
export const IncidentRecordSummaryFilterSensitiveLog = (obj) => ({
|
|
479
500
|
...obj,
|
|
480
501
|
});
|
|
502
|
+
export const PagerDutyIncidentDetailFilterSensitiveLog = (obj) => ({
|
|
503
|
+
...obj,
|
|
504
|
+
});
|
|
481
505
|
export const ItemValueFilterSensitiveLog = (obj) => {
|
|
482
506
|
if (obj.arn !== undefined)
|
|
483
507
|
return { arn: obj.arn };
|
|
@@ -485,6 +509,8 @@ export const ItemValueFilterSensitiveLog = (obj) => {
|
|
|
485
509
|
return { url: obj.url };
|
|
486
510
|
if (obj.metricDefinition !== undefined)
|
|
487
511
|
return { metricDefinition: obj.metricDefinition };
|
|
512
|
+
if (obj.pagerDutyIncidentDetail !== undefined)
|
|
513
|
+
return { pagerDutyIncidentDetail: PagerDutyIncidentDetailFilterSensitiveLog(obj.pagerDutyIncidentDetail) };
|
|
488
514
|
if (obj.$unknown !== undefined)
|
|
489
515
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
490
516
|
};
|
|
@@ -620,6 +646,7 @@ export const UpdateResponsePlanInputFilterSensitiveLog = (obj) => ({
|
|
|
620
646
|
}),
|
|
621
647
|
...(obj.chatChannel && { chatChannel: ChatChannelFilterSensitiveLog(obj.chatChannel) }),
|
|
622
648
|
...(obj.actions && { actions: obj.actions.map((item) => ActionFilterSensitiveLog(item)) }),
|
|
649
|
+
...(obj.integrations && { integrations: obj.integrations.map((item) => IntegrationFilterSensitiveLog(item)) }),
|
|
623
650
|
});
|
|
624
651
|
export const UpdateResponsePlanOutputFilterSensitiveLog = (obj) => ({
|
|
625
652
|
...obj,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
|
-
import { AccessDeniedException, Action, AttributeValueList, ChatChannel, Condition, ConflictException, DynamicSsmParameterValue, EventReference, InternalServerException, ItemValue, NotificationTargetItem, RelatedItemsUpdate, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UpdateReplicationSetAction, ValidationException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, Action, AttributeValueList, ChatChannel, Condition, ConflictException, DynamicSsmParameterValue, EventReference, Integration, InternalServerException, ItemValue, NotificationTargetItem, RelatedItemsUpdate, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UpdateReplicationSetAction, ValidationException, } from "../models/models_0";
|
|
5
5
|
import { SSMIncidentsServiceException as __BaseException } from "../models/SSMIncidentsServiceException";
|
|
6
6
|
export const serializeAws_restJson1CreateReplicationSetCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -41,6 +41,9 @@ export const serializeAws_restJson1CreateResponsePlanCommand = async (input, con
|
|
|
41
41
|
...(input.incidentTemplate != null && {
|
|
42
42
|
incidentTemplate: serializeAws_restJson1IncidentTemplate(input.incidentTemplate, context),
|
|
43
43
|
}),
|
|
44
|
+
...(input.integrations != null && {
|
|
45
|
+
integrations: serializeAws_restJson1Integrations(input.integrations, context),
|
|
46
|
+
}),
|
|
44
47
|
...(input.name != null && { name: input.name }),
|
|
45
48
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
46
49
|
});
|
|
@@ -625,6 +628,9 @@ export const serializeAws_restJson1UpdateResponsePlanCommand = async (input, con
|
|
|
625
628
|
incidentTemplateTags: serializeAws_restJson1TagMapUpdate(input.incidentTemplateTags, context),
|
|
626
629
|
}),
|
|
627
630
|
...(input.incidentTemplateTitle != null && { incidentTemplateTitle: input.incidentTemplateTitle }),
|
|
631
|
+
...(input.integrations != null && {
|
|
632
|
+
integrations: serializeAws_restJson1Integrations(input.integrations, context),
|
|
633
|
+
}),
|
|
628
634
|
});
|
|
629
635
|
return new __HttpRequest({
|
|
630
636
|
protocol,
|
|
@@ -1176,6 +1182,9 @@ export const deserializeAws_restJson1GetResponsePlanCommand = async (output, con
|
|
|
1176
1182
|
if (data.incidentTemplate != null) {
|
|
1177
1183
|
contents.incidentTemplate = deserializeAws_restJson1IncidentTemplate(data.incidentTemplate, context);
|
|
1178
1184
|
}
|
|
1185
|
+
if (data.integrations != null) {
|
|
1186
|
+
contents.integrations = deserializeAws_restJson1Integrations(data.integrations, context);
|
|
1187
|
+
}
|
|
1179
1188
|
if (data.name != null) {
|
|
1180
1189
|
contents.name = __expectString(data.name);
|
|
1181
1190
|
}
|
|
@@ -2157,10 +2166,8 @@ const serializeAws_restJson1DynamicSsmParameters = (input, context) => {
|
|
|
2157
2166
|
if (value === null) {
|
|
2158
2167
|
return acc;
|
|
2159
2168
|
}
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
[key]: serializeAws_restJson1DynamicSsmParameterValue(value, context),
|
|
2163
|
-
};
|
|
2169
|
+
acc[key] = serializeAws_restJson1DynamicSsmParameterValue(value, context);
|
|
2170
|
+
return acc;
|
|
2164
2171
|
}, {});
|
|
2165
2172
|
};
|
|
2166
2173
|
const serializeAws_restJson1DynamicSsmParameterValue = (input, context) => {
|
|
@@ -2225,6 +2232,21 @@ const serializeAws_restJson1IntegerList = (input, context) => {
|
|
|
2225
2232
|
return entry;
|
|
2226
2233
|
});
|
|
2227
2234
|
};
|
|
2235
|
+
const serializeAws_restJson1Integration = (input, context) => {
|
|
2236
|
+
return Integration.visit(input, {
|
|
2237
|
+
pagerDutyConfiguration: (value) => ({
|
|
2238
|
+
pagerDutyConfiguration: serializeAws_restJson1PagerDutyConfiguration(value, context),
|
|
2239
|
+
}),
|
|
2240
|
+
_: (name, value) => ({ name: value }),
|
|
2241
|
+
});
|
|
2242
|
+
};
|
|
2243
|
+
const serializeAws_restJson1Integrations = (input, context) => {
|
|
2244
|
+
return input
|
|
2245
|
+
.filter((e) => e != null)
|
|
2246
|
+
.map((entry) => {
|
|
2247
|
+
return serializeAws_restJson1Integration(entry, context);
|
|
2248
|
+
});
|
|
2249
|
+
};
|
|
2228
2250
|
const serializeAws_restJson1ItemIdentifier = (input, context) => {
|
|
2229
2251
|
return {
|
|
2230
2252
|
...(input.type != null && { type: input.type }),
|
|
@@ -2235,6 +2257,9 @@ const serializeAws_restJson1ItemValue = (input, context) => {
|
|
|
2235
2257
|
return ItemValue.visit(input, {
|
|
2236
2258
|
arn: (value) => ({ arn: value }),
|
|
2237
2259
|
metricDefinition: (value) => ({ metricDefinition: value }),
|
|
2260
|
+
pagerDutyIncidentDetail: (value) => ({
|
|
2261
|
+
pagerDutyIncidentDetail: serializeAws_restJson1PagerDutyIncidentDetail(value, context),
|
|
2262
|
+
}),
|
|
2238
2263
|
url: (value) => ({ url: value }),
|
|
2239
2264
|
_: (name, value) => ({ name: value }),
|
|
2240
2265
|
});
|
|
@@ -2252,15 +2277,34 @@ const serializeAws_restJson1NotificationTargetSet = (input, context) => {
|
|
|
2252
2277
|
return serializeAws_restJson1NotificationTargetItem(entry, context);
|
|
2253
2278
|
});
|
|
2254
2279
|
};
|
|
2280
|
+
const serializeAws_restJson1PagerDutyConfiguration = (input, context) => {
|
|
2281
|
+
return {
|
|
2282
|
+
...(input.name != null && { name: input.name }),
|
|
2283
|
+
...(input.pagerDutyIncidentConfiguration != null && {
|
|
2284
|
+
pagerDutyIncidentConfiguration: serializeAws_restJson1PagerDutyIncidentConfiguration(input.pagerDutyIncidentConfiguration, context),
|
|
2285
|
+
}),
|
|
2286
|
+
...(input.secretId != null && { secretId: input.secretId }),
|
|
2287
|
+
};
|
|
2288
|
+
};
|
|
2289
|
+
const serializeAws_restJson1PagerDutyIncidentConfiguration = (input, context) => {
|
|
2290
|
+
return {
|
|
2291
|
+
...(input.serviceId != null && { serviceId: input.serviceId }),
|
|
2292
|
+
};
|
|
2293
|
+
};
|
|
2294
|
+
const serializeAws_restJson1PagerDutyIncidentDetail = (input, context) => {
|
|
2295
|
+
return {
|
|
2296
|
+
...(input.autoResolve != null && { autoResolve: input.autoResolve }),
|
|
2297
|
+
...(input.id != null && { id: input.id }),
|
|
2298
|
+
...(input.secretId != null && { secretId: input.secretId }),
|
|
2299
|
+
};
|
|
2300
|
+
};
|
|
2255
2301
|
const serializeAws_restJson1RegionMapInput = (input, context) => {
|
|
2256
2302
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2257
2303
|
if (value === null) {
|
|
2258
2304
|
return acc;
|
|
2259
2305
|
}
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
[key]: serializeAws_restJson1RegionMapInputValue(value, context),
|
|
2263
|
-
};
|
|
2306
|
+
acc[key] = serializeAws_restJson1RegionMapInputValue(value, context);
|
|
2307
|
+
return acc;
|
|
2264
2308
|
}, {});
|
|
2265
2309
|
};
|
|
2266
2310
|
const serializeAws_restJson1RegionMapInputValue = (input, context) => {
|
|
@@ -2306,10 +2350,8 @@ const serializeAws_restJson1SsmParameters = (input, context) => {
|
|
|
2306
2350
|
if (value === null) {
|
|
2307
2351
|
return acc;
|
|
2308
2352
|
}
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
[key]: serializeAws_restJson1SsmParameterValues(value, context),
|
|
2312
|
-
};
|
|
2353
|
+
acc[key] = serializeAws_restJson1SsmParameterValues(value, context);
|
|
2354
|
+
return acc;
|
|
2313
2355
|
}, {});
|
|
2314
2356
|
};
|
|
2315
2357
|
const serializeAws_restJson1SsmParameterValues = (input, context) => {
|
|
@@ -2331,10 +2373,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
2331
2373
|
if (value === null) {
|
|
2332
2374
|
return acc;
|
|
2333
2375
|
}
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
[key]: value,
|
|
2337
|
-
};
|
|
2376
|
+
acc[key] = value;
|
|
2377
|
+
return acc;
|
|
2338
2378
|
}, {});
|
|
2339
2379
|
};
|
|
2340
2380
|
const serializeAws_restJson1TagMapUpdate = (input, context) => {
|
|
@@ -2342,10 +2382,8 @@ const serializeAws_restJson1TagMapUpdate = (input, context) => {
|
|
|
2342
2382
|
if (value === null) {
|
|
2343
2383
|
return acc;
|
|
2344
2384
|
}
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
[key]: value,
|
|
2348
|
-
};
|
|
2385
|
+
acc[key] = value;
|
|
2386
|
+
return acc;
|
|
2349
2387
|
}, {});
|
|
2350
2388
|
};
|
|
2351
2389
|
const serializeAws_restJson1TriggerDetails = (input, context) => {
|
|
@@ -2435,10 +2473,8 @@ const deserializeAws_restJson1DynamicSsmParameters = (output, context) => {
|
|
|
2435
2473
|
if (value === null) {
|
|
2436
2474
|
return acc;
|
|
2437
2475
|
}
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
[key]: deserializeAws_restJson1DynamicSsmParameterValue(__expectUnion(value), context),
|
|
2441
|
-
};
|
|
2476
|
+
acc[key] = deserializeAws_restJson1DynamicSsmParameterValue(__expectUnion(value), context);
|
|
2477
|
+
return acc;
|
|
2442
2478
|
}, {});
|
|
2443
2479
|
};
|
|
2444
2480
|
const deserializeAws_restJson1DynamicSsmParameterValue = (output, context) => {
|
|
@@ -2586,6 +2622,25 @@ const deserializeAws_restJson1IncidentTemplate = (output, context) => {
|
|
|
2586
2622
|
title: __expectString(output.title),
|
|
2587
2623
|
};
|
|
2588
2624
|
};
|
|
2625
|
+
const deserializeAws_restJson1Integration = (output, context) => {
|
|
2626
|
+
if (output.pagerDutyConfiguration != null) {
|
|
2627
|
+
return {
|
|
2628
|
+
pagerDutyConfiguration: deserializeAws_restJson1PagerDutyConfiguration(output.pagerDutyConfiguration, context),
|
|
2629
|
+
};
|
|
2630
|
+
}
|
|
2631
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2632
|
+
};
|
|
2633
|
+
const deserializeAws_restJson1Integrations = (output, context) => {
|
|
2634
|
+
const retVal = (output || [])
|
|
2635
|
+
.filter((e) => e != null)
|
|
2636
|
+
.map((entry) => {
|
|
2637
|
+
if (entry === null) {
|
|
2638
|
+
return null;
|
|
2639
|
+
}
|
|
2640
|
+
return deserializeAws_restJson1Integration(__expectUnion(entry), context);
|
|
2641
|
+
});
|
|
2642
|
+
return retVal;
|
|
2643
|
+
};
|
|
2589
2644
|
const deserializeAws_restJson1ItemIdentifier = (output, context) => {
|
|
2590
2645
|
return {
|
|
2591
2646
|
type: __expectString(output.type),
|
|
@@ -2599,6 +2654,11 @@ const deserializeAws_restJson1ItemValue = (output, context) => {
|
|
|
2599
2654
|
if (__expectString(output.metricDefinition) !== undefined) {
|
|
2600
2655
|
return { metricDefinition: __expectString(output.metricDefinition) };
|
|
2601
2656
|
}
|
|
2657
|
+
if (output.pagerDutyIncidentDetail != null) {
|
|
2658
|
+
return {
|
|
2659
|
+
pagerDutyIncidentDetail: deserializeAws_restJson1PagerDutyIncidentDetail(output.pagerDutyIncidentDetail, context),
|
|
2660
|
+
};
|
|
2661
|
+
}
|
|
2602
2662
|
if (__expectString(output.url) !== undefined) {
|
|
2603
2663
|
return { url: __expectString(output.url) };
|
|
2604
2664
|
}
|
|
@@ -2621,6 +2681,27 @@ const deserializeAws_restJson1NotificationTargetSet = (output, context) => {
|
|
|
2621
2681
|
});
|
|
2622
2682
|
return retVal;
|
|
2623
2683
|
};
|
|
2684
|
+
const deserializeAws_restJson1PagerDutyConfiguration = (output, context) => {
|
|
2685
|
+
return {
|
|
2686
|
+
name: __expectString(output.name),
|
|
2687
|
+
pagerDutyIncidentConfiguration: output.pagerDutyIncidentConfiguration != null
|
|
2688
|
+
? deserializeAws_restJson1PagerDutyIncidentConfiguration(output.pagerDutyIncidentConfiguration, context)
|
|
2689
|
+
: undefined,
|
|
2690
|
+
secretId: __expectString(output.secretId),
|
|
2691
|
+
};
|
|
2692
|
+
};
|
|
2693
|
+
const deserializeAws_restJson1PagerDutyIncidentConfiguration = (output, context) => {
|
|
2694
|
+
return {
|
|
2695
|
+
serviceId: __expectString(output.serviceId),
|
|
2696
|
+
};
|
|
2697
|
+
};
|
|
2698
|
+
const deserializeAws_restJson1PagerDutyIncidentDetail = (output, context) => {
|
|
2699
|
+
return {
|
|
2700
|
+
autoResolve: __expectBoolean(output.autoResolve),
|
|
2701
|
+
id: __expectString(output.id),
|
|
2702
|
+
secretId: __expectString(output.secretId),
|
|
2703
|
+
};
|
|
2704
|
+
};
|
|
2624
2705
|
const deserializeAws_restJson1RegionInfo = (output, context) => {
|
|
2625
2706
|
return {
|
|
2626
2707
|
sseKmsKeyId: __expectString(output.sseKmsKeyId),
|
|
@@ -2636,10 +2717,8 @@ const deserializeAws_restJson1RegionInfoMap = (output, context) => {
|
|
|
2636
2717
|
if (value === null) {
|
|
2637
2718
|
return acc;
|
|
2638
2719
|
}
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
[key]: deserializeAws_restJson1RegionInfo(value, context),
|
|
2642
|
-
};
|
|
2720
|
+
acc[key] = deserializeAws_restJson1RegionInfo(value, context);
|
|
2721
|
+
return acc;
|
|
2643
2722
|
}, {});
|
|
2644
2723
|
};
|
|
2645
2724
|
const deserializeAws_restJson1RelatedItem = (output, context) => {
|
|
@@ -2740,10 +2819,8 @@ const deserializeAws_restJson1SsmParameters = (output, context) => {
|
|
|
2740
2819
|
if (value === null) {
|
|
2741
2820
|
return acc;
|
|
2742
2821
|
}
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
[key]: deserializeAws_restJson1SsmParameterValues(value, context),
|
|
2746
|
-
};
|
|
2822
|
+
acc[key] = deserializeAws_restJson1SsmParameterValues(value, context);
|
|
2823
|
+
return acc;
|
|
2747
2824
|
}, {});
|
|
2748
2825
|
};
|
|
2749
2826
|
const deserializeAws_restJson1SsmParameterValues = (output, context) => {
|
|
@@ -2762,10 +2839,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2762
2839
|
if (value === null) {
|
|
2763
2840
|
return acc;
|
|
2764
2841
|
}
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
[key]: __expectString(value),
|
|
2768
|
-
};
|
|
2842
|
+
acc[key] = __expectString(value);
|
|
2843
|
+
return acc;
|
|
2769
2844
|
}, {});
|
|
2770
2845
|
};
|
|
2771
2846
|
const deserializeAws_restJson1TimelineEvent = (output, context) => {
|
|
@@ -450,6 +450,58 @@ export interface IncidentTemplate {
|
|
|
450
450
|
*/
|
|
451
451
|
incidentTags?: Record<string, string>;
|
|
452
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
* <p>Details about the PagerDuty service where the response plan creates an
|
|
455
|
+
* incident.</p>
|
|
456
|
+
*/
|
|
457
|
+
export interface PagerDutyIncidentConfiguration {
|
|
458
|
+
/**
|
|
459
|
+
* <p>The ID of the PagerDuty service that the response plan associates with an incident
|
|
460
|
+
* when it launches.</p>
|
|
461
|
+
*/
|
|
462
|
+
serviceId: string | undefined;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* <p>Details about the PagerDuty configuration for a response plan.</p>
|
|
466
|
+
*/
|
|
467
|
+
export interface PagerDutyConfiguration {
|
|
468
|
+
/**
|
|
469
|
+
* <p>The name of the PagerDuty configuration.</p>
|
|
470
|
+
*/
|
|
471
|
+
name: string | undefined;
|
|
472
|
+
/**
|
|
473
|
+
* <p>The ID of the Amazon Web Services Secrets Manager secret that stores your PagerDuty key, either a General Access REST API Key or
|
|
474
|
+
* User Token REST API Key, and other user credentials.</p>
|
|
475
|
+
*/
|
|
476
|
+
secretId: string | undefined;
|
|
477
|
+
/**
|
|
478
|
+
* <p>Details about the PagerDuty service associated with the configuration.</p>
|
|
479
|
+
*/
|
|
480
|
+
pagerDutyIncidentConfiguration: PagerDutyIncidentConfiguration | undefined;
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
* <p>Information about third-party services integrated into a response plan.</p>
|
|
484
|
+
*/
|
|
485
|
+
export declare type Integration = Integration.PagerDutyConfigurationMember | Integration.$UnknownMember;
|
|
486
|
+
export declare namespace Integration {
|
|
487
|
+
/**
|
|
488
|
+
* <p>Information about the PagerDuty service where the response plan creates an
|
|
489
|
+
* incident.</p>
|
|
490
|
+
*/
|
|
491
|
+
interface PagerDutyConfigurationMember {
|
|
492
|
+
pagerDutyConfiguration: PagerDutyConfiguration;
|
|
493
|
+
$unknown?: never;
|
|
494
|
+
}
|
|
495
|
+
interface $UnknownMember {
|
|
496
|
+
pagerDutyConfiguration?: never;
|
|
497
|
+
$unknown: [string, any];
|
|
498
|
+
}
|
|
499
|
+
interface Visitor<T> {
|
|
500
|
+
pagerDutyConfiguration: (value: PagerDutyConfiguration) => T;
|
|
501
|
+
_: (name: string, value: any) => T;
|
|
502
|
+
}
|
|
503
|
+
const visit: <T>(value: Integration, visitor: Visitor<T>) => T;
|
|
504
|
+
}
|
|
453
505
|
export interface CreateResponsePlanInput {
|
|
454
506
|
/**
|
|
455
507
|
* <p>A token ensuring that the operation is called only once with the specified
|
|
@@ -486,6 +538,10 @@ export interface CreateResponsePlanInput {
|
|
|
486
538
|
* <p>A list of tags that you are adding to the response plan.</p>
|
|
487
539
|
*/
|
|
488
540
|
tags?: Record<string, string>;
|
|
541
|
+
/**
|
|
542
|
+
* <p>Information about third-party services integrated into the response plan.</p>
|
|
543
|
+
*/
|
|
544
|
+
integrations?: Integration[];
|
|
489
545
|
}
|
|
490
546
|
export interface CreateResponsePlanOutput {
|
|
491
547
|
/**
|
|
@@ -514,8 +570,7 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
514
570
|
}
|
|
515
571
|
/**
|
|
516
572
|
* <p>An item referenced in a <code>TimelineEvent</code> that is involved in or somehow
|
|
517
|
-
* associated with an incident. You can specify an Amazon Resource Name (ARN) for an Amazon Web Services
|
|
518
|
-
* resource or a <code>RelatedItem</code> ID.</p>
|
|
573
|
+
* associated with an incident. You can specify an Amazon Resource Name (ARN) for an Amazon Web Services resource or a <code>RelatedItem</code> ID.</p>
|
|
519
574
|
*/
|
|
520
575
|
export declare type EventReference = EventReference.RelatedItemIdMember | EventReference.ResourceMember | EventReference.$UnknownMember;
|
|
521
576
|
export declare namespace EventReference {
|
|
@@ -573,7 +628,13 @@ export interface CreateTimelineEventInput {
|
|
|
573
628
|
*/
|
|
574
629
|
eventData: string | undefined;
|
|
575
630
|
/**
|
|
576
|
-
* <p>Adds one or more references to the <code>TimelineEvent</code>. A reference can be an
|
|
631
|
+
* <p>Adds one or more references to the <code>TimelineEvent</code>. A reference can be an
|
|
632
|
+
* Amazon Web Services resource involved in the incident or in some way associated with
|
|
633
|
+
* it. When you specify a reference, you enter the Amazon Resource Name (ARN) of the
|
|
634
|
+
* resource. You can also specify a related item. As an example, you could specify the ARN
|
|
635
|
+
* of an Amazon DynamoDB (DynamoDB) table. The table for this example is
|
|
636
|
+
* the resource. You could also specify a Amazon CloudWatch metric for that table. The
|
|
637
|
+
* metric is the related item.</p>
|
|
577
638
|
*/
|
|
578
639
|
eventReferences?: EventReference[];
|
|
579
640
|
}
|
|
@@ -989,6 +1050,11 @@ export interface GetResponsePlanOutput {
|
|
|
989
1050
|
* <p>The actions that this response plan takes at the beginning of the incident.</p>
|
|
990
1051
|
*/
|
|
991
1052
|
actions?: Action[];
|
|
1053
|
+
/**
|
|
1054
|
+
* <p>Information about third-party services integrated into the Incident Manager response
|
|
1055
|
+
* plan.</p>
|
|
1056
|
+
*/
|
|
1057
|
+
integrations?: Integration[];
|
|
992
1058
|
}
|
|
993
1059
|
export interface GetTimelineEventInput {
|
|
994
1060
|
/**
|
|
@@ -1087,10 +1153,31 @@ export declare enum ItemType {
|
|
|
1087
1153
|
PARENT = "PARENT",
|
|
1088
1154
|
TASK = "TASK"
|
|
1089
1155
|
}
|
|
1156
|
+
/**
|
|
1157
|
+
* <p>Details about the PagerDuty incident associated with an incident created by an
|
|
1158
|
+
* Incident Manager response plan.</p>
|
|
1159
|
+
*/
|
|
1160
|
+
export interface PagerDutyIncidentDetail {
|
|
1161
|
+
/**
|
|
1162
|
+
* <p>The ID of the incident associated with the PagerDuty service for the response
|
|
1163
|
+
* plan.</p>
|
|
1164
|
+
*/
|
|
1165
|
+
id: string | undefined;
|
|
1166
|
+
/**
|
|
1167
|
+
* <p>Indicates whether to resolve the PagerDuty incident when you resolve the associated
|
|
1168
|
+
* Incident Manager incident.</p>
|
|
1169
|
+
*/
|
|
1170
|
+
autoResolve?: boolean;
|
|
1171
|
+
/**
|
|
1172
|
+
* <p>The ID of the Amazon Web Services Secrets Manager secret that stores your PagerDuty key, either a General Access REST API Key or
|
|
1173
|
+
* User Token REST API Key, and other user credentials.</p>
|
|
1174
|
+
*/
|
|
1175
|
+
secretId?: string;
|
|
1176
|
+
}
|
|
1090
1177
|
/**
|
|
1091
1178
|
* <p>Describes a related item.</p>
|
|
1092
1179
|
*/
|
|
1093
|
-
export declare type ItemValue = ItemValue.ArnMember | ItemValue.MetricDefinitionMember | ItemValue.UrlMember | ItemValue.$UnknownMember;
|
|
1180
|
+
export declare type ItemValue = ItemValue.ArnMember | ItemValue.MetricDefinitionMember | ItemValue.PagerDutyIncidentDetailMember | ItemValue.UrlMember | ItemValue.$UnknownMember;
|
|
1094
1181
|
export declare namespace ItemValue {
|
|
1095
1182
|
/**
|
|
1096
1183
|
* <p>The Amazon Resource Name (ARN) of the related item, if the related item is an Amazon
|
|
@@ -1100,6 +1187,7 @@ export declare namespace ItemValue {
|
|
|
1100
1187
|
arn: string;
|
|
1101
1188
|
url?: never;
|
|
1102
1189
|
metricDefinition?: never;
|
|
1190
|
+
pagerDutyIncidentDetail?: never;
|
|
1103
1191
|
$unknown?: never;
|
|
1104
1192
|
}
|
|
1105
1193
|
/**
|
|
@@ -1109,6 +1197,7 @@ export declare namespace ItemValue {
|
|
|
1109
1197
|
arn?: never;
|
|
1110
1198
|
url: string;
|
|
1111
1199
|
metricDefinition?: never;
|
|
1200
|
+
pagerDutyIncidentDetail?: never;
|
|
1112
1201
|
$unknown?: never;
|
|
1113
1202
|
}
|
|
1114
1203
|
/**
|
|
@@ -1118,18 +1207,31 @@ export declare namespace ItemValue {
|
|
|
1118
1207
|
arn?: never;
|
|
1119
1208
|
url?: never;
|
|
1120
1209
|
metricDefinition: string;
|
|
1210
|
+
pagerDutyIncidentDetail?: never;
|
|
1211
|
+
$unknown?: never;
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* <p>Details about an incident that is associated with a PagerDuty incident.</p>
|
|
1215
|
+
*/
|
|
1216
|
+
interface PagerDutyIncidentDetailMember {
|
|
1217
|
+
arn?: never;
|
|
1218
|
+
url?: never;
|
|
1219
|
+
metricDefinition?: never;
|
|
1220
|
+
pagerDutyIncidentDetail: PagerDutyIncidentDetail;
|
|
1121
1221
|
$unknown?: never;
|
|
1122
1222
|
}
|
|
1123
1223
|
interface $UnknownMember {
|
|
1124
1224
|
arn?: never;
|
|
1125
1225
|
url?: never;
|
|
1126
1226
|
metricDefinition?: never;
|
|
1227
|
+
pagerDutyIncidentDetail?: never;
|
|
1127
1228
|
$unknown: [string, any];
|
|
1128
1229
|
}
|
|
1129
1230
|
interface Visitor<T> {
|
|
1130
1231
|
arn: (value: string) => T;
|
|
1131
1232
|
url: (value: string) => T;
|
|
1132
1233
|
metricDefinition: (value: string) => T;
|
|
1234
|
+
pagerDutyIncidentDetail: (value: PagerDutyIncidentDetail) => T;
|
|
1133
1235
|
_: (name: string, value: any) => T;
|
|
1134
1236
|
}
|
|
1135
1237
|
const visit: <T>(value: ItemValue, visitor: Visitor<T>) => T;
|
|
@@ -1807,6 +1909,10 @@ export interface UpdateResponsePlanInput {
|
|
|
1807
1909
|
* <code>TagResource</code> API action for the incident record resource.</p>
|
|
1808
1910
|
*/
|
|
1809
1911
|
incidentTemplateTags?: Record<string, string>;
|
|
1912
|
+
/**
|
|
1913
|
+
* <p>Information about third-party services integrated into the response plan.</p>
|
|
1914
|
+
*/
|
|
1915
|
+
integrations?: Integration[];
|
|
1810
1916
|
}
|
|
1811
1917
|
export interface UpdateResponsePlanOutput {
|
|
1812
1918
|
}
|
|
@@ -1839,7 +1945,13 @@ export interface UpdateTimelineEventInput {
|
|
|
1839
1945
|
*/
|
|
1840
1946
|
eventData?: string;
|
|
1841
1947
|
/**
|
|
1842
|
-
* <p>Updates all existing references in a <code>TimelineEvent</code>. A reference can be an
|
|
1948
|
+
* <p>Updates all existing references in a <code>TimelineEvent</code>. A reference can be an
|
|
1949
|
+
* Amazon Web Services resource involved in the incident or in some way associated with
|
|
1950
|
+
* it. When you specify a reference, you enter the Amazon Resource Name (ARN) of the
|
|
1951
|
+
* resource. You can also specify a related item. As an example, you could specify the ARN
|
|
1952
|
+
* of an Amazon DynamoDB (DynamoDB) table. The table for this example is
|
|
1953
|
+
* the resource. You could also specify a Amazon CloudWatch metric for that table. The
|
|
1954
|
+
* metric is the related item.</p>
|
|
1843
1955
|
* <important>
|
|
1844
1956
|
* <p>This update action overrides all existing references. If you want to keep existing
|
|
1845
1957
|
* references, you must specify them in the call. If you don't, this action removes
|
|
@@ -1906,6 +2018,18 @@ export declare const NotificationTargetItemFilterSensitiveLog: (obj: Notificatio
|
|
|
1906
2018
|
* @internal
|
|
1907
2019
|
*/
|
|
1908
2020
|
export declare const IncidentTemplateFilterSensitiveLog: (obj: IncidentTemplate) => any;
|
|
2021
|
+
/**
|
|
2022
|
+
* @internal
|
|
2023
|
+
*/
|
|
2024
|
+
export declare const PagerDutyIncidentConfigurationFilterSensitiveLog: (obj: PagerDutyIncidentConfiguration) => any;
|
|
2025
|
+
/**
|
|
2026
|
+
* @internal
|
|
2027
|
+
*/
|
|
2028
|
+
export declare const PagerDutyConfigurationFilterSensitiveLog: (obj: PagerDutyConfiguration) => any;
|
|
2029
|
+
/**
|
|
2030
|
+
* @internal
|
|
2031
|
+
*/
|
|
2032
|
+
export declare const IntegrationFilterSensitiveLog: (obj: Integration) => any;
|
|
1909
2033
|
/**
|
|
1910
2034
|
* @internal
|
|
1911
2035
|
*/
|
|
@@ -2046,6 +2170,10 @@ export declare const GetTimelineEventOutputFilterSensitiveLog: (obj: GetTimeline
|
|
|
2046
2170
|
* @internal
|
|
2047
2171
|
*/
|
|
2048
2172
|
export declare const IncidentRecordSummaryFilterSensitiveLog: (obj: IncidentRecordSummary) => any;
|
|
2173
|
+
/**
|
|
2174
|
+
* @internal
|
|
2175
|
+
*/
|
|
2176
|
+
export declare const PagerDutyIncidentDetailFilterSensitiveLog: (obj: PagerDutyIncidentDetail) => any;
|
|
2049
2177
|
/**
|
|
2050
2178
|
* @internal
|
|
2051
2179
|
*/
|
|
@@ -261,6 +261,32 @@ export interface IncidentTemplate {
|
|
|
261
261
|
notificationTargets?: NotificationTargetItem[];
|
|
262
262
|
incidentTags?: Record<string, string>;
|
|
263
263
|
}
|
|
264
|
+
export interface PagerDutyIncidentConfiguration {
|
|
265
|
+
serviceId: string | undefined;
|
|
266
|
+
}
|
|
267
|
+
export interface PagerDutyConfiguration {
|
|
268
|
+
name: string | undefined;
|
|
269
|
+
secretId: string | undefined;
|
|
270
|
+
pagerDutyIncidentConfiguration: PagerDutyIncidentConfiguration | undefined;
|
|
271
|
+
}
|
|
272
|
+
export declare type Integration =
|
|
273
|
+
| Integration.PagerDutyConfigurationMember
|
|
274
|
+
| Integration.$UnknownMember;
|
|
275
|
+
export declare namespace Integration {
|
|
276
|
+
interface PagerDutyConfigurationMember {
|
|
277
|
+
pagerDutyConfiguration: PagerDutyConfiguration;
|
|
278
|
+
$unknown?: never;
|
|
279
|
+
}
|
|
280
|
+
interface $UnknownMember {
|
|
281
|
+
pagerDutyConfiguration?: never;
|
|
282
|
+
$unknown: [string, any];
|
|
283
|
+
}
|
|
284
|
+
interface Visitor<T> {
|
|
285
|
+
pagerDutyConfiguration: (value: PagerDutyConfiguration) => T;
|
|
286
|
+
_: (name: string, value: any) => T;
|
|
287
|
+
}
|
|
288
|
+
const visit: <T>(value: Integration, visitor: Visitor<T>) => T;
|
|
289
|
+
}
|
|
264
290
|
export interface CreateResponsePlanInput {
|
|
265
291
|
clientToken?: string;
|
|
266
292
|
name: string | undefined;
|
|
@@ -270,6 +296,7 @@ export interface CreateResponsePlanInput {
|
|
|
270
296
|
engagements?: string[];
|
|
271
297
|
actions?: Action[];
|
|
272
298
|
tags?: Record<string, string>;
|
|
299
|
+
integrations?: Integration[];
|
|
273
300
|
}
|
|
274
301
|
export interface CreateResponsePlanOutput {
|
|
275
302
|
arn: string | undefined;
|
|
@@ -451,6 +478,7 @@ export interface GetResponsePlanOutput {
|
|
|
451
478
|
chatChannel?: ChatChannel;
|
|
452
479
|
engagements?: string[];
|
|
453
480
|
actions?: Action[];
|
|
481
|
+
integrations?: Integration[];
|
|
454
482
|
}
|
|
455
483
|
export interface GetTimelineEventInput {
|
|
456
484
|
incidentRecordArn: string | undefined;
|
|
@@ -488,9 +516,15 @@ export declare enum ItemType {
|
|
|
488
516
|
PARENT = "PARENT",
|
|
489
517
|
TASK = "TASK",
|
|
490
518
|
}
|
|
519
|
+
export interface PagerDutyIncidentDetail {
|
|
520
|
+
id: string | undefined;
|
|
521
|
+
autoResolve?: boolean;
|
|
522
|
+
secretId?: string;
|
|
523
|
+
}
|
|
491
524
|
export declare type ItemValue =
|
|
492
525
|
| ItemValue.ArnMember
|
|
493
526
|
| ItemValue.MetricDefinitionMember
|
|
527
|
+
| ItemValue.PagerDutyIncidentDetailMember
|
|
494
528
|
| ItemValue.UrlMember
|
|
495
529
|
| ItemValue.$UnknownMember;
|
|
496
530
|
export declare namespace ItemValue {
|
|
@@ -498,30 +532,42 @@ export declare namespace ItemValue {
|
|
|
498
532
|
arn: string;
|
|
499
533
|
url?: never;
|
|
500
534
|
metricDefinition?: never;
|
|
535
|
+
pagerDutyIncidentDetail?: never;
|
|
501
536
|
$unknown?: never;
|
|
502
537
|
}
|
|
503
538
|
interface UrlMember {
|
|
504
539
|
arn?: never;
|
|
505
540
|
url: string;
|
|
506
541
|
metricDefinition?: never;
|
|
542
|
+
pagerDutyIncidentDetail?: never;
|
|
507
543
|
$unknown?: never;
|
|
508
544
|
}
|
|
509
545
|
interface MetricDefinitionMember {
|
|
510
546
|
arn?: never;
|
|
511
547
|
url?: never;
|
|
512
548
|
metricDefinition: string;
|
|
549
|
+
pagerDutyIncidentDetail?: never;
|
|
550
|
+
$unknown?: never;
|
|
551
|
+
}
|
|
552
|
+
interface PagerDutyIncidentDetailMember {
|
|
553
|
+
arn?: never;
|
|
554
|
+
url?: never;
|
|
555
|
+
metricDefinition?: never;
|
|
556
|
+
pagerDutyIncidentDetail: PagerDutyIncidentDetail;
|
|
513
557
|
$unknown?: never;
|
|
514
558
|
}
|
|
515
559
|
interface $UnknownMember {
|
|
516
560
|
arn?: never;
|
|
517
561
|
url?: never;
|
|
518
562
|
metricDefinition?: never;
|
|
563
|
+
pagerDutyIncidentDetail?: never;
|
|
519
564
|
$unknown: [string, any];
|
|
520
565
|
}
|
|
521
566
|
interface Visitor<T> {
|
|
522
567
|
arn: (value: string) => T;
|
|
523
568
|
url: (value: string) => T;
|
|
524
569
|
metricDefinition: (value: string) => T;
|
|
570
|
+
pagerDutyIncidentDetail: (value: PagerDutyIncidentDetail) => T;
|
|
525
571
|
_: (name: string, value: any) => T;
|
|
526
572
|
}
|
|
527
573
|
const visit: <T>(value: ItemValue, visitor: Visitor<T>) => T;
|
|
@@ -729,6 +775,7 @@ export interface UpdateResponsePlanInput {
|
|
|
729
775
|
engagements?: string[];
|
|
730
776
|
actions?: Action[];
|
|
731
777
|
incidentTemplateTags?: Record<string, string>;
|
|
778
|
+
integrations?: Integration[];
|
|
732
779
|
}
|
|
733
780
|
export interface UpdateResponsePlanOutput {}
|
|
734
781
|
export interface UpdateTimelineEventInput {
|
|
@@ -777,6 +824,13 @@ export declare const NotificationTargetItemFilterSensitiveLog: (
|
|
|
777
824
|
export declare const IncidentTemplateFilterSensitiveLog: (
|
|
778
825
|
obj: IncidentTemplate
|
|
779
826
|
) => any;
|
|
827
|
+
export declare const PagerDutyIncidentConfigurationFilterSensitiveLog: (
|
|
828
|
+
obj: PagerDutyIncidentConfiguration
|
|
829
|
+
) => any;
|
|
830
|
+
export declare const PagerDutyConfigurationFilterSensitiveLog: (
|
|
831
|
+
obj: PagerDutyConfiguration
|
|
832
|
+
) => any;
|
|
833
|
+
export declare const IntegrationFilterSensitiveLog: (obj: Integration) => any;
|
|
780
834
|
export declare const CreateResponsePlanInputFilterSensitiveLog: (
|
|
781
835
|
obj: CreateResponsePlanInput
|
|
782
836
|
) => any;
|
|
@@ -876,6 +930,9 @@ export declare const GetTimelineEventOutputFilterSensitiveLog: (
|
|
|
876
930
|
export declare const IncidentRecordSummaryFilterSensitiveLog: (
|
|
877
931
|
obj: IncidentRecordSummary
|
|
878
932
|
) => any;
|
|
933
|
+
export declare const PagerDutyIncidentDetailFilterSensitiveLog: (
|
|
934
|
+
obj: PagerDutyIncidentDetail
|
|
935
|
+
) => any;
|
|
879
936
|
export declare const ItemValueFilterSensitiveLog: (obj: ItemValue) => any;
|
|
880
937
|
export declare const ItemIdentifierFilterSensitiveLog: (
|
|
881
938
|
obj: ItemIdentifier
|
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.
|
|
4
|
+
"version": "3.212.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,39 +19,39 @@
|
|
|
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.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.212.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.212.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.212.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.212.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.212.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.212.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.212.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.212.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.212.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.212.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.212.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.212.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.212.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.212.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.212.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.212.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.212.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.212.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.212.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.212.0",
|
|
42
|
+
"@aws-sdk/types": "3.212.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.212.0",
|
|
44
44
|
"@aws-sdk/util-base64": "3.208.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
-
"@aws-sdk/util-endpoints": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.212.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.212.0",
|
|
49
|
+
"@aws-sdk/util-endpoints": "3.212.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-browser": "3.212.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-node": "3.212.0",
|
|
52
52
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
53
53
|
"@aws-sdk/util-utf8-node": "3.208.0",
|
|
54
|
-
"@aws-sdk/util-waiter": "3.
|
|
54
|
+
"@aws-sdk/util-waiter": "3.212.0",
|
|
55
55
|
"tslib": "^2.3.1",
|
|
56
56
|
"uuid": "^8.3.2"
|
|
57
57
|
},
|