@aws-sdk/client-billingconductor 3.224.0 → 3.225.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +30 -2
- package/dist-cjs/protocols/Aws_restJson1.js +46 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +22 -0
- package/dist-es/protocols/Aws_restJson1.js +47 -1
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +132 -2
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +43 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeleteCustomLineItemInputFilterSensitiveLog = exports.CreateCustomLineItemOutputFilterSensitiveLog = exports.CreateCustomLineItemInputFilterSensitiveLog = exports.CustomLineItemChargeDetailsFilterSensitiveLog = exports.CustomLineItemPercentageChargeDetailsFilterSensitiveLog = exports.CustomLineItemFlatChargeDetailsFilterSensitiveLog = exports.BatchDisassociateResourcesFromCustomLineItemOutputFilterSensitiveLog = exports.DisassociateResourceResponseElementFilterSensitiveLog = exports.BatchDisassociateResourcesFromCustomLineItemInputFilterSensitiveLog = exports.BatchAssociateResourcesToCustomLineItemOutputFilterSensitiveLog = exports.BatchAssociateResourcesToCustomLineItemInputFilterSensitiveLog = exports.CustomLineItemBillingPeriodRangeFilterSensitiveLog = exports.UpdateBillingGroupOutputFilterSensitiveLog = exports.UpdateBillingGroupInputFilterSensitiveLog = exports.ListBillingGroupsOutputFilterSensitiveLog = exports.BillingGroupListElementFilterSensitiveLog = exports.ListBillingGroupsInputFilterSensitiveLog = exports.ListBillingGroupsFilterFilterSensitiveLog = exports.DisassociateAccountsOutputFilterSensitiveLog = exports.DisassociateAccountsInputFilterSensitiveLog = exports.DeleteBillingGroupOutputFilterSensitiveLog = exports.DeleteBillingGroupInputFilterSensitiveLog = exports.CreateBillingGroupOutputFilterSensitiveLog = exports.CreateBillingGroupInputFilterSensitiveLog = exports.ComputationPreferenceFilterSensitiveLog = exports.AssociateResourceResponseElementFilterSensitiveLog = exports.AssociateResourceErrorFilterSensitiveLog = exports.AssociatePricingRulesOutputFilterSensitiveLog = exports.AssociatePricingRulesInputFilterSensitiveLog = exports.ValidationExceptionFieldFilterSensitiveLog = exports.AssociateAccountsOutputFilterSensitiveLog = exports.AssociateAccountsInputFilterSensitiveLog = exports.AccountGroupingFilterSensitiveLog = exports.AccountAssociationsListElementFilterSensitiveLog = exports.PricingRuleType = exports.PricingRuleScope = exports.CustomLineItemRelationship = exports.CurrencyCode = exports.CustomLineItemType = exports.BillingGroupStatus = exports.AssociateResourceErrorReason = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceLimitExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.ConflictExceptionReason = exports.AccessDeniedException = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdatePricingRuleOutputFilterSensitiveLog = exports.UpdatePricingRuleInputFilterSensitiveLog = exports.ListPricingRulesAssociatedToPricingPlanOutputFilterSensitiveLog = exports.ListPricingRulesAssociatedToPricingPlanInputFilterSensitiveLog = exports.ListPricingRulesOutputFilterSensitiveLog = exports.PricingRuleListElementFilterSensitiveLog = exports.ListPricingRulesInputFilterSensitiveLog = void 0;
|
|
4
|
+
exports.DeletePricingRuleInputFilterSensitiveLog = exports.CreatePricingRuleOutputFilterSensitiveLog = exports.CreatePricingRuleInputFilterSensitiveLog = exports.CreateTieringInputFilterSensitiveLog = exports.CreateFreeTierConfigFilterSensitiveLog = exports.UpdatePricingPlanOutputFilterSensitiveLog = exports.UpdatePricingPlanInputFilterSensitiveLog = exports.ListPricingPlansAssociatedWithPricingRuleOutputFilterSensitiveLog = exports.ListPricingPlansAssociatedWithPricingRuleInputFilterSensitiveLog = exports.ListPricingPlansOutputFilterSensitiveLog = exports.PricingPlanListElementFilterSensitiveLog = exports.ListPricingPlansInputFilterSensitiveLog = exports.ListPricingPlansFilterFilterSensitiveLog = exports.DisassociatePricingRulesOutputFilterSensitiveLog = exports.DisassociatePricingRulesInputFilterSensitiveLog = exports.DeletePricingPlanOutputFilterSensitiveLog = exports.DeletePricingPlanInputFilterSensitiveLog = exports.CreatePricingPlanOutputFilterSensitiveLog = exports.CreatePricingPlanInputFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListBillingGroupCostReportsOutputFilterSensitiveLog = exports.BillingGroupCostReportElementFilterSensitiveLog = exports.ListBillingGroupCostReportsInputFilterSensitiveLog = exports.ListBillingGroupCostReportsFilterFilterSensitiveLog = exports.ListAccountAssociationsOutputFilterSensitiveLog = exports.ListAccountAssociationsInputFilterSensitiveLog = exports.ListAccountAssociationsFilterFilterSensitiveLog = exports.UpdateCustomLineItemOutputFilterSensitiveLog = exports.UpdateCustomLineItemInputFilterSensitiveLog = exports.UpdateCustomLineItemChargeDetailsFilterSensitiveLog = exports.UpdateCustomLineItemPercentageChargeDetailsFilterSensitiveLog = exports.UpdateCustomLineItemFlatChargeDetailsFilterSensitiveLog = exports.ListResourcesAssociatedToCustomLineItemOutputFilterSensitiveLog = exports.ListResourcesAssociatedToCustomLineItemResponseElementFilterSensitiveLog = exports.ListResourcesAssociatedToCustomLineItemInputFilterSensitiveLog = exports.ListResourcesAssociatedToCustomLineItemFilterFilterSensitiveLog = exports.ListCustomLineItemVersionsOutputFilterSensitiveLog = exports.CustomLineItemVersionListElementFilterSensitiveLog = exports.ListCustomLineItemVersionsInputFilterSensitiveLog = exports.ListCustomLineItemVersionsFilterFilterSensitiveLog = exports.ListCustomLineItemVersionsBillingPeriodRangeFilterFilterSensitiveLog = exports.ListCustomLineItemsOutputFilterSensitiveLog = exports.CustomLineItemListElementFilterSensitiveLog = exports.ListCustomLineItemChargeDetailsFilterSensitiveLog = exports.ListCustomLineItemPercentageChargeDetailsFilterSensitiveLog = exports.ListCustomLineItemFlatChargeDetailsFilterSensitiveLog = exports.ListCustomLineItemsInputFilterSensitiveLog = exports.ListCustomLineItemsFilterFilterSensitiveLog = exports.DeleteCustomLineItemOutputFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdatePricingRuleOutputFilterSensitiveLog = exports.UpdatePricingRuleInputFilterSensitiveLog = exports.UpdateTieringInputFilterSensitiveLog = exports.UpdateFreeTierConfigFilterSensitiveLog = exports.ListPricingRulesAssociatedToPricingPlanOutputFilterSensitiveLog = exports.ListPricingRulesAssociatedToPricingPlanInputFilterSensitiveLog = exports.ListPricingRulesOutputFilterSensitiveLog = exports.PricingRuleListElementFilterSensitiveLog = exports.TieringFilterSensitiveLog = exports.FreeTierConfigFilterSensitiveLog = exports.ListPricingRulesInputFilterSensitiveLog = exports.ListPricingRulesFilterFilterSensitiveLog = exports.DeletePricingRuleOutputFilterSensitiveLog = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const BillingconductorServiceException_1 = require("./BillingconductorServiceException");
|
|
8
8
|
class AccessDeniedException extends BillingconductorServiceException_1.BillingconductorServiceException {
|
|
@@ -126,12 +126,15 @@ var ValidationExceptionReason;
|
|
|
126
126
|
ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM"] = "ILLEGAL_CUSTOMLINEITEM";
|
|
127
127
|
ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM_MODIFICATION"] = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION";
|
|
128
128
|
ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM_UPDATE"] = "ILLEGAL_CUSTOMLINEITEM_UPDATE";
|
|
129
|
+
ValidationExceptionReason["ILLEGAL_ENDED_BILLINGGROUP"] = "ILLEGAL_ENDED_BILLINGGROUP";
|
|
129
130
|
ValidationExceptionReason["ILLEGAL_EXPRESSION"] = "ILLEGAL_EXPRESSION";
|
|
130
131
|
ValidationExceptionReason["ILLEGAL_MODIFIER_PERCENTAGE"] = "ILLEGAL_MODIFIER_PERCENTAGE";
|
|
131
132
|
ValidationExceptionReason["ILLEGAL_PRIMARY_ACCOUNT"] = "ILLEGAL_PRIMARY_ACCOUNT";
|
|
132
133
|
ValidationExceptionReason["ILLEGAL_RESOURCE_ARNS"] = "ILLEGAL_RESOURCE_ARNS";
|
|
133
134
|
ValidationExceptionReason["ILLEGAL_SCOPE"] = "ILLEGAL_SCOPE";
|
|
134
135
|
ValidationExceptionReason["ILLEGAL_SERVICE"] = "ILLEGAL_SERVICE";
|
|
136
|
+
ValidationExceptionReason["ILLEGAL_TIERING_INPUT"] = "ILLEGAL_TIERING_INPUT";
|
|
137
|
+
ValidationExceptionReason["ILLEGAL_TYPE"] = "ILLEGAL_TYPE";
|
|
135
138
|
ValidationExceptionReason["ILLEGAL_UPDATE_CHARGE_DETAILS"] = "ILLEGAL_UPDATE_CHARGE_DETAILS";
|
|
136
139
|
ValidationExceptionReason["INVALID_ARN"] = "INVALID_ARN";
|
|
137
140
|
ValidationExceptionReason["INVALID_BILLINGVIEW_ARN"] = "INVALID_BILLINGVIEW_ARN";
|
|
@@ -215,6 +218,7 @@ var PricingRuleType;
|
|
|
215
218
|
(function (PricingRuleType) {
|
|
216
219
|
PricingRuleType["DISCOUNT"] = "DISCOUNT";
|
|
217
220
|
PricingRuleType["MARKUP"] = "MARKUP";
|
|
221
|
+
PricingRuleType["TIERING"] = "TIERING";
|
|
218
222
|
})(PricingRuleType = exports.PricingRuleType || (exports.PricingRuleType = {}));
|
|
219
223
|
const AccountAssociationsListElementFilterSensitiveLog = (obj) => ({
|
|
220
224
|
...obj,
|
|
@@ -577,6 +581,14 @@ const UpdatePricingPlanOutputFilterSensitiveLog = (obj) => ({
|
|
|
577
581
|
...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }),
|
|
578
582
|
});
|
|
579
583
|
exports.UpdatePricingPlanOutputFilterSensitiveLog = UpdatePricingPlanOutputFilterSensitiveLog;
|
|
584
|
+
const CreateFreeTierConfigFilterSensitiveLog = (obj) => ({
|
|
585
|
+
...obj,
|
|
586
|
+
});
|
|
587
|
+
exports.CreateFreeTierConfigFilterSensitiveLog = CreateFreeTierConfigFilterSensitiveLog;
|
|
588
|
+
const CreateTieringInputFilterSensitiveLog = (obj) => ({
|
|
589
|
+
...obj,
|
|
590
|
+
});
|
|
591
|
+
exports.CreateTieringInputFilterSensitiveLog = CreateTieringInputFilterSensitiveLog;
|
|
580
592
|
const CreatePricingRuleInputFilterSensitiveLog = (obj) => ({
|
|
581
593
|
...obj,
|
|
582
594
|
...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -603,6 +615,14 @@ const ListPricingRulesInputFilterSensitiveLog = (obj) => ({
|
|
|
603
615
|
...obj,
|
|
604
616
|
});
|
|
605
617
|
exports.ListPricingRulesInputFilterSensitiveLog = ListPricingRulesInputFilterSensitiveLog;
|
|
618
|
+
const FreeTierConfigFilterSensitiveLog = (obj) => ({
|
|
619
|
+
...obj,
|
|
620
|
+
});
|
|
621
|
+
exports.FreeTierConfigFilterSensitiveLog = FreeTierConfigFilterSensitiveLog;
|
|
622
|
+
const TieringFilterSensitiveLog = (obj) => ({
|
|
623
|
+
...obj,
|
|
624
|
+
});
|
|
625
|
+
exports.TieringFilterSensitiveLog = TieringFilterSensitiveLog;
|
|
606
626
|
const PricingRuleListElementFilterSensitiveLog = (obj) => ({
|
|
607
627
|
...obj,
|
|
608
628
|
...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -624,6 +644,14 @@ const ListPricingRulesAssociatedToPricingPlanOutputFilterSensitiveLog = (obj) =>
|
|
|
624
644
|
...obj,
|
|
625
645
|
});
|
|
626
646
|
exports.ListPricingRulesAssociatedToPricingPlanOutputFilterSensitiveLog = ListPricingRulesAssociatedToPricingPlanOutputFilterSensitiveLog;
|
|
647
|
+
const UpdateFreeTierConfigFilterSensitiveLog = (obj) => ({
|
|
648
|
+
...obj,
|
|
649
|
+
});
|
|
650
|
+
exports.UpdateFreeTierConfigFilterSensitiveLog = UpdateFreeTierConfigFilterSensitiveLog;
|
|
651
|
+
const UpdateTieringInputFilterSensitiveLog = (obj) => ({
|
|
652
|
+
...obj,
|
|
653
|
+
});
|
|
654
|
+
exports.UpdateTieringInputFilterSensitiveLog = UpdateTieringInputFilterSensitiveLog;
|
|
627
655
|
const UpdatePricingRuleInputFilterSensitiveLog = (obj) => ({
|
|
628
656
|
...obj,
|
|
629
657
|
...(obj.Name && { Name: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -213,6 +213,7 @@ const serializeAws_restJson1CreatePricingRuleCommand = async (input, context) =>
|
|
|
213
213
|
...(input.Scope != null && { Scope: input.Scope }),
|
|
214
214
|
...(input.Service != null && { Service: input.Service }),
|
|
215
215
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
216
|
+
...(input.Tiering != null && { Tiering: serializeAws_restJson1CreateTieringInput(input.Tiering, context) }),
|
|
216
217
|
...(input.Type != null && { Type: input.Type }),
|
|
217
218
|
});
|
|
218
219
|
return new protocol_http_1.HttpRequest({
|
|
@@ -764,6 +765,7 @@ const serializeAws_restJson1UpdatePricingRuleCommand = async (input, context) =>
|
|
|
764
765
|
...(input.Description != null && { Description: input.Description }),
|
|
765
766
|
...(input.ModifierPercentage != null && { ModifierPercentage: (0, smithy_client_1.serializeFloat)(input.ModifierPercentage) }),
|
|
766
767
|
...(input.Name != null && { Name: input.Name }),
|
|
768
|
+
...(input.Tiering != null && { Tiering: serializeAws_restJson1UpdateTieringInput(input.Tiering, context) }),
|
|
767
769
|
...(input.Type != null && { Type: input.Type }),
|
|
768
770
|
});
|
|
769
771
|
return new protocol_http_1.HttpRequest({
|
|
@@ -2333,6 +2335,9 @@ const deserializeAws_restJson1UpdatePricingRuleCommand = async (output, context)
|
|
|
2333
2335
|
if (data.Service != null) {
|
|
2334
2336
|
contents.Service = (0, smithy_client_1.expectString)(data.Service);
|
|
2335
2337
|
}
|
|
2338
|
+
if (data.Tiering != null) {
|
|
2339
|
+
contents.Tiering = deserializeAws_restJson1UpdateTieringInput(data.Tiering, context);
|
|
2340
|
+
}
|
|
2336
2341
|
if (data.Type != null) {
|
|
2337
2342
|
contents.Type = (0, smithy_client_1.expectString)(data.Type);
|
|
2338
2343
|
}
|
|
@@ -2528,6 +2533,16 @@ const serializeAws_restJson1ComputationPreference = (input, context) => {
|
|
|
2528
2533
|
...(input.PricingPlanArn != null && { PricingPlanArn: input.PricingPlanArn }),
|
|
2529
2534
|
};
|
|
2530
2535
|
};
|
|
2536
|
+
const serializeAws_restJson1CreateFreeTierConfig = (input, context) => {
|
|
2537
|
+
return {
|
|
2538
|
+
...(input.Activated != null && { Activated: input.Activated }),
|
|
2539
|
+
};
|
|
2540
|
+
};
|
|
2541
|
+
const serializeAws_restJson1CreateTieringInput = (input, context) => {
|
|
2542
|
+
return {
|
|
2543
|
+
...(input.FreeTier != null && { FreeTier: serializeAws_restJson1CreateFreeTierConfig(input.FreeTier, context) }),
|
|
2544
|
+
};
|
|
2545
|
+
};
|
|
2531
2546
|
const serializeAws_restJson1CustomLineItemArns = (input, context) => {
|
|
2532
2547
|
return input
|
|
2533
2548
|
.filter((e) => e != null)
|
|
@@ -2706,6 +2721,16 @@ const serializeAws_restJson1UpdateCustomLineItemPercentageChargeDetails = (input
|
|
|
2706
2721
|
...(input.PercentageValue != null && { PercentageValue: (0, smithy_client_1.serializeFloat)(input.PercentageValue) }),
|
|
2707
2722
|
};
|
|
2708
2723
|
};
|
|
2724
|
+
const serializeAws_restJson1UpdateFreeTierConfig = (input, context) => {
|
|
2725
|
+
return {
|
|
2726
|
+
...(input.Activated != null && { Activated: input.Activated }),
|
|
2727
|
+
};
|
|
2728
|
+
};
|
|
2729
|
+
const serializeAws_restJson1UpdateTieringInput = (input, context) => {
|
|
2730
|
+
return {
|
|
2731
|
+
...(input.FreeTier != null && { FreeTier: serializeAws_restJson1UpdateFreeTierConfig(input.FreeTier, context) }),
|
|
2732
|
+
};
|
|
2733
|
+
};
|
|
2709
2734
|
const deserializeAws_restJson1AccountAssociationsList = (output, context) => {
|
|
2710
2735
|
const retVal = (output || [])
|
|
2711
2736
|
.filter((e) => e != null)
|
|
@@ -2873,6 +2898,11 @@ const deserializeAws_restJson1DisassociateResourcesResponseList = (output, conte
|
|
|
2873
2898
|
});
|
|
2874
2899
|
return retVal;
|
|
2875
2900
|
};
|
|
2901
|
+
const deserializeAws_restJson1FreeTierConfig = (output, context) => {
|
|
2902
|
+
return {
|
|
2903
|
+
Activated: (0, smithy_client_1.expectBoolean)(output.Activated),
|
|
2904
|
+
};
|
|
2905
|
+
};
|
|
2876
2906
|
const deserializeAws_restJson1ListCustomLineItemChargeDetails = (output, context) => {
|
|
2877
2907
|
return {
|
|
2878
2908
|
Flat: output.Flat != null
|
|
@@ -2978,6 +3008,7 @@ const deserializeAws_restJson1PricingRuleListElement = (output, context) => {
|
|
|
2978
3008
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2979
3009
|
Scope: (0, smithy_client_1.expectString)(output.Scope),
|
|
2980
3010
|
Service: (0, smithy_client_1.expectString)(output.Service),
|
|
3011
|
+
Tiering: output.Tiering != null ? deserializeAws_restJson1Tiering(output.Tiering, context) : undefined,
|
|
2981
3012
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2982
3013
|
};
|
|
2983
3014
|
};
|
|
@@ -2990,6 +3021,21 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2990
3021
|
return acc;
|
|
2991
3022
|
}, {});
|
|
2992
3023
|
};
|
|
3024
|
+
const deserializeAws_restJson1Tiering = (output, context) => {
|
|
3025
|
+
return {
|
|
3026
|
+
FreeTier: output.FreeTier != null ? deserializeAws_restJson1FreeTierConfig(output.FreeTier, context) : undefined,
|
|
3027
|
+
};
|
|
3028
|
+
};
|
|
3029
|
+
const deserializeAws_restJson1UpdateFreeTierConfig = (output, context) => {
|
|
3030
|
+
return {
|
|
3031
|
+
Activated: (0, smithy_client_1.expectBoolean)(output.Activated),
|
|
3032
|
+
};
|
|
3033
|
+
};
|
|
3034
|
+
const deserializeAws_restJson1UpdateTieringInput = (output, context) => {
|
|
3035
|
+
return {
|
|
3036
|
+
FreeTier: output.FreeTier != null ? deserializeAws_restJson1UpdateFreeTierConfig(output.FreeTier, context) : undefined,
|
|
3037
|
+
};
|
|
3038
|
+
};
|
|
2993
3039
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
2994
3040
|
return {
|
|
2995
3041
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -115,12 +115,15 @@ export var ValidationExceptionReason;
|
|
|
115
115
|
ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM"] = "ILLEGAL_CUSTOMLINEITEM";
|
|
116
116
|
ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM_MODIFICATION"] = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION";
|
|
117
117
|
ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM_UPDATE"] = "ILLEGAL_CUSTOMLINEITEM_UPDATE";
|
|
118
|
+
ValidationExceptionReason["ILLEGAL_ENDED_BILLINGGROUP"] = "ILLEGAL_ENDED_BILLINGGROUP";
|
|
118
119
|
ValidationExceptionReason["ILLEGAL_EXPRESSION"] = "ILLEGAL_EXPRESSION";
|
|
119
120
|
ValidationExceptionReason["ILLEGAL_MODIFIER_PERCENTAGE"] = "ILLEGAL_MODIFIER_PERCENTAGE";
|
|
120
121
|
ValidationExceptionReason["ILLEGAL_PRIMARY_ACCOUNT"] = "ILLEGAL_PRIMARY_ACCOUNT";
|
|
121
122
|
ValidationExceptionReason["ILLEGAL_RESOURCE_ARNS"] = "ILLEGAL_RESOURCE_ARNS";
|
|
122
123
|
ValidationExceptionReason["ILLEGAL_SCOPE"] = "ILLEGAL_SCOPE";
|
|
123
124
|
ValidationExceptionReason["ILLEGAL_SERVICE"] = "ILLEGAL_SERVICE";
|
|
125
|
+
ValidationExceptionReason["ILLEGAL_TIERING_INPUT"] = "ILLEGAL_TIERING_INPUT";
|
|
126
|
+
ValidationExceptionReason["ILLEGAL_TYPE"] = "ILLEGAL_TYPE";
|
|
124
127
|
ValidationExceptionReason["ILLEGAL_UPDATE_CHARGE_DETAILS"] = "ILLEGAL_UPDATE_CHARGE_DETAILS";
|
|
125
128
|
ValidationExceptionReason["INVALID_ARN"] = "INVALID_ARN";
|
|
126
129
|
ValidationExceptionReason["INVALID_BILLINGVIEW_ARN"] = "INVALID_BILLINGVIEW_ARN";
|
|
@@ -203,6 +206,7 @@ export var PricingRuleType;
|
|
|
203
206
|
(function (PricingRuleType) {
|
|
204
207
|
PricingRuleType["DISCOUNT"] = "DISCOUNT";
|
|
205
208
|
PricingRuleType["MARKUP"] = "MARKUP";
|
|
209
|
+
PricingRuleType["TIERING"] = "TIERING";
|
|
206
210
|
})(PricingRuleType || (PricingRuleType = {}));
|
|
207
211
|
export const AccountAssociationsListElementFilterSensitiveLog = (obj) => ({
|
|
208
212
|
...obj,
|
|
@@ -486,6 +490,12 @@ export const UpdatePricingPlanOutputFilterSensitiveLog = (obj) => ({
|
|
|
486
490
|
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
487
491
|
...(obj.Description && { Description: SENSITIVE_STRING }),
|
|
488
492
|
});
|
|
493
|
+
export const CreateFreeTierConfigFilterSensitiveLog = (obj) => ({
|
|
494
|
+
...obj,
|
|
495
|
+
});
|
|
496
|
+
export const CreateTieringInputFilterSensitiveLog = (obj) => ({
|
|
497
|
+
...obj,
|
|
498
|
+
});
|
|
489
499
|
export const CreatePricingRuleInputFilterSensitiveLog = (obj) => ({
|
|
490
500
|
...obj,
|
|
491
501
|
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
@@ -506,6 +516,12 @@ export const ListPricingRulesFilterFilterSensitiveLog = (obj) => ({
|
|
|
506
516
|
export const ListPricingRulesInputFilterSensitiveLog = (obj) => ({
|
|
507
517
|
...obj,
|
|
508
518
|
});
|
|
519
|
+
export const FreeTierConfigFilterSensitiveLog = (obj) => ({
|
|
520
|
+
...obj,
|
|
521
|
+
});
|
|
522
|
+
export const TieringFilterSensitiveLog = (obj) => ({
|
|
523
|
+
...obj,
|
|
524
|
+
});
|
|
509
525
|
export const PricingRuleListElementFilterSensitiveLog = (obj) => ({
|
|
510
526
|
...obj,
|
|
511
527
|
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
@@ -523,6 +539,12 @@ export const ListPricingRulesAssociatedToPricingPlanInputFilterSensitiveLog = (o
|
|
|
523
539
|
export const ListPricingRulesAssociatedToPricingPlanOutputFilterSensitiveLog = (obj) => ({
|
|
524
540
|
...obj,
|
|
525
541
|
});
|
|
542
|
+
export const UpdateFreeTierConfigFilterSensitiveLog = (obj) => ({
|
|
543
|
+
...obj,
|
|
544
|
+
});
|
|
545
|
+
export const UpdateTieringInputFilterSensitiveLog = (obj) => ({
|
|
546
|
+
...obj,
|
|
547
|
+
});
|
|
526
548
|
export const UpdatePricingRuleInputFilterSensitiveLog = (obj) => ({
|
|
527
549
|
...obj,
|
|
528
550
|
...(obj.Name && { Name: SENSITIVE_STRING }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { BillingconductorServiceException as __BaseException } from "../models/BillingconductorServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceLimitExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const serializeAws_restJson1AssociateAccountsCommand = async (input, context) => {
|
|
@@ -202,6 +202,7 @@ export const serializeAws_restJson1CreatePricingRuleCommand = async (input, cont
|
|
|
202
202
|
...(input.Scope != null && { Scope: input.Scope }),
|
|
203
203
|
...(input.Service != null && { Service: input.Service }),
|
|
204
204
|
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
205
|
+
...(input.Tiering != null && { Tiering: serializeAws_restJson1CreateTieringInput(input.Tiering, context) }),
|
|
205
206
|
...(input.Type != null && { Type: input.Type }),
|
|
206
207
|
});
|
|
207
208
|
return new __HttpRequest({
|
|
@@ -730,6 +731,7 @@ export const serializeAws_restJson1UpdatePricingRuleCommand = async (input, cont
|
|
|
730
731
|
...(input.Description != null && { Description: input.Description }),
|
|
731
732
|
...(input.ModifierPercentage != null && { ModifierPercentage: __serializeFloat(input.ModifierPercentage) }),
|
|
732
733
|
...(input.Name != null && { Name: input.Name }),
|
|
734
|
+
...(input.Tiering != null && { Tiering: serializeAws_restJson1UpdateTieringInput(input.Tiering, context) }),
|
|
733
735
|
...(input.Type != null && { Type: input.Type }),
|
|
734
736
|
});
|
|
735
737
|
return new __HttpRequest({
|
|
@@ -2268,6 +2270,9 @@ export const deserializeAws_restJson1UpdatePricingRuleCommand = async (output, c
|
|
|
2268
2270
|
if (data.Service != null) {
|
|
2269
2271
|
contents.Service = __expectString(data.Service);
|
|
2270
2272
|
}
|
|
2273
|
+
if (data.Tiering != null) {
|
|
2274
|
+
contents.Tiering = deserializeAws_restJson1UpdateTieringInput(data.Tiering, context);
|
|
2275
|
+
}
|
|
2271
2276
|
if (data.Type != null) {
|
|
2272
2277
|
contents.Type = __expectString(data.Type);
|
|
2273
2278
|
}
|
|
@@ -2462,6 +2467,16 @@ const serializeAws_restJson1ComputationPreference = (input, context) => {
|
|
|
2462
2467
|
...(input.PricingPlanArn != null && { PricingPlanArn: input.PricingPlanArn }),
|
|
2463
2468
|
};
|
|
2464
2469
|
};
|
|
2470
|
+
const serializeAws_restJson1CreateFreeTierConfig = (input, context) => {
|
|
2471
|
+
return {
|
|
2472
|
+
...(input.Activated != null && { Activated: input.Activated }),
|
|
2473
|
+
};
|
|
2474
|
+
};
|
|
2475
|
+
const serializeAws_restJson1CreateTieringInput = (input, context) => {
|
|
2476
|
+
return {
|
|
2477
|
+
...(input.FreeTier != null && { FreeTier: serializeAws_restJson1CreateFreeTierConfig(input.FreeTier, context) }),
|
|
2478
|
+
};
|
|
2479
|
+
};
|
|
2465
2480
|
const serializeAws_restJson1CustomLineItemArns = (input, context) => {
|
|
2466
2481
|
return input
|
|
2467
2482
|
.filter((e) => e != null)
|
|
@@ -2640,6 +2655,16 @@ const serializeAws_restJson1UpdateCustomLineItemPercentageChargeDetails = (input
|
|
|
2640
2655
|
...(input.PercentageValue != null && { PercentageValue: __serializeFloat(input.PercentageValue) }),
|
|
2641
2656
|
};
|
|
2642
2657
|
};
|
|
2658
|
+
const serializeAws_restJson1UpdateFreeTierConfig = (input, context) => {
|
|
2659
|
+
return {
|
|
2660
|
+
...(input.Activated != null && { Activated: input.Activated }),
|
|
2661
|
+
};
|
|
2662
|
+
};
|
|
2663
|
+
const serializeAws_restJson1UpdateTieringInput = (input, context) => {
|
|
2664
|
+
return {
|
|
2665
|
+
...(input.FreeTier != null && { FreeTier: serializeAws_restJson1UpdateFreeTierConfig(input.FreeTier, context) }),
|
|
2666
|
+
};
|
|
2667
|
+
};
|
|
2643
2668
|
const deserializeAws_restJson1AccountAssociationsList = (output, context) => {
|
|
2644
2669
|
const retVal = (output || [])
|
|
2645
2670
|
.filter((e) => e != null)
|
|
@@ -2807,6 +2832,11 @@ const deserializeAws_restJson1DisassociateResourcesResponseList = (output, conte
|
|
|
2807
2832
|
});
|
|
2808
2833
|
return retVal;
|
|
2809
2834
|
};
|
|
2835
|
+
const deserializeAws_restJson1FreeTierConfig = (output, context) => {
|
|
2836
|
+
return {
|
|
2837
|
+
Activated: __expectBoolean(output.Activated),
|
|
2838
|
+
};
|
|
2839
|
+
};
|
|
2810
2840
|
const deserializeAws_restJson1ListCustomLineItemChargeDetails = (output, context) => {
|
|
2811
2841
|
return {
|
|
2812
2842
|
Flat: output.Flat != null
|
|
@@ -2912,6 +2942,7 @@ const deserializeAws_restJson1PricingRuleListElement = (output, context) => {
|
|
|
2912
2942
|
Name: __expectString(output.Name),
|
|
2913
2943
|
Scope: __expectString(output.Scope),
|
|
2914
2944
|
Service: __expectString(output.Service),
|
|
2945
|
+
Tiering: output.Tiering != null ? deserializeAws_restJson1Tiering(output.Tiering, context) : undefined,
|
|
2915
2946
|
Type: __expectString(output.Type),
|
|
2916
2947
|
};
|
|
2917
2948
|
};
|
|
@@ -2924,6 +2955,21 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
2924
2955
|
return acc;
|
|
2925
2956
|
}, {});
|
|
2926
2957
|
};
|
|
2958
|
+
const deserializeAws_restJson1Tiering = (output, context) => {
|
|
2959
|
+
return {
|
|
2960
|
+
FreeTier: output.FreeTier != null ? deserializeAws_restJson1FreeTierConfig(output.FreeTier, context) : undefined,
|
|
2961
|
+
};
|
|
2962
|
+
};
|
|
2963
|
+
const deserializeAws_restJson1UpdateFreeTierConfig = (output, context) => {
|
|
2964
|
+
return {
|
|
2965
|
+
Activated: __expectBoolean(output.Activated),
|
|
2966
|
+
};
|
|
2967
|
+
};
|
|
2968
|
+
const deserializeAws_restJson1UpdateTieringInput = (output, context) => {
|
|
2969
|
+
return {
|
|
2970
|
+
FreeTier: output.FreeTier != null ? deserializeAws_restJson1UpdateFreeTierConfig(output.FreeTier, context) : undefined,
|
|
2971
|
+
};
|
|
2972
|
+
};
|
|
2927
2973
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
2928
2974
|
return {
|
|
2929
2975
|
Message: __expectString(output.Message),
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -233,12 +233,15 @@ export declare enum ValidationExceptionReason {
|
|
|
233
233
|
ILLEGAL_CUSTOMLINEITEM = "ILLEGAL_CUSTOMLINEITEM",
|
|
234
234
|
ILLEGAL_CUSTOMLINEITEM_MODIFICATION = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION",
|
|
235
235
|
ILLEGAL_CUSTOMLINEITEM_UPDATE = "ILLEGAL_CUSTOMLINEITEM_UPDATE",
|
|
236
|
+
ILLEGAL_ENDED_BILLINGGROUP = "ILLEGAL_ENDED_BILLINGGROUP",
|
|
236
237
|
ILLEGAL_EXPRESSION = "ILLEGAL_EXPRESSION",
|
|
237
238
|
ILLEGAL_MODIFIER_PERCENTAGE = "ILLEGAL_MODIFIER_PERCENTAGE",
|
|
238
239
|
ILLEGAL_PRIMARY_ACCOUNT = "ILLEGAL_PRIMARY_ACCOUNT",
|
|
239
240
|
ILLEGAL_RESOURCE_ARNS = "ILLEGAL_RESOURCE_ARNS",
|
|
240
241
|
ILLEGAL_SCOPE = "ILLEGAL_SCOPE",
|
|
241
242
|
ILLEGAL_SERVICE = "ILLEGAL_SERVICE",
|
|
243
|
+
ILLEGAL_TIERING_INPUT = "ILLEGAL_TIERING_INPUT",
|
|
244
|
+
ILLEGAL_TYPE = "ILLEGAL_TYPE",
|
|
242
245
|
ILLEGAL_UPDATE_CHARGE_DETAILS = "ILLEGAL_UPDATE_CHARGE_DETAILS",
|
|
243
246
|
INVALID_ARN = "INVALID_ARN",
|
|
244
247
|
INVALID_BILLINGVIEW_ARN = "INVALID_BILLINGVIEW_ARN",
|
|
@@ -1756,9 +1759,36 @@ export declare enum PricingRuleScope {
|
|
|
1756
1759
|
GLOBAL = "GLOBAL",
|
|
1757
1760
|
SERVICE = "SERVICE"
|
|
1758
1761
|
}
|
|
1762
|
+
/**
|
|
1763
|
+
* <p>
|
|
1764
|
+
* The possible Amazon Web Services Free Tier configurations.
|
|
1765
|
+
* </p>
|
|
1766
|
+
*/
|
|
1767
|
+
export interface CreateFreeTierConfig {
|
|
1768
|
+
/**
|
|
1769
|
+
* <p>
|
|
1770
|
+
* Activate or deactivate Amazon Web Services Free Tier.
|
|
1771
|
+
* </p>
|
|
1772
|
+
*/
|
|
1773
|
+
Activated: boolean | undefined;
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
* <p>
|
|
1777
|
+
* The set of tiering configurations for the pricing rule.
|
|
1778
|
+
* </p>
|
|
1779
|
+
*/
|
|
1780
|
+
export interface CreateTieringInput {
|
|
1781
|
+
/**
|
|
1782
|
+
* <p>
|
|
1783
|
+
* The possible Amazon Web Services Free Tier configurations.
|
|
1784
|
+
* </p>
|
|
1785
|
+
*/
|
|
1786
|
+
FreeTier: CreateFreeTierConfig | undefined;
|
|
1787
|
+
}
|
|
1759
1788
|
export declare enum PricingRuleType {
|
|
1760
1789
|
DISCOUNT = "DISCOUNT",
|
|
1761
|
-
MARKUP = "MARKUP"
|
|
1790
|
+
MARKUP = "MARKUP",
|
|
1791
|
+
TIERING = "TIERING"
|
|
1762
1792
|
}
|
|
1763
1793
|
export interface CreatePricingRuleInput {
|
|
1764
1794
|
/**
|
|
@@ -1792,7 +1822,7 @@ export interface CreatePricingRuleInput {
|
|
|
1792
1822
|
/**
|
|
1793
1823
|
* <p> A percentage modifier that's applied on the public pricing rates. </p>
|
|
1794
1824
|
*/
|
|
1795
|
-
ModifierPercentage
|
|
1825
|
+
ModifierPercentage?: number;
|
|
1796
1826
|
/**
|
|
1797
1827
|
* <p>
|
|
1798
1828
|
* If the <code>Scope</code> attribute is set to <code>SERVICE</code>, the attribute indicates which service the <code>PricingRule</code> is applicable for.
|
|
@@ -1811,6 +1841,12 @@ export interface CreatePricingRuleInput {
|
|
|
1811
1841
|
* </p>
|
|
1812
1842
|
*/
|
|
1813
1843
|
BillingEntity?: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* <p>
|
|
1846
|
+
* The set of tiering configurations for the pricing rule.
|
|
1847
|
+
* </p>
|
|
1848
|
+
*/
|
|
1849
|
+
Tiering?: CreateTieringInput;
|
|
1814
1850
|
}
|
|
1815
1851
|
export interface CreatePricingRuleOutput {
|
|
1816
1852
|
/**
|
|
@@ -1866,6 +1902,32 @@ export interface ListPricingRulesInput {
|
|
|
1866
1902
|
*/
|
|
1867
1903
|
NextToken?: string;
|
|
1868
1904
|
}
|
|
1905
|
+
/**
|
|
1906
|
+
* <p>
|
|
1907
|
+
* The possible Amazon Web Services Free Tier configurations.
|
|
1908
|
+
* </p>
|
|
1909
|
+
*/
|
|
1910
|
+
export interface FreeTierConfig {
|
|
1911
|
+
/**
|
|
1912
|
+
* <p>
|
|
1913
|
+
* Activate or deactivate Amazon Web Services Free Tier application.
|
|
1914
|
+
* </p>
|
|
1915
|
+
*/
|
|
1916
|
+
Activated: boolean | undefined;
|
|
1917
|
+
}
|
|
1918
|
+
/**
|
|
1919
|
+
* <p>
|
|
1920
|
+
* The set of tiering configurations for the pricing rule.
|
|
1921
|
+
* </p>
|
|
1922
|
+
*/
|
|
1923
|
+
export interface Tiering {
|
|
1924
|
+
/**
|
|
1925
|
+
* <p>
|
|
1926
|
+
* The possible Amazon Web Services Free Tier configurations.
|
|
1927
|
+
* </p>
|
|
1928
|
+
*/
|
|
1929
|
+
FreeTier: FreeTierConfig | undefined;
|
|
1930
|
+
}
|
|
1869
1931
|
/**
|
|
1870
1932
|
* <p>
|
|
1871
1933
|
* A representation of a pricing rule.
|
|
@@ -1934,6 +1996,12 @@ export interface PricingRuleListElement {
|
|
|
1934
1996
|
* </p>
|
|
1935
1997
|
*/
|
|
1936
1998
|
BillingEntity?: string;
|
|
1999
|
+
/**
|
|
2000
|
+
* <p>
|
|
2001
|
+
* The set of tiering configurations for the pricing rule.
|
|
2002
|
+
* </p>
|
|
2003
|
+
*/
|
|
2004
|
+
Tiering?: Tiering;
|
|
1937
2005
|
}
|
|
1938
2006
|
export interface ListPricingRulesOutput {
|
|
1939
2007
|
/**
|
|
@@ -2003,6 +2071,32 @@ export interface ListPricingRulesAssociatedToPricingPlanOutput {
|
|
|
2003
2071
|
*/
|
|
2004
2072
|
NextToken?: string;
|
|
2005
2073
|
}
|
|
2074
|
+
/**
|
|
2075
|
+
* <p>
|
|
2076
|
+
* The possible Amazon Web Services Free Tier configurations.
|
|
2077
|
+
* </p>
|
|
2078
|
+
*/
|
|
2079
|
+
export interface UpdateFreeTierConfig {
|
|
2080
|
+
/**
|
|
2081
|
+
* <p>
|
|
2082
|
+
* Activate or deactivate application of Amazon Web Services Free Tier.
|
|
2083
|
+
* </p>
|
|
2084
|
+
*/
|
|
2085
|
+
Activated: boolean | undefined;
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
* <p>
|
|
2089
|
+
* The set of tiering configurations for the pricing rule.
|
|
2090
|
+
* </p>
|
|
2091
|
+
*/
|
|
2092
|
+
export interface UpdateTieringInput {
|
|
2093
|
+
/**
|
|
2094
|
+
* <p>
|
|
2095
|
+
* The possible Amazon Web Services Free Tier configurations.
|
|
2096
|
+
* </p>
|
|
2097
|
+
*/
|
|
2098
|
+
FreeTier: UpdateFreeTierConfig | undefined;
|
|
2099
|
+
}
|
|
2006
2100
|
export interface UpdatePricingRuleInput {
|
|
2007
2101
|
/**
|
|
2008
2102
|
* <p> The Amazon Resource Name (ARN) of the pricing rule to update. </p>
|
|
@@ -2032,6 +2126,12 @@ export interface UpdatePricingRuleInput {
|
|
|
2032
2126
|
* </p>
|
|
2033
2127
|
*/
|
|
2034
2128
|
ModifierPercentage?: number;
|
|
2129
|
+
/**
|
|
2130
|
+
* <p>
|
|
2131
|
+
* The set of tiering configurations for the pricing rule.
|
|
2132
|
+
* </p>
|
|
2133
|
+
*/
|
|
2134
|
+
Tiering?: UpdateTieringInput;
|
|
2035
2135
|
}
|
|
2036
2136
|
export interface UpdatePricingRuleOutput {
|
|
2037
2137
|
/**
|
|
@@ -2091,6 +2191,12 @@ export interface UpdatePricingRuleOutput {
|
|
|
2091
2191
|
* </p>
|
|
2092
2192
|
*/
|
|
2093
2193
|
BillingEntity?: string;
|
|
2194
|
+
/**
|
|
2195
|
+
* <p>
|
|
2196
|
+
* The set of tiering configurations for the pricing rule.
|
|
2197
|
+
* </p>
|
|
2198
|
+
*/
|
|
2199
|
+
Tiering?: UpdateTieringInput;
|
|
2094
2200
|
}
|
|
2095
2201
|
export interface TagResourceRequest {
|
|
2096
2202
|
/**
|
|
@@ -2440,6 +2546,14 @@ export declare const UpdatePricingPlanInputFilterSensitiveLog: (obj: UpdatePrici
|
|
|
2440
2546
|
* @internal
|
|
2441
2547
|
*/
|
|
2442
2548
|
export declare const UpdatePricingPlanOutputFilterSensitiveLog: (obj: UpdatePricingPlanOutput) => any;
|
|
2549
|
+
/**
|
|
2550
|
+
* @internal
|
|
2551
|
+
*/
|
|
2552
|
+
export declare const CreateFreeTierConfigFilterSensitiveLog: (obj: CreateFreeTierConfig) => any;
|
|
2553
|
+
/**
|
|
2554
|
+
* @internal
|
|
2555
|
+
*/
|
|
2556
|
+
export declare const CreateTieringInputFilterSensitiveLog: (obj: CreateTieringInput) => any;
|
|
2443
2557
|
/**
|
|
2444
2558
|
* @internal
|
|
2445
2559
|
*/
|
|
@@ -2464,6 +2578,14 @@ export declare const ListPricingRulesFilterFilterSensitiveLog: (obj: ListPricing
|
|
|
2464
2578
|
* @internal
|
|
2465
2579
|
*/
|
|
2466
2580
|
export declare const ListPricingRulesInputFilterSensitiveLog: (obj: ListPricingRulesInput) => any;
|
|
2581
|
+
/**
|
|
2582
|
+
* @internal
|
|
2583
|
+
*/
|
|
2584
|
+
export declare const FreeTierConfigFilterSensitiveLog: (obj: FreeTierConfig) => any;
|
|
2585
|
+
/**
|
|
2586
|
+
* @internal
|
|
2587
|
+
*/
|
|
2588
|
+
export declare const TieringFilterSensitiveLog: (obj: Tiering) => any;
|
|
2467
2589
|
/**
|
|
2468
2590
|
* @internal
|
|
2469
2591
|
*/
|
|
@@ -2480,6 +2602,14 @@ export declare const ListPricingRulesAssociatedToPricingPlanInputFilterSensitive
|
|
|
2480
2602
|
* @internal
|
|
2481
2603
|
*/
|
|
2482
2604
|
export declare const ListPricingRulesAssociatedToPricingPlanOutputFilterSensitiveLog: (obj: ListPricingRulesAssociatedToPricingPlanOutput) => any;
|
|
2605
|
+
/**
|
|
2606
|
+
* @internal
|
|
2607
|
+
*/
|
|
2608
|
+
export declare const UpdateFreeTierConfigFilterSensitiveLog: (obj: UpdateFreeTierConfig) => any;
|
|
2609
|
+
/**
|
|
2610
|
+
* @internal
|
|
2611
|
+
*/
|
|
2612
|
+
export declare const UpdateTieringInputFilterSensitiveLog: (obj: UpdateTieringInput) => any;
|
|
2483
2613
|
/**
|
|
2484
2614
|
* @internal
|
|
2485
2615
|
*/
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -101,12 +101,15 @@ export declare enum ValidationExceptionReason {
|
|
|
101
101
|
ILLEGAL_CUSTOMLINEITEM = "ILLEGAL_CUSTOMLINEITEM",
|
|
102
102
|
ILLEGAL_CUSTOMLINEITEM_MODIFICATION = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION",
|
|
103
103
|
ILLEGAL_CUSTOMLINEITEM_UPDATE = "ILLEGAL_CUSTOMLINEITEM_UPDATE",
|
|
104
|
+
ILLEGAL_ENDED_BILLINGGROUP = "ILLEGAL_ENDED_BILLINGGROUP",
|
|
104
105
|
ILLEGAL_EXPRESSION = "ILLEGAL_EXPRESSION",
|
|
105
106
|
ILLEGAL_MODIFIER_PERCENTAGE = "ILLEGAL_MODIFIER_PERCENTAGE",
|
|
106
107
|
ILLEGAL_PRIMARY_ACCOUNT = "ILLEGAL_PRIMARY_ACCOUNT",
|
|
107
108
|
ILLEGAL_RESOURCE_ARNS = "ILLEGAL_RESOURCE_ARNS",
|
|
108
109
|
ILLEGAL_SCOPE = "ILLEGAL_SCOPE",
|
|
109
110
|
ILLEGAL_SERVICE = "ILLEGAL_SERVICE",
|
|
111
|
+
ILLEGAL_TIERING_INPUT = "ILLEGAL_TIERING_INPUT",
|
|
112
|
+
ILLEGAL_TYPE = "ILLEGAL_TYPE",
|
|
110
113
|
ILLEGAL_UPDATE_CHARGE_DETAILS = "ILLEGAL_UPDATE_CHARGE_DETAILS",
|
|
111
114
|
INVALID_ARN = "INVALID_ARN",
|
|
112
115
|
INVALID_BILLINGVIEW_ARN = "INVALID_BILLINGVIEW_ARN",
|
|
@@ -541,9 +544,16 @@ export declare enum PricingRuleScope {
|
|
|
541
544
|
GLOBAL = "GLOBAL",
|
|
542
545
|
SERVICE = "SERVICE",
|
|
543
546
|
}
|
|
547
|
+
export interface CreateFreeTierConfig {
|
|
548
|
+
Activated: boolean | undefined;
|
|
549
|
+
}
|
|
550
|
+
export interface CreateTieringInput {
|
|
551
|
+
FreeTier: CreateFreeTierConfig | undefined;
|
|
552
|
+
}
|
|
544
553
|
export declare enum PricingRuleType {
|
|
545
554
|
DISCOUNT = "DISCOUNT",
|
|
546
555
|
MARKUP = "MARKUP",
|
|
556
|
+
TIERING = "TIERING",
|
|
547
557
|
}
|
|
548
558
|
export interface CreatePricingRuleInput {
|
|
549
559
|
ClientToken?: string;
|
|
@@ -551,10 +561,11 @@ export interface CreatePricingRuleInput {
|
|
|
551
561
|
Description?: string;
|
|
552
562
|
Scope: PricingRuleScope | string | undefined;
|
|
553
563
|
Type: PricingRuleType | string | undefined;
|
|
554
|
-
ModifierPercentage
|
|
564
|
+
ModifierPercentage?: number;
|
|
555
565
|
Service?: string;
|
|
556
566
|
Tags?: Record<string, string>;
|
|
557
567
|
BillingEntity?: string;
|
|
568
|
+
Tiering?: CreateTieringInput;
|
|
558
569
|
}
|
|
559
570
|
export interface CreatePricingRuleOutput {
|
|
560
571
|
Arn?: string;
|
|
@@ -574,6 +585,12 @@ export interface ListPricingRulesInput {
|
|
|
574
585
|
MaxResults?: number;
|
|
575
586
|
NextToken?: string;
|
|
576
587
|
}
|
|
588
|
+
export interface FreeTierConfig {
|
|
589
|
+
Activated: boolean | undefined;
|
|
590
|
+
}
|
|
591
|
+
export interface Tiering {
|
|
592
|
+
FreeTier: FreeTierConfig | undefined;
|
|
593
|
+
}
|
|
577
594
|
export interface PricingRuleListElement {
|
|
578
595
|
Name?: string;
|
|
579
596
|
Arn?: string;
|
|
@@ -586,6 +603,7 @@ export interface PricingRuleListElement {
|
|
|
586
603
|
CreationTime?: number;
|
|
587
604
|
LastModifiedTime?: number;
|
|
588
605
|
BillingEntity?: string;
|
|
606
|
+
Tiering?: Tiering;
|
|
589
607
|
}
|
|
590
608
|
export interface ListPricingRulesOutput {
|
|
591
609
|
BillingPeriod?: string;
|
|
@@ -604,12 +622,19 @@ export interface ListPricingRulesAssociatedToPricingPlanOutput {
|
|
|
604
622
|
PricingRuleArns?: string[];
|
|
605
623
|
NextToken?: string;
|
|
606
624
|
}
|
|
625
|
+
export interface UpdateFreeTierConfig {
|
|
626
|
+
Activated: boolean | undefined;
|
|
627
|
+
}
|
|
628
|
+
export interface UpdateTieringInput {
|
|
629
|
+
FreeTier: UpdateFreeTierConfig | undefined;
|
|
630
|
+
}
|
|
607
631
|
export interface UpdatePricingRuleInput {
|
|
608
632
|
Arn: string | undefined;
|
|
609
633
|
Name?: string;
|
|
610
634
|
Description?: string;
|
|
611
635
|
Type?: PricingRuleType | string;
|
|
612
636
|
ModifierPercentage?: number;
|
|
637
|
+
Tiering?: UpdateTieringInput;
|
|
613
638
|
}
|
|
614
639
|
export interface UpdatePricingRuleOutput {
|
|
615
640
|
Arn?: string;
|
|
@@ -622,6 +647,7 @@ export interface UpdatePricingRuleOutput {
|
|
|
622
647
|
AssociatedPricingPlanCount?: number;
|
|
623
648
|
LastModifiedTime?: number;
|
|
624
649
|
BillingEntity?: string;
|
|
650
|
+
Tiering?: UpdateTieringInput;
|
|
625
651
|
}
|
|
626
652
|
export interface TagResourceRequest {
|
|
627
653
|
ResourceArn: string | undefined;
|
|
@@ -870,6 +896,12 @@ export declare const UpdatePricingPlanInputFilterSensitiveLog: (
|
|
|
870
896
|
export declare const UpdatePricingPlanOutputFilterSensitiveLog: (
|
|
871
897
|
obj: UpdatePricingPlanOutput
|
|
872
898
|
) => any;
|
|
899
|
+
export declare const CreateFreeTierConfigFilterSensitiveLog: (
|
|
900
|
+
obj: CreateFreeTierConfig
|
|
901
|
+
) => any;
|
|
902
|
+
export declare const CreateTieringInputFilterSensitiveLog: (
|
|
903
|
+
obj: CreateTieringInput
|
|
904
|
+
) => any;
|
|
873
905
|
export declare const CreatePricingRuleInputFilterSensitiveLog: (
|
|
874
906
|
obj: CreatePricingRuleInput
|
|
875
907
|
) => any;
|
|
@@ -888,6 +920,10 @@ export declare const ListPricingRulesFilterFilterSensitiveLog: (
|
|
|
888
920
|
export declare const ListPricingRulesInputFilterSensitiveLog: (
|
|
889
921
|
obj: ListPricingRulesInput
|
|
890
922
|
) => any;
|
|
923
|
+
export declare const FreeTierConfigFilterSensitiveLog: (
|
|
924
|
+
obj: FreeTierConfig
|
|
925
|
+
) => any;
|
|
926
|
+
export declare const TieringFilterSensitiveLog: (obj: Tiering) => any;
|
|
891
927
|
export declare const PricingRuleListElementFilterSensitiveLog: (
|
|
892
928
|
obj: PricingRuleListElement
|
|
893
929
|
) => any;
|
|
@@ -900,6 +936,12 @@ export declare const ListPricingRulesAssociatedToPricingPlanInputFilterSensitive
|
|
|
900
936
|
export declare const ListPricingRulesAssociatedToPricingPlanOutputFilterSensitiveLog: (
|
|
901
937
|
obj: ListPricingRulesAssociatedToPricingPlanOutput
|
|
902
938
|
) => any;
|
|
939
|
+
export declare const UpdateFreeTierConfigFilterSensitiveLog: (
|
|
940
|
+
obj: UpdateFreeTierConfig
|
|
941
|
+
) => any;
|
|
942
|
+
export declare const UpdateTieringInputFilterSensitiveLog: (
|
|
943
|
+
obj: UpdateTieringInput
|
|
944
|
+
) => any;
|
|
903
945
|
export declare const UpdatePricingRuleInputFilterSensitiveLog: (
|
|
904
946
|
obj: UpdatePricingRuleInput
|
|
905
947
|
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-billingconductor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Billingconductor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.225.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|