@aws-sdk/client-ssm-incidents 3.208.0 → 3.210.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 +36 -3
- package/dist-cjs/protocols/Aws_restJson1.js +48 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -1
- package/dist-es/models/models_0.js +32 -0
- package/dist-es/protocols/Aws_restJson1.js +49 -1
- package/dist-es/runtimeConfig.shared.js +2 -1
- package/dist-types/models/models_0.d.ts +70 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -3
- package/dist-types/ts3.4/models/models_0.d.ts +35 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -3
- package/package.json +11 -13
|
@@ -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 = void 0;
|
|
3
|
+
exports.DeleteRegionActionFilterSensitiveLog = exports.DeleteIncidentRecordOutputFilterSensitiveLog = exports.DeleteIncidentRecordInputFilterSensitiveLog = exports.CreateTimelineEventOutputFilterSensitiveLog = exports.CreateTimelineEventInputFilterSensitiveLog = exports.EventReferenceFilterSensitiveLog = exports.CreateResponsePlanOutputFilterSensitiveLog = exports.CreateResponsePlanInputFilterSensitiveLog = 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.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.TagResourceRequestFilterSensitiveLog = exports.StartIncidentOutputFilterSensitiveLog = exports.StartIncidentInputFilterSensitiveLog = exports.TriggerDetailsFilterSensitiveLog = exports.RelatedItemsUpdateFilterSensitiveLog = 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.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 = 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 = void 0;
|
|
6
6
|
const SSMIncidentsServiceException_1 = require("./SSMIncidentsServiceException");
|
|
7
7
|
class AccessDeniedException extends SSMIncidentsServiceException_1.SSMIncidentsServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -192,6 +192,16 @@ class ResourceNotFoundException extends SSMIncidentsServiceException_1.SSMIncide
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
195
|
+
var EventReference;
|
|
196
|
+
(function (EventReference) {
|
|
197
|
+
EventReference.visit = (value, visitor) => {
|
|
198
|
+
if (value.resource !== undefined)
|
|
199
|
+
return visitor.resource(value.resource);
|
|
200
|
+
if (value.relatedItemId !== undefined)
|
|
201
|
+
return visitor.relatedItemId(value.relatedItemId);
|
|
202
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
203
|
+
};
|
|
204
|
+
})(EventReference = exports.EventReference || (exports.EventReference = {}));
|
|
195
205
|
var IncidentRecordStatus;
|
|
196
206
|
(function (IncidentRecordStatus) {
|
|
197
207
|
IncidentRecordStatus["OPEN"] = "OPEN";
|
|
@@ -370,8 +380,20 @@ const CreateResponsePlanOutputFilterSensitiveLog = (obj) => ({
|
|
|
370
380
|
...obj,
|
|
371
381
|
});
|
|
372
382
|
exports.CreateResponsePlanOutputFilterSensitiveLog = CreateResponsePlanOutputFilterSensitiveLog;
|
|
383
|
+
const EventReferenceFilterSensitiveLog = (obj) => {
|
|
384
|
+
if (obj.resource !== undefined)
|
|
385
|
+
return { resource: obj.resource };
|
|
386
|
+
if (obj.relatedItemId !== undefined)
|
|
387
|
+
return { relatedItemId: obj.relatedItemId };
|
|
388
|
+
if (obj.$unknown !== undefined)
|
|
389
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
390
|
+
};
|
|
391
|
+
exports.EventReferenceFilterSensitiveLog = EventReferenceFilterSensitiveLog;
|
|
373
392
|
const CreateTimelineEventInputFilterSensitiveLog = (obj) => ({
|
|
374
393
|
...obj,
|
|
394
|
+
...(obj.eventReferences && {
|
|
395
|
+
eventReferences: obj.eventReferences.map((item) => (0, exports.EventReferenceFilterSensitiveLog)(item)),
|
|
396
|
+
}),
|
|
375
397
|
});
|
|
376
398
|
exports.CreateTimelineEventInputFilterSensitiveLog = CreateTimelineEventInputFilterSensitiveLog;
|
|
377
399
|
const CreateTimelineEventOutputFilterSensitiveLog = (obj) => ({
|
|
@@ -424,6 +446,9 @@ const DeleteTimelineEventOutputFilterSensitiveLog = (obj) => ({
|
|
|
424
446
|
exports.DeleteTimelineEventOutputFilterSensitiveLog = DeleteTimelineEventOutputFilterSensitiveLog;
|
|
425
447
|
const EventSummaryFilterSensitiveLog = (obj) => ({
|
|
426
448
|
...obj,
|
|
449
|
+
...(obj.eventReferences && {
|
|
450
|
+
eventReferences: obj.eventReferences.map((item) => (0, exports.EventReferenceFilterSensitiveLog)(item)),
|
|
451
|
+
}),
|
|
427
452
|
});
|
|
428
453
|
exports.EventSummaryFilterSensitiveLog = EventSummaryFilterSensitiveLog;
|
|
429
454
|
const FilterFilterSensitiveLog = (obj) => ({
|
|
@@ -500,10 +525,14 @@ const GetTimelineEventInputFilterSensitiveLog = (obj) => ({
|
|
|
500
525
|
exports.GetTimelineEventInputFilterSensitiveLog = GetTimelineEventInputFilterSensitiveLog;
|
|
501
526
|
const TimelineEventFilterSensitiveLog = (obj) => ({
|
|
502
527
|
...obj,
|
|
528
|
+
...(obj.eventReferences && {
|
|
529
|
+
eventReferences: obj.eventReferences.map((item) => (0, exports.EventReferenceFilterSensitiveLog)(item)),
|
|
530
|
+
}),
|
|
503
531
|
});
|
|
504
532
|
exports.TimelineEventFilterSensitiveLog = TimelineEventFilterSensitiveLog;
|
|
505
533
|
const GetTimelineEventOutputFilterSensitiveLog = (obj) => ({
|
|
506
534
|
...obj,
|
|
535
|
+
...(obj.event && { event: (0, exports.TimelineEventFilterSensitiveLog)(obj.event) }),
|
|
507
536
|
});
|
|
508
537
|
exports.GetTimelineEventOutputFilterSensitiveLog = GetTimelineEventOutputFilterSensitiveLog;
|
|
509
538
|
const IncidentRecordSummaryFilterSensitiveLog = (obj) => ({
|
|
@@ -584,6 +613,7 @@ const ListTimelineEventsInputFilterSensitiveLog = (obj) => ({
|
|
|
584
613
|
exports.ListTimelineEventsInputFilterSensitiveLog = ListTimelineEventsInputFilterSensitiveLog;
|
|
585
614
|
const ListTimelineEventsOutputFilterSensitiveLog = (obj) => ({
|
|
586
615
|
...obj,
|
|
616
|
+
...(obj.eventSummaries && { eventSummaries: obj.eventSummaries.map((item) => (0, exports.EventSummaryFilterSensitiveLog)(item)) }),
|
|
587
617
|
});
|
|
588
618
|
exports.ListTimelineEventsOutputFilterSensitiveLog = ListTimelineEventsOutputFilterSensitiveLog;
|
|
589
619
|
const PutResourcePolicyInputFilterSensitiveLog = (obj) => ({
|
|
@@ -694,6 +724,9 @@ const UpdateResponsePlanOutputFilterSensitiveLog = (obj) => ({
|
|
|
694
724
|
exports.UpdateResponsePlanOutputFilterSensitiveLog = UpdateResponsePlanOutputFilterSensitiveLog;
|
|
695
725
|
const UpdateTimelineEventInputFilterSensitiveLog = (obj) => ({
|
|
696
726
|
...obj,
|
|
727
|
+
...(obj.eventReferences && {
|
|
728
|
+
eventReferences: obj.eventReferences.map((item) => (0, exports.EventReferenceFilterSensitiveLog)(item)),
|
|
729
|
+
}),
|
|
697
730
|
});
|
|
698
731
|
exports.UpdateTimelineEventInputFilterSensitiveLog = UpdateTimelineEventInputFilterSensitiveLog;
|
|
699
732
|
const UpdateTimelineEventOutputFilterSensitiveLog = (obj) => ({
|
|
@@ -70,6 +70,9 @@ const serializeAws_restJson1CreateTimelineEventCommand = async (input, context)
|
|
|
70
70
|
body = JSON.stringify({
|
|
71
71
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
72
72
|
...(input.eventData != null && { eventData: input.eventData }),
|
|
73
|
+
...(input.eventReferences != null && {
|
|
74
|
+
eventReferences: serializeAws_restJson1EventReferenceList(input.eventReferences, context),
|
|
75
|
+
}),
|
|
73
76
|
...(input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
|
|
74
77
|
...(input.eventType != null && { eventType: input.eventType }),
|
|
75
78
|
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
@@ -676,6 +679,9 @@ const serializeAws_restJson1UpdateTimelineEventCommand = async (input, context)
|
|
|
676
679
|
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
677
680
|
...(input.eventData != null && { eventData: input.eventData }),
|
|
678
681
|
...(input.eventId != null && { eventId: input.eventId }),
|
|
682
|
+
...(input.eventReferences != null && {
|
|
683
|
+
eventReferences: serializeAws_restJson1EventReferenceList(input.eventReferences, context),
|
|
684
|
+
}),
|
|
679
685
|
...(input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
|
|
680
686
|
...(input.eventType != null && { eventType: input.eventType }),
|
|
681
687
|
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
@@ -2235,6 +2241,20 @@ const serializeAws_restJson1EngagementSet = (input, context) => {
|
|
|
2235
2241
|
return entry;
|
|
2236
2242
|
});
|
|
2237
2243
|
};
|
|
2244
|
+
const serializeAws_restJson1EventReference = (input, context) => {
|
|
2245
|
+
return models_0_1.EventReference.visit(input, {
|
|
2246
|
+
relatedItemId: (value) => ({ relatedItemId: value }),
|
|
2247
|
+
resource: (value) => ({ resource: value }),
|
|
2248
|
+
_: (name, value) => ({ name: value }),
|
|
2249
|
+
});
|
|
2250
|
+
};
|
|
2251
|
+
const serializeAws_restJson1EventReferenceList = (input, context) => {
|
|
2252
|
+
return input
|
|
2253
|
+
.filter((e) => e != null)
|
|
2254
|
+
.map((entry) => {
|
|
2255
|
+
return serializeAws_restJson1EventReference(entry, context);
|
|
2256
|
+
});
|
|
2257
|
+
};
|
|
2238
2258
|
const serializeAws_restJson1Filter = (input, context) => {
|
|
2239
2259
|
return {
|
|
2240
2260
|
...(input.condition != null && { condition: serializeAws_restJson1Condition(input.condition, context) }),
|
|
@@ -2312,6 +2332,7 @@ const serializeAws_restJson1RegionMapInputValue = (input, context) => {
|
|
|
2312
2332
|
};
|
|
2313
2333
|
const serializeAws_restJson1RelatedItem = (input, context) => {
|
|
2314
2334
|
return {
|
|
2335
|
+
...(input.generatedId != null && { generatedId: input.generatedId }),
|
|
2315
2336
|
...(input.identifier != null && { identifier: serializeAws_restJson1ItemIdentifier(input.identifier, context) }),
|
|
2316
2337
|
...(input.title != null && { title: input.title }),
|
|
2317
2338
|
};
|
|
@@ -2502,9 +2523,32 @@ const deserializeAws_restJson1EngagementSet = (output, context) => {
|
|
|
2502
2523
|
});
|
|
2503
2524
|
return retVal;
|
|
2504
2525
|
};
|
|
2526
|
+
const deserializeAws_restJson1EventReference = (output, context) => {
|
|
2527
|
+
if ((0, smithy_client_1.expectString)(output.relatedItemId) !== undefined) {
|
|
2528
|
+
return { relatedItemId: (0, smithy_client_1.expectString)(output.relatedItemId) };
|
|
2529
|
+
}
|
|
2530
|
+
if ((0, smithy_client_1.expectString)(output.resource) !== undefined) {
|
|
2531
|
+
return { resource: (0, smithy_client_1.expectString)(output.resource) };
|
|
2532
|
+
}
|
|
2533
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2534
|
+
};
|
|
2535
|
+
const deserializeAws_restJson1EventReferenceList = (output, context) => {
|
|
2536
|
+
const retVal = (output || [])
|
|
2537
|
+
.filter((e) => e != null)
|
|
2538
|
+
.map((entry) => {
|
|
2539
|
+
if (entry === null) {
|
|
2540
|
+
return null;
|
|
2541
|
+
}
|
|
2542
|
+
return deserializeAws_restJson1EventReference((0, smithy_client_1.expectUnion)(entry), context);
|
|
2543
|
+
});
|
|
2544
|
+
return retVal;
|
|
2545
|
+
};
|
|
2505
2546
|
const deserializeAws_restJson1EventSummary = (output, context) => {
|
|
2506
2547
|
return {
|
|
2507
2548
|
eventId: (0, smithy_client_1.expectString)(output.eventId),
|
|
2549
|
+
eventReferences: output.eventReferences != null
|
|
2550
|
+
? deserializeAws_restJson1EventReferenceList(output.eventReferences, context)
|
|
2551
|
+
: undefined,
|
|
2508
2552
|
eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime))) : undefined,
|
|
2509
2553
|
eventType: (0, smithy_client_1.expectString)(output.eventType),
|
|
2510
2554
|
eventUpdatedTime: output.eventUpdatedTime != null
|
|
@@ -2662,6 +2706,7 @@ const deserializeAws_restJson1RegionInfoMap = (output, context) => {
|
|
|
2662
2706
|
};
|
|
2663
2707
|
const deserializeAws_restJson1RelatedItem = (output, context) => {
|
|
2664
2708
|
return {
|
|
2709
|
+
generatedId: (0, smithy_client_1.expectString)(output.generatedId),
|
|
2665
2710
|
identifier: output.identifier != null ? deserializeAws_restJson1ItemIdentifier(output.identifier, context) : undefined,
|
|
2666
2711
|
title: (0, smithy_client_1.expectString)(output.title),
|
|
2667
2712
|
};
|
|
@@ -2789,6 +2834,9 @@ const deserializeAws_restJson1TimelineEvent = (output, context) => {
|
|
|
2789
2834
|
return {
|
|
2790
2835
|
eventData: (0, smithy_client_1.expectString)(output.eventData),
|
|
2791
2836
|
eventId: (0, smithy_client_1.expectString)(output.eventId),
|
|
2837
|
+
eventReferences: output.eventReferences != null
|
|
2838
|
+
? deserializeAws_restJson1EventReferenceList(output.eventReferences, context)
|
|
2839
|
+
: undefined,
|
|
2792
2840
|
eventTime: output.eventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.eventTime))) : undefined,
|
|
2793
2841
|
eventType: (0, smithy_client_1.expectString)(output.eventType),
|
|
2794
2842
|
eventUpdatedTime: output.eventUpdatedTime != null
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
6
|
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
6
7
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
@@ -10,7 +11,7 @@ const getRuntimeConfig = (config) => ({
|
|
|
10
11
|
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
11
12
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
13
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
13
|
-
logger: config?.logger ??
|
|
14
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
14
15
|
serviceId: config?.serviceId ?? "SSM Incidents",
|
|
15
16
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
16
17
|
});
|
|
@@ -180,6 +180,16 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
180
180
|
this.resourceType = opts.resourceType;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
+
export var EventReference;
|
|
184
|
+
(function (EventReference) {
|
|
185
|
+
EventReference.visit = (value, visitor) => {
|
|
186
|
+
if (value.resource !== undefined)
|
|
187
|
+
return visitor.resource(value.resource);
|
|
188
|
+
if (value.relatedItemId !== undefined)
|
|
189
|
+
return visitor.relatedItemId(value.relatedItemId);
|
|
190
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
191
|
+
};
|
|
192
|
+
})(EventReference || (EventReference = {}));
|
|
183
193
|
export var IncidentRecordStatus;
|
|
184
194
|
(function (IncidentRecordStatus) {
|
|
185
195
|
IncidentRecordStatus["OPEN"] = "OPEN";
|
|
@@ -342,8 +352,19 @@ export const CreateResponsePlanInputFilterSensitiveLog = (obj) => ({
|
|
|
342
352
|
export const CreateResponsePlanOutputFilterSensitiveLog = (obj) => ({
|
|
343
353
|
...obj,
|
|
344
354
|
});
|
|
355
|
+
export const EventReferenceFilterSensitiveLog = (obj) => {
|
|
356
|
+
if (obj.resource !== undefined)
|
|
357
|
+
return { resource: obj.resource };
|
|
358
|
+
if (obj.relatedItemId !== undefined)
|
|
359
|
+
return { relatedItemId: obj.relatedItemId };
|
|
360
|
+
if (obj.$unknown !== undefined)
|
|
361
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
362
|
+
};
|
|
345
363
|
export const CreateTimelineEventInputFilterSensitiveLog = (obj) => ({
|
|
346
364
|
...obj,
|
|
365
|
+
...(obj.eventReferences && {
|
|
366
|
+
eventReferences: obj.eventReferences.map((item) => EventReferenceFilterSensitiveLog(item)),
|
|
367
|
+
}),
|
|
347
368
|
});
|
|
348
369
|
export const CreateTimelineEventOutputFilterSensitiveLog = (obj) => ({
|
|
349
370
|
...obj,
|
|
@@ -383,6 +404,9 @@ export const DeleteTimelineEventOutputFilterSensitiveLog = (obj) => ({
|
|
|
383
404
|
});
|
|
384
405
|
export const EventSummaryFilterSensitiveLog = (obj) => ({
|
|
385
406
|
...obj,
|
|
407
|
+
...(obj.eventReferences && {
|
|
408
|
+
eventReferences: obj.eventReferences.map((item) => EventReferenceFilterSensitiveLog(item)),
|
|
409
|
+
}),
|
|
386
410
|
});
|
|
387
411
|
export const FilterFilterSensitiveLog = (obj) => ({
|
|
388
412
|
...obj,
|
|
@@ -443,9 +467,13 @@ export const GetTimelineEventInputFilterSensitiveLog = (obj) => ({
|
|
|
443
467
|
});
|
|
444
468
|
export const TimelineEventFilterSensitiveLog = (obj) => ({
|
|
445
469
|
...obj,
|
|
470
|
+
...(obj.eventReferences && {
|
|
471
|
+
eventReferences: obj.eventReferences.map((item) => EventReferenceFilterSensitiveLog(item)),
|
|
472
|
+
}),
|
|
446
473
|
});
|
|
447
474
|
export const GetTimelineEventOutputFilterSensitiveLog = (obj) => ({
|
|
448
475
|
...obj,
|
|
476
|
+
...(obj.event && { event: TimelineEventFilterSensitiveLog(obj.event) }),
|
|
449
477
|
});
|
|
450
478
|
export const IncidentRecordSummaryFilterSensitiveLog = (obj) => ({
|
|
451
479
|
...obj,
|
|
@@ -509,6 +537,7 @@ export const ListTimelineEventsInputFilterSensitiveLog = (obj) => ({
|
|
|
509
537
|
});
|
|
510
538
|
export const ListTimelineEventsOutputFilterSensitiveLog = (obj) => ({
|
|
511
539
|
...obj,
|
|
540
|
+
...(obj.eventSummaries && { eventSummaries: obj.eventSummaries.map((item) => EventSummaryFilterSensitiveLog(item)) }),
|
|
512
541
|
});
|
|
513
542
|
export const PutResourcePolicyInputFilterSensitiveLog = (obj) => ({
|
|
514
543
|
...obj,
|
|
@@ -597,6 +626,9 @@ export const UpdateResponsePlanOutputFilterSensitiveLog = (obj) => ({
|
|
|
597
626
|
});
|
|
598
627
|
export const UpdateTimelineEventInputFilterSensitiveLog = (obj) => ({
|
|
599
628
|
...obj,
|
|
629
|
+
...(obj.eventReferences && {
|
|
630
|
+
eventReferences: obj.eventReferences.map((item) => EventReferenceFilterSensitiveLog(item)),
|
|
631
|
+
}),
|
|
600
632
|
});
|
|
601
633
|
export const UpdateTimelineEventOutputFilterSensitiveLog = (obj) => ({
|
|
602
634
|
...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, InternalServerException, ItemValue, NotificationTargetItem, RelatedItemsUpdate, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UpdateReplicationSetAction, ValidationException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, Action, AttributeValueList, ChatChannel, Condition, ConflictException, DynamicSsmParameterValue, EventReference, 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();
|
|
@@ -64,6 +64,9 @@ export const serializeAws_restJson1CreateTimelineEventCommand = async (input, co
|
|
|
64
64
|
body = JSON.stringify({
|
|
65
65
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
66
66
|
...(input.eventData != null && { eventData: input.eventData }),
|
|
67
|
+
...(input.eventReferences != null && {
|
|
68
|
+
eventReferences: serializeAws_restJson1EventReferenceList(input.eventReferences, context),
|
|
69
|
+
}),
|
|
67
70
|
...(input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
|
|
68
71
|
...(input.eventType != null && { eventType: input.eventType }),
|
|
69
72
|
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
@@ -644,6 +647,9 @@ export const serializeAws_restJson1UpdateTimelineEventCommand = async (input, co
|
|
|
644
647
|
clientToken: input.clientToken ?? generateIdempotencyToken(),
|
|
645
648
|
...(input.eventData != null && { eventData: input.eventData }),
|
|
646
649
|
...(input.eventId != null && { eventId: input.eventId }),
|
|
650
|
+
...(input.eventReferences != null && {
|
|
651
|
+
eventReferences: serializeAws_restJson1EventReferenceList(input.eventReferences, context),
|
|
652
|
+
}),
|
|
647
653
|
...(input.eventTime != null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
|
|
648
654
|
...(input.eventType != null && { eventType: input.eventType }),
|
|
649
655
|
...(input.incidentRecordArn != null && { incidentRecordArn: input.incidentRecordArn }),
|
|
@@ -2173,6 +2179,20 @@ const serializeAws_restJson1EngagementSet = (input, context) => {
|
|
|
2173
2179
|
return entry;
|
|
2174
2180
|
});
|
|
2175
2181
|
};
|
|
2182
|
+
const serializeAws_restJson1EventReference = (input, context) => {
|
|
2183
|
+
return EventReference.visit(input, {
|
|
2184
|
+
relatedItemId: (value) => ({ relatedItemId: value }),
|
|
2185
|
+
resource: (value) => ({ resource: value }),
|
|
2186
|
+
_: (name, value) => ({ name: value }),
|
|
2187
|
+
});
|
|
2188
|
+
};
|
|
2189
|
+
const serializeAws_restJson1EventReferenceList = (input, context) => {
|
|
2190
|
+
return input
|
|
2191
|
+
.filter((e) => e != null)
|
|
2192
|
+
.map((entry) => {
|
|
2193
|
+
return serializeAws_restJson1EventReference(entry, context);
|
|
2194
|
+
});
|
|
2195
|
+
};
|
|
2176
2196
|
const serializeAws_restJson1Filter = (input, context) => {
|
|
2177
2197
|
return {
|
|
2178
2198
|
...(input.condition != null && { condition: serializeAws_restJson1Condition(input.condition, context) }),
|
|
@@ -2250,6 +2270,7 @@ const serializeAws_restJson1RegionMapInputValue = (input, context) => {
|
|
|
2250
2270
|
};
|
|
2251
2271
|
const serializeAws_restJson1RelatedItem = (input, context) => {
|
|
2252
2272
|
return {
|
|
2273
|
+
...(input.generatedId != null && { generatedId: input.generatedId }),
|
|
2253
2274
|
...(input.identifier != null && { identifier: serializeAws_restJson1ItemIdentifier(input.identifier, context) }),
|
|
2254
2275
|
...(input.title != null && { title: input.title }),
|
|
2255
2276
|
};
|
|
@@ -2440,9 +2461,32 @@ const deserializeAws_restJson1EngagementSet = (output, context) => {
|
|
|
2440
2461
|
});
|
|
2441
2462
|
return retVal;
|
|
2442
2463
|
};
|
|
2464
|
+
const deserializeAws_restJson1EventReference = (output, context) => {
|
|
2465
|
+
if (__expectString(output.relatedItemId) !== undefined) {
|
|
2466
|
+
return { relatedItemId: __expectString(output.relatedItemId) };
|
|
2467
|
+
}
|
|
2468
|
+
if (__expectString(output.resource) !== undefined) {
|
|
2469
|
+
return { resource: __expectString(output.resource) };
|
|
2470
|
+
}
|
|
2471
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2472
|
+
};
|
|
2473
|
+
const deserializeAws_restJson1EventReferenceList = (output, context) => {
|
|
2474
|
+
const retVal = (output || [])
|
|
2475
|
+
.filter((e) => e != null)
|
|
2476
|
+
.map((entry) => {
|
|
2477
|
+
if (entry === null) {
|
|
2478
|
+
return null;
|
|
2479
|
+
}
|
|
2480
|
+
return deserializeAws_restJson1EventReference(__expectUnion(entry), context);
|
|
2481
|
+
});
|
|
2482
|
+
return retVal;
|
|
2483
|
+
};
|
|
2443
2484
|
const deserializeAws_restJson1EventSummary = (output, context) => {
|
|
2444
2485
|
return {
|
|
2445
2486
|
eventId: __expectString(output.eventId),
|
|
2487
|
+
eventReferences: output.eventReferences != null
|
|
2488
|
+
? deserializeAws_restJson1EventReferenceList(output.eventReferences, context)
|
|
2489
|
+
: undefined,
|
|
2446
2490
|
eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
|
|
2447
2491
|
eventType: __expectString(output.eventType),
|
|
2448
2492
|
eventUpdatedTime: output.eventUpdatedTime != null
|
|
@@ -2600,6 +2644,7 @@ const deserializeAws_restJson1RegionInfoMap = (output, context) => {
|
|
|
2600
2644
|
};
|
|
2601
2645
|
const deserializeAws_restJson1RelatedItem = (output, context) => {
|
|
2602
2646
|
return {
|
|
2647
|
+
generatedId: __expectString(output.generatedId),
|
|
2603
2648
|
identifier: output.identifier != null ? deserializeAws_restJson1ItemIdentifier(output.identifier, context) : undefined,
|
|
2604
2649
|
title: __expectString(output.title),
|
|
2605
2650
|
};
|
|
@@ -2727,6 +2772,9 @@ const deserializeAws_restJson1TimelineEvent = (output, context) => {
|
|
|
2727
2772
|
return {
|
|
2728
2773
|
eventData: __expectString(output.eventData),
|
|
2729
2774
|
eventId: __expectString(output.eventId),
|
|
2775
|
+
eventReferences: output.eventReferences != null
|
|
2776
|
+
? deserializeAws_restJson1EventReferenceList(output.eventReferences, context)
|
|
2777
|
+
: undefined,
|
|
2730
2778
|
eventTime: output.eventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime))) : undefined,
|
|
2731
2779
|
eventType: __expectString(output.eventType),
|
|
2732
2780
|
eventUpdatedTime: output.eventUpdatedTime != null
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NoOpLogger } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
3
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
3
4
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
@@ -7,7 +8,7 @@ export const getRuntimeConfig = (config) => ({
|
|
|
7
8
|
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
8
9
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
10
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
10
|
-
logger: config?.logger ??
|
|
11
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
11
12
|
serviceId: config?.serviceId ?? "SSM Incidents",
|
|
12
13
|
urlParser: config?.urlParser ?? parseUrl,
|
|
13
14
|
});
|
|
@@ -446,8 +446,7 @@ export interface IncidentTemplate {
|
|
|
446
446
|
notificationTargets?: NotificationTargetItem[];
|
|
447
447
|
/**
|
|
448
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>
|
|
449
|
+
* called, Incident Manager assigns the tags specified in the template to the incident.</p>
|
|
451
450
|
*/
|
|
452
451
|
incidentTags?: Record<string, string>;
|
|
453
452
|
}
|
|
@@ -513,6 +512,42 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
513
512
|
*/
|
|
514
513
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
515
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
* <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>
|
|
519
|
+
*/
|
|
520
|
+
export declare type EventReference = EventReference.RelatedItemIdMember | EventReference.ResourceMember | EventReference.$UnknownMember;
|
|
521
|
+
export declare namespace EventReference {
|
|
522
|
+
/**
|
|
523
|
+
* <p>The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a
|
|
524
|
+
* <code>TimelineEvent</code>.</p>
|
|
525
|
+
*/
|
|
526
|
+
interface ResourceMember {
|
|
527
|
+
resource: string;
|
|
528
|
+
relatedItemId?: never;
|
|
529
|
+
$unknown?: never;
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* <p>The ID of a <code>RelatedItem</code> referenced in a <code>TimelineEvent</code>.</p>
|
|
533
|
+
*/
|
|
534
|
+
interface RelatedItemIdMember {
|
|
535
|
+
resource?: never;
|
|
536
|
+
relatedItemId: string;
|
|
537
|
+
$unknown?: never;
|
|
538
|
+
}
|
|
539
|
+
interface $UnknownMember {
|
|
540
|
+
resource?: never;
|
|
541
|
+
relatedItemId?: never;
|
|
542
|
+
$unknown: [string, any];
|
|
543
|
+
}
|
|
544
|
+
interface Visitor<T> {
|
|
545
|
+
resource: (value: string) => T;
|
|
546
|
+
relatedItemId: (value: string) => T;
|
|
547
|
+
_: (name: string, value: any) => T;
|
|
548
|
+
}
|
|
549
|
+
const visit: <T>(value: EventReference, visitor: Visitor<T>) => T;
|
|
550
|
+
}
|
|
516
551
|
export interface CreateTimelineEventInput {
|
|
517
552
|
/**
|
|
518
553
|
* <p>A token ensuring that the action is called only once with the specified
|
|
@@ -537,6 +572,10 @@ export interface CreateTimelineEventInput {
|
|
|
537
572
|
* <p>A short description of the event.</p>
|
|
538
573
|
*/
|
|
539
574
|
eventData: string | undefined;
|
|
575
|
+
/**
|
|
576
|
+
* <p>Adds one or more references to the <code>TimelineEvent</code>. A reference can be an Amazon Web Services resource involved in the incident or in some way associated with it. When you specify a reference, you enter the Amazon Resource Name (ARN) of the resource. You can also specify a related item. As an example, you could specify the ARN of an Amazon DynamoDB (DynamoDB) table. The table for this example is the resource. You could also specify a Amazon CloudWatch metric for that table. The metric is the related item.</p>
|
|
577
|
+
*/
|
|
578
|
+
eventReferences?: EventReference[];
|
|
540
579
|
}
|
|
541
580
|
export interface CreateTimelineEventOutput {
|
|
542
581
|
/**
|
|
@@ -633,6 +672,10 @@ export interface EventSummary {
|
|
|
633
672
|
* <p>The type of event. The timeline event must be <code>Custom Event</code>.</p>
|
|
634
673
|
*/
|
|
635
674
|
eventType: string | undefined;
|
|
675
|
+
/**
|
|
676
|
+
* <p>A list of references in a <code>TimelineEvent</code>.</p>
|
|
677
|
+
*/
|
|
678
|
+
eventReferences?: EventReference[];
|
|
636
679
|
}
|
|
637
680
|
/**
|
|
638
681
|
* <p>Filter the selection by using a condition.</p>
|
|
@@ -988,6 +1031,10 @@ export interface TimelineEvent {
|
|
|
988
1031
|
* <p>A short description of the event.</p>
|
|
989
1032
|
*/
|
|
990
1033
|
eventData: string | undefined;
|
|
1034
|
+
/**
|
|
1035
|
+
* <p>A list of references in a <code>TimelineEvent</code>.</p>
|
|
1036
|
+
*/
|
|
1037
|
+
eventReferences?: EventReference[];
|
|
991
1038
|
}
|
|
992
1039
|
export interface GetTimelineEventOutput {
|
|
993
1040
|
/**
|
|
@@ -1189,6 +1236,14 @@ export interface RelatedItem {
|
|
|
1189
1236
|
* <p>The title of the related item.</p>
|
|
1190
1237
|
*/
|
|
1191
1238
|
title?: string;
|
|
1239
|
+
/**
|
|
1240
|
+
* <p>A unique ID for a <code>RelatedItem</code>.</p>
|
|
1241
|
+
* <important>
|
|
1242
|
+
* <p>Don't specify this parameter when you add a <code>RelatedItem</code> by using the
|
|
1243
|
+
* <a>UpdateRelatedItems</a> API action.</p>
|
|
1244
|
+
* </important>
|
|
1245
|
+
*/
|
|
1246
|
+
generatedId?: string;
|
|
1192
1247
|
}
|
|
1193
1248
|
export interface ListRelatedItemsOutput {
|
|
1194
1249
|
/**
|
|
@@ -1783,6 +1838,15 @@ export interface UpdateTimelineEventInput {
|
|
|
1783
1838
|
* <p>A short description of the event.</p>
|
|
1784
1839
|
*/
|
|
1785
1840
|
eventData?: string;
|
|
1841
|
+
/**
|
|
1842
|
+
* <p>Updates all existing references in a <code>TimelineEvent</code>. A reference can be an Amazon Web Services resource involved in the incident or in some way associated with it. When you specify a reference, you enter the Amazon Resource Name (ARN) of the resource. You can also specify a related item. As an example, you could specify the ARN of an Amazon DynamoDB (DynamoDB) table. The table for this example is the resource. You could also specify a Amazon CloudWatch metric for that table. The metric is the related item.</p>
|
|
1843
|
+
* <important>
|
|
1844
|
+
* <p>This update action overrides all existing references. If you want to keep existing
|
|
1845
|
+
* references, you must specify them in the call. If you don't, this action removes
|
|
1846
|
+
* them and enters only new references.</p>
|
|
1847
|
+
* </important>
|
|
1848
|
+
*/
|
|
1849
|
+
eventReferences?: EventReference[];
|
|
1786
1850
|
}
|
|
1787
1851
|
export interface UpdateTimelineEventOutput {
|
|
1788
1852
|
}
|
|
@@ -1850,6 +1914,10 @@ export declare const CreateResponsePlanInputFilterSensitiveLog: (obj: CreateResp
|
|
|
1850
1914
|
* @internal
|
|
1851
1915
|
*/
|
|
1852
1916
|
export declare const CreateResponsePlanOutputFilterSensitiveLog: (obj: CreateResponsePlanOutput) => any;
|
|
1917
|
+
/**
|
|
1918
|
+
* @internal
|
|
1919
|
+
*/
|
|
1920
|
+
export declare const EventReferenceFilterSensitiveLog: (obj: EventReference) => any;
|
|
1853
1921
|
/**
|
|
1854
1922
|
* @internal
|
|
1855
1923
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
1
|
import { SSMIncidentsClientConfig } from "./SSMIncidentsClient";
|
|
3
2
|
/**
|
|
4
3
|
* @internal
|
|
@@ -9,9 +8,9 @@ export declare const getRuntimeConfig: (config: SSMIncidentsClientConfig) => {
|
|
|
9
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
9
|
disableHostPrefix: boolean;
|
|
11
10
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
12
|
-
logger?:
|
|
11
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
13
12
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
14
|
-
logger:
|
|
13
|
+
logger: import("@aws-sdk/types").Logger;
|
|
15
14
|
serviceId: string;
|
|
16
15
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
17
16
|
};
|
|
@@ -283,12 +283,40 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
283
283
|
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
|
+
export declare type EventReference =
|
|
287
|
+
| EventReference.RelatedItemIdMember
|
|
288
|
+
| EventReference.ResourceMember
|
|
289
|
+
| EventReference.$UnknownMember;
|
|
290
|
+
export declare namespace EventReference {
|
|
291
|
+
interface ResourceMember {
|
|
292
|
+
resource: string;
|
|
293
|
+
relatedItemId?: never;
|
|
294
|
+
$unknown?: never;
|
|
295
|
+
}
|
|
296
|
+
interface RelatedItemIdMember {
|
|
297
|
+
resource?: never;
|
|
298
|
+
relatedItemId: string;
|
|
299
|
+
$unknown?: never;
|
|
300
|
+
}
|
|
301
|
+
interface $UnknownMember {
|
|
302
|
+
resource?: never;
|
|
303
|
+
relatedItemId?: never;
|
|
304
|
+
$unknown: [string, any];
|
|
305
|
+
}
|
|
306
|
+
interface Visitor<T> {
|
|
307
|
+
resource: (value: string) => T;
|
|
308
|
+
relatedItemId: (value: string) => T;
|
|
309
|
+
_: (name: string, value: any) => T;
|
|
310
|
+
}
|
|
311
|
+
const visit: <T>(value: EventReference, visitor: Visitor<T>) => T;
|
|
312
|
+
}
|
|
286
313
|
export interface CreateTimelineEventInput {
|
|
287
314
|
clientToken?: string;
|
|
288
315
|
incidentRecordArn: string | undefined;
|
|
289
316
|
eventTime: Date | undefined;
|
|
290
317
|
eventType: string | undefined;
|
|
291
318
|
eventData: string | undefined;
|
|
319
|
+
eventReferences?: EventReference[];
|
|
292
320
|
}
|
|
293
321
|
export interface CreateTimelineEventOutput {
|
|
294
322
|
incidentRecordArn: string | undefined;
|
|
@@ -325,6 +353,7 @@ export interface EventSummary {
|
|
|
325
353
|
eventTime: Date | undefined;
|
|
326
354
|
eventUpdatedTime: Date | undefined;
|
|
327
355
|
eventType: string | undefined;
|
|
356
|
+
eventReferences?: EventReference[];
|
|
328
357
|
}
|
|
329
358
|
export interface Filter {
|
|
330
359
|
key: string | undefined;
|
|
@@ -434,6 +463,7 @@ export interface TimelineEvent {
|
|
|
434
463
|
eventUpdatedTime: Date | undefined;
|
|
435
464
|
eventType: string | undefined;
|
|
436
465
|
eventData: string | undefined;
|
|
466
|
+
eventReferences?: EventReference[];
|
|
437
467
|
}
|
|
438
468
|
export interface GetTimelineEventOutput {
|
|
439
469
|
event: TimelineEvent | undefined;
|
|
@@ -517,6 +547,7 @@ export interface ListRelatedItemsInput {
|
|
|
517
547
|
export interface RelatedItem {
|
|
518
548
|
identifier: ItemIdentifier | undefined;
|
|
519
549
|
title?: string;
|
|
550
|
+
generatedId?: string;
|
|
520
551
|
}
|
|
521
552
|
export interface ListRelatedItemsOutput {
|
|
522
553
|
relatedItems: RelatedItem[] | undefined;
|
|
@@ -707,6 +738,7 @@ export interface UpdateTimelineEventInput {
|
|
|
707
738
|
eventTime?: Date;
|
|
708
739
|
eventType?: string;
|
|
709
740
|
eventData?: string;
|
|
741
|
+
eventReferences?: EventReference[];
|
|
710
742
|
}
|
|
711
743
|
export interface UpdateTimelineEventOutput {}
|
|
712
744
|
export declare const DynamicSsmParameterValueFilterSensitiveLog: (
|
|
@@ -751,6 +783,9 @@ export declare const CreateResponsePlanInputFilterSensitiveLog: (
|
|
|
751
783
|
export declare const CreateResponsePlanOutputFilterSensitiveLog: (
|
|
752
784
|
obj: CreateResponsePlanOutput
|
|
753
785
|
) => any;
|
|
786
|
+
export declare const EventReferenceFilterSensitiveLog: (
|
|
787
|
+
obj: EventReference
|
|
788
|
+
) => any;
|
|
754
789
|
export declare const CreateTimelineEventInputFilterSensitiveLog: (
|
|
755
790
|
obj: CreateTimelineEventInput
|
|
756
791
|
) => any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
1
|
import { SSMIncidentsClientConfig } from "./SSMIncidentsClient";
|
|
3
2
|
export declare const getRuntimeConfig: (config: SSMIncidentsClientConfig) => {
|
|
4
3
|
apiVersion: string;
|
|
@@ -8,10 +7,10 @@ export declare const getRuntimeConfig: (config: SSMIncidentsClientConfig) => {
|
|
|
8
7
|
endpointProvider: (
|
|
9
8
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
10
9
|
context?: {
|
|
11
|
-
logger?:
|
|
10
|
+
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
12
11
|
}
|
|
13
12
|
) => import("@aws-sdk/types").EndpointV2;
|
|
14
|
-
logger:
|
|
13
|
+
logger: import("@aws-sdk/types").Logger;
|
|
15
14
|
serviceId: string;
|
|
16
15
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
17
16
|
};
|
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.210.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,9 +19,9 @@
|
|
|
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.
|
|
22
|
+
"@aws-sdk/client-sts": "3.210.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.209.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.210.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.208.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.208.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.208.0",
|
|
@@ -30,27 +30,25 @@
|
|
|
30
30
|
"@aws-sdk/middleware-host-header": "3.208.0",
|
|
31
31
|
"@aws-sdk/middleware-logger": "3.208.0",
|
|
32
32
|
"@aws-sdk/middleware-recursion-detection": "3.208.0",
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.209.0",
|
|
34
34
|
"@aws-sdk/middleware-serde": "3.208.0",
|
|
35
35
|
"@aws-sdk/middleware-signing": "3.208.0",
|
|
36
36
|
"@aws-sdk/middleware-stack": "3.208.0",
|
|
37
37
|
"@aws-sdk/middleware-user-agent": "3.208.0",
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.209.0",
|
|
39
39
|
"@aws-sdk/node-http-handler": "3.208.0",
|
|
40
40
|
"@aws-sdk/protocol-http": "3.208.0",
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
+
"@aws-sdk/smithy-client": "3.209.0",
|
|
42
42
|
"@aws-sdk/types": "3.208.0",
|
|
43
43
|
"@aws-sdk/url-parser": "3.208.0",
|
|
44
44
|
"@aws-sdk/util-base64": "3.208.0",
|
|
45
|
-
"@aws-sdk/util-base64-browser": "3.208.0",
|
|
46
|
-
"@aws-sdk/util-base64-node": "3.208.0",
|
|
47
45
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
48
46
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.209.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.209.0",
|
|
49
|
+
"@aws-sdk/util-endpoints": "3.210.0",
|
|
52
50
|
"@aws-sdk/util-user-agent-browser": "3.208.0",
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
51
|
+
"@aws-sdk/util-user-agent-node": "3.209.0",
|
|
54
52
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
55
53
|
"@aws-sdk/util-utf8-node": "3.208.0",
|
|
56
54
|
"@aws-sdk/util-waiter": "3.208.0",
|