import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class Finspace extends PolicyStatement { public servicePrefix = 'finspace' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grants permissions to create a FinSpace environment
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_CreateEnvironment.html
     */ public toCreateEnvironment ( ) { return this . to ( 'CreateEnvironment' ) ; } /**
     * Grants permissions to create a FinSpace user.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_CreateUser.html
     */ public toCreateUser ( ) { return this . to ( 'CreateUser' ) ; } /**
     * Grants permissions to delete a FinSpace environment.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_DeleteEnvironment.html
     */ public toDeleteEnvironment ( ) { return this . to ( 'DeleteEnvironment' ) ; } /**
     * Grants permissions to delete a FinSpace user.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_DeleteUser.html
     */ public toDeleteUser ( ) { return this . to ( 'DeleteUser' ) ; } /**
     * Grants permissions to describe a FinSpace environment.
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_GetEnvironment.html
     */ public toGetEnvironment ( ) { return this . to ( 'GetEnvironment' ) ; } /**
     * Grants permissions to request status of the loading of sample data bundle.
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_GetLoadSampleDataSetGroupIntoEnvironmentStatus.html
     */ public toGetLoadSampleDataSetGroupIntoEnvironmentStatus ( ) { return this . to ( 'GetLoadSampleDataSetGroupIntoEnvironmentStatus' ) ; } /**
     * Grants permissions to describe a FinSpace user.
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_GetUser.html
     */ public toGetUser ( ) { return this . to ( 'GetUser' ) ; } /**
     * Grants permissions to list FinSpace environments in the AWS account.
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_ListEnvironments.html
     */ public toListEnvironments ( ) { return this . to ( 'ListEnvironments' ) ; } /**
     * Grants permissions to return a list of tags for a resource.
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_ListTagsForResource.html
     */ public toListTagsForResource ( ) { return this . to ( 'ListTagsForResource' ) ; } /**
     * Grants permissions to list FinSpace users in an environment.
     *
     * Access Level: List
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_ListUsers.html
     */ public toListUsers ( ) { return this . to ( 'ListUsers' ) ; } /**
     * Grants permissions to load sample data bundle into your FinSpace environment.
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_LoadSampleDataSetGroupIntoEnvironment.html
     */ public toLoadSampleDataSetGroupIntoEnvironment ( ) { return this . to ( 'LoadSampleDataSetGroupIntoEnvironment' ) ; } /**
     * Grants permissions to tag a resource.
     *
     * Access Level: Tagging
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_TagResource.html
     */ public toTagResource ( ) { return this . to ( 'TagResource' ) ; } /**
     * Grants permissions to untag a resource.
     *
     * Access Level: Tagging
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_UntagResource.html
     */ public toUntagResource ( ) { return this . to ( 'UntagResource' ) ; } /**
     * Grants permissions to update a FinSpace environment
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/finspace/latest/management-api/API_UpdateEnvironment.html
     */ public toUpdateEnvironment ( ) { return this . to ( 'UpdateEnvironment' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'CreateEnvironment' , 'CreateUser' , 'DeleteEnvironment' , 'DeleteUser' , 'LoadSampleDataSetGroupIntoEnvironment' , 'UpdateEnvironment' ] , Read : [ 'GetEnvironment' , 'GetLoadSampleDataSetGroupIntoEnvironmentStatus' , 'GetUser' , 'ListTagsForResource' ] , List : [ 'ListEnvironments' , 'ListUsers' ] , Tagging : [ 'TagResource' , 'UntagResource' ] } ; param environmentId param account param region param partition public onEnvironment ( environmentId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:finspace:${ region || '*' }:${ account || '*' }:environment/${ environmentId }` ) ; } param userId param account param region param partition public onUser ( userId , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:finspace:${ region || '*' }:${ account || '*' }:user/${ userId }` ) ; } }