action EMR

modify_instance_fleet

Modify the on-demand and spot capacities for an instance fleet

Run it now
View details
Typeaction
Modulechaosaws.emr.actions
Namemodify_instance_fleet
Returnmapping

Usage

JSON

{
  "name": "modify-instance-fleet",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosaws.emr.actions",
    "func": "modify_instance_fleet",
    "arguments": {
      "cluster_id": "",
      "fleet_id": ""
    }
  }
}

YAML

name: modify-instance-fleet
provider:
  arguments:
    cluster_id: ""
    fleet_id: ""
  func: modify_instance_fleet
  module: chaosaws.emr.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
cluster_idstringYesCluster ID
fleet_idstringYesFleet ID
on_demand_capacityintegernullNoOn-Demand capacity
spot_capacityintegernullNoShot Capacity
  • cluster_id: The cluster id
  • fleet_id: The instance fleet id
  • on_demand_capacity: Target capacity of on-demand units
  • spot_capacity: Target capacity of spot units

Signature

def modify_instance_fleet(
        cluster_id: str,
        fleet_id: str,
        on_demand_capacity: int = None,
        spot_capacity: int = None,
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass