From 05fbb3099e696a549b3564aac9fe50be440bb8cc Mon Sep 17 00:00:00 2001 From: awstools Date: Tue, 23 Apr 2024 18:21:39 +0000 Subject: [PATCH] feat(client-cost-explorer): Added additional metadata that might be applicable to your reservation recommendations. --- .../GetCostAndUsageWithResourcesCommand.ts | 6 +++-- ...eservationPurchaseRecommendationCommand.ts | 1 + .../src/models/models_0.ts | 23 ++++++++++++------- .../sdk-codegen/aws-models/cost-explorer.json | 22 +++++++++++------- 4 files changed, 34 insertions(+), 18 deletions(-) diff --git a/clients/client-cost-explorer/src/commands/GetCostAndUsageWithResourcesCommand.ts b/clients/client-cost-explorer/src/commands/GetCostAndUsageWithResourcesCommand.ts index 3c1d5554cfcf..e8ec3a77366b 100644 --- a/clients/client-cost-explorer/src/commands/GetCostAndUsageWithResourcesCommand.ts +++ b/clients/client-cost-explorer/src/commands/GetCostAndUsageWithResourcesCommand.ts @@ -36,8 +36,10 @@ export interface GetCostAndUsageWithResourcesCommandOutput * cost and usage-related metric, such as BlendedCosts or * UsageQuantity, that you want the request to return. You can also filter and group * your data by various dimensions, such as SERVICE or AZ, in a - * specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all member accounts. This API is currently available for the - * Amazon Elastic Compute Cloud – Compute service only.

+ * specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all member accounts.

+ *

Hourly granularity is only available for EC2-Instances (Elastic Compute Cloud) + * resource-level data. All other resource-level data is available at daily + * granularity.

* *

This is an opt-in only feature. You can enable this feature from the Cost Explorer * Settings page. For information about how to access the Settings page, see Controlling diff --git a/clients/client-cost-explorer/src/commands/GetReservationPurchaseRecommendationCommand.ts b/clients/client-cost-explorer/src/commands/GetReservationPurchaseRecommendationCommand.ts index 88faafa0dae3..bfb81eec6a1e 100644 --- a/clients/client-cost-explorer/src/commands/GetReservationPurchaseRecommendationCommand.ts +++ b/clients/client-cost-explorer/src/commands/GetReservationPurchaseRecommendationCommand.ts @@ -145,6 +145,7 @@ export interface GetReservationPurchaseRecommendationCommandOutput * // Metadata: { // ReservationPurchaseRecommendationMetadata * // RecommendationId: "STRING_VALUE", * // GenerationTimestamp: "STRING_VALUE", + * // AdditionalMetadata: "STRING_VALUE", * // }, * // Recommendations: [ // ReservationPurchaseRecommendations * // { // ReservationPurchaseRecommendation diff --git a/clients/client-cost-explorer/src/models/models_0.ts b/clients/client-cost-explorer/src/models/models_0.ts index d6d10694e343..23e95fed3e4c 100644 --- a/clients/client-cost-explorer/src/models/models_0.ts +++ b/clients/client-cost-explorer/src/models/models_0.ts @@ -2053,21 +2053,28 @@ export const TermInYears = { export type TermInYears = (typeof TermInYears)[keyof typeof TermInYears]; /** - *

Information about this specific recommendation, such as the timestamp for when Amazon Web Services made a specific recommendation.

+ *

Information about a recommendation, such as the timestamp for when Amazon Web Services + * made a specific recommendation.

