deleteRouteSettings method

Future<void> deleteRouteSettings({
  1. required String apiId,
  2. required String routeKey,
  3. required String stageName,
})

Deletes the RouteSettings for a stage.

May throw NotFoundException. May throw TooManyRequestsException.

Parameter apiId : The API identifier.

Parameter routeKey : The route key.

Parameter stageName : The stage name. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.

Implementation

Future<void> deleteRouteSettings({
  required String apiId,
  required String routeKey,
  required String stageName,
}) async {
  ArgumentError.checkNotNull(apiId, 'apiId');
  ArgumentError.checkNotNull(routeKey, 'routeKey');
  ArgumentError.checkNotNull(stageName, 'stageName');
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v2/apis/${Uri.encodeComponent(apiId)}/stages/${Uri.encodeComponent(stageName)}/routesettings/${Uri.encodeComponent(routeKey)}',
    exceptionFnMap: _exceptionFns,
  );
}