Skip to content

Commit

Permalink
feat(client-billingconductor): This release adds the Tiering Pricing …
Browse files Browse the repository at this point in the history
…Rule feature.
  • Loading branch information
awstools committed Dec 6, 2022
1 parent a2e5bdb commit 6ebdcd8
Show file tree
Hide file tree
Showing 5 changed files with 5,960 additions and 5,640 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
};

export interface EndpointParameters extends __EndpointParameters {
Region?: string;
Region: string;
UseDualStack?: boolean;
UseFIPS?: boolean;
Endpoint?: string;
Expand Down
2 changes: 1 addition & 1 deletion clients/client-billingconductor/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const ruleSet: RuleSetObject = {
parameters: {
Region: {
builtIn: "AWS::Region",
required: false,
required: true,
documentation: "The AWS region used to dispatch the request.",
type: "String",
},
Expand Down
160 changes: 159 additions & 1 deletion clients/client-billingconductor/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,15 @@ export enum ValidationExceptionReason {
ILLEGAL_CUSTOMLINEITEM = "ILLEGAL_CUSTOMLINEITEM",
ILLEGAL_CUSTOMLINEITEM_MODIFICATION = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION",
ILLEGAL_CUSTOMLINEITEM_UPDATE = "ILLEGAL_CUSTOMLINEITEM_UPDATE",
ILLEGAL_ENDED_BILLINGGROUP = "ILLEGAL_ENDED_BILLINGGROUP",
ILLEGAL_EXPRESSION = "ILLEGAL_EXPRESSION",
ILLEGAL_MODIFIER_PERCENTAGE = "ILLEGAL_MODIFIER_PERCENTAGE",
ILLEGAL_PRIMARY_ACCOUNT = "ILLEGAL_PRIMARY_ACCOUNT",
ILLEGAL_RESOURCE_ARNS = "ILLEGAL_RESOURCE_ARNS",
ILLEGAL_SCOPE = "ILLEGAL_SCOPE",
ILLEGAL_SERVICE = "ILLEGAL_SERVICE",
ILLEGAL_TIERING_INPUT = "ILLEGAL_TIERING_INPUT",
ILLEGAL_TYPE = "ILLEGAL_TYPE",
ILLEGAL_UPDATE_CHARGE_DETAILS = "ILLEGAL_UPDATE_CHARGE_DETAILS",
INVALID_ARN = "INVALID_ARN",
INVALID_BILLINGVIEW_ARN = "INVALID_BILLINGVIEW_ARN",
Expand Down Expand Up @@ -2079,9 +2082,38 @@ export enum PricingRuleScope {
SERVICE = "SERVICE",
}

/**
* <p>
* The possible Amazon Web Services Free Tier configurations.
* </p>
*/
export interface CreateFreeTierConfig {
/**
* <p>
* Activate or deactivate Amazon Web Services Free Tier.
* </p>
*/
Activated: boolean | undefined;
}

/**
* <p>
* The set of tiering configurations for the pricing rule.
* </p>
*/
export interface CreateTieringInput {
/**
* <p>
* The possible Amazon Web Services Free Tier configurations.
* </p>
*/
FreeTier: CreateFreeTierConfig | undefined;
}

export enum PricingRuleType {
DISCOUNT = "DISCOUNT",
MARKUP = "MARKUP",
TIERING = "TIERING",
}

export interface CreatePricingRuleInput {
Expand Down Expand Up @@ -2121,7 +2153,7 @@ export interface CreatePricingRuleInput {
/**
* <p> A percentage modifier that's applied on the public pricing rates. </p>
*/
ModifierPercentage: number | undefined;
ModifierPercentage?: number;

/**
* <p>
Expand All @@ -2143,6 +2175,13 @@ export interface CreatePricingRuleInput {
* </p>
*/
BillingEntity?: string;

/**
* <p>
* The set of tiering configurations for the pricing rule.
* </p>
*/
Tiering?: CreateTieringInput;
}

export interface CreatePricingRuleOutput {
Expand Down Expand Up @@ -2207,6 +2246,34 @@ export interface ListPricingRulesInput {
NextToken?: string;
}

/**
* <p>
* The possible Amazon Web Services Free Tier configurations.
* </p>
*/
export interface FreeTierConfig {
/**
* <p>
* Activate or deactivate Amazon Web Services Free Tier application.
* </p>
*/
Activated: boolean | undefined;
}

/**
* <p>
* The set of tiering configurations for the pricing rule.
* </p>
*/
export interface Tiering {
/**
* <p>
* The possible Amazon Web Services Free Tier configurations.
* </p>
*/
FreeTier: FreeTierConfig | undefined;
}

/**
* <p>
* A representation of a pricing rule.
Expand Down Expand Up @@ -2285,6 +2352,13 @@ export interface PricingRuleListElement {
* </p>
*/
BillingEntity?: string;

/**
* <p>
* The set of tiering configurations for the pricing rule.
* </p>
*/
Tiering?: Tiering;
}

export interface ListPricingRulesOutput {
Expand Down Expand Up @@ -2366,6 +2440,34 @@ export interface ListPricingRulesAssociatedToPricingPlanOutput {
NextToken?: string;
}

/**
* <p>
* The possible Amazon Web Services Free Tier configurations.
* </p>
*/
export interface UpdateFreeTierConfig {
/**
* <p>
* Activate or deactivate application of Amazon Web Services Free Tier.
* </p>
*/
Activated: boolean | undefined;
}

/**
* <p>
* The set of tiering configurations for the pricing rule.
* </p>
*/
export interface UpdateTieringInput {
/**
* <p>
* The possible Amazon Web Services Free Tier configurations.
* </p>
*/
FreeTier: UpdateFreeTierConfig | undefined;
}

export interface UpdatePricingRuleInput {
/**
* <p> The Amazon Resource Name (ARN) of the pricing rule to update. </p>
Expand Down Expand Up @@ -2399,6 +2501,13 @@ export interface UpdatePricingRuleInput {
* </p>
*/
ModifierPercentage?: number;

/**
* <p>
* The set of tiering configurations for the pricing rule.
* </p>
*/
Tiering?: UpdateTieringInput;
}

export interface UpdatePricingRuleOutput {
Expand Down Expand Up @@ -2468,6 +2577,13 @@ export interface UpdatePricingRuleOutput {
* </p>
*/
BillingEntity?: string;

/**
* <p>
* The set of tiering configurations for the pricing rule.
* </p>
*/
Tiering?: UpdateTieringInput;
}

export interface TagResourceRequest {
Expand Down Expand Up @@ -3140,6 +3256,20 @@ export const UpdatePricingPlanOutputFilterSensitiveLog = (obj: UpdatePricingPlan
...(obj.Description && { Description: SENSITIVE_STRING }),
});

/**
* @internal
*/
export const CreateFreeTierConfigFilterSensitiveLog = (obj: CreateFreeTierConfig): any => ({
...obj,
});

/**
* @internal
*/
export const CreateTieringInputFilterSensitiveLog = (obj: CreateTieringInput): any => ({
...obj,
});

/**
* @internal
*/
Expand Down Expand Up @@ -3184,6 +3314,20 @@ export const ListPricingRulesInputFilterSensitiveLog = (obj: ListPricingRulesInp
...obj,
});

/**
* @internal
*/
export const FreeTierConfigFilterSensitiveLog = (obj: FreeTierConfig): any => ({
...obj,
});

/**
* @internal
*/
export const TieringFilterSensitiveLog = (obj: Tiering): any => ({
...obj,
});

/**
* @internal
*/
Expand Down Expand Up @@ -3221,6 +3365,20 @@ export const ListPricingRulesAssociatedToPricingPlanOutputFilterSensitiveLog = (
...obj,
});

/**
* @internal
*/
export const UpdateFreeTierConfigFilterSensitiveLog = (obj: UpdateFreeTierConfig): any => ({
...obj,
});

/**
* @internal
*/
export const UpdateTieringInputFilterSensitiveLog = (obj: UpdateTieringInput): any => ({
...obj,
});

/**
* @internal
*/
Expand Down
Loading

0 comments on commit 6ebdcd8

Please sign in to comment.