deleteStudio method

Future<void> deleteStudio({
  1. required String studioId,
})
Removes an Amazon EMR Studio from the Studio metadata store.

May throw InternalServerException. May throw InvalidRequestException.

Parameter studioId : The ID of the Amazon EMR Studio.

Implementation

Future<void> deleteStudio({
  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.DeleteStudio'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'StudioId': studioId,
    },
  );
}