rehydrationType
The contactId that is used for rehydration depends on the rehydration type. RehydrationType is required for persistent chat.
ENTIRE_PAST_SESSION: Rehydrates a chat from the most recently terminated past chat contact of the specified past ended chat session. To use this type, provide theinitialContactIdof the past ended chat session in thesourceContactIdfield. In this type, Amazon Connect determines the most recent chat contact on the specified chat session that has ended, and uses it to start a persistent chat.FROM_SEGMENT: Rehydrates a chat from the past chat contact that is specified in thesourceContactIdfield.
The actual contactId used for rehydration is provided in the response of this API.