@aws-sdk/client-billingconductor 3.293.0 → 3.294.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 +3 -3
- package/dist-cjs/models/models_0.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +22 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +22 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +49 -5
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +15 -4
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const y = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const y = "required", z = "type", A = "fn", B = "argv", C = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = { [y]: false, [z]: "String" }, i = { [y]: true, "default": false, [z]: "Boolean" }, j = { [C]: "Endpoint" }, k = {}, l = { [C]: "Region" }, m = { [C]: e }, n = { [c]: "FIPS and DualStack are enabled, but this partition does not support one or both", [z]: c }, o = { [c]: "FIPS is enabled but this partition does not support FIPS", [z]: c }, p = { [c]: "DualStack is enabled but this partition does not support DualStack", [z]: c }, q = { "url": "https://billingconductor.us-east-1.amazonaws.com", "properties": { "authSchemes": [{ "name": "sigv4", "signingName": "billingconductor", "signingRegion": "us-east-1" }] }, "headers": {} }, r = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseFIPS" }, true] }], s = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseDualStack" }, true] }], t = [l], u = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseFIPS" }, true] }, { [A]: "booleanEquals", [B]: [{ [C]: "UseDualStack" }, true] }], v = [{ [A]: "booleanEquals", [B]: [true, { [A]: g, [B]: [m, "supportsFIPS"] }] }, { [A]: "booleanEquals", [B]: [true, { [A]: g, [B]: [m, "supportsDualStack"] }] }], w = [{ [A]: "booleanEquals", [B]: [true, { [A]: g, [B]: [m, "supportsFIPS"] }] }], x = [{ [A]: "booleanEquals", [B]: [true, { [A]: g, [B]: [m, "supportsDualStack"] }] }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [A]: a, [B]: [j] }], [z]: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [z]: c }, { [z]: b, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [z]: c }, { endpoint: { url: j, properties: k, headers: k }, [z]: d }] }] }, { [z]: b, rules: [{ conditions: [{ [A]: a, [B]: t }], [z]: b, rules: [{ conditions: [{ [A]: "aws.partition", [B]: t, assign: e }], [z]: b, rules: [{ conditions: [{ [A]: f, [B]: [{ [A]: g, [B]: [m, "name"] }, "aws"] }], [z]: b, rules: [{ conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ endpoint: { url: "https://billingconductor-fips.{Region}.api.aws", properties: k, headers: k }, [z]: d }] }, n] }, { conditions: r, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ endpoint: { url: "https://billingconductor-fips.{Region}.amazonaws.com", properties: k, headers: k }, [z]: d }] }, o] }, { conditions: s, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ endpoint: { url: "https://billingconductor.{Region}.api.aws", properties: k, headers: k }, [z]: d }] }, p] }, { endpoint: q, [z]: d }] }, { conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://billingconductor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, [z]: d }] }] }, n] }, { conditions: r, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://billingconductor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, [z]: d }] }] }, o] }, { conditions: s, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://billingconductor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, [z]: d }] }] }, p] }, { [z]: b, rules: [{ conditions: [{ [A]: f, [B]: [l, "aws-global"] }], endpoint: q, [z]: d }, { endpoint: { url: "https://billingconductor.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, [z]: d }] }] }] }, { error: "Invalid Configuration: Missing Region", [z]: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -129,6 +129,7 @@ var ValidationExceptionReason;
|
|
|
129
129
|
ValidationExceptionReason["ILLEGAL_ENDED_BILLINGGROUP"] = "ILLEGAL_ENDED_BILLINGGROUP";
|
|
130
130
|
ValidationExceptionReason["ILLEGAL_EXPRESSION"] = "ILLEGAL_EXPRESSION";
|
|
131
131
|
ValidationExceptionReason["ILLEGAL_MODIFIER_PERCENTAGE"] = "ILLEGAL_MODIFIER_PERCENTAGE";
|
|
132
|
+
ValidationExceptionReason["ILLEGAL_OPERATION"] = "ILLEGAL_OPERATION";
|
|
132
133
|
ValidationExceptionReason["ILLEGAL_PRIMARY_ACCOUNT"] = "ILLEGAL_PRIMARY_ACCOUNT";
|
|
133
134
|
ValidationExceptionReason["ILLEGAL_RESOURCE_ARNS"] = "ILLEGAL_RESOURCE_ARNS";
|
|
134
135
|
ValidationExceptionReason["ILLEGAL_SCOPE"] = "ILLEGAL_SCOPE";
|
|
@@ -136,11 +137,14 @@ var ValidationExceptionReason;
|
|
|
136
137
|
ValidationExceptionReason["ILLEGAL_TIERING_INPUT"] = "ILLEGAL_TIERING_INPUT";
|
|
137
138
|
ValidationExceptionReason["ILLEGAL_TYPE"] = "ILLEGAL_TYPE";
|
|
138
139
|
ValidationExceptionReason["ILLEGAL_UPDATE_CHARGE_DETAILS"] = "ILLEGAL_UPDATE_CHARGE_DETAILS";
|
|
140
|
+
ValidationExceptionReason["ILLEGAL_USAGE_TYPE"] = "ILLEGAL_USAGE_TYPE";
|
|
139
141
|
ValidationExceptionReason["INVALID_ARN"] = "INVALID_ARN";
|
|
140
142
|
ValidationExceptionReason["INVALID_BILLINGVIEW_ARN"] = "INVALID_BILLINGVIEW_ARN";
|
|
141
143
|
ValidationExceptionReason["INVALID_BILLING_GROUP"] = "INVALID_BILLING_GROUP";
|
|
142
144
|
ValidationExceptionReason["INVALID_BILLING_GROUP_STATUS"] = "INVALID_BILLING_GROUP_STATUS";
|
|
143
145
|
ValidationExceptionReason["INVALID_BILLING_PERIOD_FOR_OPERATION"] = "INVALID_BILLING_PERIOD_FOR_OPERATION";
|
|
146
|
+
ValidationExceptionReason["INVALID_FILTER"] = "INVALID_FILTER";
|
|
147
|
+
ValidationExceptionReason["INVALID_SKU_COMBO"] = "INVALID_SKU_COMBO";
|
|
144
148
|
ValidationExceptionReason["INVALID_TIME_RANGE"] = "INVALID_TIME_RANGE";
|
|
145
149
|
ValidationExceptionReason["MISMATCHED_BILLINGGROUP_ARN"] = "MISMATCHED_BILLINGGROUP_ARN";
|
|
146
150
|
ValidationExceptionReason["MISMATCHED_BILLINGVIEW_ARN"] = "MISMATCHED_BILLINGVIEW_ARN";
|
|
@@ -213,6 +217,7 @@ var PricingRuleScope;
|
|
|
213
217
|
PricingRuleScope["BILLING_ENTITY"] = "BILLING_ENTITY";
|
|
214
218
|
PricingRuleScope["GLOBAL"] = "GLOBAL";
|
|
215
219
|
PricingRuleScope["SERVICE"] = "SERVICE";
|
|
220
|
+
PricingRuleScope["SKU"] = "SKU";
|
|
216
221
|
})(PricingRuleScope = exports.PricingRuleScope || (exports.PricingRuleScope = {}));
|
|
217
222
|
var PricingRuleType;
|
|
218
223
|
(function (PricingRuleType) {
|
|
@@ -2522,6 +2522,13 @@ const serializeAws_restJson1AccountGrouping = (input, context) => {
|
|
|
2522
2522
|
}),
|
|
2523
2523
|
};
|
|
2524
2524
|
};
|
|
2525
|
+
const serializeAws_restJson1AccountIdFilterList = (input, context) => {
|
|
2526
|
+
return input
|
|
2527
|
+
.filter((e) => e != null)
|
|
2528
|
+
.map((entry) => {
|
|
2529
|
+
return entry;
|
|
2530
|
+
});
|
|
2531
|
+
};
|
|
2525
2532
|
const serializeAws_restJson1AccountIdList = (input, context) => {
|
|
2526
2533
|
return input
|
|
2527
2534
|
.filter((e) => e != null)
|
|
@@ -2536,6 +2543,13 @@ const serializeAws_restJson1BillingGroupArnList = (input, context) => {
|
|
|
2536
2543
|
return entry;
|
|
2537
2544
|
});
|
|
2538
2545
|
};
|
|
2546
|
+
const serializeAws_restJson1BillingGroupStatusList = (input, context) => {
|
|
2547
|
+
return input
|
|
2548
|
+
.filter((e) => e != null)
|
|
2549
|
+
.map((entry) => {
|
|
2550
|
+
return entry;
|
|
2551
|
+
});
|
|
2552
|
+
};
|
|
2539
2553
|
const serializeAws_restJson1ComputationPreference = (input, context) => {
|
|
2540
2554
|
return {
|
|
2541
2555
|
...(input.PricingPlanArn != null && { PricingPlanArn: input.PricingPlanArn }),
|
|
@@ -2619,6 +2633,9 @@ const serializeAws_restJson1CustomLineItemPercentageChargeDetails = (input, cont
|
|
|
2619
2633
|
const serializeAws_restJson1ListAccountAssociationsFilter = (input, context) => {
|
|
2620
2634
|
return {
|
|
2621
2635
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
2636
|
+
...(input.AccountIds != null && {
|
|
2637
|
+
AccountIds: serializeAws_restJson1AccountIdFilterList(input.AccountIds, context),
|
|
2638
|
+
}),
|
|
2622
2639
|
...(input.Association != null && { Association: input.Association }),
|
|
2623
2640
|
};
|
|
2624
2641
|
};
|
|
@@ -2633,6 +2650,7 @@ const serializeAws_restJson1ListBillingGroupsFilter = (input, context) => {
|
|
|
2633
2650
|
return {
|
|
2634
2651
|
...(input.Arns != null && { Arns: serializeAws_restJson1BillingGroupArnList(input.Arns, context) }),
|
|
2635
2652
|
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
2653
|
+
...(input.Statuses != null && { Statuses: serializeAws_restJson1BillingGroupStatusList(input.Statuses, context) }),
|
|
2636
2654
|
};
|
|
2637
2655
|
};
|
|
2638
2656
|
const serializeAws_restJson1ListCustomLineItemsFilter = (input, context) => {
|
|
@@ -2874,6 +2892,7 @@ const deserializeAws_restJson1CustomLineItemVersionList = (output, context) => {
|
|
|
2874
2892
|
};
|
|
2875
2893
|
const deserializeAws_restJson1CustomLineItemVersionListElement = (output, context) => {
|
|
2876
2894
|
return {
|
|
2895
|
+
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
2877
2896
|
AssociationSize: (0, smithy_client_1.expectLong)(output.AssociationSize),
|
|
2878
2897
|
BillingGroupArn: (0, smithy_client_1.expectString)(output.BillingGroupArn),
|
|
2879
2898
|
ChargeDetails: output.ChargeDetails != null
|
|
@@ -2887,6 +2906,7 @@ const deserializeAws_restJson1CustomLineItemVersionListElement = (output, contex
|
|
|
2887
2906
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2888
2907
|
ProductCode: (0, smithy_client_1.expectString)(output.ProductCode),
|
|
2889
2908
|
StartBillingPeriod: (0, smithy_client_1.expectString)(output.StartBillingPeriod),
|
|
2909
|
+
StartTime: (0, smithy_client_1.expectLong)(output.StartTime),
|
|
2890
2910
|
};
|
|
2891
2911
|
};
|
|
2892
2912
|
const deserializeAws_restJson1DisassociateResourceResponseElement = (output, context) => {
|
|
@@ -3014,10 +3034,12 @@ const deserializeAws_restJson1PricingRuleListElement = (output, context) => {
|
|
|
3014
3034
|
LastModifiedTime: (0, smithy_client_1.expectLong)(output.LastModifiedTime),
|
|
3015
3035
|
ModifierPercentage: (0, smithy_client_1.limitedParseDouble)(output.ModifierPercentage),
|
|
3016
3036
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
3037
|
+
Operation: (0, smithy_client_1.expectString)(output.Operation),
|
|
3017
3038
|
Scope: (0, smithy_client_1.expectString)(output.Scope),
|
|
3018
3039
|
Service: (0, smithy_client_1.expectString)(output.Service),
|
|
3019
3040
|
Tiering: output.Tiering != null ? deserializeAws_restJson1Tiering(output.Tiering, context) : undefined,
|
|
3020
3041
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
3042
|
+
UsageType: (0, smithy_client_1.expectString)(output.UsageType),
|
|
3021
3043
|
};
|
|
3022
3044
|
};
|
|
3023
3045
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const y = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const y = "required", z = "type", A = "fn", B = "argv", C = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = "getAttr", h = { [y]: false, [z]: "String" }, i = { [y]: true, "default": false, [z]: "Boolean" }, j = { [C]: "Endpoint" }, k = {}, l = { [C]: "Region" }, m = { [C]: e }, n = { [c]: "FIPS and DualStack are enabled, but this partition does not support one or both", [z]: c }, o = { [c]: "FIPS is enabled but this partition does not support FIPS", [z]: c }, p = { [c]: "DualStack is enabled but this partition does not support DualStack", [z]: c }, q = { "url": "https://billingconductor.us-east-1.amazonaws.com", "properties": { "authSchemes": [{ "name": "sigv4", "signingName": "billingconductor", "signingRegion": "us-east-1" }] }, "headers": {} }, r = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseFIPS" }, true] }], s = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseDualStack" }, true] }], t = [l], u = [{ [A]: "booleanEquals", [B]: [{ [C]: "UseFIPS" }, true] }, { [A]: "booleanEquals", [B]: [{ [C]: "UseDualStack" }, true] }], v = [{ [A]: "booleanEquals", [B]: [true, { [A]: g, [B]: [m, "supportsFIPS"] }] }, { [A]: "booleanEquals", [B]: [true, { [A]: g, [B]: [m, "supportsDualStack"] }] }], w = [{ [A]: "booleanEquals", [B]: [true, { [A]: g, [B]: [m, "supportsFIPS"] }] }], x = [{ [A]: "booleanEquals", [B]: [true, { [A]: g, [B]: [m, "supportsDualStack"] }] }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [A]: a, [B]: [j] }], [z]: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [z]: c }, { [z]: b, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [z]: c }, { endpoint: { url: j, properties: k, headers: k }, [z]: d }] }] }, { [z]: b, rules: [{ conditions: [{ [A]: a, [B]: t }], [z]: b, rules: [{ conditions: [{ [A]: "aws.partition", [B]: t, assign: e }], [z]: b, rules: [{ conditions: [{ [A]: f, [B]: [{ [A]: g, [B]: [m, "name"] }, "aws"] }], [z]: b, rules: [{ conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ endpoint: { url: "https://billingconductor-fips.{Region}.api.aws", properties: k, headers: k }, [z]: d }] }, n] }, { conditions: r, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ endpoint: { url: "https://billingconductor-fips.{Region}.amazonaws.com", properties: k, headers: k }, [z]: d }] }, o] }, { conditions: s, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ endpoint: { url: "https://billingconductor.{Region}.api.aws", properties: k, headers: k }, [z]: d }] }, p] }, { endpoint: q, [z]: d }] }, { conditions: u, [z]: b, rules: [{ conditions: v, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://billingconductor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, [z]: d }] }] }, n] }, { conditions: r, [z]: b, rules: [{ conditions: w, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://billingconductor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, [z]: d }] }] }, o] }, { conditions: s, [z]: b, rules: [{ conditions: x, [z]: b, rules: [{ [z]: b, rules: [{ endpoint: { url: "https://billingconductor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, [z]: d }] }] }, p] }, { [z]: b, rules: [{ conditions: [{ [A]: f, [B]: [l, "aws-global"] }], endpoint: q, [z]: d }, { endpoint: { url: "https://billingconductor.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, [z]: d }] }] }] }, { error: "Invalid Configuration: Missing Region", [z]: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -118,6 +118,7 @@ export var ValidationExceptionReason;
|
|
|
118
118
|
ValidationExceptionReason["ILLEGAL_ENDED_BILLINGGROUP"] = "ILLEGAL_ENDED_BILLINGGROUP";
|
|
119
119
|
ValidationExceptionReason["ILLEGAL_EXPRESSION"] = "ILLEGAL_EXPRESSION";
|
|
120
120
|
ValidationExceptionReason["ILLEGAL_MODIFIER_PERCENTAGE"] = "ILLEGAL_MODIFIER_PERCENTAGE";
|
|
121
|
+
ValidationExceptionReason["ILLEGAL_OPERATION"] = "ILLEGAL_OPERATION";
|
|
121
122
|
ValidationExceptionReason["ILLEGAL_PRIMARY_ACCOUNT"] = "ILLEGAL_PRIMARY_ACCOUNT";
|
|
122
123
|
ValidationExceptionReason["ILLEGAL_RESOURCE_ARNS"] = "ILLEGAL_RESOURCE_ARNS";
|
|
123
124
|
ValidationExceptionReason["ILLEGAL_SCOPE"] = "ILLEGAL_SCOPE";
|
|
@@ -125,11 +126,14 @@ export var ValidationExceptionReason;
|
|
|
125
126
|
ValidationExceptionReason["ILLEGAL_TIERING_INPUT"] = "ILLEGAL_TIERING_INPUT";
|
|
126
127
|
ValidationExceptionReason["ILLEGAL_TYPE"] = "ILLEGAL_TYPE";
|
|
127
128
|
ValidationExceptionReason["ILLEGAL_UPDATE_CHARGE_DETAILS"] = "ILLEGAL_UPDATE_CHARGE_DETAILS";
|
|
129
|
+
ValidationExceptionReason["ILLEGAL_USAGE_TYPE"] = "ILLEGAL_USAGE_TYPE";
|
|
128
130
|
ValidationExceptionReason["INVALID_ARN"] = "INVALID_ARN";
|
|
129
131
|
ValidationExceptionReason["INVALID_BILLINGVIEW_ARN"] = "INVALID_BILLINGVIEW_ARN";
|
|
130
132
|
ValidationExceptionReason["INVALID_BILLING_GROUP"] = "INVALID_BILLING_GROUP";
|
|
131
133
|
ValidationExceptionReason["INVALID_BILLING_GROUP_STATUS"] = "INVALID_BILLING_GROUP_STATUS";
|
|
132
134
|
ValidationExceptionReason["INVALID_BILLING_PERIOD_FOR_OPERATION"] = "INVALID_BILLING_PERIOD_FOR_OPERATION";
|
|
135
|
+
ValidationExceptionReason["INVALID_FILTER"] = "INVALID_FILTER";
|
|
136
|
+
ValidationExceptionReason["INVALID_SKU_COMBO"] = "INVALID_SKU_COMBO";
|
|
133
137
|
ValidationExceptionReason["INVALID_TIME_RANGE"] = "INVALID_TIME_RANGE";
|
|
134
138
|
ValidationExceptionReason["MISMATCHED_BILLINGGROUP_ARN"] = "MISMATCHED_BILLINGGROUP_ARN";
|
|
135
139
|
ValidationExceptionReason["MISMATCHED_BILLINGVIEW_ARN"] = "MISMATCHED_BILLINGVIEW_ARN";
|
|
@@ -201,6 +205,7 @@ export var PricingRuleScope;
|
|
|
201
205
|
PricingRuleScope["BILLING_ENTITY"] = "BILLING_ENTITY";
|
|
202
206
|
PricingRuleScope["GLOBAL"] = "GLOBAL";
|
|
203
207
|
PricingRuleScope["SERVICE"] = "SERVICE";
|
|
208
|
+
PricingRuleScope["SKU"] = "SKU";
|
|
204
209
|
})(PricingRuleScope || (PricingRuleScope = {}));
|
|
205
210
|
export var PricingRuleType;
|
|
206
211
|
(function (PricingRuleType) {
|
|
@@ -2456,6 +2456,13 @@ const serializeAws_restJson1AccountGrouping = (input, context) => {
|
|
|
2456
2456
|
}),
|
|
2457
2457
|
};
|
|
2458
2458
|
};
|
|
2459
|
+
const serializeAws_restJson1AccountIdFilterList = (input, context) => {
|
|
2460
|
+
return input
|
|
2461
|
+
.filter((e) => e != null)
|
|
2462
|
+
.map((entry) => {
|
|
2463
|
+
return entry;
|
|
2464
|
+
});
|
|
2465
|
+
};
|
|
2459
2466
|
const serializeAws_restJson1AccountIdList = (input, context) => {
|
|
2460
2467
|
return input
|
|
2461
2468
|
.filter((e) => e != null)
|
|
@@ -2470,6 +2477,13 @@ const serializeAws_restJson1BillingGroupArnList = (input, context) => {
|
|
|
2470
2477
|
return entry;
|
|
2471
2478
|
});
|
|
2472
2479
|
};
|
|
2480
|
+
const serializeAws_restJson1BillingGroupStatusList = (input, context) => {
|
|
2481
|
+
return input
|
|
2482
|
+
.filter((e) => e != null)
|
|
2483
|
+
.map((entry) => {
|
|
2484
|
+
return entry;
|
|
2485
|
+
});
|
|
2486
|
+
};
|
|
2473
2487
|
const serializeAws_restJson1ComputationPreference = (input, context) => {
|
|
2474
2488
|
return {
|
|
2475
2489
|
...(input.PricingPlanArn != null && { PricingPlanArn: input.PricingPlanArn }),
|
|
@@ -2553,6 +2567,9 @@ const serializeAws_restJson1CustomLineItemPercentageChargeDetails = (input, cont
|
|
|
2553
2567
|
const serializeAws_restJson1ListAccountAssociationsFilter = (input, context) => {
|
|
2554
2568
|
return {
|
|
2555
2569
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
2570
|
+
...(input.AccountIds != null && {
|
|
2571
|
+
AccountIds: serializeAws_restJson1AccountIdFilterList(input.AccountIds, context),
|
|
2572
|
+
}),
|
|
2556
2573
|
...(input.Association != null && { Association: input.Association }),
|
|
2557
2574
|
};
|
|
2558
2575
|
};
|
|
@@ -2567,6 +2584,7 @@ const serializeAws_restJson1ListBillingGroupsFilter = (input, context) => {
|
|
|
2567
2584
|
return {
|
|
2568
2585
|
...(input.Arns != null && { Arns: serializeAws_restJson1BillingGroupArnList(input.Arns, context) }),
|
|
2569
2586
|
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
2587
|
+
...(input.Statuses != null && { Statuses: serializeAws_restJson1BillingGroupStatusList(input.Statuses, context) }),
|
|
2570
2588
|
};
|
|
2571
2589
|
};
|
|
2572
2590
|
const serializeAws_restJson1ListCustomLineItemsFilter = (input, context) => {
|
|
@@ -2808,6 +2826,7 @@ const deserializeAws_restJson1CustomLineItemVersionList = (output, context) => {
|
|
|
2808
2826
|
};
|
|
2809
2827
|
const deserializeAws_restJson1CustomLineItemVersionListElement = (output, context) => {
|
|
2810
2828
|
return {
|
|
2829
|
+
Arn: __expectString(output.Arn),
|
|
2811
2830
|
AssociationSize: __expectLong(output.AssociationSize),
|
|
2812
2831
|
BillingGroupArn: __expectString(output.BillingGroupArn),
|
|
2813
2832
|
ChargeDetails: output.ChargeDetails != null
|
|
@@ -2821,6 +2840,7 @@ const deserializeAws_restJson1CustomLineItemVersionListElement = (output, contex
|
|
|
2821
2840
|
Name: __expectString(output.Name),
|
|
2822
2841
|
ProductCode: __expectString(output.ProductCode),
|
|
2823
2842
|
StartBillingPeriod: __expectString(output.StartBillingPeriod),
|
|
2843
|
+
StartTime: __expectLong(output.StartTime),
|
|
2824
2844
|
};
|
|
2825
2845
|
};
|
|
2826
2846
|
const deserializeAws_restJson1DisassociateResourceResponseElement = (output, context) => {
|
|
@@ -2948,10 +2968,12 @@ const deserializeAws_restJson1PricingRuleListElement = (output, context) => {
|
|
|
2948
2968
|
LastModifiedTime: __expectLong(output.LastModifiedTime),
|
|
2949
2969
|
ModifierPercentage: __limitedParseDouble(output.ModifierPercentage),
|
|
2950
2970
|
Name: __expectString(output.Name),
|
|
2971
|
+
Operation: __expectString(output.Operation),
|
|
2951
2972
|
Scope: __expectString(output.Scope),
|
|
2952
2973
|
Service: __expectString(output.Service),
|
|
2953
2974
|
Tiering: output.Tiering != null ? deserializeAws_restJson1Tiering(output.Tiering, context) : undefined,
|
|
2954
2975
|
Type: __expectString(output.Type),
|
|
2976
|
+
UsageType: __expectString(output.UsageType),
|
|
2955
2977
|
};
|
|
2956
2978
|
};
|
|
2957
2979
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -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;
|
|
@@ -236,6 +236,7 @@ export declare enum ValidationExceptionReason {
|
|
|
236
236
|
ILLEGAL_ENDED_BILLINGGROUP = "ILLEGAL_ENDED_BILLINGGROUP",
|
|
237
237
|
ILLEGAL_EXPRESSION = "ILLEGAL_EXPRESSION",
|
|
238
238
|
ILLEGAL_MODIFIER_PERCENTAGE = "ILLEGAL_MODIFIER_PERCENTAGE",
|
|
239
|
+
ILLEGAL_OPERATION = "ILLEGAL_OPERATION",
|
|
239
240
|
ILLEGAL_PRIMARY_ACCOUNT = "ILLEGAL_PRIMARY_ACCOUNT",
|
|
240
241
|
ILLEGAL_RESOURCE_ARNS = "ILLEGAL_RESOURCE_ARNS",
|
|
241
242
|
ILLEGAL_SCOPE = "ILLEGAL_SCOPE",
|
|
@@ -243,11 +244,14 @@ export declare enum ValidationExceptionReason {
|
|
|
243
244
|
ILLEGAL_TIERING_INPUT = "ILLEGAL_TIERING_INPUT",
|
|
244
245
|
ILLEGAL_TYPE = "ILLEGAL_TYPE",
|
|
245
246
|
ILLEGAL_UPDATE_CHARGE_DETAILS = "ILLEGAL_UPDATE_CHARGE_DETAILS",
|
|
247
|
+
ILLEGAL_USAGE_TYPE = "ILLEGAL_USAGE_TYPE",
|
|
246
248
|
INVALID_ARN = "INVALID_ARN",
|
|
247
249
|
INVALID_BILLINGVIEW_ARN = "INVALID_BILLINGVIEW_ARN",
|
|
248
250
|
INVALID_BILLING_GROUP = "INVALID_BILLING_GROUP",
|
|
249
251
|
INVALID_BILLING_GROUP_STATUS = "INVALID_BILLING_GROUP_STATUS",
|
|
250
252
|
INVALID_BILLING_PERIOD_FOR_OPERATION = "INVALID_BILLING_PERIOD_FOR_OPERATION",
|
|
253
|
+
INVALID_FILTER = "INVALID_FILTER",
|
|
254
|
+
INVALID_SKU_COMBO = "INVALID_SKU_COMBO",
|
|
251
255
|
INVALID_TIME_RANGE = "INVALID_TIME_RANGE",
|
|
252
256
|
MISMATCHED_BILLINGGROUP_ARN = "MISMATCHED_BILLINGGROUP_ARN",
|
|
253
257
|
MISMATCHED_BILLINGVIEW_ARN = "MISMATCHED_BILLINGVIEW_ARN",
|
|
@@ -443,6 +447,10 @@ export interface DisassociateAccountsOutput {
|
|
|
443
447
|
*/
|
|
444
448
|
Arn?: string;
|
|
445
449
|
}
|
|
450
|
+
export declare enum BillingGroupStatus {
|
|
451
|
+
ACTIVE = "ACTIVE",
|
|
452
|
+
PRIMARY_ACCOUNT_MISSING = "PRIMARY_ACCOUNT_MISSING"
|
|
453
|
+
}
|
|
446
454
|
/**
|
|
447
455
|
* <p>The filter that specifies the billing groups and pricing plans to retrieve billing group information.
|
|
448
456
|
* </p>
|
|
@@ -456,6 +464,12 @@ export interface ListBillingGroupsFilter {
|
|
|
456
464
|
* <p>The pricing plan Amazon Resource Names (ARNs) to retrieve information. </p>
|
|
457
465
|
*/
|
|
458
466
|
PricingPlan?: string;
|
|
467
|
+
/**
|
|
468
|
+
* <p>
|
|
469
|
+
* A list of billing groups to retrieve their current status for a specific time range
|
|
470
|
+
* </p>
|
|
471
|
+
*/
|
|
472
|
+
Statuses?: (BillingGroupStatus | string)[];
|
|
459
473
|
}
|
|
460
474
|
export interface ListBillingGroupsInput {
|
|
461
475
|
/**
|
|
@@ -479,10 +493,6 @@ export interface ListBillingGroupsInput {
|
|
|
479
493
|
*/
|
|
480
494
|
Filters?: ListBillingGroupsFilter;
|
|
481
495
|
}
|
|
482
|
-
export declare enum BillingGroupStatus {
|
|
483
|
-
ACTIVE = "ACTIVE",
|
|
484
|
-
PRIMARY_ACCOUNT_MISSING = "PRIMARY_ACCOUNT_MISSING"
|
|
485
|
-
}
|
|
486
496
|
/**
|
|
487
497
|
* <p>A representation of a billing group.
|
|
488
498
|
* </p>
|
|
@@ -1130,6 +1140,18 @@ export interface CustomLineItemVersionListElement {
|
|
|
1130
1140
|
* <p>The end billing period of the custom line item version.</p>
|
|
1131
1141
|
*/
|
|
1132
1142
|
EndBillingPeriod?: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* <p>
|
|
1145
|
+
* A list of custom line item Amazon Resource Names (ARNs) to retrieve information.
|
|
1146
|
+
* </p>
|
|
1147
|
+
*/
|
|
1148
|
+
Arn?: string;
|
|
1149
|
+
/**
|
|
1150
|
+
* <p>
|
|
1151
|
+
* The inclusive start time.
|
|
1152
|
+
* </p>
|
|
1153
|
+
*/
|
|
1154
|
+
StartTime?: number;
|
|
1133
1155
|
}
|
|
1134
1156
|
export interface ListCustomLineItemVersionsOutput {
|
|
1135
1157
|
/**
|
|
@@ -1379,6 +1401,12 @@ export interface ListAccountAssociationsFilter {
|
|
|
1379
1401
|
* </p>
|
|
1380
1402
|
*/
|
|
1381
1403
|
AccountId?: string;
|
|
1404
|
+
/**
|
|
1405
|
+
* <p>
|
|
1406
|
+
* The list of Amazon Web Services IDs to retrieve their associated billing group for a given time range.
|
|
1407
|
+
* </p>
|
|
1408
|
+
*/
|
|
1409
|
+
AccountIds?: string[];
|
|
1382
1410
|
}
|
|
1383
1411
|
export interface ListAccountAssociationsInput {
|
|
1384
1412
|
/**
|
|
@@ -1757,7 +1785,8 @@ export interface UpdatePricingPlanOutput {
|
|
|
1757
1785
|
export declare enum PricingRuleScope {
|
|
1758
1786
|
BILLING_ENTITY = "BILLING_ENTITY",
|
|
1759
1787
|
GLOBAL = "GLOBAL",
|
|
1760
|
-
SERVICE = "SERVICE"
|
|
1788
|
+
SERVICE = "SERVICE",
|
|
1789
|
+
SKU = "SKU"
|
|
1761
1790
|
}
|
|
1762
1791
|
/**
|
|
1763
1792
|
* <p>
|
|
@@ -2017,6 +2046,21 @@ export interface PricingRuleListElement {
|
|
|
2017
2046
|
* </p>
|
|
2018
2047
|
*/
|
|
2019
2048
|
Tiering?: Tiering;
|
|
2049
|
+
/**
|
|
2050
|
+
* <p>
|
|
2051
|
+
* Usage type is the unit that each service uses to measure the usage of a specific type of resource.</p>
|
|
2052
|
+
* <p>If the <code>Scope</code> attribute is set to <code>SKU</code>, this attribute indicates which usage type the <code>PricingRule</code> is modifying. For example, <code>USW2-BoxUsage:m2.2xlarge</code> describes an<code> M2 High Memory Double Extra Large</code> instance in the US West (Oregon) Region.
|
|
2053
|
+
*
|
|
2054
|
+
* </p>
|
|
2055
|
+
*/
|
|
2056
|
+
UsageType?: string;
|
|
2057
|
+
/**
|
|
2058
|
+
* <p>
|
|
2059
|
+
* Operation is the specific Amazon Web Services action covered by this line item. This describes the specific usage of the line item.</p>
|
|
2060
|
+
* <p>
|
|
2061
|
+
* If the <code>Scope</code> attribute is set to <code>SKU</code>, this attribute indicates which operation the <code>PricingRule</code> is modifying. For example, a value of <code>RunInstances:0202</code> indicates the operation of running an Amazon EC2 instance.</p>
|
|
2062
|
+
*/
|
|
2063
|
+
Operation?: string;
|
|
2020
2064
|
}
|
|
2021
2065
|
export interface ListPricingRulesOutput {
|
|
2022
2066
|
/**
|
|
@@ -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;
|
|
@@ -104,6 +104,7 @@ export declare enum ValidationExceptionReason {
|
|
|
104
104
|
ILLEGAL_ENDED_BILLINGGROUP = "ILLEGAL_ENDED_BILLINGGROUP",
|
|
105
105
|
ILLEGAL_EXPRESSION = "ILLEGAL_EXPRESSION",
|
|
106
106
|
ILLEGAL_MODIFIER_PERCENTAGE = "ILLEGAL_MODIFIER_PERCENTAGE",
|
|
107
|
+
ILLEGAL_OPERATION = "ILLEGAL_OPERATION",
|
|
107
108
|
ILLEGAL_PRIMARY_ACCOUNT = "ILLEGAL_PRIMARY_ACCOUNT",
|
|
108
109
|
ILLEGAL_RESOURCE_ARNS = "ILLEGAL_RESOURCE_ARNS",
|
|
109
110
|
ILLEGAL_SCOPE = "ILLEGAL_SCOPE",
|
|
@@ -111,11 +112,14 @@ export declare enum ValidationExceptionReason {
|
|
|
111
112
|
ILLEGAL_TIERING_INPUT = "ILLEGAL_TIERING_INPUT",
|
|
112
113
|
ILLEGAL_TYPE = "ILLEGAL_TYPE",
|
|
113
114
|
ILLEGAL_UPDATE_CHARGE_DETAILS = "ILLEGAL_UPDATE_CHARGE_DETAILS",
|
|
115
|
+
ILLEGAL_USAGE_TYPE = "ILLEGAL_USAGE_TYPE",
|
|
114
116
|
INVALID_ARN = "INVALID_ARN",
|
|
115
117
|
INVALID_BILLINGVIEW_ARN = "INVALID_BILLINGVIEW_ARN",
|
|
116
118
|
INVALID_BILLING_GROUP = "INVALID_BILLING_GROUP",
|
|
117
119
|
INVALID_BILLING_GROUP_STATUS = "INVALID_BILLING_GROUP_STATUS",
|
|
118
120
|
INVALID_BILLING_PERIOD_FOR_OPERATION = "INVALID_BILLING_PERIOD_FOR_OPERATION",
|
|
121
|
+
INVALID_FILTER = "INVALID_FILTER",
|
|
122
|
+
INVALID_SKU_COMBO = "INVALID_SKU_COMBO",
|
|
119
123
|
INVALID_TIME_RANGE = "INVALID_TIME_RANGE",
|
|
120
124
|
MISMATCHED_BILLINGGROUP_ARN = "MISMATCHED_BILLINGGROUP_ARN",
|
|
121
125
|
MISMATCHED_BILLINGVIEW_ARN = "MISMATCHED_BILLINGVIEW_ARN",
|
|
@@ -199,9 +203,14 @@ export interface DisassociateAccountsInput {
|
|
|
199
203
|
export interface DisassociateAccountsOutput {
|
|
200
204
|
Arn?: string;
|
|
201
205
|
}
|
|
206
|
+
export declare enum BillingGroupStatus {
|
|
207
|
+
ACTIVE = "ACTIVE",
|
|
208
|
+
PRIMARY_ACCOUNT_MISSING = "PRIMARY_ACCOUNT_MISSING",
|
|
209
|
+
}
|
|
202
210
|
export interface ListBillingGroupsFilter {
|
|
203
211
|
Arns?: string[];
|
|
204
212
|
PricingPlan?: string;
|
|
213
|
+
Statuses?: (BillingGroupStatus | string)[];
|
|
205
214
|
}
|
|
206
215
|
export interface ListBillingGroupsInput {
|
|
207
216
|
BillingPeriod?: string;
|
|
@@ -209,10 +218,6 @@ export interface ListBillingGroupsInput {
|
|
|
209
218
|
NextToken?: string;
|
|
210
219
|
Filters?: ListBillingGroupsFilter;
|
|
211
220
|
}
|
|
212
|
-
export declare enum BillingGroupStatus {
|
|
213
|
-
ACTIVE = "ACTIVE",
|
|
214
|
-
PRIMARY_ACCOUNT_MISSING = "PRIMARY_ACCOUNT_MISSING",
|
|
215
|
-
}
|
|
216
221
|
export interface BillingGroupListElement {
|
|
217
222
|
Name?: string;
|
|
218
223
|
Arn?: string;
|
|
@@ -375,6 +380,8 @@ export interface CustomLineItemVersionListElement {
|
|
|
375
380
|
AssociationSize?: number;
|
|
376
381
|
StartBillingPeriod?: string;
|
|
377
382
|
EndBillingPeriod?: string;
|
|
383
|
+
Arn?: string;
|
|
384
|
+
StartTime?: number;
|
|
378
385
|
}
|
|
379
386
|
export interface ListCustomLineItemVersionsOutput {
|
|
380
387
|
CustomLineItemVersions?: CustomLineItemVersionListElement[];
|
|
@@ -433,6 +440,7 @@ export interface UpdateCustomLineItemOutput {
|
|
|
433
440
|
export interface ListAccountAssociationsFilter {
|
|
434
441
|
Association?: string;
|
|
435
442
|
AccountId?: string;
|
|
443
|
+
AccountIds?: string[];
|
|
436
444
|
}
|
|
437
445
|
export interface ListAccountAssociationsInput {
|
|
438
446
|
BillingPeriod?: string;
|
|
@@ -543,6 +551,7 @@ export declare enum PricingRuleScope {
|
|
|
543
551
|
BILLING_ENTITY = "BILLING_ENTITY",
|
|
544
552
|
GLOBAL = "GLOBAL",
|
|
545
553
|
SERVICE = "SERVICE",
|
|
554
|
+
SKU = "SKU",
|
|
546
555
|
}
|
|
547
556
|
export interface CreateFreeTierConfig {
|
|
548
557
|
Activated: boolean | undefined;
|
|
@@ -606,6 +615,8 @@ export interface PricingRuleListElement {
|
|
|
606
615
|
LastModifiedTime?: number;
|
|
607
616
|
BillingEntity?: string;
|
|
608
617
|
Tiering?: Tiering;
|
|
618
|
+
UsageType?: string;
|
|
619
|
+
Operation?: string;
|
|
609
620
|
}
|
|
610
621
|
export interface ListPricingRulesOutput {
|
|
611
622
|
BillingPeriod?: string;
|
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.294.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.294.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.292.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.294.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.292.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.292.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.292.0",
|