ListInstanceGroups
Source:
src/AWS/EMR/ListInstanceGroups.ts
Runtime binding for elasticmapreduce:ListInstanceGroups — lists the bound cluster’s instance groups (instance-group clusters only) with requested/running counts — the ids feed ModifyInstanceGroups and PutAutoScalingPolicy.
Inspecting the Cluster
Section titled “Inspecting the Cluster”const listInstanceGroups = yield* AWS.EMR.ListInstanceGroups(cluster);
const { InstanceGroups } = yield* listInstanceGroups();const core = InstanceGroups?.find( (group) => group.InstanceGroupType === "CORE",);