Setting up Global Rest API Authorizer

Working with serverless v4. The cognito authorizer works when used with a specific lambda function. Trying to get it setup globally to work with all lambda functions.

Error:

Invalid configuration encountered
at ‘provider.apiGateway’: unrecognized property ‘authorizers’

YAML:

provider:
  name: aws
  runtime: nodejs18.x
  region: us-east-1

  apiGateway:
    authorizers:
      CognitoAuthorizer:
        type: COGNITO_USER_POOLS
        providerARNs:
          - !GetAtt UserPool.Arn
        identitySource: method.request.header.Authorization

Then would call the individual lambda function as follows:

getData:
    handler: functions/getSomeData.getData
    events:
      - http:
          path: /examplelData
          method: get
          authorizer:
             name: CognitoAuthorizer