@aws-sdk/client-billingconductor 3.465.0 → 3.468.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/models/models_0.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +3 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/commands/CreateCustomLineItemCommand.d.ts +1 -0
- package/dist-types/commands/ListCustomLineItemVersionsCommand.d.ts +1 -0
- package/dist-types/commands/ListCustomLineItemsCommand.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +21 -0
- package/dist-types/ts3.4/models/models_0.d.ts +5 -0
- package/package.json +34 -34
|
@@ -115,6 +115,7 @@ exports.ValidationExceptionReason = {
|
|
|
115
115
|
DUPLICATE_PRICINGRULE_ARNS: "DUPLICATE_PRICINGRULE_ARNS",
|
|
116
116
|
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
117
117
|
ILLEGAL_ACCOUNTS: "ILLEGAL_ACCOUNTS",
|
|
118
|
+
ILLEGAL_ACCOUNT_ID: "ILLEGAL_ACCOUNT_ID",
|
|
118
119
|
ILLEGAL_BILLING_ENTITY: "ILLEGAL_BILLING_ENTITY",
|
|
119
120
|
ILLEGAL_BILLING_PERIOD: "ILLEGAL_BILLING_PERIOD",
|
|
120
121
|
ILLEGAL_BILLING_PERIOD_RANGE: "ILLEGAL_BILLING_PERIOD_RANGE",
|
|
@@ -134,6 +134,7 @@ const se_CreateCustomLineItemCommand = async (input, context) => {
|
|
|
134
134
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-custom-line-item";
|
|
135
135
|
let body;
|
|
136
136
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
137
|
+
AccountId: [],
|
|
137
138
|
BillingGroupArn: [],
|
|
138
139
|
BillingPeriodRange: (_) => (0, smithy_client_1._json)(_),
|
|
139
140
|
ChargeDetails: (_) => se_CustomLineItemChargeDetails(_, context),
|
|
@@ -2410,6 +2411,7 @@ const de_CustomLineItemList = (output, context) => {
|
|
|
2410
2411
|
};
|
|
2411
2412
|
const de_CustomLineItemListElement = (output, context) => {
|
|
2412
2413
|
return (0, smithy_client_1.take)(output, {
|
|
2414
|
+
AccountId: smithy_client_1.expectString,
|
|
2413
2415
|
Arn: smithy_client_1.expectString,
|
|
2414
2416
|
AssociationSize: smithy_client_1.expectLong,
|
|
2415
2417
|
BillingGroupArn: smithy_client_1.expectString,
|
|
@@ -2432,6 +2434,7 @@ const de_CustomLineItemVersionList = (output, context) => {
|
|
|
2432
2434
|
};
|
|
2433
2435
|
const de_CustomLineItemVersionListElement = (output, context) => {
|
|
2434
2436
|
return (0, smithy_client_1.take)(output, {
|
|
2437
|
+
AccountId: smithy_client_1.expectString,
|
|
2435
2438
|
Arn: smithy_client_1.expectString,
|
|
2436
2439
|
AssociationSize: smithy_client_1.expectLong,
|
|
2437
2440
|
BillingGroupArn: smithy_client_1.expectString,
|
|
@@ -106,6 +106,7 @@ export const ValidationExceptionReason = {
|
|
|
106
106
|
DUPLICATE_PRICINGRULE_ARNS: "DUPLICATE_PRICINGRULE_ARNS",
|
|
107
107
|
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
108
108
|
ILLEGAL_ACCOUNTS: "ILLEGAL_ACCOUNTS",
|
|
109
|
+
ILLEGAL_ACCOUNT_ID: "ILLEGAL_ACCOUNT_ID",
|
|
109
110
|
ILLEGAL_BILLING_ENTITY: "ILLEGAL_BILLING_ENTITY",
|
|
110
111
|
ILLEGAL_BILLING_PERIOD: "ILLEGAL_BILLING_PERIOD",
|
|
111
112
|
ILLEGAL_BILLING_PERIOD_RANGE: "ILLEGAL_BILLING_PERIOD_RANGE",
|
|
@@ -125,6 +125,7 @@ export const se_CreateCustomLineItemCommand = async (input, context) => {
|
|
|
125
125
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-custom-line-item";
|
|
126
126
|
let body;
|
|
127
127
|
body = JSON.stringify(take(input, {
|
|
128
|
+
AccountId: [],
|
|
128
129
|
BillingGroupArn: [],
|
|
129
130
|
BillingPeriodRange: (_) => _json(_),
|
|
130
131
|
ChargeDetails: (_) => se_CustomLineItemChargeDetails(_, context),
|
|
@@ -2344,6 +2345,7 @@ const de_CustomLineItemList = (output, context) => {
|
|
|
2344
2345
|
};
|
|
2345
2346
|
const de_CustomLineItemListElement = (output, context) => {
|
|
2346
2347
|
return take(output, {
|
|
2348
|
+
AccountId: __expectString,
|
|
2347
2349
|
Arn: __expectString,
|
|
2348
2350
|
AssociationSize: __expectLong,
|
|
2349
2351
|
BillingGroupArn: __expectString,
|
|
@@ -2366,6 +2368,7 @@ const de_CustomLineItemVersionList = (output, context) => {
|
|
|
2366
2368
|
};
|
|
2367
2369
|
const de_CustomLineItemVersionListElement = (output, context) => {
|
|
2368
2370
|
return take(output, {
|
|
2371
|
+
AccountId: __expectString,
|
|
2369
2372
|
Arn: __expectString,
|
|
2370
2373
|
AssociationSize: __expectLong,
|
|
2371
2374
|
BillingGroupArn: __expectString,
|
|
@@ -76,6 +76,7 @@ export interface ListCustomLineItemVersionsCommandOutput extends ListCustomLineI
|
|
|
76
76
|
* // EndBillingPeriod: "STRING_VALUE",
|
|
77
77
|
* // Arn: "STRING_VALUE",
|
|
78
78
|
* // StartTime: Number("long"),
|
|
79
|
+
* // AccountId: "STRING_VALUE",
|
|
79
80
|
* // },
|
|
80
81
|
* // ],
|
|
81
82
|
* // NextToken: "STRING_VALUE",
|
|
@@ -46,6 +46,9 @@ export interface ListCustomLineItemsCommandOutput extends ListCustomLineItemsOut
|
|
|
46
46
|
* Arns: [ // CustomLineItemArns
|
|
47
47
|
* "STRING_VALUE",
|
|
48
48
|
* ],
|
|
49
|
+
* AccountIds: [ // AccountIdList
|
|
50
|
+
* "STRING_VALUE",
|
|
51
|
+
* ],
|
|
49
52
|
* },
|
|
50
53
|
* };
|
|
51
54
|
* const command = new ListCustomLineItemsCommand(input);
|
|
@@ -80,6 +83,7 @@ export interface ListCustomLineItemsCommandOutput extends ListCustomLineItemsOut
|
|
|
80
83
|
* // CreationTime: Number("long"),
|
|
81
84
|
* // LastModifiedTime: Number("long"),
|
|
82
85
|
* // AssociationSize: Number("long"),
|
|
86
|
+
* // AccountId: "STRING_VALUE",
|
|
83
87
|
* // },
|
|
84
88
|
* // ],
|
|
85
89
|
* // NextToken: "STRING_VALUE",
|
|
@@ -267,6 +267,7 @@ export declare const ValidationExceptionReason: {
|
|
|
267
267
|
readonly DUPLICATE_PRICINGRULE_ARNS: "DUPLICATE_PRICINGRULE_ARNS";
|
|
268
268
|
readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
|
|
269
269
|
readonly ILLEGAL_ACCOUNTS: "ILLEGAL_ACCOUNTS";
|
|
270
|
+
readonly ILLEGAL_ACCOUNT_ID: "ILLEGAL_ACCOUNT_ID";
|
|
270
271
|
readonly ILLEGAL_BILLING_ENTITY: "ILLEGAL_BILLING_ENTITY";
|
|
271
272
|
readonly ILLEGAL_BILLING_PERIOD: "ILLEGAL_BILLING_PERIOD";
|
|
272
273
|
readonly ILLEGAL_BILLING_PERIOD_RANGE: "ILLEGAL_BILLING_PERIOD_RANGE";
|
|
@@ -1121,6 +1122,11 @@ export interface CreateCustomLineItemInput {
|
|
|
1121
1122
|
* </p>
|
|
1122
1123
|
*/
|
|
1123
1124
|
ChargeDetails: CustomLineItemChargeDetails | undefined;
|
|
1125
|
+
/**
|
|
1126
|
+
* @public
|
|
1127
|
+
* <p>The Amazon Web Services account in which this custom line item will be applied to.</p>
|
|
1128
|
+
*/
|
|
1129
|
+
AccountId?: string;
|
|
1124
1130
|
}
|
|
1125
1131
|
/**
|
|
1126
1132
|
* @public
|
|
@@ -1181,6 +1187,11 @@ export interface ListCustomLineItemsFilter {
|
|
|
1181
1187
|
* <p>A list of custom line item ARNs to retrieve information.</p>
|
|
1182
1188
|
*/
|
|
1183
1189
|
Arns?: string[];
|
|
1190
|
+
/**
|
|
1191
|
+
* @public
|
|
1192
|
+
* <p>The Amazon Web Services accounts in which this custom line item will be applied to.</p>
|
|
1193
|
+
*/
|
|
1194
|
+
AccountIds?: string[];
|
|
1184
1195
|
}
|
|
1185
1196
|
/**
|
|
1186
1197
|
* @public
|
|
@@ -1345,6 +1356,11 @@ export interface CustomLineItemListElement {
|
|
|
1345
1356
|
* <p>The number of resources that are associated to the custom line item.</p>
|
|
1346
1357
|
*/
|
|
1347
1358
|
AssociationSize?: number;
|
|
1359
|
+
/**
|
|
1360
|
+
* @public
|
|
1361
|
+
* <p>The Amazon Web Services account in which this custom line item will be applied to.</p>
|
|
1362
|
+
*/
|
|
1363
|
+
AccountId?: string;
|
|
1348
1364
|
}
|
|
1349
1365
|
/**
|
|
1350
1366
|
* @public
|
|
@@ -1493,6 +1509,11 @@ export interface CustomLineItemVersionListElement {
|
|
|
1493
1509
|
* </p>
|
|
1494
1510
|
*/
|
|
1495
1511
|
StartTime?: number;
|
|
1512
|
+
/**
|
|
1513
|
+
* @public
|
|
1514
|
+
* <p>The Amazon Web Services account in which this custom line item will be applied to.</p>
|
|
1515
|
+
*/
|
|
1516
|
+
AccountId?: string;
|
|
1496
1517
|
}
|
|
1497
1518
|
/**
|
|
1498
1519
|
* @public
|
|
@@ -97,6 +97,7 @@ export declare const ValidationExceptionReason: {
|
|
|
97
97
|
readonly DUPLICATE_PRICINGRULE_ARNS: "DUPLICATE_PRICINGRULE_ARNS";
|
|
98
98
|
readonly FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED";
|
|
99
99
|
readonly ILLEGAL_ACCOUNTS: "ILLEGAL_ACCOUNTS";
|
|
100
|
+
readonly ILLEGAL_ACCOUNT_ID: "ILLEGAL_ACCOUNT_ID";
|
|
100
101
|
readonly ILLEGAL_BILLING_ENTITY: "ILLEGAL_BILLING_ENTITY";
|
|
101
102
|
readonly ILLEGAL_BILLING_PERIOD: "ILLEGAL_BILLING_PERIOD";
|
|
102
103
|
readonly ILLEGAL_BILLING_PERIOD_RANGE: "ILLEGAL_BILLING_PERIOD_RANGE";
|
|
@@ -345,6 +346,7 @@ export interface CreateCustomLineItemInput {
|
|
|
345
346
|
BillingPeriodRange?: CustomLineItemBillingPeriodRange;
|
|
346
347
|
Tags?: Record<string, string>;
|
|
347
348
|
ChargeDetails: CustomLineItemChargeDetails | undefined;
|
|
349
|
+
AccountId?: string;
|
|
348
350
|
}
|
|
349
351
|
export interface CreateCustomLineItemOutput {
|
|
350
352
|
Arn?: string;
|
|
@@ -360,6 +362,7 @@ export interface ListCustomLineItemsFilter {
|
|
|
360
362
|
Names?: string[];
|
|
361
363
|
BillingGroups?: string[];
|
|
362
364
|
Arns?: string[];
|
|
365
|
+
AccountIds?: string[];
|
|
363
366
|
}
|
|
364
367
|
export interface ListCustomLineItemsInput {
|
|
365
368
|
BillingPeriod?: string;
|
|
@@ -395,6 +398,7 @@ export interface CustomLineItemListElement {
|
|
|
395
398
|
CreationTime?: number;
|
|
396
399
|
LastModifiedTime?: number;
|
|
397
400
|
AssociationSize?: number;
|
|
401
|
+
AccountId?: string;
|
|
398
402
|
}
|
|
399
403
|
export interface ListCustomLineItemsOutput {
|
|
400
404
|
CustomLineItems?: CustomLineItemListElement[];
|
|
@@ -427,6 +431,7 @@ export interface CustomLineItemVersionListElement {
|
|
|
427
431
|
EndBillingPeriod?: string;
|
|
428
432
|
Arn?: string;
|
|
429
433
|
StartTime?: number;
|
|
434
|
+
AccountId?: string;
|
|
430
435
|
}
|
|
431
436
|
export interface ListCustomLineItemVersionsOutput {
|
|
432
437
|
CustomLineItemVersions?: CustomLineItemVersionListElement[];
|
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.468.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,41 +20,41 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0.
|
|
37
|
-
"@smithy/fetch-http-handler": "^2.
|
|
38
|
-
"@smithy/hash-node": "^2.0.
|
|
39
|
-
"@smithy/invalid-dependency": "^2.0.
|
|
40
|
-
"@smithy/middleware-content-length": "^2.0.
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.2.
|
|
42
|
-
"@smithy/middleware-retry": "^2.0.
|
|
43
|
-
"@smithy/middleware-serde": "^2.0.
|
|
44
|
-
"@smithy/middleware-stack": "^2.0.
|
|
45
|
-
"@smithy/node-config-provider": "^2.1.
|
|
46
|
-
"@smithy/node-http-handler": "^2.1
|
|
47
|
-
"@smithy/protocol-http": "^3.0.
|
|
48
|
-
"@smithy/smithy-client": "^2.1.
|
|
49
|
-
"@smithy/types": "^2.
|
|
50
|
-
"@smithy/url-parser": "^2.0.
|
|
23
|
+
"@aws-sdk/client-sts": "3.468.0",
|
|
24
|
+
"@aws-sdk/core": "3.468.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.468.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.468.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.468.0",
|
|
32
|
+
"@aws-sdk/types": "3.468.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.468.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.468.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.0.20",
|
|
37
|
+
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
|
+
"@smithy/hash-node": "^2.0.17",
|
|
39
|
+
"@smithy/invalid-dependency": "^2.0.15",
|
|
40
|
+
"@smithy/middleware-content-length": "^2.0.17",
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.2.2",
|
|
42
|
+
"@smithy/middleware-retry": "^2.0.23",
|
|
43
|
+
"@smithy/middleware-serde": "^2.0.15",
|
|
44
|
+
"@smithy/middleware-stack": "^2.0.9",
|
|
45
|
+
"@smithy/node-config-provider": "^2.1.7",
|
|
46
|
+
"@smithy/node-http-handler": "^2.2.1",
|
|
47
|
+
"@smithy/protocol-http": "^3.0.11",
|
|
48
|
+
"@smithy/smithy-client": "^2.1.18",
|
|
49
|
+
"@smithy/types": "^2.7.0",
|
|
50
|
+
"@smithy/url-parser": "^2.0.15",
|
|
51
51
|
"@smithy/util-base64": "^2.0.1",
|
|
52
|
-
"@smithy/util-body-length-browser": "^2.0.
|
|
52
|
+
"@smithy/util-body-length-browser": "^2.0.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.1.0",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.0.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
56
|
-
"@smithy/util-endpoints": "^1.0.
|
|
57
|
-
"@smithy/util-retry": "^2.0.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.0.22",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.0.28",
|
|
56
|
+
"@smithy/util-endpoints": "^1.0.6",
|
|
57
|
+
"@smithy/util-retry": "^2.0.8",
|
|
58
58
|
"@smithy/util-utf8": "^2.0.2",
|
|
59
59
|
"tslib": "^2.5.0",
|
|
60
60
|
"uuid": "^8.3.2"
|