readPreset method

Future<ReadPresetResponse> readPreset({
  1. required String id,
})

The ReadPreset operation gets detailed information about a preset.

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<ReadPresetResponse> readPreset({
  required String id,
}) async {
  ArgumentError.checkNotNull(id, 'id');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/2012-09-25/presets/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  return ReadPresetResponse.fromJson(response);
}