Skip to content

Commit e0dc140

Browse files
author
awstools
committed
feat(client-bcm-pricing-calculator): Add GroupSharingPreference, CostCategoryGroupSharingPreferenceArn, and CostCategoryGroupSharingPreferenceEffectiveDate to Bill Estimate. Add GroupSharingPreference and CostCategoryGroupSharingPreferenceArn to Bill Scenario.
1 parent 498dcf3 commit e0dc140

File tree

11 files changed

+379
-19
lines changed

11 files changed

+379
-19
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export interface CreateBillEstimateCommandOutput extends CreateBillEstimateRespo
8585
* // },
8686
* // createdAt: new Date("TIMESTAMP"),
8787
* // expiresAt: new Date("TIMESTAMP"),
88+
* // groupSharingPreference: "OPEN" || "PRIORITIZED" || "RESTRICTED",
89+
* // costCategoryGroupSharingPreferenceArn: "STRING_VALUE",
90+
* // costCategoryGroupSharingPreferenceEffectiveDate: new Date("TIMESTAMP"),
8891
* // };
8992
*
9093
* ```

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export interface CreateBillScenarioCommandOutput extends CreateBillScenarioRespo
4646
* tags: { // Tags
4747
* "<keys>": "STRING_VALUE",
4848
* },
49+
* groupSharingPreference: "OPEN" || "PRIORITIZED" || "RESTRICTED",
50+
* costCategoryGroupSharingPreferenceArn: "STRING_VALUE",
4951
* };
5052
* const command = new CreateBillScenarioCommand(input);
5153
* const response = await client.send(command);
@@ -60,6 +62,8 @@ export interface CreateBillScenarioCommandOutput extends CreateBillScenarioRespo
6062
* // createdAt: new Date("TIMESTAMP"),
6163
* // expiresAt: new Date("TIMESTAMP"),
6264
* // failureMessage: "STRING_VALUE",
65+
* // groupSharingPreference: "OPEN" || "PRIORITIZED" || "RESTRICTED",
66+
* // costCategoryGroupSharingPreferenceArn: "STRING_VALUE",
6367
* // };
6468
*
6569
* ```

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ export interface GetBillEstimateCommandOutput extends GetBillEstimateResponse, _
8080
* // },
8181
* // createdAt: new Date("TIMESTAMP"),
8282
* // expiresAt: new Date("TIMESTAMP"),
83+
* // groupSharingPreference: "OPEN" || "PRIORITIZED" || "RESTRICTED",
84+
* // costCategoryGroupSharingPreferenceArn: "STRING_VALUE",
85+
* // costCategoryGroupSharingPreferenceEffectiveDate: new Date("TIMESTAMP"),
8386
* // };
8487
*
8588
* ```

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export interface GetBillScenarioCommandOutput extends GetBillScenarioResponse, _
5656
* // createdAt: new Date("TIMESTAMP"),
5757
* // expiresAt: new Date("TIMESTAMP"),
5858
* // failureMessage: "STRING_VALUE",
59+
* // groupSharingPreference: "OPEN" || "PRIORITIZED" || "RESTRICTED",
60+
* // costCategoryGroupSharingPreferenceArn: "STRING_VALUE",
5961
* // };
6062
*
6163
* ```

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface ListBillScenariosCommandOutput extends ListBillScenariosRespons
4343
* const input = { // ListBillScenariosRequest
4444
* filters: [ // ListBillScenariosFilters
4545
* { // ListBillScenariosFilter
46-
* name: "STATUS" || "NAME", // required
46+
* name: "STATUS" || "NAME" || "GROUP_SHARING_PREFERENCE" || "COST_CATEGORY_ARN", // required
4747
* values: [ // ListBillScenariosFilterValues // required
4848
* "STRING_VALUE",
4949
* ],
@@ -76,6 +76,8 @@ export interface ListBillScenariosCommandOutput extends ListBillScenariosRespons
7676
* // createdAt: new Date("TIMESTAMP"),
7777
* // expiresAt: new Date("TIMESTAMP"),
7878
* // failureMessage: "STRING_VALUE",
79+
* // groupSharingPreference: "OPEN" || "PRIORITIZED" || "RESTRICTED",
80+
* // costCategoryGroupSharingPreferenceArn: "STRING_VALUE",
7981
* // },
8082
* // ],
8183
* // nextToken: "STRING_VALUE",

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ export interface UpdateBillEstimateCommandOutput extends UpdateBillEstimateRespo
8282
* // },
8383
* // createdAt: new Date("TIMESTAMP"),
8484
* // expiresAt: new Date("TIMESTAMP"),
85+
* // groupSharingPreference: "OPEN" || "PRIORITIZED" || "RESTRICTED",
86+
* // costCategoryGroupSharingPreferenceArn: "STRING_VALUE",
87+
* // costCategoryGroupSharingPreferenceEffectiveDate: new Date("TIMESTAMP"),
8588
* // };
8689
*
8790
* ```

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ export interface UpdateBillScenarioCommandOutput extends UpdateBillScenarioRespo
4444
* identifier: "STRING_VALUE", // required
4545
* name: "STRING_VALUE",
4646
* expiresAt: new Date("TIMESTAMP"),
47+
* groupSharingPreference: "OPEN" || "PRIORITIZED" || "RESTRICTED",
48+
* costCategoryGroupSharingPreferenceArn: "STRING_VALUE",
4749
* };
4850
* const command = new UpdateBillScenarioCommand(input);
4951
* const response = await client.send(command);
@@ -58,6 +60,8 @@ export interface UpdateBillScenarioCommandOutput extends UpdateBillScenarioRespo
5860
* // createdAt: new Date("TIMESTAMP"),
5961
* // expiresAt: new Date("TIMESTAMP"),
6062
* // failureMessage: "STRING_VALUE",
63+
* // groupSharingPreference: "OPEN" || "PRIORITIZED" || "RESTRICTED",
64+
* // costCategoryGroupSharingPreferenceArn: "STRING_VALUE",
6165
* // };
6266
*
6367
* ```

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,20 @@ export const BillEstimateStatus = {
109109
*/
110110
export type BillEstimateStatus = (typeof BillEstimateStatus)[keyof typeof BillEstimateStatus];
111111

112+
/**
113+
* @public
114+
* @enum
115+
*/
116+
export const GroupSharingPreferenceEnum = {
117+
OPEN: "OPEN",
118+
PRIORITIZED: "PRIORITIZED",
119+
RESTRICTED: "RESTRICTED",
120+
} as const;
121+
/**
122+
* @public
123+
*/
124+
export type GroupSharingPreferenceEnum = (typeof GroupSharingPreferenceEnum)[keyof typeof GroupSharingPreferenceEnum];
125+
112126
/**
113127
* @public
114128
* @enum
@@ -236,6 +250,8 @@ export type BatchUpdateBillScenarioUsageModificationErrorCode =
236250
* @enum
237251
*/
238252
export const ListBillScenariosFilterName = {
253+
COST_CATEGORY_ARN: "COST_CATEGORY_ARN",
254+
GROUP_SHARING_PREFERENCE: "GROUP_SHARING_PREFERENCE",
239255
NAME: "NAME",
240256
STATUS: "STATUS",
241257
} as const;

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

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
BillEstimateStatus,
1111
BillScenarioStatus,
1212
CurrencyCode,
13+
GroupSharingPreferenceEnum,
1314
ListBillEstimateLineItemsFilterName,
1415
ListBillEstimatesFilterName,
1516
ListBillScenariosFilterName,
@@ -796,6 +797,24 @@ export interface CreateBillEstimateResponse {
796797
* @public
797798
*/
798799
expiresAt?: Date | undefined;
800+
801+
/**
802+
* <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
803+
* @public
804+
*/
805+
groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
806+
807+
/**
808+
* <p>The arn of the cost category used in the reserved and prioritized group sharing.</p>
809+
* @public
810+
*/
811+
costCategoryGroupSharingPreferenceArn?: string | undefined;
812+
813+
/**
814+
* <p>Timestamp of the effective date of the cost category used in the group sharing settings.</p>
815+
* @public
816+
*/
817+
costCategoryGroupSharingPreferenceEffectiveDate?: Date | undefined;
799818
}
800819

801820
/**
@@ -876,6 +895,24 @@ export interface GetBillEstimateResponse {
876895
* @public
877896
*/
878897
expiresAt?: Date | undefined;
898+
899+
/**
900+
* <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
901+
* @public
902+
*/
903+
groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
904+
905+
/**
906+
* <p>The arn of the cost category used in the reserved and prioritized group sharing.</p>
907+
* @public
908+
*/
909+
costCategoryGroupSharingPreferenceArn?: string | undefined;
910+
911+
/**
912+
* <p>Timestamp of the effective date of the cost category used in the group sharing settings.</p>
913+
* @public
914+
*/
915+
costCategoryGroupSharingPreferenceEffectiveDate?: Date | undefined;
879916
}
880917

881918
/**
@@ -1088,6 +1125,24 @@ export interface UpdateBillEstimateResponse {
10881125
* @public
10891126
*/
10901127
expiresAt?: Date | undefined;
1128+
1129+
/**
1130+
* <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
1131+
* @public
1132+
*/
1133+
groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
1134+
1135+
/**
1136+
* <p>The arn of the cost category used in the reserved and prioritized group sharing.</p>
1137+
* @public
1138+
*/
1139+
costCategoryGroupSharingPreferenceArn?: string | undefined;
1140+
1141+
/**
1142+
* <p>Timestamp of the effective date of the cost category used in the group sharing settings.</p>
1143+
* @public
1144+
*/
1145+
costCategoryGroupSharingPreferenceEffectiveDate?: Date | undefined;
10911146
}
10921147

10931148
/**
@@ -1627,6 +1682,18 @@ export interface CreateBillScenarioRequest {
16271682
* @public
16281683
*/
16291684
tags?: Record<string, string> | undefined;
1685+
1686+
/**
1687+
* <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
1688+
* @public
1689+
*/
1690+
groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
1691+
1692+
/**
1693+
* <p>The arn of the cost category used in the reserved and prioritized group sharing.</p>
1694+
* @public
1695+
*/
1696+
costCategoryGroupSharingPreferenceArn?: string | undefined;
16301697
}
16311698

16321699
/**
@@ -1674,6 +1741,18 @@ export interface CreateBillScenarioResponse {
16741741
* @public
16751742
*/
16761743
failureMessage?: string | undefined;
1744+
1745+
/**
1746+
* <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
1747+
* @public
1748+
*/
1749+
groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
1750+
1751+
/**
1752+
* <p>The arn of the cost category used in the reserved and prioritized group sharing.</p>
1753+
* @public
1754+
*/
1755+
costCategoryGroupSharingPreferenceArn?: string | undefined;
16771756
}
16781757

