flushStageCache method

Future<void> flushStageCache({
  1. required String restApiId,
  2. required String stageName,
})

Flushes a stage's cache.

May throw BadRequestException. May throw ConflictException. May throw LimitExceededException. May throw NotFoundException. May throw TooManyRequestsException. May throw UnauthorizedException.

Parameter restApiId : The string identifier of the associated RestApi.

Parameter stageName : The name of the stage to flush its cache.

Implementation

Future<void> flushStageCache({
  required String restApiId,
  required String stageName,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/restapis/${Uri.encodeComponent(restApiId)}/stages/${Uri.encodeComponent(stageName)}/cache/data',
    exceptionFnMap: _exceptionFns,
  );
}