Skip to content

Commit 00804da

Browse files
author
AWS
committed
AWS re:Post Private Update: Adds the BatchAddRole and BatchRemoveRole APIs.
1 parent d0d4eae commit 00804da

File tree

2 files changed

+189
-3
lines changed

2 files changed

+189
-3
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": "AWS re:Post Private",
4+
"contributor": "",
5+
"description": "Adds the BatchAddRole and BatchRemoveRole APIs."
6+
}

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

Lines changed: 183 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,53 @@
55
"endpointPrefix":"repostspace",
66
"jsonVersion":"1.1",
77
"protocol":"rest-json",
8+
"protocols":["rest-json"],
89
"serviceFullName":"AWS re:Post Private",
910
"serviceId":"repostspace",
1011
"signatureVersion":"v4",
1112
"signingName":"repostspace",
12-
"uid":"repostspace-2022-05-13"
13+
"uid":"repostspace-2022-05-13",
14+
"auth":["aws.auth#sigv4"]
1315
},
1416
"operations":{
17+
"BatchAddRole":{
18+
"name":"BatchAddRole",
19+
"http":{
20+
"method":"POST",
21+
"requestUri":"/spaces/{spaceId}/roles",
22+
"responseCode":200
23+
},
24+
"input":{"shape":"BatchAddRoleInput"},
25+
"output":{"shape":"BatchAddRoleOutput"},
26+
"errors":[
27+
{"shape":"AccessDeniedException"},
28+
{"shape":"ValidationException"},
29+
{"shape":"ResourceNotFoundException"},
30+
{"shape":"ThrottlingException"},
31+
{"shape":"InternalServerException"}
32+
],
33+
"documentation":"<p>Add role to multiple users or groups in a private re:Post.</p>",
34+
"idempotent":true
35+
},
36+
"BatchRemoveRole":{
37+
"name":"BatchRemoveRole",
38+
"http":{
39+
"method":"PATCH",
40+
"requestUri":"/spaces/{spaceId}/roles",
41+
"responseCode":200
42+
},
43+
"input":{"shape":"BatchRemoveRoleInput"},
44+
"output":{"shape":"BatchRemoveRoleOutput"},
45+
"errors":[
46+
{"shape":"AccessDeniedException"},
47+
{"shape":"ValidationException"},
48+
{"shape":"ResourceNotFoundException"},
49+
{"shape":"ThrottlingException"},
50+
{"shape":"InternalServerException"}
51+
],
52+
"documentation":"<p>Remove role from multiple users or groups in a private re:Post.</p>",
53+
"idempotent":true
54+
},
1555
"CreateSpace":{
1656
"name":"CreateSpace",
1757
"http":{
@@ -243,6 +283,115 @@
243283
"max":2048,
244284
"min":20
245285
},
286+
"BatchAddRoleInput":{
287+
"type":"structure",
288+
"required":[
289+
"accessorIds",
290+
"role",
291+
"spaceId"
292+
],
293+
"members":{
294+
"accessorIds":{
295+
"shape":"AccessorIdList",
296+
"documentation":"<p>The user or group accessor identifiers to add the role to.</p>"
297+
},
298+
"role":{
299+
"shape":"Role",
300+
"documentation":"<p>The role to add to the users or groups.</p>"
301+
},
302+
"spaceId":{
303+
"shape":"SpaceId",
304+
"documentation":"<p>The unique ID of the private re:Post.</p>",
305+
"location":"uri",
306+
"locationName":"spaceId"
307+
}
308+
}
309+
},
310+
"BatchAddRoleOutput":{
311+
"type":"structure",
312+
"required":[
313+
"addedAccessorIds",
314+
"errors"
315+
],
316+
"members":{
317+
"addedAccessorIds":{
318+
"shape":"AccessorIdList",
319+
"documentation":"<p>An array of successfully updated accessor identifiers.</p>"
320+
},
321+
"errors":{
322+
"shape":"BatchErrorList",
323+
"documentation":"<p>An array of errors that occurred when roles were added.</p>"
324+
}
325+
}
326+
},
327+
"BatchError":{
328+
"type":"structure",
329+
"required":[
330+
"accessorId",
331+
"error",
332+
"message"
333+
],
334+
"members":{
335+
"accessorId":{
336+
"shape":"AccessorId",
337+
"documentation":"<p>The accessor identifier that's related to the error.</p>"
338+
},
339+
"error":{
340+
"shape":"ErrorCode",
341+
"documentation":"<p>The error code.</p>"
342+
},
343+
"message":{
344+
"shape":"ErrorMessage",
345+
"documentation":"<p>Description of the error.</p>"
346+
}
347+
},
348+
"documentation":"<p>An error that occurred during a batch operation.</p>"
349+
},
350+
"BatchErrorList":{
351+
"type":"list",
352+
"member":{"shape":"BatchError"}
353+
},
354+
"BatchRemoveRoleInput":{
355+
"type":"structure",
356+
"required":[
357+
"accessorIds",
358+
"role",
359+
"spaceId"
360+
],
361+
"members":{
362+
"accessorIds":{
363+
"shape":"AccessorIdList",
364+
"documentation":"<p>The user or group accessor identifiers to remove the role from.</p>"
365+
},
366+
"role":{
367+
"shape":"Role",
368+
"documentation":"<p>The role to remove from the users or groups.</p>"
369+
},
370+
"spaceId":{
371+
"shape":"SpaceId",
372+
"documentation":"<p>The unique ID of the private re:Post.</p>",
373+
"location":"uri",
374+
"locationName":"spaceId"
375+
}
376+
}
377+
},
378+
"BatchRemoveRoleOutput":{
379+
"type":"structure",
380+
"required":[
381+
"errors",
382+
"removedAccessorIds"
383+
],
384+
"members":{
385+
"errors":{
386+
"shape":"BatchErrorList",
387+
"documentation":"<p>An array of errors that occurred when roles were removed.</p>"
388+
},
389+
"removedAccessorIds":{
390+
"shape":"AccessorIdList",
391+
"documentation":"<p>An array of successfully updated accessor identifiers.</p>"
392+
}
393+
}
394+
},
246395
"ClientId":{"type":"string"},
247396
"ConfigurationStatus":{
248397
"type":"string",
@@ -361,6 +510,11 @@
361510
}
362511
}
363512
},
513+
"ErrorCode":{
514+
"type":"integer",
515+
"box":true
516+
},
517+
"ErrorMessage":{"type":"string"},
364518
"GetSpaceInput":{
365519
"type":"structure",
366520
"required":["spaceId"],
@@ -424,7 +578,9 @@
424578
},
425579
"groupAdmins":{
426580
"shape":"GroupAdmins",
427-
"documentation":"<p>The list of groups that are administrators of the private re:Post.</p>"
581+
"documentation":"<p>The list of groups that are administrators of the private re:Post.</p>",
582+
"deprecated":true,
583+
"deprecatedMessage":"This property has been depracted and will be replaced by the roles property."
428584
},
429585
"name":{
430586
"shape":"SpaceName",
@@ -434,6 +590,10 @@
434590
"shape":"Url",
435591
"documentation":"<p>The AWS generated subdomain of the private re:Post</p>"
436592
},
593+
"roles":{
594+
"shape":"Roles",
595+
"documentation":"<p>A map of accessor identifiers and their roles.</p>"
596+
},
437597
"spaceId":{
438598
"shape":"SpaceId",
439599
"documentation":"<p>The unique ID of the private re:Post.</p>"
@@ -452,7 +612,9 @@
452612
},
453613
"userAdmins":{
454614
"shape":"UserAdmins",
455-
"documentation":"<p>The list of users that are administrators of the private re:Post.</p>"
615+
"documentation":"<p>The list of users that are administrators of the private re:Post.</p>",
616+
"deprecated":true,
617+
"deprecatedMessage":"This property has been depracted and will be replaced by the roles property."
456618
},
457619
"userCount":{
458620
"shape":"UserCount",
@@ -620,6 +782,24 @@
620782
},
621783
"exception":true
622784
},
785+
"Role":{
786+
"type":"string",
787+
"enum":[
788+
"EXPERT",
789+
"MODERATOR",
790+
"ADMINISTRATOR",
791+
"SUPPORTREQUESTOR"
792+
]
793+
},
794+
"RoleList":{
795+
"type":"list",
796+
"member":{"shape":"Role"}
797+
},
798+
"Roles":{
799+
"type":"map",
800+
"key":{"shape":"AccessorId"},
801+
"value":{"shape":"RoleList"}
802+
},
623803
"SendInvitesInput":{
624804
"type":"structure",
625805
"required":[

0 commit comments

Comments
 (0)