|
5 | 5 | "endpointPrefix":"repostspace",
|
6 | 6 | "jsonVersion":"1.1",
|
7 | 7 | "protocol":"rest-json",
|
| 8 | + "protocols":["rest-json"], |
8 | 9 | "serviceFullName":"AWS re:Post Private",
|
9 | 10 | "serviceId":"repostspace",
|
10 | 11 | "signatureVersion":"v4",
|
11 | 12 | "signingName":"repostspace",
|
12 |
| - "uid":"repostspace-2022-05-13" |
| 13 | + "uid":"repostspace-2022-05-13", |
| 14 | + "auth":["aws.auth#sigv4"] |
13 | 15 | },
|
14 | 16 | "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 | + }, |
15 | 55 | "CreateSpace":{
|
16 | 56 | "name":"CreateSpace",
|
17 | 57 | "http":{
|
|
243 | 283 | "max":2048,
|
244 | 284 | "min":20
|
245 | 285 | },
|
| 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 | + }, |
246 | 395 | "ClientId":{"type":"string"},
|
247 | 396 | "ConfigurationStatus":{
|
248 | 397 | "type":"string",
|
|
361 | 510 | }
|
362 | 511 | }
|
363 | 512 | },
|
| 513 | + "ErrorCode":{ |
| 514 | + "type":"integer", |
| 515 | + "box":true |
| 516 | + }, |
| 517 | + "ErrorMessage":{"type":"string"}, |
364 | 518 | "GetSpaceInput":{
|
365 | 519 | "type":"structure",
|
366 | 520 | "required":["spaceId"],
|
|
424 | 578 | },
|
425 | 579 | "groupAdmins":{
|
426 | 580 | "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." |
428 | 584 | },
|
429 | 585 | "name":{
|
430 | 586 | "shape":"SpaceName",
|
|
434 | 590 | "shape":"Url",
|
435 | 591 | "documentation":"<p>The AWS generated subdomain of the private re:Post</p>"
|
436 | 592 | },
|
| 593 | + "roles":{ |
| 594 | + "shape":"Roles", |
| 595 | + "documentation":"<p>A map of accessor identifiers and their roles.</p>" |
| 596 | + }, |
437 | 597 | "spaceId":{
|
438 | 598 | "shape":"SpaceId",
|
439 | 599 | "documentation":"<p>The unique ID of the private re:Post.</p>"
|
|
452 | 612 | },
|
453 | 613 | "userAdmins":{
|
454 | 614 | "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." |
456 | 618 | },
|
457 | 619 | "userCount":{
|
458 | 620 | "shape":"UserCount",
|
|
620 | 782 | },
|
621 | 783 | "exception":true
|
622 | 784 | },
|
| 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 | + }, |
623 | 803 | "SendInvitesInput":{
|
624 | 804 | "type":"structure",
|
625 | 805 | "required":[
|
|
0 commit comments