code: def generate_admin_resource():
      
      logger.debug("[#] Setting up the admin resource")
      client = boto3.client('apigateway', region_name=PRIMARY_REGION)
      existing = get_api_gateway_resource("admin")
      if existing:
          logger.debug("[#] API admin resource already created")
          return True
      matches = [x for x in client.get_rest_apis().get('items', list())
                 if x['name'] == API_GATEWAY]
      match = matches.pop()
      resource_id = get_api_gateway_resource('/')
      response = client.create_resource(
          restApiId=match.get('id'),
          parentId=resource_id,
          pathPart='admin'
      )
      logger.info("[#] Successfully setup the admin resource")
  
      return response
docs: Create the Blockade admin resource for the REST services.