How to rename a group in Redshift database

Below is the syntax to rename a group in Redshift database:

ALTER GROUP groupname   
RENAME TO new_groupname;
See also  How to create an SQS queue from AWS CLI