刷新AWS API网关授权策略
答
当您授予对新用户的访问权限时,可以使用API调用刷新一个阶段的缓存策略。
var params = {
restApiId: 'STRING_VALUE', /* required */
stageName: 'STRING_VALUE' /* required */
};
apigateway.flushStageAuthorizersCache(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});