将 API 网关阶段变量设置为请求的一部分?

Set the API Gateway Stage Variable as part of the request?

是否可以根据请求在 API 网关上设置 $stageVariable?如,在发出请求时设置阶段变量值,以便可以根据请求对其进行自定义?

这就是我在提到 "stage variable" 时所指的: https://docs.aws.amazon.com/apigateway/latest/developerguide/aws-api-gateway-stage-variables-reference.html

不,顾名思义,阶段变量是按阶段设置的。

它们不能根据每个请求进行定制。