Skip to content

Commit f69b002

Browse files
Support recommendations for Aurora instance and Aurora cluster storage.
1 parent 5372c46 commit f69b002

11 files changed

+432
-22
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,19 @@
180180
"LowestPrice"
181181
]
182182
},
183+
"AuroraDbClusterStorage":{
184+
"type":"structure",
185+
"members":{
186+
"configuration":{"shape":"AuroraDbClusterStorageConfiguration"},
187+
"costCalculation":{"shape":"ResourceCostCalculation"}
188+
}
189+
},
190+
"AuroraDbClusterStorageConfiguration":{
191+
"type":"structure",
192+
"members":{
193+
"storageType":{"shape":"String"}
194+
}
195+
},
183196
"BlockStoragePerformanceConfiguration":{
184197
"type":"structure",
185198
"members":{
@@ -416,7 +429,8 @@
416429
},
417430
"GetPreferencesRequest":{
418431
"type":"structure",
419-
"members":{}
432+
"members":{
433+
}
420434
},
421435
"GetPreferencesResponse":{
422436
"type":"structure",
@@ -862,6 +876,7 @@
862876
"sageMakerSavingsPlans":{"shape":"SageMakerSavingsPlans"},
863877
"rdsDbInstance":{"shape":"RdsDbInstance"},
864878
"rdsDbInstanceStorage":{"shape":"RdsDbInstanceStorage"},
879+
"auroraDbClusterStorage":{"shape":"AuroraDbClusterStorage"},
865880
"dynamoDbReservedCapacity":{"shape":"DynamoDbReservedCapacity"},
866881
"memoryDbReservedInstances":{"shape":"MemoryDbReservedInstances"}
867882
},
@@ -912,6 +927,7 @@
912927
"ElastiCacheReservedInstances",
913928
"RdsDbInstanceStorage",
914929
"RdsDbInstance",
930+
"AuroraDbClusterStorage",
915931
"DynamoDbReservedCapacity",
916932
"MemoryDbReservedInstances"
917933
]

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

