deleteAccessLogSettings method

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

Deletes the AccessLogSettings for a Stage. To disable access logging for a Stage, delete its AccessLogSettings.

May throw NotFoundException. May throw TooManyRequestsException.

Parameter apiId : The API identifier.

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

Implementation

Future<void> deleteAccessLogSettings({
  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)}/accesslogsettings',
    exceptionFnMap: _exceptionFns,
  );
}