import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class RdsData extends PolicyStatement { public servicePrefix = 'rds-data' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grants permission to run a batch SQL statement over an array of data
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsResourceTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/rdsdataservice/latest/APIReference/API_BatchExecuteStatement.html
     */ public toBatchExecuteStatement ( ) { return this . to ( 'BatchExecuteStatement' ) ; } /**
     * Grants permission to start a SQL transaction
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsResourceTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/rdsdataservice/latest/APIReference/API_BeginTransaction.html
     */ public toBeginTransaction ( ) { return this . to ( 'BeginTransaction' ) ; } /**
     * Grants permission to end a SQL transaction started with the BeginTransaction operation and commits the changes
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsResourceTag()
     * - .ifAwsTagKeys()
     *
     * Dependent actions:
     * - rds-data:BeginTransaction
     *
     * https://docs.aws.amazon.com/rdsdataservice/latest/APIReference/API_CommitTransaction.html
     */ public toCommitTransaction ( ) { return this . to ( 'CommitTransaction' ) ; } /**
     * Grants permission to run one or more SQL statements. This operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsResourceTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/rdsdataservice/latest/APIReference/API_ExecuteSql.html
     */ public toExecuteSql ( ) { return this . to ( 'ExecuteSql' ) ; } /**
     * Grants permission to run a SQL statement against a database
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsResourceTag()
     * - .ifAwsTagKeys()
     *
     * https://docs.aws.amazon.com/rdsdataservice/latest/APIReference/API_ExecuteStatement.html
     */ public toExecuteStatement ( ) { return this . to ( 'ExecuteStatement' ) ; } /**
     * Grants permission to perform a rollback of a transaction. Rolling back a transaction cancels its changes
     *
     * Access Level: Write
     *
     * Possible conditions:
     * - .ifAwsResourceTag()
     * - .ifAwsTagKeys()
     *
     * Dependent actions:
     * - rds-data:BeginTransaction
     *
     * https://docs.aws.amazon.com/rdsdataservice/latest/APIReference/API_RollbackTransaction.html
     */ public toRollbackTransaction ( ) { return this . to ( 'RollbackTransaction' ) ; } protected accessLevelList : AccessLevelList = { Write : [ 'BatchExecuteStatement' , 'BeginTransaction' , 'CommitTransaction' , 'ExecuteSql' , 'ExecuteStatement' , 'RollbackTransaction' ] } ; param dbClusterInstanceName param account param region param partition public onCluster ( dbClusterInstanceName , account ? , region ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:rds:${ region || '*' }:${ account || '*' }:cluster:${ dbClusterInstanceName }` ) ; } }