Skip to content

Commit b9209ce

Browse files
This release allows customers to modify their preferred commitment term and payment options.
1 parent 00927a9 commit b9209ce

16 files changed

+544
-55
lines changed

generator/ServiceModels/cost-optimization-hub/cost-optimization-hub-2022-07-26.api.json

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,14 +416,14 @@
416416
},
417417
"GetPreferencesRequest":{
418418
"type":"structure",
419-
"members":{
420-
}
419+
"members":{}
421420
},
422421
"GetPreferencesResponse":{
423422
"type":"structure",
424423
"members":{
425424
"savingsEstimationMode":{"shape":"SavingsEstimationMode"},
426-
"memberAccountDiscountVisibility":{"shape":"MemberAccountDiscountVisibility"}
425+
"memberAccountDiscountVisibility":{"shape":"MemberAccountDiscountVisibility"},
426+
"preferredCommitment":{"shape":"PreferredCommitment"}
427427
}
428428
},
429429
"GetRecommendationRequest":{
@@ -663,6 +663,21 @@
663663
"order":{"shape":"Order"}
664664
}
665665
},
666+
"PaymentOption":{
667+
"type":"string",
668+
"enum":[
669+
"AllUpfront",
670+
"PartialUpfront",
671+
"NoUpfront"
672+
]
673+
},
674+
"PreferredCommitment":{
675+
"type":"structure",
676+
"members":{
677+
"term":{"shape":"Term"},
678+
"paymentOption":{"shape":"PaymentOption"}
679+
}
680+
},
666681
"PrimitiveBoolean":{"type":"boolean"},
667682
"RdsDbInstance":{
668683
"type":"structure",
@@ -989,6 +1004,13 @@
9891004
"max":100,
9901005
"min":1
9911006
},
1007+
"Term":{
1008+
"type":"string",
1009+
"enum":[
1010+
"OneYear",
1011+
"ThreeYears"
1012+
]
1013+
},
9921014
"ThrottlingException":{
9931015
"type":"structure",
9941016
"members":{
@@ -1015,14 +1037,16 @@
10151037
"type":"structure",
10161038
"members":{
10171039
"savingsEstimationMode":{"shape":"SavingsEstimationMode"},
1018-
"memberAccountDiscountVisibility":{"shape":"MemberAccountDiscountVisibility"}
1040+
"memberAccountDiscountVisibility":{"shape":"MemberAccountDiscountVisibility"},
1041+
"preferredCommitment":{"shape":"PreferredCommitment"}
10191042
}
10201043
},
10211044
"UpdatePreferencesResponse":{
10221045
"type":"structure",
10231046
"members":{
10241047
"savingsEstimationMode":{"shape":"SavingsEstimationMode"},
1025-
"memberAccountDiscountVisibility":{"shape":"MemberAccountDiscountVisibility"}
1048+
"memberAccountDiscountVisibility":{"shape":"MemberAccountDiscountVisibility"},
1049+
"preferredCommitment":{"shape":"PreferredCommitment"}
10261050
}
10271051
},
10281052
"Usage":{

generator/ServiceModels/cost-optimization-hub/cost-optimization-hub-2022-07-26.docs.json

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"shapes": {
1414
"AccessDeniedException": {
1515
"base": "<p>You are not authorized to use this operation with the given parameters.</p>",
16-
"refs": {
17-
}
16+
"refs": {}
1817
},
1918
"AccountEnrollmentStatus": {
2019
"base": "<p>Describes the enrollment status of an organization's member accounts in Cost Optimization Hub.</p>",
@@ -278,23 +277,19 @@
278277
},
279278
"GetPreferencesRequest": {
280279
"base": null,
281-
"refs": {
282-
}
280+
"refs": {}
283281
},
284282
"GetPreferencesResponse": {
285283
"base": null,
286-
"refs": {
287-
}
284+
"refs": {}
288285
},
289286
"GetRecommendationRequest": {
290287
"base": null,
291-
"refs": {
292-
}
288+
"refs": {}
293289
},
294290
"GetRecommendationResponse": {
295291
"base": null,
296-
"refs": {
297-
}
292+
"refs": {}
298293
},
299294
"ImplementationEffort": {
300295
"base": null,
@@ -328,8 +323,7 @@
328323
},
329324
"InternalServerException": {
330325
"base": "<p>An error on the server occurred during the processing of your request. Try again later.</p>",
331-
"refs": {
332-
}
326+
"refs": {}
333327
},
334328
"LambdaFunction": {
335329
"base": "<p>The Lambda function recommendation details.</p>",
@@ -345,18 +339,15 @@
345339
},
346340
"ListEnrollmentStatusesRequest": {
347341
"base": null,
348-
"refs": {
349-
}
342+
"refs": {}
350343
},
351344
"ListEnrollmentStatusesResponse": {
352345
"base": null,
353-
"refs": {
354-
}
346+
"refs": {}
355347
},
356348
"ListRecommendationSummariesRequest": {
357349
"base": null,
358-
"refs": {
359-
}
350+
"refs": {}
360351
},
361352
"ListRecommendationSummariesRequestMaxResultsInteger": {
362353
"base": null,
@@ -366,13 +357,11 @@
366357
},
367358
"ListRecommendationSummariesResponse": {
368359
"base": null,
369-
"refs": {
370-
}
360+
"refs": {}
371361
},
372362
"ListRecommendationsRequest": {
373363
"base": null,
374-
"refs": {
375-
}
364+
"refs": {}
376365
},
377366
"ListRecommendationsRequestMaxResultsInteger": {
378367
"base": null,
@@ -382,8 +371,7 @@
382371
},
383372
"ListRecommendationsResponse": {
384373
"base": null,
385-
"refs": {
386-
}
374+
"refs": {}
387375
},
388376
"MaxResults": {
389377
"base": null,
@@ -400,13 +388,13 @@
400388
}
401389
},
402390
"MemoryDbReservedInstances": {
403-
"base": "<p>The MemoryDB reserved instances recommendation details.</p> <note> <p>MemoryDB reserved instances are referred to as \"MemoryDB reserved nodes\" in customer-facing documentation.</p> </note>",
391+
"base": "<p>The MemoryDB reserved instances recommendation details.</p> <note> <p>While the API reference uses \"MemoryDB reserved instances\", the user guide and other documentation refer to them as \"MemoryDB reserved nodes\", as the terms are used interchangeably.</p> </note>",
404392
"refs": {
405393
"ResourceDetails$memoryDbReservedInstances": "<p>The MemoryDB reserved instances recommendation details.</p>"
406394
}
407395
},
408396
"MemoryDbReservedInstancesConfiguration": {
409-
"base": "<p>The MemoryDB reserved instances configuration used for recommendations.</p> <note> <p>MemoryDB reserved instances are referred to as \"MemoryDB reserved nodes\" in customer-facing documentation.</p> </note>",
397+
"base": "<p>The MemoryDB reserved instances configuration used for recommendations.</p> <note> <p>While the API reference uses \"MemoryDB reserved instances\", the user guide and other documentation refer to them as \"MemoryDB reserved nodes\", as the terms are used interchangeably.</p> </note>",
410398
"refs": {
411399
"MemoryDbReservedInstances$configuration": "<p>The MemoryDB reserved instances configuration used for recommendations.</p>"
412400
}
@@ -447,6 +435,20 @@
447435
"ListRecommendationsRequest$orderBy": "<p>The ordering of recommendations by a dimension.</p>"
448436
}
449437
},
438+
"PaymentOption": {
439+
"base": null,
440+
"refs": {
441+
"PreferredCommitment$paymentOption": "<p>The preferred upfront payment structure for commitments. If the value is null, it will default to <code>AllUpfront</code> (highest savings) where applicable.</p>"
442+
}
443+
},
444+
"PreferredCommitment": {
445+
"base": "<p>The preferred configuration for Reserved Instances and Savings Plans commitment-based discounts, consisting of a payment option and a commitment duration.</p>",
446+
"refs": {
447+
"GetPreferencesResponse$preferredCommitment": "<p>Retrieves the current preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.</p>",
448+
"UpdatePreferencesRequest$preferredCommitment": "<p>Sets the preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.</p>",
449+
"UpdatePreferencesResponse$preferredCommitment": "<p>Shows the updated preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.</p>"
450+
}
451+
},
450452
"PrimitiveBoolean": {
451453
"base": null,
452454
"refs": {
@@ -589,8 +591,7 @@
589591
},
590592
"ResourceNotFoundException": {
591593
"base": "<p>The specified Amazon Resource Name (ARN) in the request doesn't exist.</p>",
592-
"refs": {
593-
}
594+
"refs": {}
594595
},
595596
"ResourcePricing": {
596597
"base": "<p>Contains pricing information about the specified resource.</p>",
@@ -855,11 +856,16 @@
855856
"Recommendation$tags": "<p>A list of tags assigned to the recommendation.</p>"
856857
}
857858
},
858-
"ThrottlingException": {
859-
"base": "<p>The request was denied due to request throttling.</p>",
859+
"Term": {
860+
"base": null,
860861
"refs": {
862+
"PreferredCommitment$term": "<p>The preferred length of the commitment period. If the value is null, it will default to <code>ThreeYears</code> (highest savings) where applicable.</p>"
861863
}
862864
},
865+
"ThrottlingException": {
866+
"base": "<p>The request was denied due to request throttling.</p>",
867+
"refs": {}
868+
},
863869
"Timestamp": {
864870
"base": null,
865871
"refs": {
@@ -869,23 +875,19 @@
869875
},
870876
"UpdateEnrollmentStatusRequest": {
871877
"base": null,
872-
"refs": {
873-
}
878+
"refs": {}
874879
},
875880
"UpdateEnrollmentStatusResponse": {
876881
"base": null,
877-
"refs": {
878-
}
882+
"refs": {}
879883
},
880884
"UpdatePreferencesRequest": {
881885
"base": null,
882-
"refs": {
883-
}
886+
"refs": {}
884887
},
885888
"UpdatePreferencesResponse": {
886889
"base": null,
887-
"refs": {
888-
}
890+
"refs": {}
889891
},
890892
"Usage": {
891893
"base": "<p>Details about the usage.</p>",
@@ -901,8 +903,7 @@
901903
},
902904
"ValidationException": {
903905
"base": "<p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>",
904-
"refs": {
905-
}
906+
"refs": {}
906907
},
907908
"ValidationExceptionDetail": {
908909
"base": "<p>The input failed to meet the constraints specified by the Amazon Web Services service in a specified field.</p>",
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"version": "1.0",
3-
"examples": {
4-
}
3+
"examples": {}
54
}

generator/ServiceModels/cost-optimization-hub/cost-optimization-hub-2022-07-26.normal.json

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,7 @@
745745
},
746746
"GetPreferencesRequest":{
747747
"type":"structure",
748-
"members":{
749-
}
748+
"members":{}
750749
},
751750
"GetPreferencesResponse":{
752751
"type":"structure",
@@ -758,6 +757,10 @@
758757
"memberAccountDiscountVisibility":{
759758
"shape":"MemberAccountDiscountVisibility",
760759
"documentation":"<p>Retrieves the status of the \"member account discount visibility\" preference.</p>"
760+
},
761+
"preferredCommitment":{
762+
"shape":"PreferredCommitment",
763+
"documentation":"<p>Retrieves the current preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.</p>"
761764
}
762765
}
763766
},
@@ -1094,7 +1097,7 @@
10941097
},
10951098
"costCalculation":{"shape":"ReservedInstancesCostCalculation"}
10961099
},
1097-
"documentation":"<p>The MemoryDB reserved instances recommendation details.</p> <note> <p>MemoryDB reserved instances are referred to as \"MemoryDB reserved nodes\" in customer-facing documentation.</p> </note>"
1100+
"documentation":"<p>The MemoryDB reserved instances recommendation details.</p> <note> <p>While the API reference uses \"MemoryDB reserved instances\", the user guide and other documentation refer to them as \"MemoryDB reserved nodes\", as the terms are used interchangeably.</p> </note>"
10981101
},
10991102
"MemoryDbReservedInstancesConfiguration":{
11001103
"type":"structure",
@@ -1152,7 +1155,7 @@
11521155
"documentation":"<p>Determines whether the recommendation is for a current generation instance.</p>"
11531156
}
11541157
},
1155-
"documentation":"<p>The MemoryDB reserved instances configuration used for recommendations.</p> <note> <p>MemoryDB reserved instances are referred to as \"MemoryDB reserved nodes\" in customer-facing documentation.</p> </note>"
1158+
"documentation":"<p>The MemoryDB reserved instances configuration used for recommendations.</p> <note> <p>While the API reference uses \"MemoryDB reserved instances\", the user guide and other documentation refer to them as \"MemoryDB reserved nodes\", as the terms are used interchangeably.</p> </note>"
11561159
},
11571160
"MixedInstanceConfiguration":{
11581161
"type":"structure",
@@ -1257,6 +1260,28 @@
12571260
},
12581261
"documentation":"<p>Defines how rows will be sorted in the response.</p>"
12591262
},
1263+
"PaymentOption":{
1264+
"type":"string",
1265+
"enum":[
1266+
"AllUpfront",
1267+
"PartialUpfront",
1268+
"NoUpfront"
1269+
]
1270+
},
1271+
"PreferredCommitment":{
1272+
"type":"structure",
1273+
"members":{
1274+
"term":{
1275+
"shape":"Term",
1276+
"documentation":"<p>The preferred length of the commitment period. If the value is null, it will default to <code>ThreeYears</code> (highest savings) where applicable.</p>"
1277+
},
1278+
"paymentOption":{
1279+
"shape":"PaymentOption",
1280+
"documentation":"<p>The preferred upfront payment structure for commitments. If the value is null, it will default to <code>AllUpfront</code> (highest savings) where applicable.</p>"
1281+
}
1282+
},
1283+
"documentation":"<p>The preferred configuration for Reserved Instances and Savings Plans commitment-based discounts, consisting of a payment option and a commitment duration.</p>"
1284+
},
12601285
"PrimitiveBoolean":{"type":"boolean"},
12611286
"RdsDbInstance":{
12621287
"type":"structure",
@@ -1936,6 +1961,13 @@
19361961
"max":100,
19371962
"min":1
19381963
},
1964+
"Term":{
1965+
"type":"string",
1966+
"enum":[
1967+
"OneYear",
1968+
"ThreeYears"
1969+
]
1970+
},
19391971
"ThrottlingException":{
19401972
"type":"structure",
19411973
"members":{
@@ -1978,6 +2010,10 @@
19782010
"memberAccountDiscountVisibility":{
19792011
"shape":"MemberAccountDiscountVisibility",
19802012
"documentation":"<p>Sets the \"member account discount visibility\" preference.</p>"
2013+
},
2014+
"preferredCommitment":{
2015+
"shape":"PreferredCommitment",
2016+
"documentation":"<p>Sets the preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.</p>"
19812017
}
19822018
}
19832019
},
@@ -1991,6 +2027,10 @@
19912027
"memberAccountDiscountVisibility":{
19922028
"shape":"MemberAccountDiscountVisibility",
19932029
"documentation":"<p>Shows the status of the \"member account discount visibility\" preference.</p>"
2030+
},
2031+
"preferredCommitment":{
2032+
"shape":"PreferredCommitment",
2033+
"documentation":"<p>Shows the updated preferences for how Reserved Instances and Savings Plans cost-saving opportunities are prioritized in terms of payment option and term length.</p>"
19942034
}
19952035
}
19962036
},

0 commit comments

Comments
 (0)