Can I get the AMI ID from the source_ami_filter

Can I get the AMI ID from the source_ami_filter,
I would like to store the Ami I want to build from into a tag