Skip to content

Commit fe32ca8

Browse files
Added standaloneAccountRateTypeSelections for GetPreferences and UpdatePreferences APIs. Added STALE enum value to status attribute in GetBillScenario and UpdateBillScenario APIs.
1 parent 1a4ccca commit fe32ca8

17 files changed

+135
-28
lines changed

generator/ServiceModels/bcm-pricing-calculator/bcm-pricing-calculator-2024-06-19.api.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,8 @@
14031403
"enum":[
14041404
"READY",
14051405
"LOCKED",
1406-
"FAILED"
1406+
"FAILED",
1407+
"STALE"
14071408
]
14081409
},
14091410
"BillScenarioSummaries":{
@@ -1697,7 +1698,8 @@
16971698
"type":"structure",
16981699
"members":{
16991700
"managementAccountRateTypeSelections":{"shape":"RateTypes"},
1700-
"memberAccountRateTypeSelections":{"shape":"RateTypes"}
1701+
"memberAccountRateTypeSelections":{"shape":"RateTypes"},
1702+
"standaloneAccountRateTypeSelections":{"shape":"RateTypes"}
17011703
}
17021704
},
17031705
"GetWorkloadEstimateRequest":{
@@ -2333,14 +2335,16 @@
23332335
"type":"structure",
23342336
"members":{
23352337
"managementAccountRateTypeSelections":{"shape":"RateTypes"},
2336-
"memberAccountRateTypeSelections":{"shape":"RateTypes"}
2338+
"memberAccountRateTypeSelections":{"shape":"RateTypes"},
2339+
"standaloneAccountRateTypeSelections":{"shape":"RateTypes"}
23372340
}
23382341
},
23392342
"UpdatePreferencesResponse":{
23402343
"type":"structure",
23412344
"members":{
23422345
"managementAccountRateTypeSelections":{"shape":"RateTypes"},
2343-
"memberAccountRateTypeSelections":{"shape":"RateTypes"}
2346+
"memberAccountRateTypeSelections":{"shape":"RateTypes"},
2347+
"standaloneAccountRateTypeSelections":{"shape":"RateTypes"}
23442348
}
23452349
},
23462350
"UpdateWorkloadEstimateRequest":{

generator/ServiceModels/bcm-pricing-calculator/bcm-pricing-calculator-2024-06-19.docs.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"DeleteWorkloadEstimate": "<p> Deletes an existing workload estimate. </p>",
2020
"GetBillEstimate": "<p> Retrieves details of a specific bill estimate. </p>",
2121
"GetBillScenario": "<p> Retrieves details of a specific bill scenario. </p>",
22-
"GetPreferences": "<p> Retrieves the current preferences for the Amazon Web Services Cost Explorer service. </p>",
22+
"GetPreferences": "<p> Retrieves the current preferences for Pricing Calculator. </p>",
2323
"GetWorkloadEstimate": "<p> Retrieves details of a specific workload estimate. </p>",
2424
"ListBillEstimateCommitments": "<p> Lists the commitments associated with a bill estimate. </p>",
2525
"ListBillEstimateInputCommitmentModifications": "<p> Lists the input commitment modifications associated with a bill estimate. </p>",
@@ -36,7 +36,7 @@
3636
"UntagResource": "<p> Removes one or more tags from a specified resource. </p>",
3737
"UpdateBillEstimate": "<p> Updates an existing bill estimate. </p>",
3838
"UpdateBillScenario": "<p> Updates an existing bill scenario. </p>",
39-
"UpdatePreferences": "<p> Updates the preferences for the Amazon Web Services Cost Explorer service. </p>",
39+
"UpdatePreferences": "<p> Updates the preferences for Pricing Calculator. </p>",
4040
"UpdateWorkloadEstimate": "<p> Updates an existing workload estimate. </p>"
4141
},
4242
"shapes": {
@@ -1196,10 +1196,13 @@
11961196
"refs": {
11971197
"GetPreferencesResponse$managementAccountRateTypeSelections": "<p> The preferred rate types for the management account. </p>",
11981198
"GetPreferencesResponse$memberAccountRateTypeSelections": "<p> The preferred rate types for member accounts. </p>",
1199+
"GetPreferencesResponse$standaloneAccountRateTypeSelections": "<p> The preferred rate types for a standalone account. </p>",
11991200
"UpdatePreferencesRequest$managementAccountRateTypeSelections": "<p> The updated preferred rate types for the management account. </p>",
12001201
"UpdatePreferencesRequest$memberAccountRateTypeSelections": "<p> The updated preferred rate types for member accounts. </p>",
1202+
"UpdatePreferencesRequest$standaloneAccountRateTypeSelections": "<p> The updated preferred rate types for a standalone account. </p>",
12011203
"UpdatePreferencesResponse$managementAccountRateTypeSelections": "<p> The updated preferred rate types for the management account. </p>",
1202-
"UpdatePreferencesResponse$memberAccountRateTypeSelections": "<p> The updated preferred rate types for member accounts. </p>"
1204+
"UpdatePreferencesResponse$memberAccountRateTypeSelections": "<p> The updated preferred rate types for member accounts. </p>",
1205+
"UpdatePreferencesResponse$standaloneAccountRateTypeSelections": "<p> The updated preferred rate types for a standalone account. </p>"
12031206
}
12041207
},
12051208
"ReservedInstanceInstanceCount": {

generator/ServiceModels/bcm-pricing-calculator/bcm-pricing-calculator-2024-06-19.normal.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366
{"shape":"AccessDeniedException"},
367367
{"shape":"ThrottlingException"}
368368
],
369-
"documentation":"<p> Retrieves the current preferences for the Amazon Web Services Cost Explorer service. </p>"
369+
"documentation":"<p> Retrieves the current preferences for Pricing Calculator. </p>"
370370
},
371371
"GetWorkloadEstimate":{
372372
"name":"GetWorkloadEstimate",
@@ -671,7 +671,7 @@
671671
{"shape":"AccessDeniedException"},
672672
{"shape":"ThrottlingException"}
673673
],
674-
"documentation":"<p> Updates the preferences for the Amazon Web Services Cost Explorer service. </p>",
674+
"documentation":"<p> Updates the preferences for Pricing Calculator. </p>",
675675
"idempotent":true
676676
},
677677
"UpdateWorkloadEstimate":{
@@ -2006,7 +2006,8 @@
20062006
"enum":[
20072007
"READY",
20082008
"LOCKED",
2009-
"FAILED"
2009+
"FAILED",
2010+
"STALE"
20102011
]
20112012
},
20122013
"BillScenarioSummaries":{
@@ -2580,6 +2581,10 @@
25802581
"memberAccountRateTypeSelections":{
25812582
"shape":"RateTypes",
25822583
"documentation":"<p> The preferred rate types for member accounts. </p>"
2584+
},
2585+
"standaloneAccountRateTypeSelections":{
2586+
"shape":"RateTypes",
2587+
"documentation":"<p> The preferred rate types for a standalone account. </p>"
25832588
}
25842589
}
25852590
},
@@ -3631,6 +3636,10 @@
36313636
"memberAccountRateTypeSelections":{
36323637
"shape":"RateTypes",
36333638
"documentation":"<p> The updated preferred rate types for member accounts. </p>"
3639+
},
3640+
"standaloneAccountRateTypeSelections":{
3641+
"shape":"RateTypes",
3642+
"documentation":"<p> The updated preferred rate types for a standalone account. </p>"
36343643
}
36353644
}
36363645
},
@@ -3644,6 +3653,10 @@
36443653
"memberAccountRateTypeSelections":{
36453654
"shape":"RateTypes",
36463655
"documentation":"<p> The updated preferred rate types for member accounts. </p>"
3656+
},
3657+
"standaloneAccountRateTypeSelections":{
3658+
"shape":"RateTypes",
3659+
"documentation":"<p> The updated preferred rate types for a standalone account. </p>"
36473660
}
36483661
}
36493662
},

