Setting up Repos

Had this question on the RHCSA and it really screwed me up!!

Base requirements are

[rhel-8-for-x86_64-appstream-rpms]
name = Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
baseurl = https://dubrhsatserver62.office.local/pulp/repos/DAA/Library/content/dist/rhel8/$releasever/x86_64/appstream/os
enabled = 1
gpgcheck = 1

or

[rhel-9-for-x86_64-baseos-rpms-update]
baseurl = http://content.example.com/rhel.0/x86_64/rhel-additional/ansible-automation-platform-2.2-for-rhel-9-x86_64-rpms]
enabled = true 
gpgcheck = false
name = Red Hat Ansible PLatform 2.2 for RHEL 9 x86_64 (RPMS)

So its a name in square brackets.