Skip to content

Commit 434048d

Browse files
author
AWS
committed
Amazon Connect Service Update: This release adds a new API CreateParticipant. For Amazon Connect Chat, you can use this new API to customize chat flow experiences.
1 parent 36bbce9 commit 434048d

File tree

2 files changed

+103
-1
lines changed

2 files changed

+103
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Connect Service",
4+
"contributor": "",
5+
"description": "This release adds a new API CreateParticipant. For Amazon Connect Chat, you can use this new API to customize chat flow experiences."
6+
}

services/connect/src/main/resources/codegen-resources/service-2.json

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,24 @@
320320
],
321321
"documentation":"<p>Creates an Amazon Web Services resource association with an Amazon Connect instance.</p>"
322322
},
323+
"CreateParticipant":{
324+
"name":"CreateParticipant",
325+
"http":{
326+
"method":"POST",
327+
"requestUri":"/contact/create-participant"
328+
},
329+
"input":{"shape":"CreateParticipantRequest"},
330+
"output":{"shape":"CreateParticipantResponse"},
331+
"errors":[
332+
{"shape":"InvalidRequestException"},
333+
{"shape":"InvalidParameterException"},
334+
{"shape":"ResourceNotFoundException"},
335+
{"shape":"InternalServiceException"},
336+
{"shape":"ServiceQuotaExceededException"},
337+
{"shape":"ThrottlingException"}
338+
],
339+
"documentation":"<p>Adds a new participant into an on-going chat contact. For more information, see <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/chat-customize-flow.html\">Customize chat flow experiences by integrating custom participants</a>.</p>"
340+
},
323341
"CreateQueue":{
324342
"name":"CreateQueue",
325343
"http":{
@@ -4381,6 +4399,46 @@
43814399
}
43824400
}
43834401
},
4402+
"CreateParticipantRequest":{
4403+
"type":"structure",
4404+
"required":[
4405+
"InstanceId",
4406+
"ContactId",
4407+
"ParticipantDetails"
4408+
],
4409+
"members":{
4410+
"InstanceId":{
4411+
"shape":"InstanceId",
4412+
"documentation":"<p>The identifier of the Amazon Connect instance. You can <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html\">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance. </p>"
4413+
},
4414+
"ContactId":{
4415+
"shape":"ContactId",
4416+
"documentation":"<p>The identifier of the contact in this instance of Amazon Connect. Only contacts in the CHAT channel are supported.</p>"
4417+
},
4418+
"ClientToken":{
4419+
"shape":"ClientToken",
4420+
"documentation":"<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see <a href=\"https://aws.amazon.com/builders-library/making-retries-safe-with-idempotent-APIs/\">Making retries safe with idempotent APIs</a>.</p>",
4421+
"idempotencyToken":true
4422+
},
4423+
"ParticipantDetails":{
4424+
"shape":"ParticipantDetailsToAdd",
4425+
"documentation":"<p>Information identifying the participant.</p> <important> <p>The only Valid value for <code>ParticipantRole</code> is <code>CUSTOM_BOT</code>. </p> <p> <code>DisplayName</code> is <b>Required</b>.</p> </important>"
4426+
}
4427+
}
4428+
},
4429+
"CreateParticipantResponse":{
4430+
"type":"structure",
4431+
"members":{
4432+
"ParticipantCredentials":{
4433+
"shape":"ParticipantTokenCredentials",
4434+
"documentation":"<p>The token used by the chat participant to call <code>CreateParticipantConnection</code>. The participant token is valid for the lifetime of a chat participant.</p>"
4435+
},
4436+
"ParticipantId":{
4437+
"shape":"ParticipantId",
4438+
"documentation":"<p>The identifier for a chat participant. The participantId for a chat participant is the same throughout the chat lifecycle.</p>"
4439+
}
4440+
}
4441+
},
43844442
"CreateQueueRequest":{
43854443
"type":"structure",
43864444
"required":[
@@ -7358,6 +7416,7 @@
73587416
},
73597417
"documentation":"<p>The start time or end time for an hours of operation.</p>"
73607418
},
7419+
"ISO8601Datetime":{"type":"string"},
73617420
"IdempotencyException":{
73627421
"type":"structure",
73637422
"members":{
@@ -9269,7 +9328,7 @@
92699328
"members":{
92709329
"MetricFilterKey":{
92719330
"shape":"String",
9272-
"documentation":"<p>The key to use for filtering data. </p> <p>Valid metric filter keys: <code>INITIATION_METHOD</code>, <code>DISCONNECT_REASON</code> </p>"
9331+
"documentation":"<p>The key to use for filtering data. </p> <p>Valid metric filter keys: <code>INITIATION_METHOD</code>, <code>DISCONNECT_REASON</code>. These are the same values as the <code>InitiationMethod</code> and <code>DisconnectReason</code> in the contact record. For more information, see <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/ctr-data-model.html#ctr-ContactTraceRecord\">ContactTraceRecord</a> in the <i>Amazon Connect Administrator's Guide</i>. </p>"
92739332
},
92749333
"MetricFilterValues":{
92759334
"shape":"MetricFilterValueList",
@@ -9499,11 +9558,34 @@
94999558
},
95009559
"documentation":"<p>The customer's details.</p>"
95019560
},
9561+
"ParticipantDetailsToAdd":{
9562+
"type":"structure",
9563+
"members":{
9564+
"ParticipantRole":{
9565+
"shape":"ParticipantRole",
9566+
"documentation":"<p>The role of the participant being added.</p>"
9567+
},
9568+
"DisplayName":{
9569+
"shape":"DisplayName",
9570+
"documentation":"<p>The display name of the participant.</p>"
9571+
}
9572+
},
9573+
"documentation":"<p>The details to add for the participant.</p>"
9574+
},
95029575
"ParticipantId":{
95039576
"type":"string",
95049577
"max":256,
95059578
"min":1
95069579
},
9580+
"ParticipantRole":{
9581+
"type":"string",
9582+
"enum":[
9583+
"AGENT",
9584+
"CUSTOMER",
9585+
"SYSTEM",
9586+
"CUSTOM_BOT"
9587+
]
9588+
},
95079589
"ParticipantTimerAction":{
95089590
"type":"string",
95099591
"enum":["Unset"]
@@ -9569,6 +9651,20 @@
95699651
"max":1000,
95709652
"min":1
95719653
},
9654+
"ParticipantTokenCredentials":{
9655+
"type":"structure",
9656+
"members":{
9657+
"ParticipantToken":{
9658+
"shape":"ParticipantToken",
9659+
"documentation":"<p>The token used by the chat participant to call <a href=\"https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html\">CreateParticipantConnection</a>. The participant token is valid for the lifetime of a chat participant. </p>"
9660+
},
9661+
"Expiry":{
9662+
"shape":"ISO8601Datetime",
9663+
"documentation":"<p>The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.</p>"
9664+
}
9665+
},
9666+
"documentation":"<p>The credentials used by the participant.</p>"
9667+
},
95729668
"Password":{
95739669
"type":"string",
95749670
"pattern":"/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d\\S]{8,64}$/"

0 commit comments

Comments
 (0)