Skip to content

Commit d39b95b

Browse files
author
AWS
committed
Amazon Connect Cases Update: This feature releases DeleteField, DeletedLayout, and DeleteTemplate API's
1 parent e4fb225 commit d39b95b

File tree

2 files changed

+187
-1
lines changed

2 files changed

+187
-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 Cases",
4+
"contributor": "",
5+
"description": "This feature releases DeleteField, DeletedLayout, and DeleteTemplate API's"
6+
}

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

Lines changed: 181 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,67 @@
193193
"documentation":"<p>Deletes a Cases domain.</p> <pre><code> &lt;note&gt; &lt;p&gt;After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this Amazon Connect instance. See &lt;a href=&quot;https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteIntegrationAssociation.html&quot;&gt;DeleteIntegrationAssociation&lt;/a&gt;.&lt;/p&gt; &lt;/note&gt; </code></pre>",
194194
"idempotent":true
195195
},
196+
"DeleteField":{
197+
"name":"DeleteField",
198+
"http":{
199+
"method":"DELETE",
200+
"requestUri":"/domains/{domainId}/fields/{fieldId}",
201+
"responseCode":200
202+
},
203+
"input":{"shape":"DeleteFieldRequest"},
204+
"output":{"shape":"DeleteFieldResponse"},
205+
"errors":[
206+
{"shape":"InternalServerException"},
207+
{"shape":"ResourceNotFoundException"},
208+
{"shape":"ValidationException"},
209+
{"shape":"ThrottlingException"},
210+
{"shape":"AccessDeniedException"},
211+
{"shape":"ConflictException"},
212+
{"shape":"ServiceQuotaExceededException"}
213+
],
214+
"documentation":"<p>Deletes a field from a cases template. You can delete up to 100 fields per domain.</p> <p>After a field is deleted:</p> <ul> <li> <p>You can still retrieve the field by calling <code>BatchGetField</code>.</p> </li> <li> <p>You cannot update a deleted field by calling <code>UpdateField</code>; it throws a <code>ValidationException</code>.</p> </li> <li> <p>Deleted fields are not included in the <code>ListFields</code> response.</p> </li> <li> <p>Calling <code>CreateCase</code> with a deleted field throws a <code>ValidationException</code> denoting which field IDs in the request have been deleted.</p> </li> <li> <p>Calling <code>GetCase</code> with a deleted field ID returns the deleted field's value if one exists.</p> </li> <li> <p>Calling <code>UpdateCase</code> with a deleted field ID throws a <code>ValidationException</code> if the case does not already contain a value for the deleted field. Otherwise it succeeds, allowing you to update or remove (using <code>emptyValue: {}</code>) the field's value from the case.</p> </li> <li> <p> <code>GetTemplate</code> does not return field IDs for deleted fields.</p> </li> <li> <p> <code>GetLayout</code> does not return field IDs for deleted fields.</p> </li> <li> <p>Calling <code>SearchCases</code> with the deleted field ID as a filter returns any cases that have a value for the deleted field that matches the filter criteria.</p> </li> <li> <p>Calling <code>SearchCases</code> with a <code>searchTerm</code> value that matches a deleted field's value on a case returns the case in the response.</p> </li> <li> <p>Calling <code>BatchPutFieldOptions</code> with a deleted field ID throw a <code>ValidationException</code>.</p> </li> <li> <p>Calling <code>GetCaseEventConfiguration</code> does not return field IDs for deleted fields.</p> </li> </ul>",
215+
"idempotent":true
216+
},
217+
"DeleteLayout":{
218+
"name":"DeleteLayout",
219+
"http":{
220+
"method":"DELETE",
221+
"requestUri":"/domains/{domainId}/layouts/{layoutId}",
222+
"responseCode":200
223+
},
224+
"input":{"shape":"DeleteLayoutRequest"},
225+
"output":{"shape":"DeleteLayoutResponse"},
226+
"errors":[
227+
{"shape":"InternalServerException"},
228+
{"shape":"ResourceNotFoundException"},
229+
{"shape":"ValidationException"},
230+
{"shape":"ThrottlingException"},
231+
{"shape":"AccessDeniedException"},
232+
{"shape":"ConflictException"}
233+
],
234+
"documentation":"<p>Deletes a layout from a cases template. You can delete up to 100 layouts per domain.</p> <pre><code> &lt;p&gt;After a layout is deleted:&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;p&gt;You can still retrieve the layout by calling &lt;code&gt;GetLayout&lt;/code&gt;.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;You cannot update a deleted layout by calling &lt;code&gt;UpdateLayout&lt;/code&gt;; it throws a &lt;code&gt;ValidationException&lt;/code&gt;.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Deleted layouts are not included in the &lt;code&gt;ListLayouts&lt;/code&gt; response.&lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre>",
235+
"idempotent":true
236+
},
237+
"DeleteTemplate":{
238+
"name":"DeleteTemplate",
239+
"http":{
240+
"method":"DELETE",
241+
"requestUri":"/domains/{domainId}/templates/{templateId}",
242+
"responseCode":200
243+
},
244+
"input":{"shape":"DeleteTemplateRequest"},
245+
"output":{"shape":"DeleteTemplateResponse"},
246+
"errors":[
247+
{"shape":"InternalServerException"},
248+
{"shape":"ResourceNotFoundException"},
249+
{"shape":"ValidationException"},
250+
{"shape":"ThrottlingException"},
251+
{"shape":"AccessDeniedException"},
252+
{"shape":"ConflictException"}
253+
],
254+
"documentation":"<p>Deletes a cases template. You can delete up to 100 templates per domain.</p> <pre><code> &lt;p&gt;After a cases template is deleted:&lt;/p&gt; &lt;ul&gt; &lt;li&gt; &lt;p&gt;You can still retrieve the template by calling &lt;code&gt;GetTemplate&lt;/code&gt;.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;You cannot update the template. &lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;You cannot create a case by using the deleted template.&lt;/p&gt; &lt;/li&gt; &lt;li&gt; &lt;p&gt;Deleted templates are not included in the &lt;code&gt;ListTemplates&lt;/code&gt; response.&lt;/p&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre>",
255+
"idempotent":true
256+
},
196257
"GetCase":{
197258
"name":"GetCase",
198259
"http":{
@@ -712,7 +773,7 @@
712773
"documentation":"<p>Can be either null, or have a String value type formatted as an ARN. Only one value can be provided.</p>"
713774
}
714775
},
715-
"documentation":"<p>Object to store union of Field values.</p> <important> <p>This data type is a UNION, so only one of the following members can be specified when used or returned.</p> </important>",
776+
"documentation":"<p>Object to store union of Field values.</p>",
716777
"union":true
717778
},
718779
"AuditEventFieldValueUnionStringValueString":{
@@ -1356,6 +1417,85 @@
13561417
"members":{
13571418
}
13581419
},
1420+
"DeleteFieldRequest":{
1421+
"type":"structure",
1422+
"required":[
1423+
"domainId",
1424+
"fieldId"
1425+
],
1426+
"members":{
1427+
"domainId":{
1428+
"shape":"DomainId",
1429+
"documentation":"<p>The unique identifier of the Cases domain. </p>",
1430+
"location":"uri",
1431+
"locationName":"domainId"
1432+
},
1433+
"fieldId":{
1434+
"shape":"FieldId",
1435+
"documentation":"<p>The unique identifier of a field.</p>",
1436+
"location":"uri",
1437+
"locationName":"fieldId"
1438+
}
1439+
}
1440+
},
1441+
"DeleteFieldResponse":{
1442+
"type":"structure",
1443+
"members":{
1444+
}
1445+
},
1446+
"DeleteLayoutRequest":{
1447+
"type":"structure",
1448+
"required":[
1449+
"domainId",
1450+
"layoutId"
1451+
],
1452+
"members":{
1453+
"domainId":{
1454+
"shape":"DomainId",
1455+
"documentation":"<p>The unique identifier of the Cases domain. </p>",
1456+
"location":"uri",
1457+
"locationName":"domainId"
1458+
},
1459+
"layoutId":{
1460+
"shape":"LayoutId",
1461+
"documentation":"<p>The unique identifier of the layout.</p>",
1462+
"location":"uri",
1463+
"locationName":"layoutId"
1464+
}
1465+
}
1466+
},
1467+
"DeleteLayoutResponse":{
1468+
"type":"structure",
1469+
"members":{
1470+
}
1471+
},
1472+
"DeleteTemplateRequest":{
1473+
"type":"structure",
1474+
"required":[
1475+
"domainId",
1476+
"templateId"
1477+
],
1478+
"members":{
1479+
"domainId":{
1480+
"shape":"DomainId",
1481+
"documentation":"<p>The unique identifier of the Cases domain. </p>",
1482+
"location":"uri",
1483+
"locationName":"domainId"
1484+
},
1485+
"templateId":{
1486+
"shape":"TemplateId",
1487+
"documentation":"<p>A unique identifier of a template.</p>",
1488+
"location":"uri",
1489+
"locationName":"templateId"
1490+
}
1491+
}
1492+
},
1493+
"DeleteTemplateResponse":{
1494+
"type":"structure",
1495+
"members":{
1496+
}
1497+
},
1498+
"Deleted":{"type":"boolean"},
13591499
"DomainArn":{
13601500
"type":"string",
13611501
"max":500,
@@ -1934,6 +2074,14 @@
19342074
"type"
19352075
],
19362076
"members":{
2077+
"createdTime":{
2078+
"shape":"CreatedTime",
2079+
"documentation":"<p>The timestamp for when the resource was created.</p>"
2080+
},
2081+
"deleted":{
2082+
"shape":"Deleted",
2083+
"documentation":"<p>Indicates whether the resource has been deleted.</p>"
2084+
},
19372085
"description":{
19382086
"shape":"FieldDescription",
19392087
"documentation":"<p>Description of the field.</p>"
@@ -1946,6 +2094,10 @@
19462094
"shape":"FieldId",
19472095
"documentation":"<p>Unique identifier of the field.</p>"
19482096
},
2097+
"lastModifiedTime":{
2098+
"shape":"LastModifiedTime",
2099+
"documentation":"<p>The timestamp for when the resource was created or last modified.</p>"
2100+
},
19492101
"name":{
19502102
"shape":"FieldName",
19512103
"documentation":"<p>Name of the field.</p>"
@@ -1999,6 +2151,18 @@
19992151
"shape":"LayoutContent",
20002152
"documentation":"<p>Information about which fields will be present in the layout, the order of the fields, and read-only attribute of the field. </p>"
20012153
},
2154+
"createdTime":{
2155+
"shape":"CreatedTime",
2156+
"documentation":"<p>The timestamp for when the resource was created.</p>"
2157+
},
2158+
"deleted":{
2159+
"shape":"Deleted",
2160+
"documentation":"<p>Indicates whether the resource has been deleted.</p>"
2161+
},
2162+
"lastModifiedTime":{
2163+
"shape":"LastModifiedTime",
2164+
"documentation":"<p>The timestamp for when the resource was created or last modified.</p>"
2165+
},
20022166
"layoutArn":{
20032167
"shape":"LayoutArn",
20042168
"documentation":"<p>The Amazon Resource Name (ARN) of the newly created layout.</p>"
@@ -2047,10 +2211,22 @@
20472211
"templateId"
20482212
],
20492213
"members":{
2214+
"createdTime":{
2215+
"shape":"CreatedTime",
2216+
"documentation":"<p>The timestamp for when the resource was created.</p>"
2217+
},
2218+
"deleted":{
2219+
"shape":"Deleted",
2220+
"documentation":"<p>Indicates whether the resource has been deleted.</p>"
2221+
},
20502222
"description":{
20512223
"shape":"TemplateDescription",
20522224
"documentation":"<p>A brief description of the template.</p>"
20532225
},
2226+
"lastModifiedTime":{
2227+
"shape":"LastModifiedTime",
2228+
"documentation":"<p>The timestamp for when the resource was created or last modified.</p>"
2229+
},
20542230
"layoutConfiguration":{
20552231
"shape":"LayoutConfiguration",
20562232
"documentation":"<p>Configuration of layouts associated to the template.</p>"
@@ -2108,6 +2284,10 @@
21082284
"fault":true,
21092285
"retryable":{"throttling":false}
21102286
},
2287+
"LastModifiedTime":{
2288+
"type":"timestamp",
2289+
"timestampFormat":"iso8601"
2290+
},
21112291
"LayoutArn":{
21122292
"type":"string",
21132293
"max":500,

0 commit comments

Comments
 (0)