AWS
describe_cluster
Describe a single EMR cluster
Modify an instance groups shrink operations
Below are the details and signature of the activity Python module.
Type | action |
Module | chaosaws.emr.actions |
Name | modify_instance_groups_shrink_policy |
Return | mapping |
Usage
JSON
{
"name": "modify-instance-groups-shrink-policy",
"type": "action",
"provider": {
"type": "python",
"module": "chaosaws.emr.actions",
"func": "modify_instance_groups_shrink_policy",
"arguments": {
"cluster_id": "",
"group_id": ""
}
}
}
YAML
name: modify-instance-groups-shrink-policy
provider:
arguments:
cluster_id: ""
group_id: ""
func: modify_instance_groups_shrink_policy
module: chaosaws.emr.actions
type: python
type: action
Arguments
Name | Type | Default | Required | Title | Description |
---|---|---|---|---|---|
cluster_id | string | Yes | Cluster ID | ||
group_id | string | Yes | Group ID | ||
decommission_timeout | integer | null | No | Decomission Timeout | |
terminate_instances | list | null | No | Instances to Terminate | |
protect_instances | list | null | No | Instances to Protect | |
termination_timeout | integer | null | No | Termination Timeout |
Signature
def modify_instance_groups_shrink_policy(
cluster_id: str,
group_id: str,
decommission_timeout: int = None,
terminate_instances: List[str] = None,
protect_instances: List[str] = None,
termination_timeout: int = None,
configuration: Dict[str, Dict[str, str]] = None,
secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass