Skip to content

Commit 6976388

Browse files
author
awstools
committed
feat(client-cost-explorer): This release extends the GetReservationPurchaseRecommendation API to support recommendations for Amazon DynamoDB reservations.
1 parent 108bb99 commit 6976388

File tree

4 files changed

+168
-21
lines changed

4 files changed

+168
-21
lines changed

clients/client-cost-explorer/src/commands/GetReservationPurchaseRecommendationCommand.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,16 @@ export interface GetReservationPurchaseRecommendationCommandOutput
231231
* // EstimatedReservationCostForLookbackPeriod: "STRING_VALUE",
232232
* // UpfrontCost: "STRING_VALUE",
233233
* // RecurringStandardMonthlyCost: "STRING_VALUE",
234+
* // ReservedCapacityDetails: { // ReservedCapacityDetails
235+
* // DynamoDBCapacityDetails: { // DynamoDBCapacityDetails
236+
* // CapacityUnits: "STRING_VALUE",
237+
* // Region: "STRING_VALUE",
238+
* // },
239+
* // },
240+
* // RecommendedNumberOfCapacityUnitsToPurchase: "STRING_VALUE",
241+
* // MinimumNumberOfCapacityUnitsUsedPerHour: "STRING_VALUE",
242+
* // MaximumNumberOfCapacityUnitsUsedPerHour: "STRING_VALUE",
243+
* // AverageNumberOfCapacityUnitsUsedPerHour: "STRING_VALUE",
234244
* // },
235245
* // ],
236246
* // RecommendationSummary: { // ReservationPurchaseRecommendationSummary

clients/client-cost-explorer/src/models/models_0.ts

Lines changed: 81 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ export interface Impact {
9393
}
9494

