asEc2ImageId

Casts this ImageSourceIdentifier as a Ec2ImageId and retrieves its kotlin.String value. Throws an exception if the ImageSourceIdentifier is not a Ec2ImageId.