import { AccessLevelList } from '../shared/access-level' ; import { PolicyStatement } from '../shared' ; param sid export class Route53RecoveryCluster extends PolicyStatement { public servicePrefix = 'route53-recovery-cluster' ; param sid constructor ( sid ? ) { super ( sid ) ; } /**
     * Grants permission to get a routing control state
     *
     * Access Level: Read
     *
     * https://docs.aws.amazon.com/routing-control/latest/APIReference/API_GetRoutingControlState.html
     */ public toGetRoutingControlState ( ) { return this . to ( 'GetRoutingControlState' ) ; } /**
     * Grants permission to update a routing control state
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/routing-control/latest/APIReference/API_UpdateRoutingControlState.html
     */ public toUpdateRoutingControlState ( ) { return this . to ( 'UpdateRoutingControlState' ) ; } /**
     * Grants permission to update a batch of routing control states
     *
     * Access Level: Write
     *
     * https://docs.aws.amazon.com/routing-control/latest/APIReference/API_UpdateRoutingControlStates.html
     */ public toUpdateRoutingControlStates ( ) { return this . to ( 'UpdateRoutingControlStates' ) ; } protected accessLevelList : AccessLevelList = { Read : [ 'GetRoutingControlState' ] , Write : [ 'UpdateRoutingControlState' , 'UpdateRoutingControlStates' ] } ; param controlPanelId param routingControlId param account param partition public onRoutingcontrol ( controlPanelId , routingControlId , account ? , partition ? ) { return this . on ( `arn:${ partition || 'aws' }:route53-recovery-control::${ account || '*' }:controlpanel/${ controlPanelId }/routingcontrol/${ routingControlId }` ) ; } }