deletePreset method

Future<void> deletePreset({
  1. required String id,
})

The DeletePreset operation removes a preset that you've added in an AWS region.

May throw ValidationException. May throw IncompatibleVersionException. May throw ResourceNotFoundException. May throw AccessDeniedException. May throw InternalServiceException.

Parameter id : The identifier of the preset for which you want to get detailed information.

Implementation

Future<void> deletePreset({
  required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/2012-09-25/presets/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
}