import * as statement from '..' ; param tag export function allowEc2InstanceDeleteByOwner ( tag ? ) { const tagName = tag || 'Owner' ; return [ new statement . Ec2 ( ) . allow ( ) . toStartInstances ( ) . ifAwsRequestTag ( tagName , '${aws:username}' ) , new statement . Ec2 ( ) . allow ( ) . toStopInstances ( ) . ifResourceTag ( tagName , '${aws:username}' ) , ] ; }