sdk/src/Services/BCMPricingCalculator/Generated/Model/GetPreferencesRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace Amazon.BCMPricingCalculator.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the GetPreferences operation.
34-
/// Retrieves the current preferences for the Amazon Web Services Cost Explorer service.
34+
/// Retrieves the current preferences for Pricing Calculator.
3535
/// </summary>
3636
public partial class GetPreferencesRequest : AmazonBCMPricingCalculatorRequest
3737
{

sdk/src/Services/BCMPricingCalculator/Generated/Model/GetPreferencesResponse.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public partial class GetPreferencesResponse : AmazonWebServiceResponse
3636
{
3737
private List<string> _managementAccountRateTypeSelections = AWSConfigs.InitializeCollections ? new List<string>() : null;
3838
private List<string> _memberAccountRateTypeSelections = AWSConfigs.InitializeCollections ? new List<string>() : null;
39+
private List<string> _standaloneAccountRateTypeSelections = AWSConfigs.InitializeCollections ? new List<string>() : null;
3940

4041
/// <summary>
4142
/// Gets and sets the property ManagementAccountRateTypeSelections.
@@ -75,5 +76,24 @@ internal bool IsSetMemberAccountRateTypeSelections()
7576
return this._memberAccountRateTypeSelections != null && (this._memberAccountRateTypeSelections.Count > 0 || !AWSConfigs.InitializeCollections);
7677
}
7778

79+
/// <summary>
80+
/// Gets and sets the property StandaloneAccountRateTypeSelections.
81+
/// <para>
82+
/// The preferred rate types for a standalone account.
83+
/// </para>
84+
/// </summary>
85+
[AWSProperty(Min=1, Max=2)]
86+
public List<string> StandaloneAccountRateTypeSelections
87+
{
88+
get { return this._standaloneAccountRateTypeSelections; }
89+
set { this._standaloneAccountRateTypeSelections = value; }
90+
}
91+
92+
// Check to see if StandaloneAccountRateTypeSelections property is set
93+
internal bool IsSetStandaloneAccountRateTypeSelections()
94+
{
95+
return this._standaloneAccountRateTypeSelections != null && (this._standaloneAccountRateTypeSelections.Count > 0 || !AWSConfigs.InitializeCollections);
96+
}
97+
7898
}
7999
}

