code: def _authenticate(self):
          
          try:
              hosted_zones = self.r53_client.list_hosted_zones_by_name()[
                  'HostedZones'
              ]
              hosted_zone = next(
                  hz for hz in hosted_zones
                  if self.filter_zone(hz)
              )
              self.domain_id = hosted_zone['Id']
          except StopIteration:
              raise Exception('No domain found')
docs: Determine the hosted zone id for the domain.