removeAutoTerminationPolicy method

Future<void> removeAutoTerminationPolicy({
  1. required String clusterId,
})

Removes an auto-termination policy from an Amazon EMR cluster.

Parameter clusterId : Specifies the ID of the Amazon EMR cluster from which the auto-termination policy will be removed.

Implementation

Future<void> removeAutoTerminationPolicy({
  required String clusterId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'ElasticMapReduce.RemoveAutoTerminationPolicy'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ClusterId': clusterId,
    },
  );
}