Skip to content

Commit 6f15a0a

Browse files
author
awstools
committed
feat(client-billingconductor): This release adds a new feature BillingEntity pricing rule.
1 parent d1ac8d8 commit 6f15a0a

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

clients/client-billingconductor/src/models/models_0.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ export enum ValidationExceptionReason {
310310
DUPLICATE_PRICINGRULE_ARNS = "DUPLICATE_PRICINGRULE_ARNS",
311311
FIELD_VALIDATION_FAILED = "FIELD_VALIDATION_FAILED",
312312
ILLEGAL_ACCOUNTS = "ILLEGAL_ACCOUNTS",
313+
ILLEGAL_BILLING_ENTITY = "ILLEGAL_BILLING_ENTITY",
313314
ILLEGAL_BILLING_PERIOD = "ILLEGAL_BILLING_PERIOD",
314315
ILLEGAL_BILLING_PERIOD_RANGE = "ILLEGAL_BILLING_PERIOD_RANGE",
315316
ILLEGAL_CHARGE_DETAILS = "ILLEGAL_CHARGE_DETAILS",
@@ -318,6 +319,7 @@ export enum ValidationExceptionReason {
318319
ILLEGAL_CUSTOMLINEITEM_MODIFICATION = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION",
319320
ILLEGAL_CUSTOMLINEITEM_UPDATE = "ILLEGAL_CUSTOMLINEITEM_UPDATE",
320321
ILLEGAL_EXPRESSION = "ILLEGAL_EXPRESSION",
322+
ILLEGAL_MODIFIER_PERCENTAGE = "ILLEGAL_MODIFIER_PERCENTAGE",
321323
ILLEGAL_PRIMARY_ACCOUNT = "ILLEGAL_PRIMARY_ACCOUNT",
322324
ILLEGAL_RESOURCE_ARNS = "ILLEGAL_RESOURCE_ARNS",
323325
ILLEGAL_SCOPE = "ILLEGAL_SCOPE",
@@ -2072,6 +2074,7 @@ export interface UpdatePricingPlanOutput {
20722074
}
20732075

20742076
export enum PricingRuleScope {
2077+
BILLING_ENTITY = "BILLING_ENTITY",
20752078
GLOBAL = "GLOBAL",
20762079
SERVICE = "SERVICE",
20772080
}
@@ -2133,6 +2136,13 @@ export interface CreatePricingRuleInput {
21332136
* </p>
21342137
*/
21352138
Tags?: Record<string, string>;
2139+
2140+
/**
2141+
* <p>
2142+
* The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
2143+
* </p>
2144+
*/
2145+
BillingEntity?: string;
21362146
}
21372147

21382148
export interface CreatePricingRuleOutput {
@@ -2268,6 +2278,13 @@ export interface PricingRuleListElement {
22682278
* <p> The most recent time when the pricing rule was modified. </p>
22692279
*/
22702280
LastModifiedTime?: number;
2281+
2282+
/**
2283+
* <p>
2284+
* The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
2285+
* </p>
2286+
*/
2287+
BillingEntity?: string;
22712288
}
22722289

22732290
export interface ListPricingRulesOutput {
@@ -2444,6 +2461,13 @@ export interface UpdatePricingRuleOutput {
24442461
* </p>
24452462
*/
24462463
LastModifiedTime?: number;
2464+
2465+
/**
2466+
* <p>
2467+
* The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
2468+
* </p>
2469+
*/
2470+
BillingEntity?: string;
24472471
}
24482472

24492473
export interface TagResourceRequest {

clients/client-billingconductor/src/protocols/Aws_restJson1.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ export const serializeAws_restJson1CreatePricingRuleCommand = async (
372372
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-pricing-rule";
373373
let body: any;
374374
body = JSON.stringify({
375+
...(input.BillingEntity != null && { BillingEntity: input.BillingEntity }),
375376
...(input.Description != null && { Description: input.Description }),
376377
...(input.ModifierPercentage != null && { ModifierPercentage: __serializeFloat(input.ModifierPercentage) }),
377378
...(input.Name != null && { Name: input.Name }),
@@ -2787,6 +2788,9 @@ export const deserializeAws_restJson1UpdatePricingRuleCommand = async (
27872788
if (data.AssociatedPricingPlanCount != null) {
27882789
contents.AssociatedPricingPlanCount = __expectLong(data.AssociatedPricingPlanCount);
27892790
}
2791+
if (data.BillingEntity != null) {
2792+
contents.BillingEntity = __expectString(data.BillingEntity);
2793+
}
27902794
if (data.Description != null) {
27912795
contents.Description = __expectString(data.Description);
27922796
}
@@ -3646,6 +3650,7 @@ const deserializeAws_restJson1PricingRuleListElement = (
36463650
return {
36473651
Arn: __expectString(output.Arn),
36483652
AssociatedPricingPlanCount: __expectLong(output.AssociatedPricingPlanCount),
3653+
BillingEntity: __expectString(output.BillingEntity),
36493654
CreationTime: __expectLong(output.CreationTime),
36503655
Description: __expectString(output.Description),
36513656
LastModifiedTime: __expectLong(output.LastModifiedTime),

0 commit comments

Comments
 (0)