flushStageCache method
Flushes a stage's cache.
May throw UnauthorizedException. May throw NotFoundException. May throw BadRequestException. May throw TooManyRequestsException.
Parameter restApiId
:
Required
The string identifier of the associated RestApi.
Parameter stageName
:
Required
The name of the stage to flush its cache.
Implementation
Future<void> flushStageCache({
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/data',
exceptionFnMap: _exceptionFns,
);
}