listStudios method

Future<ListStudiosOutput> listStudios({
  1. String? marker,
})
Returns a list of all Amazon EMR Studios associated with the AWS account. The list includes details such as ID, Studio Access URL, and creation time for each Studio.

May throw InternalServerException. May throw InvalidRequestException.

Parameter marker : The pagination token that indicates the set of results to retrieve.

Implementation

Future<ListStudiosOutput> listStudios({
  String? marker,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'ElasticMapReduce.ListStudios'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (marker != null) 'Marker': marker,
    },
  );

  return ListStudiosOutput.fromJson(jsonResponse.body);
}