resetAuthorizersCache method
Resets all authorizer cache entries on a stage. Supported only for HTTP APIs.
May throw NotFoundException. May throw TooManyRequestsException.
Parameter apiId
:
The API identifier.
Parameter stageName
:
The stage name. Stage names can contain only alphanumeric characters,
hyphens, and underscores, or be $default. Maximum length is 128
characters.
Implementation
Future<void> resetAuthorizersCache({
required String apiId,
required String stageName,
}) async {
ArgumentError.checkNotNull(apiId, 'apiId');
ArgumentError.checkNotNull(stageName, 'stageName');
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/v2/apis/${Uri.encodeComponent(apiId)}/stages/${Uri.encodeComponent(stageName)}/cache/authorizers',
exceptionFnMap: _exceptionFns,
);
}