Skip to content

Commit f3fe1af

Browse files
author
awstools
committed
feat(client-bcm-pricing-calculator): Added standaloneAccountRateTypeSelections for GetPreferences and UpdatePreferences APIs. Added STALE enum value to status attribute in GetBillScenario and UpdateBillScenario APIs.
1 parent 09d8cf0 commit f3fe1af

File tree

8 files changed

+66
-8
lines changed

8 files changed

+66
-8
lines changed

clients/client-bcm-pricing-calculator/src/commands/CreateBillScenarioCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface CreateBillScenarioCommandOutput extends CreateBillScenarioRespo
5757
* // start: new Date("TIMESTAMP"),
5858
* // end: new Date("TIMESTAMP"),
5959
* // },
60-
* // status: "READY" || "LOCKED" || "FAILED",
60+
* // status: "READY" || "LOCKED" || "FAILED" || "STALE",
6161
* // createdAt: new Date("TIMESTAMP"),
6262
* // expiresAt: new Date("TIMESTAMP"),
6363
* // failureMessage: "STRING_VALUE",

clients/client-bcm-pricing-calculator/src/commands/GetBillScenarioCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface GetBillScenarioCommandOutput extends GetBillScenarioResponse, _
5353
* // start: new Date("TIMESTAMP"),
5454
* // end: new Date("TIMESTAMP"),
5555
* // },
56-
* // status: "READY" || "LOCKED" || "FAILED",
56+
* // status: "READY" || "LOCKED" || "FAILED" || "STALE",
5757
* // createdAt: new Date("TIMESTAMP"),
5858
* // expiresAt: new Date("TIMESTAMP"),
5959
* // failureMessage: "STRING_VALUE",

clients/client-bcm-pricing-calculator/src/commands/GetPreferencesCommand.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface GetPreferencesCommandOutput extends GetPreferencesResponse, __M
3333

3434
/**
3535
* <p>
36-
* Retrieves the current preferences for the Amazon Web Services Cost Explorer service.
36+
* Retrieves the current preferences for Pricing Calculator.
3737
* </p>
3838
* @example
3939
* Use a bare-bones client and the command you need to make an API call.
@@ -51,6 +51,9 @@ export interface GetPreferencesCommandOutput extends GetPreferencesResponse, __M
5151
* // memberAccountRateTypeSelections: [
5252
* // "BEFORE_DISCOUNTS" || "AFTER_DISCOUNTS",
5353
* // ],
54+
* // standaloneAccountRateTypeSelections: [
55+
* // "BEFORE_DISCOUNTS" || "AFTER_DISCOUNTS",
56+
* // ],
5457
* // };
5558
*
5659
* ```

clients/client-bcm-pricing-calculator/src/commands/ListBillScenariosCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface ListBillScenariosCommandOutput extends ListBillScenariosRespons
7373
* // start: new Date("TIMESTAMP"),
7474
* // end: new Date("TIMESTAMP"),
7575
* // },
76-
* // status: "READY" || "LOCKED" || "FAILED",
76+
* // status: "READY" || "LOCKED" || "FAILED" || "STALE",
7777
* // createdAt: new Date("TIMESTAMP"),
7878
* // expiresAt: new Date("TIMESTAMP"),
7979
* // failureMessage: "STRING_VALUE",

clients/client-bcm-pricing-calculator/src/commands/UpdateBillScenarioCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface UpdateBillScenarioCommandOutput extends UpdateBillScenarioRespo
5555
* // start: new Date("TIMESTAMP"),
5656
* // end: new Date("TIMESTAMP"),
5757
* // },
58-
* // status: "READY" || "LOCKED" || "FAILED",
58+
* // status: "READY" || "LOCKED" || "FAILED" || "STALE",
5959
* // createdAt: new Date("TIMESTAMP"),
6060
* // expiresAt: new Date("TIMESTAMP"),
6161
* // failureMessage: "STRING_VALUE",

clients/client-bcm-pricing-calculator/src/commands/UpdatePreferencesCommand.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface UpdatePreferencesCommandOutput extends UpdatePreferencesRespons
3333

3434
/**
3535
* <p>
36-
* Updates the preferences for the Amazon Web Services Cost Explorer service.
36+
* Updates the preferences for Pricing Calculator.
3737
* </p>
3838
* @example
3939
* Use a bare-bones client and the command you need to make an API call.
@@ -48,6 +48,9 @@ export interface UpdatePreferencesCommandOutput extends UpdatePreferencesRespons
4848
* memberAccountRateTypeSelections: [
4949
* "BEFORE_DISCOUNTS" || "AFTER_DISCOUNTS",
5050
* ],
51+
* standaloneAccountRateTypeSelections: [
52+
* "BEFORE_DISCOUNTS" || "AFTER_DISCOUNTS",
53+
* ],
5154
* };
5255
* const command = new UpdatePreferencesCommand(input);
5356
* const response = await client.send(command);
@@ -58,6 +61,9 @@ export interface UpdatePreferencesCommandOutput extends UpdatePreferencesRespons
5861
* // memberAccountRateTypeSelections: [
5962
* // "BEFORE_DISCOUNTS" || "AFTER_DISCOUNTS",
6063
* // ],
64+
* // standaloneAccountRateTypeSelections: [
65+
* // "BEFORE_DISCOUNTS" || "AFTER_DISCOUNTS",
66+
* // ],
6167
* // };
6268
*
6369
* ```

clients/client-bcm-pricing-calculator/src/models/models_0.ts

+25
Original file line numberDiff line numberDiff line change
@@ -2267,6 +2267,7 @@ export const BillScenarioStatus = {
22672267
FAILED: "FAILED",
22682268
LOCKED: "LOCKED",
22692269
READY: "READY",
2270+
STALE: "STALE",
22702271
} as const;
22712272

22722273
/**
@@ -3113,6 +3114,14 @@ export interface GetPreferencesResponse {
31133114
* @public
31143115
*/
31153116
memberAccountRateTypeSelections?: RateType[] | undefined;
3117+
3118+
/**
3119+
* <p>
3120+
* The preferred rate types for a standalone account.
3121+
* </p>
3122+
* @public
3123+
*/
3124+
standaloneAccountRateTypeSelections?: RateType[] | undefined;
31163125
}
31173126