sdk/src/Services/BCMPricingCalculator/Generated/Model/Internal/MarshallTransformations/GetPreferencesResponseUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont
6464
response.MemberAccountRateTypeSelections = unmarshaller.Unmarshall(context);
6565
continue;
6666
}
67+
if (context.TestExpression("standaloneAccountRateTypeSelections", targetDepth))
68+
{
69+
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
70+
response.StandaloneAccountRateTypeSelections = unmarshaller.Unmarshall(context);
71+
continue;
72+
}
6773
}
6874

6975
return response;

sdk/src/Services/BCMPricingCalculator/Generated/Model/Internal/MarshallTransformations/UpdatePreferencesRequestMarshaller.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@ public IRequest Marshall(UpdatePreferencesRequest publicRequest)
9191
context.Writer.WriteArrayEnd();
9292
}
9393

94+
if(publicRequest.IsSetStandaloneAccountRateTypeSelections())
95+
{
96+
context.Writer.WritePropertyName("standaloneAccountRateTypeSelections");
97+
context.Writer.WriteArrayStart();
98+
foreach(var publicRequestStandaloneAccountRateTypeSelectionsListValue in publicRequest.StandaloneAccountRateTypeSelections)
99+
{
100+
context.Writer.Write(publicRequestStandaloneAccountRateTypeSelectionsListValue);
101+
}
102+
context.Writer.WriteArrayEnd();
103+
}
104+
94105
writer.WriteObjectEnd();
95106
string snippet = stringWriter.ToString();
96107
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);

sdk/src/Services/BCMPricingCalculator/Generated/Model/Internal/MarshallTransformations/UpdatePreferencesResponseUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext cont
6464
response.MemberAccountRateTypeSelections = unmarshaller.Unmarshall(context);
6565
continue;
6666
}
67+
if (context.TestExpression("standaloneAccountRateTypeSelections", targetDepth))
68+
{
69+
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
70+
response.StandaloneAccountRateTypeSelections = unmarshaller.Unmarshall(context);
71+
continue;
72+
}
6773
}
6874

6975
return response;

