flushStageAuthorizersCache method
Flushes all authorizer cache entries on a stage.
May throw UnauthorizedException. May throw NotFoundException. May throw BadRequestException. May throw TooManyRequestsException.
Parameter restApiId
:
The string identifier of the associated RestApi.
Parameter stageName
:
The name of the stage to flush.
Implementation
Future<void> flushStageAuthorizersCache({
required String restApiId,
required String stageName,
}) async {
ArgumentError.checkNotNull(restApiId, 'restApiId');
ArgumentError.checkNotNull(stageName, 'stageName');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/restapis/${Uri.encodeComponent(restApiId)}/stages/${Uri.encodeComponent(stageName)}/cache/authorizers',
exceptionFnMap: _exceptionFns,
);
}