describeStudio method

Future<DescribeStudioOutput> describeStudio({
  1. required String studioId,
})
Returns details for the specified Amazon EMR Studio including ID, Name, VPC, Studio access URL, and so on.

May throw InternalServerException. May throw InvalidRequestException.

Parameter studioId : The Amazon EMR Studio ID.

Implementation

Future<DescribeStudioOutput> describeStudio({
  required String studioId,
}) async {
  ArgumentError.checkNotNull(studioId, 'studioId');
  _s.validateStringLength(
    'studioId',
    studioId,
    0,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'ElasticMapReduce.DescribeStudio'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'StudioId': studioId,
    },
  );

  return DescribeStudioOutput.fromJson(jsonResponse.body);
}