nl_tokens: Uses AutoScaling . describeAutoScalingGroups to check existence of the auto scaling group . If the list of AutoScalingGroups returned is empty doesAutoScalingGroupExist is resolved as False if it s not empty it is resolved as True .
pl_tokens: function doesAutoScalingGroupExist ( autoScaling , asgName ) { return autoScaling . describeAutoScalingGroupsPromised ( { AutoScalingGroupNames : [ asgName ] } ) . then ( function <mask> ( data ) { return ! _ . isEmpty ( data . AutoScalingGroups ) } ) }