9595
/**
96-
* <p>The combination of Amazon Web Service, linked account, linked account name,
96+
* <p>The combination of Amazon Web Servicesservice, linked account, linked account name,
9797
* Region, and usage type where a cost anomaly is observed. The linked account name will
9898
* only be available when the account name can be identified.</p>
9999
* @public
100100
*/
101101
export interface RootCause {
102102
/**
103-
* <p>The Amazon Web Service name that's associated with the cost anomaly. </p>
103+
* <p>The Amazon Web Servicesservice name that's associated with the cost anomaly. </p>
104104
* @public
105105
*/
106106
Service?: string;
@@ -155,7 +155,7 @@ export interface Anomaly {
155155
AnomalyEndDate?: string;
156156

157157
/**
158-
* <p>The dimension for the anomaly (for example, an Amazon Web Service in a service
158+
* <p>The dimension for the anomaly (for example, an Amazon Web Servicesservice in a service
159159
* monitor). </p>
160160
* @public
161161
*/
@@ -2397,6 +2397,37 @@ export interface InstanceDetails {
23972397
MemoryDBInstanceDetails?: MemoryDBInstanceDetails;
23982398
}
23992399

2400+
/**
2401+
* <p>The DynamoDB reservations that Amazon Web Services recommends that you purchase.</p>
2402+
* @public
2403+
*/
2404+
export interface DynamoDBCapacityDetails {
2405+
/**
2406+
* <p>The capacity unit of the recommended reservation.</p>
2407+
* @public
2408+
*/
2409+
CapacityUnits?: string;
2410+
2411+
/**
2412+
* <p>The Amazon Web Services Region of the recommended reservation.</p>
2413+
* @public
2414+
*/
2415+
Region?: string;
2416+
}
2417+
2418+
/**
2419+
* <p>Details about the reservations that Amazon Web Services recommends that you
2420+
* purchase.</p>
2421+
* @public
2422+
*/
2423+
export interface ReservedCapacityDetails {
2424+
/**
2425+
* <p>The DynamoDB reservations that Amazon Web Services recommends that you purchase.</p>
2426+
* @public
2427+
*/
2428+
DynamoDBCapacityDetails?: DynamoDBCapacityDetails;
2429+
}
2430+
24002431
/**
24012432
* <p>Details about your recommended reservation purchase.</p>
24022433
* @public
@@ -2477,22 +2508,22 @@ export interface ReservationPurchaseRecommendationDetail {
24772508
AverageNormalizedUnitsUsedPerHour?: string;
24782509

24792510
/**
2480-
* <p>The average utilization of your instances. Amazon Web Services uses this to calculate
2481-
* your recommended reservation purchases.</p>
2511+
* <p>The average utilization of your recommendations. Amazon Web Services uses this to
2512+
* calculate your recommended reservation purchases.</p>
24822513
* @public
24832514
*/
24842515
AverageUtilization?: string;
24852516

24862517
/**
2487-
* <p>How long Amazon Web Services estimates that it takes for this instance to start saving
2488-
* you money, in months.</p>
2518+
* <p>How long Amazon Web Services estimates that it takes for this recommendation to start
2519+
* saving you money, in months.</p>
24892520
* @public
24902521
*/
24912522
EstimatedBreakEvenInMonths?: string;
24922523

24932524
/**
24942525
* <p>The currency code that Amazon Web Services used to calculate the costs for this
2495-
* instance.</p>
2526+
* recommendation.</p>
24962527
* @public
24972528
*/
24982529
CurrencyCode?: string;
@@ -2526,16 +2557,54 @@ export interface ReservationPurchaseRecommendationDetail {
25262557
EstimatedReservationCostForLookbackPeriod?: string;
25272558

25282559
/**
2529-
* <p>How much purchasing this instance costs you upfront.</p>
2560+
* <p>How much purchasing this recommendation costs you upfront.</p>
25302561
* @public
25312562
*/
25322563
UpfrontCost?: string;
25332564

25342565
/**
2535-
* <p>How much purchasing this instance costs you on a monthly basis.</p>
2566+
* <p>How much purchasing this recommendation costs you on a monthly basis.</p>
25362567
* @public
25372568
*/
25382569
RecurringStandardMonthlyCost?: string;
2570+
2571+
/**
2572+
* <p>Details about the reservations that Amazon Web Services recommends that you
2573+
* purchase.</p>
2574+
* @public
2575+
*/
2576+
ReservedCapacityDetails?: ReservedCapacityDetails;
2577+
2578+
/**
2579+
* <p>The number of reserved capacity units that Amazon Web Services recommends that you
2580+
* purchase.</p>
2581+
* @public
2582+
*/
2583+
RecommendedNumberOfCapacityUnitsToPurchase?: string;
2584+
2585+
/**
2586+
* <p>The minimum number of provisioned capacity units that you used in an hour during the
2587+
* historical period. Amazon Web Services uses this to calculate your recommended
2588+
* reservation purchases.</p>
2589+
* @public
2590+
*/
2591+
MinimumNumberOfCapacityUnitsUsedPerHour?: string;
2592+
2593+
/**
2594+
* <p>The maximum number of provisioned capacity units that you used in an hour during the
2595+
* historical period. Amazon Web Services uses this to calculate your recommended
2596+
* reservation purchases.</p>
2597+
* @public
2598+
*/
2599+
MaximumNumberOfCapacityUnitsUsedPerHour?: string;
2600+
2601+
/**
2602+
* <p>The average number of provisioned capacity units that you used in an hour during the
2603+
* historical period. Amazon Web Services uses this to calculate your recommended
2604+
* reservation purchases.</p>
2605+
* @public
2606+
*/
2607+
AverageNumberOfCapacityUnitsUsedPerHour?: string;
25392608
}
25402609

25412610
/**
@@ -6421,9 +6490,9 @@ export interface GetDimensionValuesRequest {
64216490
* <li>
64226491
* <p>BILLING_ENTITY - The Amazon Web Services seller that your account is with. Possible
64236492
* values are the following:</p>
6424-
* <p>- Amazon Web Services(Amazon Web Services): The entity that sells Amazon Web Services.</p>
6493+
* <p>- Amazon Web Services(Amazon Web Services): The entity that sells Amazon Web Servicesservices.</p>
64256494
* <p>- AISPL (Amazon Internet Services Pvt. Ltd.): The local Indian entity that's an acting
6426-
* reseller for Amazon Web Services in India.</p>
6495+
* reseller for Amazon Web Servicesservices in India.</p>
64276496
* <p>- Amazon Web Services Marketplace: The entity that supports the sale of solutions that are built on
64286497
* Amazon Web Services by third-party software providers.</p>
64296498
* </li>

clients/client-cost-explorer/src/protocols/Aws_json1_1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2615,6 +2615,8 @@ const de_DescribeCostCategoryDefinitionResponse = (
26152615

26162616
// de_DiskResourceUtilization omitted.
26172617

2618+
// de_DynamoDBCapacityDetails omitted.
2619+
26182620
// de_EBSResourceUtilization omitted.
26192621

26202622
// de_EC2InstanceDetails omitted.
@@ -2822,6 +2824,8 @@ const de_Impact = (output: any, context: __SerdeContext): Impact => {
28222824

28232825
// de_ReservationUtilizationGroups omitted.
28242826

2827+
// de_ReservedCapacityDetails omitted.
2828+
28252829
// de_ResourceDetails omitted.
28262830

28272831
// de_ResourceNotFoundException omitted.

0 commit comments

Comments
 (0)