Skip to content

Commit

Permalink
feat(client-emr): Advanced Scaling in Amazon EMR Managed Scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Nov 22, 2024
1 parent 26d5f85 commit 4092279
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export interface GetManagedScalingPolicyCommandOutput extends GetManagedScalingP
* // MaximumOnDemandCapacityUnits: Number("int"),
* // MaximumCoreCapacityUnits: Number("int"),
* // },
* // UtilizationPerformanceIndex: Number("int"),
* // ScalingStrategy: "DEFAULT" || "ADVANCED",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export interface PutManagedScalingPolicyCommandOutput extends PutManagedScalingP
* MaximumOnDemandCapacityUnits: Number("int"),
* MaximumCoreCapacityUnits: Number("int"),
* },
* UtilizationPerformanceIndex: Number("int"),
* ScalingStrategy: "DEFAULT" || "ADVANCED",
* },
* };
* const command = new PutManagedScalingPolicyCommand(input);
Expand Down
2 changes: 2 additions & 0 deletions clients/client-emr/src/commands/RunJobFlowCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ export interface RunJobFlowCommandOutput extends RunJobFlowOutput, __MetadataBea
* MaximumOnDemandCapacityUnits: Number("int"),
* MaximumCoreCapacityUnits: Number("int"),
* },
* UtilizationPerformanceIndex: Number("int"),
* ScalingStrategy: "DEFAULT" || "ADVANCED",
* },
* PlacementGroupConfigs: [ // PlacementGroupConfigList
* { // PlacementGroupConfig
Expand Down
27 changes: 27 additions & 0 deletions clients/client-emr/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3919,6 +3919,20 @@ export interface GetManagedScalingPolicyInput {
ClusterId: string | undefined;
}

/**
* @public
* @enum
*/
export const ScalingStrategy = {
ADVANCED: "ADVANCED",
DEFAULT: "DEFAULT",
} as const;

/**
* @public
*/
export type ScalingStrategy = (typeof ScalingStrategy)[keyof typeof ScalingStrategy];

/**
* <p> Managed scaling policy for an Amazon EMR cluster. The policy specifies the
* limits for resources that can be added or terminated from a cluster. The policy only
Expand All @@ -3935,6 +3949,19 @@ export interface ManagedScalingPolicy {
* @public
*/
ComputeLimits?: ComputeLimits | undefined;

/**
* <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
* to 50 balances performance and resource conservation. Possible values are 1, 25, 50, 75, and 100.</p>
* @public
*/
UtilizationPerformanceIndex?: number | undefined;

/**
* <p>Determines whether a custom scaling utilization performance index can be set. Possible values include <i>ADVANCED</i> or <i>DEFAULT</i>.</p>
* @public
*/
ScalingStrategy?: ScalingStrategy | undefined;
}

/**
Expand Down
38 changes: 38 additions & 0 deletions codegen/sdk-codegen/aws-models/emr.json
Original file line number Diff line number Diff line change
Expand Up @@ -7299,6 +7299,18 @@
"traits": {
"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>"
}
},
"UtilizationPerformanceIndex": {
"target": "com.amazonaws.emr#UtilizationPerformanceIndexInteger",
"traits": {
"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>"
}
},
"ScalingStrategy": {
"target": "com.amazonaws.emr#ScalingStrategy",
"traits": {
"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>"
}
}
},
"traits": {
Expand Down Expand Up @@ -8866,6 +8878,23 @@
"target": "com.amazonaws.emr#ScalingRule"
}
},
"com.amazonaws.emr#ScalingStrategy": {
"type": "enum",
"members": {
"DEFAULT": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DEFAULT"
}
},
"ADVANCED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ADVANCED"
}
}
}
},
"com.amazonaws.emr#ScalingTrigger": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -10700,6 +10729,15 @@
"smithy.api#sensitive": {}
}
},
"com.amazonaws.emr#UtilizationPerformanceIndexInteger": {
"type": "integer",
"traits": {
"smithy.api#range": {
"min": 1,
"max": 100
}
}
},
"com.amazonaws.emr#VolumeSpecification": {
"type": "structure",
"members": {
Expand Down

0 comments on commit 4092279

Please sign in to comment.