* @public */ export interface ReservationPurchaseRecommendationMetadata { /** - *

The ID for this specific recommendation.

+ *

The ID for the recommendation.

* @public */ RecommendationId?: string; /** - *

The timestamp for when Amazon Web Services made this recommendation.

+ *

The timestamp for when Amazon Web Services made the recommendation.

* @public */ GenerationTimestamp?: string; + + /** + *

Additional metadata that might be applicable to the recommendation.

+ * @public + */ + AdditionalMetadata?: string; } /** @@ -2874,25 +2881,25 @@ export interface RightsizingRecommendationConfiguration { } /** - *

Metadata for this recommendation set.

+ *

Metadata for a recommendation set.

* @public */ export interface RightsizingRecommendationMetadata { /** - *

The ID for this specific recommendation.

+ *

The ID for the recommendation.

* @public */ RecommendationId?: string; /** - *

The timestamp for when Amazon Web Services made this recommendation.

+ *

The timestamp for when Amazon Web Services made the recommendation.

* @public */ GenerationTimestamp?: string; /** - *

The number of days of previous usage that Amazon Web Services considers when making - * this recommendation.

+ *

The number of days of previous usage that Amazon Web Services considers when making the + * recommendation.

* @public */ LookbackPeriodInDays?: LookbackPeriodInDays; diff --git a/codegen/sdk-codegen/aws-models/cost-explorer.json b/codegen/sdk-codegen/aws-models/cost-explorer.json index cb0a3489054f..e4feed911c5e 100644 --- a/codegen/sdk-codegen/aws-models/cost-explorer.json +++ b/codegen/sdk-codegen/aws-models/cost-explorer.json @@ -4067,7 +4067,7 @@ } ], "traits": { - "smithy.api#documentation": "

Retrieves cost and usage metrics with resources for your account. You can specify which\n cost and usage-related metric, such as BlendedCosts or\n UsageQuantity, that you want the request to return. You can also filter and group\n your data by various dimensions, such as SERVICE or AZ, in a\n specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all member accounts. This API is currently available for the\n Amazon Elastic Compute Cloud – Compute service only.

\n \n

This is an opt-in only feature. You can enable this feature from the Cost Explorer\n Settings page. For information about how to access the Settings page, see Controlling\n Access for Cost Explorer in the Billing and Cost Management User\n Guide.

\n
" + "smithy.api#documentation": "

Retrieves cost and usage metrics with resources for your account. You can specify which\n cost and usage-related metric, such as BlendedCosts or\n UsageQuantity, that you want the request to return. You can also filter and group\n your data by various dimensions, such as SERVICE or AZ, in a\n specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Management account in an organization in Organizations have access to all member accounts.

\n

Hourly granularity is only available for EC2-Instances (Elastic Compute Cloud)\n resource-level data. All other resource-level data is available at daily\n granularity.

\n \n

This is an opt-in only feature. You can enable this feature from the Cost Explorer\n Settings page. For information about how to access the Settings page, see Controlling\n Access for Cost Explorer in the Billing and Cost Management User\n Guide.

\n
" } }, "com.amazonaws.costexplorer#GetCostAndUsageWithResourcesRequest": { @@ -7372,18 +7372,24 @@ "RecommendationId": { "target": "com.amazonaws.costexplorer#GenericString", "traits": { - "smithy.api#documentation": "

The ID for this specific recommendation.

" + "smithy.api#documentation": "

The ID for the recommendation.

" } }, "GenerationTimestamp": { "target": "com.amazonaws.costexplorer#GenericString", "traits": { - "smithy.api#documentation": "

The timestamp for when Amazon Web Services made this recommendation.

" + "smithy.api#documentation": "

The timestamp for when Amazon Web Services made the recommendation.

" + } + }, + "AdditionalMetadata": { + "target": "com.amazonaws.costexplorer#GenericString", + "traits": { + "smithy.api#documentation": "

Additional metadata that might be applicable to the recommendation.

" } } }, "traits": { - "smithy.api#documentation": "

Information about this specific recommendation, such as the timestamp for when Amazon Web Services made a specific recommendation.

" + "smithy.api#documentation": "

Information about a recommendation, such as the timestamp for when Amazon Web Services\n made a specific recommendation.

" } }, "com.amazonaws.costexplorer#ReservationPurchaseRecommendationSummary": { @@ -7690,19 +7696,19 @@ "RecommendationId": { "target": "com.amazonaws.costexplorer#GenericString", "traits": { - "smithy.api#documentation": "

The ID for this specific recommendation.

" + "smithy.api#documentation": "

The ID for the recommendation.

" } }, "GenerationTimestamp": { "target": "com.amazonaws.costexplorer#GenericString", "traits": { - "smithy.api#documentation": "

The timestamp for when Amazon Web Services made this recommendation.

" + "smithy.api#documentation": "

The timestamp for when Amazon Web Services made the recommendation.

" } }, "LookbackPeriodInDays": { "target": "com.amazonaws.costexplorer#LookbackPeriodInDays", "traits": { - "smithy.api#documentation": "

The number of days of previous usage that Amazon Web Services considers when making\n this recommendation.

" + "smithy.api#documentation": "

The number of days of previous usage that Amazon Web Services considers when making the\n recommendation.

" } }, "AdditionalMetadata": { @@ -7713,7 +7719,7 @@ } }, "traits": { - "smithy.api#documentation": "

Metadata for this recommendation set.

" + "smithy.api#documentation": "

Metadata for a recommendation set.

" } }, "com.amazonaws.costexplorer#RightsizingRecommendationSummary": {