nl_tokens: Builds the correct set of params depending on whether or not the identifier is an instanceId or a name .
pl_tokens: function buildParams ( identifier , instanceState ) { var params = { } if ( instanceState ) { params . Filters = [ { Name : 'instance-state-name' , Values : [ instanceState ] } ] } if ( isInstanceId ( identifier ) ) { params . InstanceIds = [ identifier ] return params } params . Filters = params . Filters || [ ] params . Filters . push ( { <mask> : 'tag:Name' , Values : [ identifier ] } ) return params }