16791758
/**
@@ -1748,6 +1827,18 @@ export interface GetBillScenarioResponse {
17481827
* @public
17491828
*/
17501829
failureMessage?: string | undefined;
1830+
1831+
/**
1832+
* <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
1833+
* @public
1834+
*/
1835+
groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
1836+
1837+
/**
1838+
* <p>The arn of the cost category used in the reserved and prioritized group sharing.</p>
1839+
* @public
1840+
*/
1841+
costCategoryGroupSharingPreferenceArn?: string | undefined;
17511842
}
17521843

17531844
/**
@@ -1855,6 +1946,18 @@ export interface BillScenarioSummary {
18551946
* @public
18561947
*/
18571948
failureMessage?: string | undefined;
1949+
1950+
/**
1951+
* <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
1952+
* @public
1953+
*/
1954+
groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
1955+
1956+
/**
1957+
* <p>The arn of the cost category used in the reserved and prioritized group sharing.</p>
1958+
* @public
1959+
*/
1960+
costCategoryGroupSharingPreferenceArn?: string | undefined;
18581961
}
18591962

18601963
/**
@@ -1895,6 +1998,18 @@ export interface UpdateBillScenarioRequest {
18951998
* @public
18961999
*/
18972000
expiresAt?: Date | undefined;
2001+
2002+
/**
2003+
* <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
2004+
* @public
2005+
*/
2006+
groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
2007+
2008+
/**
2009+
* <p>The arn of the cost category used in the reserved and prioritized group sharing.</p>
2010+
* @public
2011+
*/
2012+
costCategoryGroupSharingPreferenceArn?: string | undefined;
18982013
}
18992014

19002015
/**
@@ -1942,6 +2057,18 @@ export interface UpdateBillScenarioResponse {
19422057
* @public
19432058
*/
19442059
failureMessage?: string | undefined;
2060+
2061+
/**
2062+
* <p>The setting for the reserved instance and savings plan group sharing used in this estimate.</p>
2063+
* @public
2064+
*/
2065+
groupSharingPreference?: GroupSharingPreferenceEnum | undefined;
2066+
2067+
/**
2068+
* <p>The arn of the cost category used in the reserved and prioritized group sharing.</p>
2069+
* @public
2070+
*/
2071+
costCategoryGroupSharingPreferenceArn?: string | undefined;
19452072
}
19462073

19472074
/**

0 commit comments

Comments
 (0)