|
| 1 | +import { AccessLevelList } from '../../shared/access-level'; |
| 2 | +import { PolicyStatement } from '../../shared'; |
| 3 | + |
| 4 | +/** |
| 5 | + * Statement provider for service [researchstudio](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbiodiscovery.html). |
| 6 | + * |
| 7 | + * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement |
| 8 | + */ |
| 9 | +export class Researchstudio extends PolicyStatement { |
| 10 | + public servicePrefix = 'researchstudio'; |
| 11 | + |
| 12 | + /** |
| 13 | + * Statement provider for service [researchstudio](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbiodiscovery.html). |
| 14 | + * |
| 15 | + * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement |
| 16 | + */ |
| 17 | + constructor(sid?: string) { |
| 18 | + super(sid); |
| 19 | + } |
| 20 | + |
| 21 | + /** |
| 22 | + * Grants permission to assign princiapl |
| 23 | + * |
| 24 | + * Access Level: Write |
| 25 | + */ |
| 26 | + public toAssignPrincipal() { |
| 27 | + return this.to('AssignPrincipal'); |
| 28 | + } |
| 29 | + |
| 30 | + /** |
| 31 | + * Grants permission to create application |
| 32 | + * |
| 33 | + * Access Level: Write |
| 34 | + */ |
| 35 | + public toCreateApplication() { |
| 36 | + return this.to('CreateApplication'); |
| 37 | + } |
| 38 | + |
| 39 | + /** |
| 40 | + * Grants permission to delete application |
| 41 | + * |
| 42 | + * Access Level: Write |
| 43 | + */ |
| 44 | + public toDeleteApplication() { |
| 45 | + return this.to('DeleteApplication'); |
| 46 | + } |
| 47 | + |
| 48 | + /** |
| 49 | + * Grants permission to delete principal |
| 50 | + * |
| 51 | + * Access Level: Write |
| 52 | + */ |
| 53 | + public toDeletePrincipal() { |
| 54 | + return this.to('DeletePrincipal'); |
| 55 | + } |
| 56 | + |
| 57 | + /** |
| 58 | + * Grants permission to get application |
| 59 | + * |
| 60 | + * Access Level: Read |
| 61 | + */ |
| 62 | + public toGetApplication() { |
| 63 | + return this.to('GetApplication'); |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * Grants permission to list applications |
| 68 | + * |
| 69 | + * Access Level: List |
| 70 | + */ |
| 71 | + public toListApplications() { |
| 72 | + return this.to('ListApplications'); |
| 73 | + } |
| 74 | + |
| 75 | + protected accessLevelList: AccessLevelList = { |
| 76 | + Write: [ |
| 77 | + 'AssignPrincipal', |
| 78 | + 'CreateApplication', |
| 79 | + 'DeleteApplication', |
| 80 | + 'DeletePrincipal' |
| 81 | + ], |
| 82 | + Read: [ |
| 83 | + 'GetApplication' |
| 84 | + ], |
| 85 | + List: [ |
| 86 | + 'ListApplications' |
| 87 | + ] |
| 88 | + }; |
| 89 | +} |
0 commit comments