From dc6c77dd67b360ffd514c35d66320926a76eb88b Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 20 Nov 2024 19:12:54 +0000 Subject: [PATCH] feat(client-cost-optimization-hub): This release adds action type "Delete" to the GetRecommendation, ListRecommendations and ListRecommendationSummaries APIs to support new EBS and ECS recommendations with action type "Delete". --- .../src/commands/GetRecommendationCommand.ts | 2 +- .../ListRecommendationSummariesCommand.ts | 2 +- .../commands/ListRecommendationsCommand.ts | 2 +- .../src/models/models_0.ts | 1 + .../aws-models/cost-optimization-hub.json | 25 ++++++++++--------- 5 files changed, 17 insertions(+), 15 deletions(-) diff --git a/clients/client-cost-optimization-hub/src/commands/GetRecommendationCommand.ts b/clients/client-cost-optimization-hub/src/commands/GetRecommendationCommand.ts index 60ab06373d5f5..536b448eb2d53 100644 --- a/clients/client-cost-optimization-hub/src/commands/GetRecommendationCommand.ts +++ b/clients/client-cost-optimization-hub/src/commands/GetRecommendationCommand.ts @@ -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 diff --git a/clients/client-cost-optimization-hub/src/commands/ListRecommendationSummariesCommand.ts b/clients/client-cost-optimization-hub/src/commands/ListRecommendationSummariesCommand.ts index 00b0eced1411a..f6c77673e9883 100644 --- a/clients/client-cost-optimization-hub/src/commands/ListRecommendationSummariesCommand.ts +++ b/clients/client-cost-optimization-hub/src/commands/ListRecommendationSummariesCommand.ts @@ -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 diff --git a/clients/client-cost-optimization-hub/src/commands/ListRecommendationsCommand.ts b/clients/client-cost-optimization-hub/src/commands/ListRecommendationsCommand.ts index f8c56c66a6a28..d4fa394466e68 100644 --- a/clients/client-cost-optimization-hub/src/commands/ListRecommendationsCommand.ts +++ b/clients/client-cost-optimization-hub/src/commands/ListRecommendationsCommand.ts @@ -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 diff --git a/clients/client-cost-optimization-hub/src/models/models_0.ts b/clients/client-cost-optimization-hub/src/models/models_0.ts index c34b6bddd1266..57f9b1222ceaa 100644 --- a/clients/client-cost-optimization-hub/src/models/models_0.ts +++ b/clients/client-cost-optimization-hub/src/models/models_0.ts @@ -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", diff --git a/codegen/sdk-codegen/aws-models/cost-optimization-hub.json b/codegen/sdk-codegen/aws-models/cost-optimization-hub.json index 80143b476d21f..b9bdb05f1b40c 100644 --- a/codegen/sdk-codegen/aws-models/cost-optimization-hub.json +++ b/codegen/sdk-codegen/aws-models/cost-optimization-hub.json @@ -111,6 +111,13 @@ "traits": { "smithy.api#enumValue": "MigrateToGraviton" } + }, + "DELETE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "Delete", + "smithy.api#tags": ["idle"] + } } } }, @@ -2349,8 +2356,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the details of an Amazon RDS DB instance.

", - "smithy.api#tags": ["rds"] + "smithy.api#documentation": "

Contains the details of an Amazon RDS DB instance.

" } }, "com.amazonaws.costoptimizationhub#RdsDbInstanceConfiguration": { @@ -2381,8 +2387,7 @@ } }, "traits": { - "smithy.api#documentation": "

Contains the details of an Amazon RDS DB instance storage.

", - "smithy.api#tags": ["rds"] + "smithy.api#documentation": "

Contains the details of an Amazon RDS DB instance storage.

" } }, "com.amazonaws.costoptimizationhub#RdsDbInstanceStorageConfiguration": { @@ -3011,15 +3016,13 @@ "rdsDbInstance": { "target": "com.amazonaws.costoptimizationhub#RdsDbInstance", "traits": { - "smithy.api#documentation": "

The DB instance recommendation details.

", - "smithy.api#tags": ["rds"] + "smithy.api#documentation": "

The DB instance recommendation details.

" } }, "rdsDbInstanceStorage": { "target": "com.amazonaws.costoptimizationhub#RdsDbInstanceStorage", "traits": { - "smithy.api#documentation": "

The DB instance storage recommendation details.

", - "smithy.api#tags": ["rds"] + "smithy.api#documentation": "

The DB instance storage recommendation details.

" } } }, @@ -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" } } }