@@ -610,8 +610,7 @@ export interface IncidentTemplate {
610610
611611 /**
612612 * <p>Tags to assign to the template. When the <code>StartIncident</code> API action is
613- * called, Incident Manager assigns the tags specified in the template to the
614- * incident.</p>
613+ * called, Incident Manager assigns the tags specified in the template to the incident.</p>
615614 */
616615 incidentTags ?: Record < string , string > ;
617616}
@@ -699,6 +698,55 @@ export class ResourceNotFoundException extends __BaseException {
699698 }
700699}
701700
701+ /**
702+ * <p>An item referenced in a <code>TimelineEvent</code> that is involved in or somehow
703+ * associated with an incident. You can specify an Amazon Resource Name (ARN) for an Amazon Web Services
704+ * resource or a <code>RelatedItem</code> ID.</p>
705+ */
706+ export type EventReference =
707+ | EventReference . RelatedItemIdMember
708+ | EventReference . ResourceMember
709+ | EventReference . $UnknownMember ;
710+
711+ export namespace EventReference {
712+ /**
713+ * <p>The Amazon Resource Name (ARN) of an Amazon Web Services resource referenced in a
714+ * <code>TimelineEvent</code>.</p>
715+ */
716+ export interface ResourceMember {
717+ resource : string ;
718+ relatedItemId ?: never ;
719+ $unknown ?: never ;
720+ }
721+
722+ /**
723+ * <p>The ID of a <code>RelatedItem</code> referenced in a <code>TimelineEvent</code>.</p>
724+ */
725+ export interface RelatedItemIdMember {
726+ resource ?: never ;
727+ relatedItemId : string ;
728+ $unknown ?: never ;
729+ }
730+
731+ export interface $UnknownMember {
732+ resource ?: never ;
733+ relatedItemId ?: never ;
734+ $unknown : [ string , any ] ;
735+ }
736+
737+ export interface Visitor < T > {
738+ resource : ( value : string ) => T ;
739+ relatedItemId : ( value : string ) => T ;
740+ _ : ( name : string , value : any ) => T ;
741+ }
742+
743+ export const visit = < T > ( value : EventReference , visitor : Visitor < T > ) : T => {
744+ if ( value . resource !== undefined ) return visitor . resource ( value . resource ) ;
745+ if ( value . relatedItemId !== undefined ) return visitor . relatedItemId ( value . relatedItemId ) ;
746+ return visitor . _ ( value . $unknown [ 0 ] , value . $unknown [ 1 ] ) ;
747+ } ;
748+ }
749+
702750export interface CreateTimelineEventInput {
703751 /**
704752 * <p>A token ensuring that the action is called only once with the specified
@@ -727,6 +775,11 @@ export interface CreateTimelineEventInput {
727775 * <p>A short description of the event.</p>
728776 */
729777 eventData : string | undefined ;
778+
779+ /**
780+ * <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>
781+ */
782+ eventReferences ?: EventReference [ ] ;
730783}
731784
732785export interface CreateTimelineEventOutput {
@@ -838,6 +891,11 @@ export interface EventSummary {
838891 * <p>The type of event. The timeline event must be <code>Custom Event</code>.</p>
839892 */
840893 eventType : string | undefined ;
894+
895+ /**
896+ * <p>A list of references in a <code>TimelineEvent</code>.</p>
897+ */
898+ eventReferences ?: EventReference [ ] ;
841899}
842900
843901/**
@@ -1256,6 +1314,11 @@ export interface TimelineEvent {
12561314 * <p>A short description of the event.</p>
12571315 */
12581316 eventData : string | undefined ;
1317+
1318+ /**
1319+ * <p>A list of references in a <code>TimelineEvent</code>.</p>
1320+ */
1321+ eventReferences ?: EventReference [ ] ;
12591322}
12601323
12611324export interface GetTimelineEventOutput {
@@ -1494,6 +1557,15 @@ export interface RelatedItem {
14941557 * <p>The title of the related item.</p>
14951558 */
14961559 title ?: string ;
1560+
1561+ /**
1562+ * <p>A unique ID for a <code>RelatedItem</code>.</p>
1563+ * <important>
1564+ * <p>Don't specify this parameter when you add a <code>RelatedItem</code> by using the
1565+ * <a>UpdateRelatedItems</a> API action.</p>
1566+ * </important>
1567+ */
1568+ generatedId ?: string ;
14971569}
14981570
14991571export interface ListRelatedItemsOutput {
@@ -2192,6 +2264,16 @@ export interface UpdateTimelineEventInput {
21922264 * <p>A short description of the event.</p>
21932265 */
21942266 eventData ?: string ;
2267+
2268+ /**
2269+ * <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>
2270+ * <important>
2271+ * <p>This update action overrides all existing references. If you want to keep existing
2272+ * references, you must specify them in the call. If you don't, this action removes
2273+ * them and enters only new references.</p>
2274+ * </important>
2275+ */
2276+ eventReferences ?: EventReference [ ] ;
21952277}
21962278
21972279export interface UpdateTimelineEventOutput { }
@@ -2334,11 +2416,23 @@ export const CreateResponsePlanOutputFilterSensitiveLog = (obj: CreateResponsePl
23342416 ...obj ,
23352417} ) ;
23362418
2419+ /**
2420+ * @internal
2421+ */
2422+ export const EventReferenceFilterSensitiveLog = ( obj : EventReference ) : any => {
2423+ if ( obj . resource !== undefined ) return { resource : obj . resource } ;
2424+ if ( obj . relatedItemId !== undefined ) return { relatedItemId : obj . relatedItemId } ;
2425+ if ( obj . $unknown !== undefined ) return { [ obj . $unknown [ 0 ] ] : "UNKNOWN" } ;
2426+ } ;
2427+
23372428/**
23382429 * @internal
23392430 */
23402431export const CreateTimelineEventInputFilterSensitiveLog = ( obj : CreateTimelineEventInput ) : any => ( {
23412432 ...obj ,
2433+ ...( obj . eventReferences && {
2434+ eventReferences : obj . eventReferences . map ( ( item ) => EventReferenceFilterSensitiveLog ( item ) ) ,
2435+ } ) ,
23422436} ) ;
23432437
23442438/**
@@ -2430,6 +2524,9 @@ export const DeleteTimelineEventOutputFilterSensitiveLog = (obj: DeleteTimelineE
24302524 */
24312525export const EventSummaryFilterSensitiveLog = ( obj : EventSummary ) : any => ( {
24322526 ...obj ,
2527+ ...( obj . eventReferences && {
2528+ eventReferences : obj . eventReferences . map ( ( item ) => EventReferenceFilterSensitiveLog ( item ) ) ,
2529+ } ) ,
24332530} ) ;
24342531
24352532/**
@@ -2554,13 +2651,17 @@ export const GetTimelineEventInputFilterSensitiveLog = (obj: GetTimelineEventInp
25542651 */
25552652export const TimelineEventFilterSensitiveLog = ( obj : TimelineEvent ) : any => ( {
25562653 ...obj ,
2654+ ...( obj . eventReferences && {
2655+ eventReferences : obj . eventReferences . map ( ( item ) => EventReferenceFilterSensitiveLog ( item ) ) ,
2656+ } ) ,
25572657} ) ;
25582658
25592659/**
25602660 * @internal
25612661 */
25622662export const GetTimelineEventOutputFilterSensitiveLog = ( obj : GetTimelineEventOutput ) : any => ( {
25632663 ...obj ,
2664+ ...( obj . event && { event : TimelineEventFilterSensitiveLog ( obj . event ) } ) ,
25642665} ) ;
25652666
25662667/**
@@ -2688,6 +2789,7 @@ export const ListTimelineEventsInputFilterSensitiveLog = (obj: ListTimelineEvent
26882789 */
26892790export const ListTimelineEventsOutputFilterSensitiveLog = ( obj : ListTimelineEventsOutput ) : any => ( {
26902791 ...obj ,
2792+ ...( obj . eventSummaries && { eventSummaries : obj . eventSummaries . map ( ( item ) => EventSummaryFilterSensitiveLog ( item ) ) } ) ,
26912793} ) ;
26922794
26932795/**
@@ -2862,6 +2964,9 @@ export const UpdateResponsePlanOutputFilterSensitiveLog = (obj: UpdateResponsePl
28622964 */
28632965export const UpdateTimelineEventInputFilterSensitiveLog = ( obj : UpdateTimelineEventInput ) : any => ( {
28642966 ...obj ,
2967+ ...( obj . eventReferences && {
2968+ eventReferences : obj . eventReferences . map ( ( item ) => EventReferenceFilterSensitiveLog ( item ) ) ,
2969+ } ) ,
28652970} ) ;
28662971
28672972/**
0 commit comments