def profile_add(profile_name): """ Create a policy profile with the given name. :param profile_name: The name for the profile. :return: None. """ # Check if the profile exists. if client.profile_exists(profile_name): print "Profile %s already exists." % profile_name else: # Create the profile. client.create_profile(profile_name) print "Created profile %s" % profile_name