31183127
/**
@@ -3212,6 +3221,14 @@ export interface UpdatePreferencesRequest {
32123221
* @public
32133222
*/
32143223
memberAccountRateTypeSelections?: RateType[] | undefined;
3224+
3225+
/**
3226+
* <p>
3227+
* The updated preferred rate types for a standalone account.
3228+
* </p>
3229+
* @public
3230+
*/
3231+
standaloneAccountRateTypeSelections?: RateType[] | undefined;
32153232
}
32163233

32173234
/**
@@ -3233,6 +3250,14 @@ export interface UpdatePreferencesResponse {
32333250
* @public
32343251
*/
32353252
memberAccountRateTypeSelections?: RateType[] | undefined;
3253+
3254+
/**
3255+
* <p>
3256+
* The updated preferred rate types for a standalone account.
3257+
* </p>
3258+
* @public
3259+
*/
3260+
standaloneAccountRateTypeSelections?: RateType[] | undefined;
32363261
}
32373262

32383263
/**

codegen/sdk-codegen/aws-models/bcm-pricing-calculator.json

+26-2
Original file line numberDiff line numberDiff line change
@@ -3083,6 +3083,12 @@
30833083
"traits": {
30843084
"smithy.api#enumValue": "FAILED"
30853085
}
3086+
},
3087+
"STALE": {
3088+
"target": "smithy.api#Unit",
3089+
"traits": {
3090+
"smithy.api#enumValue": "STALE"
3091+
}
30863092
}
30873093
}
30883094
},
@@ -4176,7 +4182,7 @@
41764182
"aws.iam#iamAction": {
41774183
"documentation": "Grants permission to retrieve applicable rate type preferences for the account"
41784184
},
4179-
"smithy.api#documentation": "<p>\n Retrieves the current preferences for the Amazon Web Services Cost Explorer service.\n </p>",
4185+
"smithy.api#documentation": "<p>\n Retrieves the current preferences for Pricing Calculator.\n </p>",
41804186
"smithy.api#readonly": {}
41814187
}
41824188
},
@@ -4201,6 +4207,12 @@
42014207
"traits": {
42024208
"smithy.api#documentation": "<p>\n The preferred rate types for member accounts.\n </p>"
42034209
}
4210+
},
4211+
"standaloneAccountRateTypeSelections": {
4212+
"target": "com.amazonaws.bcmpricingcalculator#RateTypes",
4213+
"traits": {
4214+
"smithy.api#documentation": "<p>\n The preferred rate types for a standalone account.\n </p>"
4215+
}
42044216
}
42054217
},
42064218
"traits": {
@@ -6340,7 +6352,7 @@
63406352
"aws.iam#iamAction": {
63416353
"documentation": "Grants permission to update rate type preferences for the account"
63426354
},
6343-
"smithy.api#documentation": "<p>\n Updates the preferences for the Amazon Web Services Cost Explorer service.\n </p>",
6355+
"smithy.api#documentation": "<p>\n Updates the preferences for Pricing Calculator.\n </p>",
63446356
"smithy.api#idempotent": {}
63456357
}
63466358
},
@@ -6358,6 +6370,12 @@
63586370
"traits": {
63596371
"smithy.api#documentation": "<p>\n The updated preferred rate types for member accounts.\n </p>"
63606372
}
6373+
},
6374+
"standaloneAccountRateTypeSelections": {
6375+
"target": "com.amazonaws.bcmpricingcalculator#RateTypes",
6376+
"traits": {
6377+
"smithy.api#documentation": "<p>\n The updated preferred rate types for a standalone account.\n </p>"
6378+
}
63616379
}
63626380
},
63636381
"traits": {
@@ -6378,6 +6396,12 @@
63786396
"traits": {
63796397
"smithy.api#documentation": "<p>\n The updated preferred rate types for member accounts.\n </p>"
63806398
}
6399+
},
6400+
"standaloneAccountRateTypeSelections": {
6401+
"target": "com.amazonaws.bcmpricingcalculator#RateTypes",
6402+
"traits": {
6403+
"smithy.api#documentation": "<p>\n The updated preferred rate types for a standalone account.\n </p>"
6404+
}
63816405
}
63826406
},
63836407
"traits": {

0 commit comments

Comments
 (0)