Skip to main content

managed_scaling_policies

Creates, updates, deletes, gets or lists a managed_scaling_policies resource.

Overview

Namemanaged_scaling_policies
TypeResource
Idaws.emr.managed_scaling_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
compute_limitsobjectThe Amazon EC2 unit limits for a managed scaling policy. The managed scaling activity of a cluster is not allowed to go above or below these limits. The limit only applies to the core and task nodes. The master node cannot be scaled after initial configuration.
scaling_strategystringDetermines whether a custom scaling utilization performance index can be set. Possible values include ADVANCED or DEFAULT. (DEFAULT, ADVANCED)
utilization_performance_indexintegerAn integer value that represents an advanced scaling strategy. Setting a higher value optimizes for performance. Setting a lower value optimizes for resource conservation. Setting the value to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_managed_scaling_policyselectregionFetches the attached managed scaling policy for an Amazon EMR cluster.
remove_managed_scaling_policyupdateregion, ClusterIdRemoves a managed scaling policy from a specified Amazon EMR cluster.
put_managed_scaling_policyreplaceregion, ClusterId, ManagedScalingPolicyCreates or updates a managed scaling policy for an Amazon EMR cluster. The managed scaling policy defines the limits for resources, such as Amazon EC2 instances that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Fetches the attached managed scaling policy for an Amazon EMR cluster.

SELECT
compute_limits,
scaling_strategy,
utilization_performance_index
FROM aws.emr.managed_scaling_policies
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Removes a managed scaling policy from a specified Amazon EMR cluster.

UPDATE aws.emr.managed_scaling_policies
SET
ClusterId = '{{ ClusterId }}'
WHERE
region = '{{ region }}' --required
AND ClusterId = '{{ ClusterId }}' --required;

REPLACE examples

Creates or updates a managed scaling policy for an Amazon EMR cluster. The managed scaling policy defines the limits for resources, such as Amazon EC2 instances that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.

REPLACE aws.emr.managed_scaling_policies
SET
ClusterId = '{{ ClusterId }}',
ManagedScalingPolicy = '{{ ManagedScalingPolicy }}'
WHERE
region = '{{ region }}' --required
AND ClusterId = '{{ ClusterId }}' --required
AND ManagedScalingPolicy = '{{ ManagedScalingPolicy }}' --required;