backbone-sdb.js
function getEC2IAMRole(callback) {
		httpRequest({host: EC2_METADATA_HOST, path: SECURITY_CREDENTIALS_RESOURCE}, null, function(error, role, httpResponse) {
			callback(error, _.isString(role) ? role.trim() : role, httpResponse);
		});
	}
function getEC2IAMRole(callback) {
		httpRequest({host: EC2_METADATA_HOST, path: SECURITY_CREDENTIALS_RESOURCE}, null, function(error, role, httpResponse) {
			callback(error, _.isString(role) ? role.trim() : role, httpResponse);
		});
	}
function getEC2IAMRole ( callback ) { httpRequest ( { host : EC2_METADATA_HOST , path : SECURITY_CREDENTIALS_RESOURCE } , null , function ( error , role , httpResponse ) { callback ( error , _ . isString ( role ) ? role . trim ( ) : role , httpResponse ) ; } ) ; }
Gets the EC2 IAM role name from the metadata service.

@method getEC2IAMRole
@private
@param {Function} callback Callback function that receives the role returned by the metadata service.
Gets the EC2 IAM role name from the metadata service .