listBootstrapActions method
Provides information about the bootstrap actions associated with a cluster.
May throw InternalServerException. May throw InvalidRequestException.
Parameter clusterId
:
The cluster identifier for the bootstrap actions to list.
Parameter marker
:
The pagination token that indicates the next set of results to retrieve.
Implementation
Future<ListBootstrapActionsOutput> listBootstrapActions({
required String clusterId,
String? marker,
}) async {
ArgumentError.checkNotNull(clusterId, 'clusterId');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ElasticMapReduce.ListBootstrapActions'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ClusterId': clusterId,
if (marker != null) 'Marker': marker,
},
);
return ListBootstrapActionsOutput.fromJson(jsonResponse.body);
}