Skip to content

Commit

Permalink
feat(client-connect): StartTaskContact API now supports linked task c…
Browse files Browse the repository at this point in the history
…reation with a new optional RelatedContactId parameter
  • Loading branch information
awstools committed Feb 24, 2023
1 parent a6b3275 commit a4ec9d7
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 61 deletions.
6 changes: 6 additions & 0 deletions clients/client-connect/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2858,6 +2858,12 @@ export interface StartTaskContactRequest {
* <p>The identifier for the quick connect.</p>
*/
QuickConnectId?: string;

/**
* <p>The contactId that is <a href="https://docs.aws.amazon.com/connect/latest/adminguide/tasks.html#linked-tasks">related</a> to this
* contact.</p>
*/
RelatedContactId?: string;
}

export interface StartTaskContactResponse {
Expand Down
1 change: 1 addition & 0 deletions clients/client-connect/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4358,6 +4358,7 @@ export const serializeAws_restJson1StartTaskContactCommand = async (
...(input.PreviousContactId != null && { PreviousContactId: input.PreviousContactId }),
...(input.QuickConnectId != null && { QuickConnectId: input.QuickConnectId }),
...(input.References != null && { References: serializeAws_restJson1ContactReferences(input.References, context) }),
...(input.RelatedContactId != null && { RelatedContactId: input.RelatedContactId }),
...(input.ScheduledTime != null && { ScheduledTime: Math.round(input.ScheduledTime.getTime() / 1000) }),
...(input.TaskTemplateId != null && { TaskTemplateId: input.TaskTemplateId }),
});
Expand Down
Loading

0 comments on commit a4ec9d7

Please sign in to comment.