Skip to content

Commit 4092279

Browse files
author
awstools
committed
feat(client-emr): Advanced Scaling in Amazon EMR Managed Scaling
1 parent 26d5f85 commit 4092279

File tree

5 files changed

+71
-0
lines changed

5 files changed

+71
-0
lines changed

clients/client-emr/src/commands/GetManagedScalingPolicyCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export interface GetManagedScalingPolicyCommandOutput extends GetManagedScalingP
4949
* // MaximumOnDemandCapacityUnits: Number("int"),
5050
* // MaximumCoreCapacityUnits: Number("int"),
5151
* // },
52+
* // UtilizationPerformanceIndex: Number("int"),
53+
* // ScalingStrategy: "DEFAULT" || "ADVANCED",
5254
* // },
5355
* // };
5456
*

clients/client-emr/src/commands/PutManagedScalingPolicyCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export interface PutManagedScalingPolicyCommandOutput extends PutManagedScalingP
4848
* MaximumOnDemandCapacityUnits: Number("int"),
4949
* MaximumCoreCapacityUnits: Number("int"),
5050
* },
51+
* UtilizationPerformanceIndex: Number("int"),
52+
* ScalingStrategy: "DEFAULT" || "ADVANCED",
5153
* },
5254
* };
5355
* const command = new PutManagedScalingPolicyCommand(input);

clients/client-emr/src/commands/RunJobFlowCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ export interface RunJobFlowCommandOutput extends RunJobFlowOutput, __MetadataBea
320320
* MaximumOnDemandCapacityUnits: Number("int"),
321321
* MaximumCoreCapacityUnits: Number("int"),
322322
* },
323+
* UtilizationPerformanceIndex: Number("int"),
324+
* ScalingStrategy: "DEFAULT" || "ADVANCED",
323325
* },
324326
* PlacementGroupConfigs: [ // PlacementGroupConfigList
325327
* { // PlacementGroupConfig

clients/client-emr/src/models/models_0.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3919,6 +3919,20 @@ export interface GetManagedScalingPolicyInput {
39193919
ClusterId: string | undefined;
39203920
}
39213921

3922+
/**
3923+
* @public
3924+
* @enum
3925+
*/
3926+
export const ScalingStrategy = {
3927+
ADVANCED: "ADVANCED",
3928+
DEFAULT: "DEFAULT",
3929+
} as const;
3930+
3931+
/**
3932+
* @public
3933+
*/
3934+
export type ScalingStrategy = (typeof ScalingStrategy)[keyof typeof ScalingStrategy];
3935+
39223936
/**
39233937
* <p> Managed scaling policy for an Amazon EMR cluster. The policy specifies the
39243938
* limits for resources that can be added or terminated from a cluster. The policy only
@@ -3935,6 +3949,19 @@ export interface ManagedScalingPolicy {
39353949
* @public
39363950
*/
39373951
ComputeLimits?: ComputeLimits | undefined;
3952+
3953+
/**
3954+
* <p>An 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
3955+
* to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100.</p>
3956+
* @public
3957+
*/
3958+
UtilizationPerformanceIndex?: number | undefined;
3959+
3960+
/**
3961+
* <p>Determines whether a custom scaling utilization performance index can be set. Possible values include <i>ADVANCED</i> or <i>DEFAULT</i>.</p>
3962+
* @public
3963+
*/
3964+
ScalingStrategy?: ScalingStrategy | undefined;
39383965
}
39393966

39403967
/**

codegen/sdk-codegen/aws-models/emr.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7299,6 +7299,18 @@
72997299
"traits": {
73007300
"smithy.api#documentation": "<p>The Amazon EC2 unit limits for a managed scaling policy. The managed scaling\n activity of a cluster is not allowed to go above or below these limits. The limit only\n applies to the core and task nodes. The master node cannot be scaled after initial\n configuration.</p>"
73017301
}
7302+
},
7303+
"UtilizationPerformanceIndex": {
7304+
"target": "com.amazonaws.emr#UtilizationPerformanceIndexInteger",
7305+
"traits": {
7306+
"smithy.api#documentation": "<p>An 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 \n to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100.</p>"
7307+
}
7308+
},
7309+
"ScalingStrategy": {
7310+
"target": "com.amazonaws.emr#ScalingStrategy",
7311+
"traits": {
7312+
"smithy.api#documentation": "<p>Determines whether a custom scaling utilization performance index can be set. Possible values include <i>ADVANCED</i> or <i>DEFAULT</i>.</p>"
7313+
}
73027314
}
73037315
},
73047316
"traits": {
@@ -8866,6 +8878,23 @@
88668878
"target": "com.amazonaws.emr#ScalingRule"
88678879
}
88688880
},
8881+
"com.amazonaws.emr#ScalingStrategy": {
8882+
"type": "enum",
8883+
"members": {
8884+
"DEFAULT": {
8885+
"target": "smithy.api#Unit",
8886+
"traits": {
8887+
"smithy.api#enumValue": "DEFAULT"
8888+
}
8889+
},
8890+
"ADVANCED": {
8891+
"target": "smithy.api#Unit",
8892+
"traits": {
8893+
"smithy.api#enumValue": "ADVANCED"
8894+
}
8895+
}
8896+
}
8897+
},
88698898
"com.amazonaws.emr#ScalingTrigger": {
88708899
"type": "structure",
88718900
"members": {
@@ -10700,6 +10729,15 @@
1070010729
"smithy.api#sensitive": {}
1070110730
}
1070210731
},
10732+
"com.amazonaws.emr#UtilizationPerformanceIndexInteger": {
10733+
"type": "integer",
10734+
"traits": {
10735+
"smithy.api#range": {
10736+
"min": 1,
10737+
"max": 100
10738+
}
10739+
}
10740+
},
1070310741
"com.amazonaws.emr#VolumeSpecification": {
1070410742
"type": "structure",
1070510743
"members": {

0 commit comments

Comments
 (0)