import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class Sumerian extends PolicyStatement { public servicePrefix = 'sumerian' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grant login access to the Sumerian console.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/sumerian/latest/userguide/sumerian-permissions.html
     */ public toLogin ( ) { return this . to ( 'Login' ) ; } /**
     * Grant access to view a project release.
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/sumerian/latest/userguide/sumerian-permissions.html
     */ public toViewRelease ( ) { return this . to ( 'ViewRelease' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'Login' ] , Read : [ 'ViewRelease' ] } ; param projectName param account param region param partition public onProject ( projectName , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:sumerian:${ region || '*' }:${ account || '*' }:project:${ projectName }` ) ; } }