sdk/src/Services/BCMPricingCalculator/Generated/Model/UpdatePreferencesRequest.cs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ namespace Amazon.BCMPricingCalculator.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the UpdatePreferences operation.
34-
/// Updates the preferences for the Amazon Web Services Cost Explorer service.
34+
/// Updates the preferences for Pricing Calculator.
3535
/// </summary>
3636
public partial class UpdatePreferencesRequest : AmazonBCMPricingCalculatorRequest
3737
{
3838
private List<string> _managementAccountRateTypeSelections = AWSConfigs.InitializeCollections ? new List<string>() : null;
3939
private List<string> _memberAccountRateTypeSelections = AWSConfigs.InitializeCollections ? new List<string>() : null;
40+
private List<string> _standaloneAccountRateTypeSelections = AWSConfigs.InitializeCollections ? new List<string>() : null;
4041

4142
/// <summary>
4243
/// Gets and sets the property ManagementAccountRateTypeSelections.
@@ -76,5 +77,24 @@ internal bool IsSetMemberAccountRateTypeSelections()
7677
return this._memberAccountRateTypeSelections != null && (this._memberAccountRateTypeSelections.Count > 0 || !AWSConfigs.InitializeCollections);
7778
}
7879

80+
/// <summary>
81+
/// Gets and sets the property StandaloneAccountRateTypeSelections.
82+
/// <para>
83+
/// The updated preferred rate types for a standalone account.
84+
/// </para>
85+
/// </summary>
86+
[AWSProperty(Min=1, Max=2)]
87+
public List<string> StandaloneAccountRateTypeSelections
88+
{
89+
get { return this._standaloneAccountRateTypeSelections; }
90+
set { this._standaloneAccountRateTypeSelections = value; }
91+
}
92+
93+
// Check to see if StandaloneAccountRateTypeSelections property is set
94+
internal bool IsSetStandaloneAccountRateTypeSelections()
95+
{
96+
return this._standaloneAccountRateTypeSelections != null && (this._standaloneAccountRateTypeSelections.Count > 0 || !AWSConfigs.InitializeCollections);
97+
}
98+
7999
}
80100
}

sdk/src/Services/BCMPricingCalculator/Generated/Model/UpdatePreferencesResponse.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public partial class UpdatePreferencesResponse : AmazonWebServiceResponse
3636
{
3737
private List<string> _managementAccountRateTypeSelections = AWSConfigs.InitializeCollections ? new List<string>() : null;
3838
private List<string> _memberAccountRateTypeSelections = AWSConfigs.InitializeCollections ? new List<string>() : null;
39+
private List<string> _standaloneAccountRateTypeSelections = AWSConfigs.InitializeCollections ? new List<string>() : null;
3940

4041
/// <summary>
4142
/// Gets and sets the property ManagementAccountRateTypeSelections.
@@ -75,5 +76,24 @@ internal bool IsSetMemberAccountRateTypeSelections()
7576
return this._memberAccountRateTypeSelections != null && (this._memberAccountRateTypeSelections.Count > 0 || !AWSConfigs.InitializeCollections);
7677
}
7778

79+
/// <summary>
80+
/// Gets and sets the property StandaloneAccountRateTypeSelections.
81+
/// <para>
82+
/// The updated preferred rate types for a standalone account.
83+
/// </para>
84+
/// </summary>
85+
[AWSProperty(Min=1, Max=2)]
86+
public List<string> StandaloneAccountRateTypeSelections
87+
{
88+
get { return this._standaloneAccountRateTypeSelections; }
89+
set { this._standaloneAccountRateTypeSelections = value; }
90+
}
91+
92+
// Check to see if StandaloneAccountRateTypeSelections property is set
93+
internal bool IsSetStandaloneAccountRateTypeSelections()
94+
{
95+
return this._standaloneAccountRateTypeSelections != null && (this._standaloneAccountRateTypeSelections.Count > 0 || !AWSConfigs.InitializeCollections);
96+
}
97+
7898
}
7999
}

sdk/src/Services/BCMPricingCalculator/Generated/ServiceEnumerations.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,10 @@ public class BillScenarioStatus : ConstantClass
490490
/// Constant READY for BillScenarioStatus
491491
/// </summary>
492492
public static readonly BillScenarioStatus READY = new BillScenarioStatus("READY");
493+
/// <summary>
494+
/// Constant STALE for BillScenarioStatus
495+
/// </summary>
496+
public static readonly BillScenarioStatus STALE = new BillScenarioStatus("STALE");
493497

494498
/// <summary>
495499
/// This constant constructor does not need to be called if the constant

