Skip to content

Commit f2bc90c

Browse files
author
AWS
committed
Amazon Connect Contact Lens Update: Added PostContactSummary segment type on ListRealTimeContactAnalysisSegments API
1 parent 4c8553f commit f2bc90c

File tree

3 files changed

+78
-25
lines changed

3 files changed

+78
-25
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 Contact Lens",
4+
"contributor": "",
5+
"description": "Added PostContactSummary segment type on ListRealTimeContactAnalysisSegments API"
6+
}

services/connectcontactlens/src/main/resources/codegen-resources/endpoint-rule-set.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
]
4141
}
4242
],
43-
"type": "tree",
4443
"rules": [
4544
{
4645
"conditions": [
@@ -83,7 +82,8 @@
8382
},
8483
"type": "endpoint"
8584
}
86-
]
85+
],
86+
"type": "tree"
8787
},
8888
{
8989
"conditions": [
@@ -96,7 +96,6 @@
9696
]
9797
}
9898
],
99-
"type": "tree",
10099
"rules": [
101100
{
102101
"conditions": [
@@ -110,7 +109,6 @@
110109
"assign": "PartitionResult"
111110
}
112111
],
113-
"type": "tree",
114112
"rules": [
115113
{
116114
"conditions": [
@@ -133,7 +131,6 @@
133131
]
134132
}
135133
],
136-
"type": "tree",
137134
"rules": [
138135
{
139136
"conditions": [
@@ -168,7 +165,6 @@
168165
]
169166
}
170167
],
171-
"type": "tree",
172168
"rules": [
173169
{
174170
"conditions": [],
@@ -179,14 +175,16 @@
179175
},
180176
"type": "endpoint"
181177
}
182-
]
178+
],
179+
"type": "tree"
183180
},
184181
{
185182
"conditions": [],
186183
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
187184
"type": "error"
188185
}
189-
]
186+
],
187+
"type": "tree"
190188
},
191189
{
192190
"conditions": [
@@ -200,14 +198,12 @@
200198
]
201199
}
202200
],
203-
"type": "tree",
204201
"rules": [
205202
{
206203
"conditions": [
207204
{
208205
"fn": "booleanEquals",
209206
"argv": [
210-
true,
211207
{
212208
"fn": "getAttr",
213209
"argv": [
@@ -216,11 +212,11 @@
216212
},
217213
"supportsFIPS"
218214
]
219-
}
215+
},
216+
true
220217
]
221218
}
222219
],
223-
"type": "tree",
224220
"rules": [
225221
{
226222
"conditions": [],
@@ -231,14 +227,16 @@
231227
},
232228
"type": "endpoint"
233229
}
234-
]
230+
],
231+
"type": "tree"
235232
},
236233
{
237234
"conditions": [],
238235
"error": "FIPS is enabled but this partition does not support FIPS",
239236
"type": "error"
240237
}
241-
]
238+
],
239+
"type": "tree"
242240
},
243241
{
244242
"conditions": [
@@ -252,7 +250,6 @@
252250
]
253251
}
254252
],
255-
"type": "tree",
256253
"rules": [
257254
{
258255
"conditions": [
@@ -272,7 +269,6 @@
272269
]
273270
}
274271
],
275-
"type": "tree",
276272
"rules": [
277273
{
278274
"conditions": [],
@@ -283,14 +279,16 @@
283279
},
284280
"type": "endpoint"
285281
}
286-
]
282+
],
283+
"type": "tree"
287284
},
288285
{
289286
"conditions": [],
290287
"error": "DualStack is enabled but this partition does not support DualStack",
291288
"type": "error"
292289
}
293-
]
290+
],
291+
"type": "tree"
294292
},
295293
{
296294
"conditions": [],
@@ -301,9 +299,11 @@
301299
},
302300
"type": "endpoint"
303301
}
304-
]
302+
],
303+
"type": "tree"
305304
}
306-
]
305+
],
306+
"type": "tree"
307307
},
308308
{
309309
"conditions": [],

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

Lines changed: 52 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
"endpointPrefix":"contact-lens",
66
"jsonVersion":"1.1",
77
"protocol":"rest-json",
8+
"protocols":["rest-json"],
89
"serviceAbbreviation":"Amazon Connect Contact Lens",
910
"serviceFullName":"Amazon Connect Contact Lens",
1011
"serviceId":"Connect Contact Lens",
1112
"signatureVersion":"v4",
1213
"signingName":"connect",
13-
"uid":"connect-contact-lens-2020-08-21"
14+
"uid":"connect-contact-lens-2020-08-21",
15+
"auth":["aws.auth#sigv4"]
1416
},
1517
"operations":{
1618
"ListRealtimeContactAnalysisSegments":{
@@ -164,7 +166,7 @@
164166
},
165167
"MaxResults":{
166168
"shape":"MaxResults",
167-
"documentation":"<p>The maximimum number of results to return per page.</p>"
169+
"documentation":"<p>The maximum number of results to return per page.</p>"
168170
},
169171
"NextToken":{
170172
"shape":"NextToken",
@@ -251,6 +253,47 @@
251253
"max":20,
252254
"min":0
253255
},
256+
"PostContactSummary":{
257+
"type":"structure",
258+
"required":["Status"],
259+
"members":{
260+
"Content":{
261+
"shape":"PostContactSummaryContent",
262+
"documentation":"<p>The content of the summary.</p>"
263+
},
264+
"Status":{
265+
"shape":"PostContactSummaryStatus",
266+
"documentation":"<p>Whether the summary was successfully COMPLETED or FAILED to be generated.</p>"
267+
},
268+
"FailureCode":{
269+
"shape":"PostContactSummaryFailureCode",
270+
"documentation":"<p>If the summary failed to be generated, one of the following failure codes occurs:</p> <ul> <li> <p> <code>QUOTA_EXCEEDED</code>: The number of concurrent analytics jobs reached your service quota.</p> </li> <li> <p> <code>INSUFFICIENT_CONVERSATION_CONTENT</code>: The conversation needs to have at least one turn from both the participants in order to generate the summary.</p> </li> <li> <p> <code>FAILED_SAFETY_GUIDELINES</code>: The generated summary cannot be provided because it failed to meet system safety guidelines.</p> </li> <li> <p> <code>INVALID_ANALYSIS_CONFIGURATION</code>: This code occurs when, for example, you're using a <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/supported-languages.html#supported-languages-contact-lens\">language</a> that isn't supported by generative AI-powered post-contact summaries. </p> </li> <li> <p> <code>INTERNAL_ERROR</code>: Internal system error.</p> </li> </ul>"
271+
}
272+
},
273+
"documentation":"<p>Information about the post-contact summary.</p>"
274+
},
275+
"PostContactSummaryContent":{
276+
"type":"string",
277+
"max":1762,
278+
"min":1
279+
},
280+
"PostContactSummaryFailureCode":{
281+
"type":"string",
282+
"enum":[
283+
"QUOTA_EXCEEDED",
284+
"INSUFFICIENT_CONVERSATION_CONTENT",
285+
"FAILED_SAFETY_GUIDELINES",
286+
"INVALID_ANALYSIS_CONFIGURATION",
287+
"INTERNAL_ERROR"
288+
]
289+
},
290+
"PostContactSummaryStatus":{
291+
"type":"string",
292+
"enum":[
293+
"FAILED",
294+
"COMPLETED"
295+
]
296+
},
254297
"RealtimeContactAnalysisSegment":{
255298
"type":"structure",
256299
"members":{
@@ -261,6 +304,10 @@
261304
"Categories":{
262305
"shape":"Categories",
263306
"documentation":"<p>The matched category rules.</p>"
307+
},
308+
"PostContactSummary":{
309+
"shape":"PostContactSummary",
310+
"documentation":"<p>Information about the post-contact summary.</p>"
264311
}
265312
},
266313
"documentation":"<p>An analyzed segment for a real-time analysis session.</p>"
@@ -316,7 +363,7 @@
316363
},
317364
"ParticipantId":{
318365
"shape":"ParticipantId",
319-
"documentation":"<p>The identifier of the participant.</p>"
366+
"documentation":"<p>The identifier of the participant. Valid values are CUSTOMER or AGENT.</p>"
320367
},
321368
"ParticipantRole":{
322369
"shape":"ParticipantRole",
@@ -336,7 +383,7 @@
336383
},
337384
"Sentiment":{
338385
"shape":"SentimentValue",
339-
"documentation":"<p>The sentiment of the detected for this piece of transcript.</p>"
386+
"documentation":"<p>The sentiment detected for this piece of transcript.</p>"
340387
},
341388
"IssuesDetected":{
342389
"shape":"IssuesDetected",
@@ -357,5 +404,5 @@
357404
"pattern":".*\\S.*"
358405
}
359406
},
360-
"documentation":"<p>Contact Lens for Amazon Connect enables you to analyze conversations between customer and agents, by using speech transcription, natural language processing, and intelligent search capabilities. It performs sentiment analysis, detects issues, and enables you to automatically categorize contacts.</p> <p>Contact Lens for Amazon Connect provides both real-time and post-call analytics of customer-agent conversations. For more information, see <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/analyze-conversations.html\">Analyze conversations using Contact Lens</a> in the <i>Amazon Connect Administrator Guide</i>. </p>"
407+
"documentation":"<ul> <li> <p> <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Contact_Lens.html\">Contact Lens actions</a> </p> </li> <li> <p> <a href=\"https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Contact_Lens.html\">Contact Lens data types</a> </p> </li> </ul> <p>Amazon Connect Contact Lens enables you to analyze conversations between customer and agents, by using speech transcription, natural language processing, and intelligent search capabilities. It performs sentiment analysis, detects issues, and enables you to automatically categorize contacts.</p> <p>Amazon Connect Contact Lens provides both real-time and post-call analytics of customer-agent conversations. For more information, see <a href=\"https://docs.aws.amazon.com/connect/latest/adminguide/analyze-conversations.html\">Analyze conversations using speech analytics</a> in the <i>Amazon Connect Administrator Guide</i>. </p>"
361408
}

0 commit comments

Comments
 (0)