Skip to content

Commit

Permalink
feat(client-cost-optimization-hub): This release adds action type "De…
Browse files Browse the repository at this point in the history
…lete" to the GetRecommendation, ListRecommendations and ListRecommendationSummaries APIs to support new EBS and ECS recommendations with action type "Delete".
  • Loading branch information
awstools committed Nov 20, 2024
1 parent c196753 commit dc6c77d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export interface GetRecommendationCommandOutput extends GetRecommendationRespons
* // estimatedMonthlyCost: Number("double"),
* // implementationEffort: "VeryLow" || "Low" || "Medium" || "High" || "VeryHigh",
* // restartNeeded: true || false,
* // actionType: "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton",
* // actionType: "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton" || "Delete",
* // rollbackPossible: true || false,
* // currentResourceDetails: { // ResourceDetails Union: only one key present
* // lambdaFunction: { // LambdaFunction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export interface ListRecommendationSummariesCommandOutput
* "Ec2Instance" || "LambdaFunction" || "EbsVolume" || "EcsService" || "Ec2AutoScalingGroup" || "Ec2InstanceSavingsPlans" || "ComputeSavingsPlans" || "SageMakerSavingsPlans" || "Ec2ReservedInstances" || "RdsReservedInstances" || "OpenSearchReservedInstances" || "RedshiftReservedInstances" || "ElastiCacheReservedInstances" || "RdsDbInstanceStorage" || "RdsDbInstance",
* ],
* actionTypes: [ // ActionTypeList
* "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton",
* "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton" || "Delete",
* ],
* tags: [ // TagList
* { // Tag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface ListRecommendationsCommandOutput extends ListRecommendationsRes
* "Ec2Instance" || "LambdaFunction" || "EbsVolume" || "EcsService" || "Ec2AutoScalingGroup" || "Ec2InstanceSavingsPlans" || "ComputeSavingsPlans" || "SageMakerSavingsPlans" || "Ec2ReservedInstances" || "RdsReservedInstances" || "OpenSearchReservedInstances" || "RedshiftReservedInstances" || "ElastiCacheReservedInstances" || "RdsDbInstanceStorage" || "RdsDbInstance",
* ],
* actionTypes: [ // ActionTypeList
* "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton",
* "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton" || "Delete",
* ],
* tags: [ // TagList
* { // Tag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export interface AccountEnrollmentStatus {
* @enum
*/
export const ActionType = {
DELETE: "Delete",
MIGRATE_TO_GRAVITON: "MigrateToGraviton",
PURCHASE_RESERVED_INSTANCES: "PurchaseReservedInstances",
PURCHASE_SAVINGS_PLANS: "PurchaseSavingsPlans",
Expand Down
25 changes: 13 additions & 12 deletions codegen/sdk-codegen/aws-models/cost-optimization-hub.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@
"traits": {
"smithy.api#enumValue": "MigrateToGraviton"
}
},
"DELETE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "Delete",
"smithy.api#tags": ["idle"]
}
}
}
},
Expand Down Expand Up @@ -2349,8 +2356,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>Contains the details of an Amazon RDS DB instance.</p>",
"smithy.api#tags": ["rds"]
"smithy.api#documentation": "<p>Contains the details of an Amazon RDS DB instance.</p>"
}
},
"com.amazonaws.costoptimizationhub#RdsDbInstanceConfiguration": {
Expand Down Expand Up @@ -2381,8 +2387,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>Contains the details of an Amazon RDS DB instance storage.</p>",
"smithy.api#tags": ["rds"]
"smithy.api#documentation": "<p>Contains the details of an Amazon RDS DB instance storage.</p>"
}
},
"com.amazonaws.costoptimizationhub#RdsDbInstanceStorageConfiguration": {
Expand Down Expand Up @@ -3011,15 +3016,13 @@
"rdsDbInstance": {
"target": "com.amazonaws.costoptimizationhub#RdsDbInstance",
"traits": {
"smithy.api#documentation": "<p>The DB instance recommendation details.</p>",
"smithy.api#tags": ["rds"]
"smithy.api#documentation": "<p>The DB instance recommendation details.</p>"
}
},
"rdsDbInstanceStorage": {
"target": "com.amazonaws.costoptimizationhub#RdsDbInstanceStorage",
"traits": {
"smithy.api#documentation": "<p>The DB instance storage recommendation details.</p>",
"smithy.api#tags": ["rds"]
"smithy.api#documentation": "<p>The DB instance storage recommendation details.</p>"
}
}
},
Expand Down Expand Up @@ -3178,15 +3181,13 @@
"RDS_DB_INSTANCE_STORAGE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "RdsDbInstanceStorage",
"smithy.api#tags": ["rds"]
"smithy.api#enumValue": "RdsDbInstanceStorage"
}
},
"RDS_DB_INSTANCE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "RdsDbInstance",
"smithy.api#tags": ["rds"]
"smithy.api#enumValue": "RdsDbInstance"
}
}
}
Expand Down

0 comments on commit dc6c77d

Please sign in to comment.