sdk/src/Services/BCMPricingCalculator/Generated/_bcl35/AmazonBCMPricingCalculatorClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ public virtual GetBillScenarioResponse EndGetBillScenario(IAsyncResult asyncResu
16971697
#region GetPreferences
16981698

16991699
/// <summary>
1700-
/// Retrieves the current preferences for the Amazon Web Services Cost Explorer service.
1700+
/// Retrieves the current preferences for Pricing Calculator.
17011701
/// </summary>
17021702
/// <param name="request">Container for the necessary parameters to execute the GetPreferences service method.</param>
17031703
///
@@ -2945,7 +2945,7 @@ public virtual UpdateBillScenarioResponse EndUpdateBillScenario(IAsyncResult asy
29452945
#region UpdatePreferences
29462946

29472947
/// <summary>
2948-
/// Updates the preferences for the Amazon Web Services Cost Explorer service.
2948+
/// Updates the preferences for Pricing Calculator.
29492949
/// </summary>
29502950
/// <param name="request">Container for the necessary parameters to execute the UpdatePreferences service method.</param>
29512951
///

sdk/src/Services/BCMPricingCalculator/Generated/_bcl35/IAmazonBCMPricingCalculator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ public partial interface IAmazonBCMPricingCalculator : IAmazonService, IDisposab
12411241

12421242

12431243
/// <summary>
1244-
/// Retrieves the current preferences for the Amazon Web Services Cost Explorer service.
1244+
/// Retrieves the current preferences for Pricing Calculator.
12451245
/// </summary>
12461246
/// <param name="request">Container for the necessary parameters to execute the GetPreferences service method.</param>
12471247
///
@@ -2251,7 +2251,7 @@ public partial interface IAmazonBCMPricingCalculator : IAmazonService, IDisposab
22512251

22522252

22532253
/// <summary>
2254-
/// Updates the preferences for the Amazon Web Services Cost Explorer service.
2254+
/// Updates the preferences for Pricing Calculator.
22552255
/// </summary>
22562256
/// <param name="request">Container for the necessary parameters to execute the UpdatePreferences service method.</param>
22572257
///

sdk/src/Services/BCMPricingCalculator/Generated/_bcl45/AmazonBCMPricingCalculatorClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,7 +1976,7 @@ public virtual GetBillScenarioResponse GetBillScenario(GetBillScenarioRequest re
19761976

19771977

19781978
/// <summary>
1979-
/// Retrieves the current preferences for the Amazon Web Services Cost Explorer service.
1979+
/// Retrieves the current preferences for Pricing Calculator.
19801980
/// </summary>
19811981
/// <param name="request">Container for the necessary parameters to execute the GetPreferences service method.</param>
19821982
///
@@ -2010,7 +2010,7 @@ public virtual GetPreferencesResponse GetPreferences(GetPreferencesRequest reque
20102010

20112011

20122012
/// <summary>
2013-
/// Retrieves the current preferences for the Amazon Web Services Cost Explorer service.
2013+
/// Retrieves the current preferences for Pricing Calculator.
20142014
/// </summary>
20152015
/// <param name="request">Container for the necessary parameters to execute the GetPreferences service method.</param>
20162016
/// <param name="cancellationToken">
@@ -3333,7 +3333,7 @@ public virtual UpdateBillScenarioResponse UpdateBillScenario(UpdateBillScenarioR
33333333

33343334

33353335
/// <summary>
3336-
/// Updates the preferences for the Amazon Web Services Cost Explorer service.
3336+
/// Updates the preferences for Pricing Calculator.
33373337
/// </summary>
33383338
/// <param name="request">Container for the necessary parameters to execute the UpdatePreferences service method.</param>
33393339
///
@@ -3370,7 +3370,7 @@ public virtual UpdatePreferencesResponse UpdatePreferences(UpdatePreferencesRequ
33703370

33713371

33723372
/// <summary>
3373-
/// Updates the preferences for the Amazon Web Services Cost Explorer service.
3373+
/// Updates the preferences for Pricing Calculator.
33743374
/// </summary>
33753375
/// <param name="request">Container for the necessary parameters to execute the UpdatePreferences service method.</param>
33763376
/// <param name="cancellationToken">

0 commit comments

Comments
 (0)