Lines changed: 52 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"shapes": {
1414
"AccessDeniedException": {
1515
"base": "<p>You are not authorized to use this operation with the given parameters.</p>",
16-
"refs": {}
16+
"refs": {
17+
}
1718
},
1819
"AccountEnrollmentStatus": {
1920
"base": "<p>Describes the enrollment status of an organization's member accounts in Cost Optimization Hub.</p>",
@@ -60,6 +61,18 @@
6061
"Ec2AutoScalingGroupConfiguration$allocationStrategy": "<p>The strategy used for allocating instances, based on a predefined priority order or based on the lowest available price.</p>"
6162
}
6263
},
64+
"AuroraDbClusterStorage": {
65+
"base": "<p>Contains the details of an Aurora DB cluster storage.</p>",
66+
"refs": {
67+
"ResourceDetails$auroraDbClusterStorage": "<p>The Aurora DB cluster storage recommendation details.</p>"
68+
}
69+
},
70+
"AuroraDbClusterStorageConfiguration": {
71+
"base": "<p>The Aurora DB cluster storage configuration used for recommendations.</p>",
72+
"refs": {
73+
"AuroraDbClusterStorage$configuration": "<p>The Aurora DB cluster storage configuration used for recommendations.</p>"
74+
}
75+
},
6376
"BlockStoragePerformanceConfiguration": {
6477
"base": "<p>Describes the Amazon Elastic Block Store performance configuration of the current and recommended resource configuration for a recommendation.</p>",
6578
"refs": {
@@ -277,19 +290,23 @@
277290
},
278291
"GetPreferencesRequest": {
279292
"base": null,
280-
"refs": {}
293+
"refs": {
294+
}
281295
},
282296
"GetPreferencesResponse": {
283297
"base": null,
284-
"refs": {}
298+
"refs": {
299+
}
285300
},
286301
"GetRecommendationRequest": {
287302
"base": null,
288-
"refs": {}
303+
"refs": {
304+
}
289305
},
290306
"GetRecommendationResponse": {
291307
"base": null,
292-
"refs": {}
308+
"refs": {
309+
}
293310
},
294311
"ImplementationEffort": {
295312
"base": null,
@@ -323,7 +340,8 @@
323340
},
324341
"InternalServerException": {
325342
"base": "<p>An error on the server occurred during the processing of your request. Try again later.</p>",
326-
"refs": {}
343+
"refs": {
344+
}
327345
},
328346
"LambdaFunction": {
329347
"base": "<p>The Lambda function recommendation details.</p>",
@@ -339,15 +357,18 @@
339357
},
340358
"ListEnrollmentStatusesRequest": {
341359
"base": null,
342-
"refs": {}
360+
"refs": {
361+
}
343362
},
344363
"ListEnrollmentStatusesResponse": {
345364
"base": null,
346-
"refs": {}
365+
"refs": {
366+
}
347367
},
348368
"ListRecommendationSummariesRequest": {
349369
"base": null,
350-
"refs": {}
370+
"refs": {
371+
}
351372
},
352373
"ListRecommendationSummariesRequestMaxResultsInteger": {
353374
"base": null,
@@ -357,11 +378,13 @@
357378
},
358379
"ListRecommendationSummariesResponse": {
359380
"base": null,
360-
"refs": {}
381+
"refs": {
382+
}
361383
},
362384
"ListRecommendationsRequest": {
363385
"base": null,
364-
"refs": {}
386+
"refs": {
387+
}
365388
},
366389
"ListRecommendationsRequestMaxResultsInteger": {
367390
"base": null,
@@ -371,7 +394,8 @@
371394
},
372395
"ListRecommendationsResponse": {
373396
"base": null,
374-
"refs": {}
397+
"refs": {
398+
}
375399
},
376400
"MaxResults": {
377401
"base": null,
@@ -567,6 +591,7 @@
567591
"ResourceCostCalculation": {
568592
"base": "<p>Cost impact of the resource recommendation.</p>",
569593
"refs": {
594+
"AuroraDbClusterStorage$costCalculation": null,
570595
"EbsVolume$costCalculation": "<p>Cost impact of the recommendation.</p>",
571596
"Ec2AutoScalingGroup$costCalculation": "<p>Cost impact of the recommendation.</p>",
572597
"Ec2Instance$costCalculation": "<p>Cost impact of the recommendation.</p>",
@@ -591,7 +616,8 @@
591616
},
592617
"ResourceNotFoundException": {
593618
"base": "<p>The specified Amazon Resource Name (ARN) in the request doesn't exist.</p>",
594-
"refs": {}
619+
"refs": {
620+
}
595621
},
596622
"ResourcePricing": {
597623
"base": "<p>Contains pricing information about the specified resource.</p>",
@@ -664,6 +690,7 @@
664690
"base": null,
665691
"refs": {
666692
"AccessDeniedException$message": null,
693+
"AuroraDbClusterStorageConfiguration$storageType": "<p>The storage type to associate with the Aurora DB cluster.</p>",
667694
"ComputeConfiguration$architecture": "<p>The architecture of the resource.</p>",
668695
"ComputeConfiguration$platform": "<p>The platform of the resource. The platform is the specific combination of operating system, license model, and software on an instance.</p>",
669696
"ComputeSavingsPlansConfiguration$accountScope": "<p>The account scope for which you want recommendations. Amazon Web Services calculates recommendations including the management account and member accounts if the value is set to <code>PAYER</code>. If the value is <code>LINKED</code>, recommendations are calculated for individual member accounts only.</p>",
@@ -864,7 +891,8 @@
864891
},
865892
"ThrottlingException": {
866893
"base": "<p>The request was denied due to request throttling.</p>",
867-
"refs": {}
894+
"refs": {
895+
}
868896
},
869897
"Timestamp": {
870898
"base": null,
@@ -875,19 +903,23 @@
875903
},
876904
"UpdateEnrollmentStatusRequest": {
877905
"base": null,
878-
"refs": {}
906+
"refs": {
907+
}
879908
},
880909
"UpdateEnrollmentStatusResponse": {
881910
"base": null,
882-
"refs": {}
911+
"refs": {
912+
}
883913
},
884914
"UpdatePreferencesRequest": {
885915
"base": null,
886-
"refs": {}
916+
"refs": {
917+
}
887918
},
888919
"UpdatePreferencesResponse": {
889920
"base": null,
890-
"refs": {}
921+
"refs": {
922+
}
891923
},
892924
"Usage": {
893925
"base": "<p>Details about the usage.</p>",
@@ -903,7 +935,8 @@
903935
},
904936
"ValidationException": {
905937
"base": "<p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>",
906-
"refs": {}
938+
"refs": {
939+
}
907940
},
908941
"ValidationExceptionDetail": {
909942
"base": "<p>The input failed to meet the constraints specified by the Amazon Web Services service in a specified field.</p>",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"version": "1.0",
3-
"examples": {}
3+
"examples": {
4+
}
45
}

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,27 @@
201201
"LowestPrice"
202202
]
203203
},
204+
"AuroraDbClusterStorage":{
205+
"type":"structure",
206+
"members":{
207+
"configuration":{
208+
"shape":"AuroraDbClusterStorageConfiguration",
209+
"documentation":"<p>The Aurora DB cluster storage configuration used for recommendations.</p>"
210+
},
211+
"costCalculation":{"shape":"ResourceCostCalculation"}
212+
},
213+
"documentation":"<p>Contains the details of an Aurora DB cluster storage.</p>"
214+
},
215+
"AuroraDbClusterStorageConfiguration":{
216+
"type":"structure",
217+
"members":{
218+
"storageType":{
219+
"shape":"String",
220+
"documentation":"<p>The storage type to associate with the Aurora DB cluster.</p>"
221+
}
222+
},
223+
"documentation":"<p>The Aurora DB cluster storage configuration used for recommendations.</p>"
224+
},
204225
"BlockStoragePerformanceConfiguration":{
205226
"type":"structure",
206227
"members":{
@@ -745,7 +766,8 @@
745766
},
746767
"GetPreferencesRequest":{
747768
"type":"structure",
748-
"members":{}
769+
"members":{
770+
}
749771
},
750772
"GetPreferencesResponse":{
751773
"type":"structure",
@@ -1740,6 +1762,10 @@
17401762
"shape":"RdsDbInstanceStorage",
17411763
"documentation":"<p>The DB instance storage recommendation details.</p>"
17421764
},
1765+
"auroraDbClusterStorage":{
1766+
"shape":"AuroraDbClusterStorage",
1767+
"documentation":"<p>The Aurora DB cluster storage recommendation details.</p>"
1768+
},
17431769
"dynamoDbReservedCapacity":{
17441770
"shape":"DynamoDbReservedCapacity",
17451771
"documentation":"<p>The DynamoDB reserved capacity recommendation details.</p>"
@@ -1814,6 +1840,7 @@
18141840
"ElastiCacheReservedInstances",
18151841
"RdsDbInstanceStorage",
18161842
"RdsDbInstance",
1843+
"AuroraDbClusterStorage",
18171844
"DynamoDbReservedCapacity",
18181845
"MemoryDbReservedInstances"
18191846
]
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the cost-optimization-hub-2022-07-26.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.CostOptimizationHub.Model
31+
{
32+
/// <summary>
33+
/// Contains the details of an Aurora DB cluster storage.
34+
/// </summary>
35+
public partial class AuroraDbClusterStorage
36+
{
37+
private AuroraDbClusterStorageConfiguration _configuration;
38+
private ResourceCostCalculation _costCalculation;
39+
40+
/// <summary>
41+
/// Gets and sets the property Configuration.
42+
/// <para>
43+
/// The Aurora DB cluster storage configuration used for recommendations.
44+
/// </para>
45+
/// </summary>
46+
public AuroraDbClusterStorageConfiguration Configuration
47+
{
48+
get { return this._configuration; }
49+
set { this._configuration = value; }
50+
}
51+
52+
// Check to see if Configuration property is set
53+
internal bool IsSetConfiguration()
54+
{
55+
return this._configuration != null;
56+
}
57+
58+
/// <summary>
59+
/// Gets and sets the property CostCalculation.
60+
/// </summary>
61+
public ResourceCostCalculation CostCalculation
62+
{
63+
get { return this._costCalculation; }
64+
set { this._costCalculation = value; }
65+
}
66+
67+
// Check to see if CostCalculation property is set
68+
internal bool IsSetCostCalculation()
69+
{
70+
return this._costCalculation != null;
71+
}
72+
73+
}
74+
}

0 commit comments

Comments
 (0)