Skip to content

Commit 2cd8188

Browse files
author
AWS
committed
Amazon Connect Cases Update: This release adds the ability to disable templates through the UpdateTemplate API. Disabling templates prevents customers from creating cases using the template. For more information see https://docs.aws.amazon.com/cases/latest/APIReference/Welcome.html
1 parent bb7fd16 commit 2cd8188

File tree

3 files changed

+94
-48
lines changed

3 files changed

+94
-48
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 release adds the ability to disable templates through the UpdateTemplate API. Disabling templates prevents customers from creating cases using the template. For more information see https://docs.aws.amazon.com/cases/latest/APIReference/Welcome.html"
6+
}

services/connectcases/src/main/resources/codegen-resources/endpoint-tests.json

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
"params": {
1111
"UseDualStack": true,
12-
"Region": "us-gov-east-1",
13-
"UseFIPS": true
12+
"UseFIPS": true,
13+
"Region": "us-gov-east-1"
1414
}
1515
},
1616
{
@@ -22,8 +22,8 @@
2222
},
2323
"params": {
2424
"UseDualStack": false,
25-
"Region": "us-gov-east-1",
26-
"UseFIPS": true
25+
"UseFIPS": true,
26+
"Region": "us-gov-east-1"
2727
}
2828
},
2929
{
@@ -35,8 +35,8 @@
3535
},
3636
"params": {
3737
"UseDualStack": true,
38-
"Region": "us-gov-east-1",
39-
"UseFIPS": false
38+
"UseFIPS": false,
39+
"Region": "us-gov-east-1"
4040
}
4141
},
4242
{
@@ -48,8 +48,8 @@
4848
},
4949
"params": {
5050
"UseDualStack": false,
51-
"Region": "us-gov-east-1",
52-
"UseFIPS": false
51+
"UseFIPS": false,
52+
"Region": "us-gov-east-1"
5353
}
5454
},
5555
{
@@ -61,8 +61,8 @@
6161
},
6262
"params": {
6363
"UseDualStack": true,
64-
"Region": "cn-north-1",
65-
"UseFIPS": true
64+
"UseFIPS": true,
65+
"Region": "cn-north-1"
6666
}
6767
},
6868
{
@@ -74,8 +74,8 @@
7474
},
7575
"params": {
7676
"UseDualStack": false,
77-
"Region": "cn-north-1",
78-
"UseFIPS": true
77+
"UseFIPS": true,
78+
"Region": "cn-north-1"
7979
}
8080
},
8181
{
@@ -87,8 +87,8 @@
8787
},
8888
"params": {
8989
"UseDualStack": true,
90-
"Region": "cn-north-1",
91-
"UseFIPS": false
90+
"UseFIPS": false,
91+
"Region": "cn-north-1"
9292
}
9393
},
9494
{
@@ -100,8 +100,8 @@
100100
},
101101
"params": {
102102
"UseDualStack": false,
103-
"Region": "cn-north-1",
104-
"UseFIPS": false
103+
"UseFIPS": false,
104+
"Region": "cn-north-1"
105105
}
106106
},
107107
{
@@ -111,8 +111,8 @@
111111
},
112112
"params": {
113113
"UseDualStack": true,
114-
"Region": "us-iso-east-1",
115-
"UseFIPS": true
114+
"UseFIPS": true,
115+
"Region": "us-iso-east-1"
116116
}
117117
},
118118
{
@@ -124,8 +124,8 @@
124124
},
125125
"params": {
126126
"UseDualStack": false,
127-
"Region": "us-iso-east-1",
128-
"UseFIPS": true
127+
"UseFIPS": true,
128+
"Region": "us-iso-east-1"
129129
}
130130
},
131131
{
@@ -135,8 +135,8 @@
135135
},
136136
"params": {
137137
"UseDualStack": true,
138-
"Region": "us-iso-east-1",
139-
"UseFIPS": false
138+
"UseFIPS": false,
139+
"Region": "us-iso-east-1"
140140
}
141141
},
142142
{
@@ -148,8 +148,8 @@
148148
},
149149
"params": {
150150
"UseDualStack": false,
151-
"Region": "us-iso-east-1",
152-
"UseFIPS": false
151+
"UseFIPS": false,
152+
"Region": "us-iso-east-1"
153153
}
154154
},
155155
{
@@ -161,8 +161,8 @@
161161
},
162162
"params": {
163163
"UseDualStack": true,
164-
"Region": "us-east-1",
165-
"UseFIPS": true
164+
"UseFIPS": true,
165+
"Region": "us-east-1"
166166
}
167167
},
168168
{
@@ -174,8 +174,8 @@
174174
},
175175
"params": {
176176
"UseDualStack": false,
177-
"Region": "us-east-1",
178-
"UseFIPS": true
177+
"UseFIPS": true,
178+
"Region": "us-east-1"
179179
}
180180
},
181181
{
@@ -187,8 +187,8 @@
187187
},
188188
"params": {
189189
"UseDualStack": true,
190-
"Region": "us-east-1",
191-
"UseFIPS": false
190+
"UseFIPS": false,
191+
"Region": "us-east-1"
192192
}
193193
},
194194
{
@@ -200,8 +200,8 @@
200200
},
201201
"params": {
202202
"UseDualStack": false,
203-
"Region": "us-east-1",
204-
"UseFIPS": false
203+
"UseFIPS": false,
204+
"Region": "us-east-1"
205205
}
206206
},
207207
{
@@ -211,8 +211,8 @@
211211
},
212212
"params": {
213213
"UseDualStack": true,
214-
"Region": "us-isob-east-1",
215-
"UseFIPS": true
214+
"UseFIPS": true,
215+
"Region": "us-isob-east-1"
216216
}
217217
},
218218
{
@@ -224,8 +224,8 @@
224224
},
225225
"params": {
226226
"UseDualStack": false,
227-
"Region": "us-isob-east-1",
228-
"UseFIPS": true
227+
"UseFIPS": true,
228+
"Region": "us-isob-east-1"
229229
}
230230
},
231231
{
@@ -235,8 +235,8 @@
235235
},
236236
"params": {
237237
"UseDualStack": true,
238-
"Region": "us-isob-east-1",
239-
"UseFIPS": false
238+
"UseFIPS": false,
239+
"Region": "us-isob-east-1"
240240
}
241241
},
242242
{
@@ -248,8 +248,8 @@
248248
},
249249
"params": {
250250
"UseDualStack": false,
251-
"Region": "us-isob-east-1",
252-
"UseFIPS": false
251+
"UseFIPS": false,
252+
"Region": "us-isob-east-1"
253253
}
254254
},
255255
{
@@ -261,8 +261,8 @@
261261
},
262262
"params": {
263263
"UseDualStack": false,
264-
"Region": "us-east-1",
265264
"UseFIPS": false,
265+
"Region": "us-east-1",
266266
"Endpoint": "https://example.com"
267267
}
268268
},
@@ -273,8 +273,8 @@
273273
},
274274
"params": {
275275
"UseDualStack": false,
276-
"Region": "us-east-1",
277276
"UseFIPS": true,
277+
"Region": "us-east-1",
278278
"Endpoint": "https://example.com"
279279
}
280280
},
@@ -285,8 +285,8 @@
285285
},
286286
"params": {
287287
"UseDualStack": true,
288-
"Region": "us-east-1",
289288
"UseFIPS": false,
289+
"Region": "us-east-1",
290290
"Endpoint": "https://example.com"
291291
}
292292
}

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

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
{"shape":"ConflictException"},
171171
{"shape":"ServiceQuotaExceededException"}
172172
],
173-
"documentation":"<p>Creates a template in the Cases domain. This template is used to define the case object model (that is, define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template.</p>",
173+
"documentation":"<p>Creates a template in the Cases domain. This template is used to define the case object model (that is, to define what data can be captured on cases) in a Cases domain. A template must have a unique name within a domain, and it must reference existing field IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within the same Template. A template can be either Active or Inactive, as indicated by its status. Inactive templates cannot be used to create cases.</p>",
174174
"idempotent":true
175175
},
176176
"GetCase":{
@@ -532,7 +532,8 @@
532532
{"shape":"ValidationException"},
533533
{"shape":"ThrottlingException"},
534534
{"shape":"AccessDeniedException"},
535-
{"shape":"ConflictException"}
535+
{"shape":"ConflictException"},
536+
{"shape":"ServiceQuotaExceededException"}
536537
],
537538
"documentation":"<p>Updates the attributes of an existing layout.</p> <p>If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.</p> <p>A <code>ValidationException</code> is returned when you add non-existent <code>fieldIds</code> to a layout.</p> <note> <p>Title and Status fields cannot be part of layouts because they are not configurable.</p> </note>",
538539
"idempotent":true
@@ -554,7 +555,7 @@
554555
{"shape":"AccessDeniedException"},
555556
{"shape":"ConflictException"}
556557
],
557-
"documentation":"<p>Updates the attributes of an existing template. The template attributes that can be modified include <code>name</code>, <code>description</code>, <code>layouts</code>, and <code>requiredFields</code>. At least one of these attributes must not be null. If a null value is provided for a given attribute, that attribute is ignored and its current value is preserved.</p>",
558+
"documentation":"<p>Updates the attributes of an existing template. The template attributes that can be modified include <code>name</code>, <code>description</code>, <code>layoutConfiguration</code>, <code>requiredFields</code>, and <code>status</code>. At least one of these attributes must not be null. If a null value is provided for a given attribute, that attribute is ignored and its current value is preserved.</p>",
558559
"idempotent":true
559560
}
560561
},
@@ -891,7 +892,7 @@
891892
"members":{
892893
"clientToken":{
893894
"shape":"CreateCaseRequestClientTokenString",
894-
"documentation":"<p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>",
895+
"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>",
895896
"idempotencyToken":true
896897
},
897898
"domainId":{
@@ -1132,6 +1133,10 @@
11321133
"requiredFields":{
11331134
"shape":"RequiredFieldList",
11341135
"documentation":"<p>A list of fields that must contain a value for a case to be successfully created with this template.</p>"
1136+
},
1137+
"status":{
1138+
"shape":"TemplateStatus",
1139+
"documentation":"<p>The status of the template.</p>"
11351140
}
11361141
}
11371142
},
@@ -1321,7 +1326,7 @@
13211326
"FieldGroupFieldsList":{
13221327
"type":"list",
13231328
"member":{"shape":"FieldItem"},
1324-
"max":30,
1329+
"max":100,
13251330
"min":0
13261331
},
13271332
"FieldGroupNameString":{
@@ -1771,6 +1776,7 @@
17711776
"type":"structure",
17721777
"required":[
17731778
"name",
1779+
"status",
17741780
"templateArn",
17751781
"templateId"
17761782
],
@@ -1791,6 +1797,10 @@
17911797
"shape":"RequiredFieldList",
17921798
"documentation":"<p>A list of fields that must contain a value for a case to be successfully created with this template.</p>"
17931799
},
1800+
"status":{
1801+
"shape":"TemplateStatus",
1802+
"documentation":"<p>The status of the template.</p>"
1803+
},
17941804
"tags":{
17951805
"shape":"Tags",
17961806
"documentation":"<p>A map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.</p>"
@@ -2165,6 +2175,12 @@
21652175
"documentation":"<p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>",
21662176
"location":"querystring",
21672177
"locationName":"nextToken"
2178+
},
2179+
"status":{
2180+
"shape":"TemplateStatusFilters",
2181+
"documentation":"<p>A list of status values to filter on.</p>",
2182+
"location":"querystring",
2183+
"locationName":"status"
21682184
}
21692185
}
21702186
},
@@ -2662,10 +2678,26 @@
26622678
"min":1,
26632679
"pattern":"^.*[\\S]$"
26642680
},
2681+
"TemplateStatus":{
2682+
"type":"string",
2683+
"documentation":"<p>Status of a template</p>",
2684+
"enum":[
2685+
"Active",
2686+
"Inactive"
2687+
]
2688+
},
2689+
"TemplateStatusFilters":{
2690+
"type":"list",
2691+
"member":{"shape":"TemplateStatus"},
2692+
"documentation":"<p>List of filters used on the ListTemplates result set</p>",
2693+
"max":2,
2694+
"min":1
2695+
},
26652696
"TemplateSummary":{
26662697
"type":"structure",
26672698
"required":[
26682699
"name",
2700+
"status",
26692701
"templateArn",
26702702
"templateId"
26712703
],
@@ -2674,6 +2706,10 @@
26742706
"shape":"TemplateName",
26752707
"documentation":"<p>The template name.</p>"
26762708
},
2709+
"status":{
2710+
"shape":"TemplateStatus",
2711+
"documentation":"<p>The status of the template.</p>"
2712+
},
26772713
"templateArn":{
26782714
"shape":"TemplateArn",
26792715
"documentation":"<p>The Amazon Resource Name (ARN) of the template.</p>"
@@ -2854,6 +2890,10 @@
28542890
"shape":"RequiredFieldList",
28552891
"documentation":"<p>A list of fields that must contain a value for a case to be successfully created with this template.</p>"
28562892
},
2893+
"status":{
2894+
"shape":"TemplateStatus",
2895+
"documentation":"<p>The status of the template.</p>"
2896+
},
28572897
"templateId":{
28582898
"shape":"TemplateId",
28592899
"documentation":"<p>A unique identifier for the template.</p>",

0 commit comments

Comments
 (0)