import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class NeptuneDb extends PolicyStatement { public servicePrefix = 'neptune-db' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Connect to database
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/neptune/latest/userguide/get-started.html
     */ public toConnect ( ) { return this . to ( 'connect' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'connect' ] } ; param cluster param database param account param region param partition public onDatabase ( cluster , database , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:neptune-db:${ region || '*' }:${ account || '*' }:${ cluster }/${ database }` ) ; } }