code: def find_resource_ids(self):
          
          all_resources = self.client.get_resources(restApiId=self.api_id)
          parent_id = None
          resource_id = None
          for resource in all_resources['items']:
              if resource['path'] == "/":
                  parent_id = resource['id']
              if resource['path'] == self.trigger_settings['resource']:
                  resource_id = resource['id']
                  self.log.info("Found Resource ID for: %s", resource['path'])
          return resource_id, parent_id
docs: Given a resource path and API Id, find resource Id.