@aws-sdk/client-billing 3.1079.0 → 3.1081.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/README.md +35 -0
- package/dist-cjs/index.js +289 -20
- package/dist-es/Billing.js +12 -0
- package/dist-es/commands/GetBillingPreferencesCommand.js +4 -0
- package/dist-es/commands/GetCreditAllocationHistoryCommand.js +4 -0
- package/dist-es/commands/GetCreditsCommand.js +4 -0
- package/dist-es/commands/RedeemCreditsCommand.js +4 -0
- package/dist-es/commands/UpdateBillingPreferencesCommand.js +4 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/enums.js +30 -0
- package/dist-es/pagination/GetCreditAllocationHistoryPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +207 -19
- package/dist-types/Billing.d.ts +42 -0
- package/dist-types/BillingClient.d.ts +7 -2
- package/dist-types/commands/GetBillingPreferencesCommand.d.ts +108 -0
- package/dist-types/commands/GetCreditAllocationHistoryCommand.d.ts +106 -0
- package/dist-types/commands/GetCreditsCommand.d.ts +124 -0
- package/dist-types/commands/RedeemCreditsCommand.d.ts +81 -0
- package/dist-types/commands/UpdateBillingPreferencesCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/enums.d.ts +78 -0
- package/dist-types/models/models_0.d.ts +418 -1
- package/dist-types/pagination/GetCreditAllocationHistoryPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +22 -0
- package/dist-types/ts3.4/Billing.d.ts +92 -0
- package/dist-types/ts3.4/BillingClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/GetBillingPreferencesCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/GetCreditAllocationHistoryCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/GetCreditsCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/RedeemCreditsCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/UpdateBillingPreferencesCommand.d.ts +44 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/enums.d.ts +41 -0
- package/dist-types/ts3.4/models/models_0.d.ts +103 -0
- package/dist-types/ts3.4/pagination/GetCreditAllocationHistoryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +22 -0
- package/package.json +3 -3
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const ApplicationType: {
|
|
6
|
+
readonly AFTER_DISCOUNTS: "AFTER_DISCOUNTS";
|
|
7
|
+
readonly BEFORE_CROSS_SERVICE_DISCOUNTS: "BEFORE_CROSS_SERVICE_DISCOUNTS";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type ApplicationType = (typeof ApplicationType)[keyof typeof ApplicationType];
|
|
1
13
|
/**
|
|
2
14
|
* @public
|
|
3
15
|
* @enum
|
|
@@ -23,6 +35,46 @@ export declare const Dimension: {
|
|
|
23
35
|
* @public
|
|
24
36
|
*/
|
|
25
37
|
export type Dimension = (typeof Dimension)[keyof typeof Dimension];
|
|
38
|
+
/**
|
|
39
|
+
* @public
|
|
40
|
+
* @enum
|
|
41
|
+
*/
|
|
42
|
+
export declare const BillingFeature: {
|
|
43
|
+
readonly BILLING_ALERTS: "BILLING_ALERTS";
|
|
44
|
+
readonly CREDIT_LEVEL_SHARING: "CREDIT_LEVEL_SHARING";
|
|
45
|
+
readonly CREDIT_PREFERENCE_OPTIONS: "CREDIT_PREFERENCE_OPTIONS";
|
|
46
|
+
readonly CREDIT_SHARING: "CREDIT_SHARING";
|
|
47
|
+
readonly CREDIT_SHARING_HISTORY: "CREDIT_SHARING_HISTORY";
|
|
48
|
+
readonly RI_SHARING: "RI_SHARING";
|
|
49
|
+
readonly RI_SHARING_HISTORY: "RI_SHARING_HISTORY";
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
export type BillingFeature = (typeof BillingFeature)[keyof typeof BillingFeature];
|
|
55
|
+
/**
|
|
56
|
+
* @public
|
|
57
|
+
* @enum
|
|
58
|
+
*/
|
|
59
|
+
export declare const BillingFeatureFilterName: {
|
|
60
|
+
readonly PREFERENCE_KEY: "PREFERENCE_KEY";
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export type BillingFeatureFilterName = (typeof BillingFeatureFilterName)[keyof typeof BillingFeatureFilterName];
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
* @enum
|
|
69
|
+
*/
|
|
70
|
+
export declare const PreferenceValue: {
|
|
71
|
+
readonly DISABLED: "DISABLED";
|
|
72
|
+
readonly ENABLED: "ENABLED";
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
export type PreferenceValue = (typeof PreferenceValue)[keyof typeof PreferenceValue];
|
|
26
78
|
/**
|
|
27
79
|
* @public
|
|
28
80
|
* @enum
|
|
@@ -70,6 +122,32 @@ export declare const BillingViewStatusReason: {
|
|
|
70
122
|
* @public
|
|
71
123
|
*/
|
|
72
124
|
export type BillingViewStatusReason = (typeof BillingViewStatusReason)[keyof typeof BillingViewStatusReason];
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
* @enum
|
|
128
|
+
*/
|
|
129
|
+
export declare const CreditSharingType: {
|
|
130
|
+
readonly COST_CATEGORY_RULE: "COST_CATEGORY_RULE";
|
|
131
|
+
readonly CUSTOM: "CUSTOM";
|
|
132
|
+
readonly DEFAULT: "DEFAULT";
|
|
133
|
+
readonly DISABLED: "DISABLED";
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
export type CreditSharingType = (typeof CreditSharingType)[keyof typeof CreditSharingType];
|
|
139
|
+
/**
|
|
140
|
+
* @public
|
|
141
|
+
* @enum
|
|
142
|
+
*/
|
|
143
|
+
export declare const CreditStatus: {
|
|
144
|
+
readonly DISABLED: "DISABLED";
|
|
145
|
+
readonly ENABLED: "ENABLED";
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
export type CreditStatus = (typeof CreditStatus)[keyof typeof CreditStatus];
|
|
73
151
|
/**
|
|
74
152
|
* @public
|
|
75
153
|
* @enum
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BillingViewStatus, BillingViewStatusReason, BillingViewType, Dimension, SearchOption } from "./enums";
|
|
1
|
+
import type { ApplicationType, BillingFeature, BillingFeatureFilterName, BillingViewStatus, BillingViewStatusReason, BillingViewType, CreditSharingType, CreditStatus, Dimension, PreferenceValue, SearchOption } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* <p>A time range with a start and end time.</p>
|
|
4
4
|
* @public
|
|
@@ -15,6 +15,22 @@ export interface ActiveTimeRange {
|
|
|
15
15
|
*/
|
|
16
16
|
activeBeforeInclusive: Date | undefined;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* <p>A monetary amount with a currency code. Used throughout the Billing API to represent credit balances, allocations, and adjustments.</p>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface Amount {
|
|
23
|
+
/**
|
|
24
|
+
* <p>The ISO 4217 currency code for the amount (for example, <code>USD</code>).</p>
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
currencyCode: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* <p>The amount as a decimal string (for example, <code>"743.21"</code>). Negative values represent credits that reduce a bill.</p>
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
currencyAmount: string | undefined;
|
|
33
|
+
}
|
|
18
34
|
/**
|
|
19
35
|
* @public
|
|
20
36
|
*/
|
|
@@ -262,6 +278,114 @@ export interface DisassociateSourceViewsResponse {
|
|
|
262
278
|
*/
|
|
263
279
|
arn: string | undefined;
|
|
264
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* <p>A filter that narrows the set of preferences returned by <code>GetBillingPreferences</code>.</p>
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
285
|
+
export interface BillingFeatureFilter {
|
|
286
|
+
/**
|
|
287
|
+
* <p>The filter name. Currently the only supported value is <code>PREFERENCE_KEY</code>.</p>
|
|
288
|
+
* @public
|
|
289
|
+
*/
|
|
290
|
+
name?: BillingFeatureFilterName | undefined;
|
|
291
|
+
/**
|
|
292
|
+
* <p>The filter values to match. For <code>PREFERENCE_KEY</code>, supply 1 to 10 preference key values to match.</p>
|
|
293
|
+
* @public
|
|
294
|
+
*/
|
|
295
|
+
value?: string[] | undefined;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* @public
|
|
299
|
+
*/
|
|
300
|
+
export interface GetBillingPreferencesRequest {
|
|
301
|
+
/**
|
|
302
|
+
* <p>Pagination token from a previous response. Pass the value returned in <code>nextToken</code> to retrieve the next page of results.</p>
|
|
303
|
+
* @public
|
|
304
|
+
*/
|
|
305
|
+
nextToken?: string | undefined;
|
|
306
|
+
/**
|
|
307
|
+
* <p>The maximum number of records to return per page. Range: 1 to 50. Default: 50.</p>
|
|
308
|
+
* @public
|
|
309
|
+
*/
|
|
310
|
+
maxResults?: number | undefined;
|
|
311
|
+
/**
|
|
312
|
+
* <p>The feature to retrieve. Specify exactly one value. Valid values: <code>BILLING_ALERTS</code>, <code>RI_SHARING</code>, <code>RI_SHARING_HISTORY</code>, <code>CREDIT_SHARING</code>, <code>CREDIT_SHARING_HISTORY</code>, <code>CREDIT_LEVEL_SHARING</code>, <code>CREDIT_PREFERENCE_OPTIONS</code>.</p>
|
|
313
|
+
* @public
|
|
314
|
+
*/
|
|
315
|
+
features: BillingFeature[] | undefined;
|
|
316
|
+
/**
|
|
317
|
+
* <p>Filters to narrow results. Specify exactly one filter when supplied. The supported filter name is <code>PREFERENCE_KEY</code>, which accepts 1 to 10 values to match preference keys.</p>
|
|
318
|
+
* @public
|
|
319
|
+
*/
|
|
320
|
+
filters?: BillingFeatureFilter[] | undefined;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* <p>A specific billing period identified by year and month.</p>
|
|
324
|
+
* @public
|
|
325
|
+
*/
|
|
326
|
+
export interface BillingPeriod {
|
|
327
|
+
/**
|
|
328
|
+
* <p>The four-digit year of the billing period.</p>
|
|
329
|
+
* @public
|
|
330
|
+
*/
|
|
331
|
+
year: number | undefined;
|
|
332
|
+
/**
|
|
333
|
+
* <p>The month of the billing period as an integer between 1 and 12.</p>
|
|
334
|
+
* @public
|
|
335
|
+
*/
|
|
336
|
+
month: number | undefined;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* <p>A single billing preference entry returned by <code>GetBillingPreferences</code>.</p>
|
|
340
|
+
* @public
|
|
341
|
+
*/
|
|
342
|
+
export interface BillingPreferenceSummary {
|
|
343
|
+
/**
|
|
344
|
+
* <p>The feature this preference belongs to.</p>
|
|
345
|
+
* @public
|
|
346
|
+
*/
|
|
347
|
+
feature: BillingFeature | undefined;
|
|
348
|
+
/**
|
|
349
|
+
* <p>The preference key. Format depends on the feature.</p>
|
|
350
|
+
* @public
|
|
351
|
+
*/
|
|
352
|
+
key: string | undefined;
|
|
353
|
+
/**
|
|
354
|
+
* <p>The preference value. Valid values: <code>ENABLED</code> or <code>DISABLED</code>.</p>
|
|
355
|
+
* @public
|
|
356
|
+
*/
|
|
357
|
+
value: PreferenceValue | undefined;
|
|
358
|
+
/**
|
|
359
|
+
* <p>The display name of the account. Populated together with <code>accountId</code>; <code>null</code> otherwise.</p>
|
|
360
|
+
* @public
|
|
361
|
+
*/
|
|
362
|
+
accountName?: string | undefined;
|
|
363
|
+
/**
|
|
364
|
+
* <p>The associated Amazon Web Services account ID. Populated for account-list keys; <code>null</code> otherwise.</p>
|
|
365
|
+
* @public
|
|
366
|
+
*/
|
|
367
|
+
accountId?: string | undefined;
|
|
368
|
+
/**
|
|
369
|
+
* <p>The billing period associated with the preference change. Populated only for the history features <code>RI_SHARING_HISTORY</code> and <code>CREDIT_SHARING_HISTORY</code>.</p>
|
|
370
|
+
* @public
|
|
371
|
+
*/
|
|
372
|
+
billingPeriod?: BillingPeriod | undefined;
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* @public
|
|
376
|
+
*/
|
|
377
|
+
export interface GetBillingPreferencesResponse {
|
|
378
|
+
/**
|
|
379
|
+
* <p>The list of preference entries matching the request.</p>
|
|
380
|
+
* @public
|
|
381
|
+
*/
|
|
382
|
+
billingPreferences: BillingPreferenceSummary[] | undefined;
|
|
383
|
+
/**
|
|
384
|
+
* <p>Pagination token. Present when more pages are available; <code>null</code> when there are no more results.</p>
|
|
385
|
+
* @public
|
|
386
|
+
*/
|
|
387
|
+
nextToken?: string | undefined;
|
|
388
|
+
}
|
|
265
389
|
/**
|
|
266
390
|
* @public
|
|
267
391
|
*/
|
|
@@ -369,6 +493,248 @@ export interface GetBillingViewResponse {
|
|
|
369
493
|
*/
|
|
370
494
|
billingView: BillingViewElement | undefined;
|
|
371
495
|
}
|
|
496
|
+
/**
|
|
497
|
+
* @public
|
|
498
|
+
*/
|
|
499
|
+
export interface GetCreditAllocationHistoryRequest {
|
|
500
|
+
/**
|
|
501
|
+
* <p>The Amazon Web Services account ID whose allocation history to retrieve. Must be a 12-digit numeric string.</p>
|
|
502
|
+
* @public
|
|
503
|
+
*/
|
|
504
|
+
accountId: string | undefined;
|
|
505
|
+
/**
|
|
506
|
+
* <p>Filters the result to a single credit. When omitted, returns allocation entries for all credits.</p>
|
|
507
|
+
* @public
|
|
508
|
+
*/
|
|
509
|
+
creditId?: number | undefined;
|
|
510
|
+
/**
|
|
511
|
+
* <p>Inclusive start date as Unix epoch seconds. Must be on or before <code>endDate</code>. The range from <code>startDate</code> to <code>endDate</code> cannot exceed 24 billing months.</p>
|
|
512
|
+
* @public
|
|
513
|
+
*/
|
|
514
|
+
startDate: Date | undefined;
|
|
515
|
+
/**
|
|
516
|
+
* <p>Inclusive end date as Unix epoch seconds.</p>
|
|
517
|
+
* @public
|
|
518
|
+
*/
|
|
519
|
+
endDate: Date | undefined;
|
|
520
|
+
/**
|
|
521
|
+
* <p>Pagination token from a previous response. Pass the value returned in <code>nextToken</code> to retrieve the next page of results.</p>
|
|
522
|
+
* @public
|
|
523
|
+
*/
|
|
524
|
+
nextToken?: string | undefined;
|
|
525
|
+
/**
|
|
526
|
+
* <p>The maximum number of records to return per page. Range: 1 to 1000. Default: 100.</p>
|
|
527
|
+
* @public
|
|
528
|
+
*/
|
|
529
|
+
maxResults?: number | undefined;
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* <p>A single entry in the credit allocation history, representing how a credit was applied to a specific service during a billing month.</p>
|
|
533
|
+
* @public
|
|
534
|
+
*/
|
|
535
|
+
export interface CreditAllocationHistoryEntry {
|
|
536
|
+
/**
|
|
537
|
+
* <p>The identifier of the credit that was applied.</p>
|
|
538
|
+
* @public
|
|
539
|
+
*/
|
|
540
|
+
creditId: string | undefined;
|
|
541
|
+
/**
|
|
542
|
+
* <p>The amount of credit applied. Negative values represent credits that reduced the bill.</p>
|
|
543
|
+
* @public
|
|
544
|
+
*/
|
|
545
|
+
creditAmount: Amount | undefined;
|
|
546
|
+
/**
|
|
547
|
+
* <p>A human-readable description of the credit allocation.</p>
|
|
548
|
+
* @public
|
|
549
|
+
*/
|
|
550
|
+
description?: string | undefined;
|
|
551
|
+
/**
|
|
552
|
+
* <p>The Amazon Web Services account the credit was applied to.</p>
|
|
553
|
+
* @public
|
|
554
|
+
*/
|
|
555
|
+
accountId: string | undefined;
|
|
556
|
+
/**
|
|
557
|
+
* <p>The Amazon Web Services service the credit was applied to.</p>
|
|
558
|
+
* @public
|
|
559
|
+
*/
|
|
560
|
+
appliedServiceName: string | undefined;
|
|
561
|
+
/**
|
|
562
|
+
* <p>The billing month of the application in <code>YYYY-MM</code> format.</p>
|
|
563
|
+
* @public
|
|
564
|
+
*/
|
|
565
|
+
billingMonth: string | undefined;
|
|
566
|
+
/**
|
|
567
|
+
* <p> <code>true</code> when the entry was applied to an in-flight bill that has not yet been finalized.</p>
|
|
568
|
+
* @public
|
|
569
|
+
*/
|
|
570
|
+
isEstimatedBill: boolean | undefined;
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* @public
|
|
574
|
+
*/
|
|
575
|
+
export interface GetCreditAllocationHistoryResponse {
|
|
576
|
+
/**
|
|
577
|
+
* <p>Allocation entries sorted by <code>billingMonth</code> in descending order.</p>
|
|
578
|
+
* @public
|
|
579
|
+
*/
|
|
580
|
+
creditAllocationHistoryList?: CreditAllocationHistoryEntry[] | undefined;
|
|
581
|
+
/**
|
|
582
|
+
* <p> <code>true</code> when data could not be retrieved for one or more billing months. The <code>failedMonths</code> field lists which months are missing.</p>
|
|
583
|
+
* @public
|
|
584
|
+
*/
|
|
585
|
+
partialResults: boolean | undefined;
|
|
586
|
+
/**
|
|
587
|
+
* <p>Billing months in <code>YYYY-MM</code> format that failed to return data. Non-empty only when <code>partialResults</code> is <code>true</code>.</p>
|
|
588
|
+
* @public
|
|
589
|
+
*/
|
|
590
|
+
failedMonths?: string[] | undefined;
|
|
591
|
+
/**
|
|
592
|
+
* <p>Pagination token. Present when more pages are available; <code>null</code> when there are no more results.</p>
|
|
593
|
+
* @public
|
|
594
|
+
*/
|
|
595
|
+
nextToken?: string | undefined;
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* @public
|
|
599
|
+
*/
|
|
600
|
+
export interface GetCreditsRequest {
|
|
601
|
+
/**
|
|
602
|
+
* <p>The Amazon Web Services account ID. Must be a 12-digit numeric string.</p>
|
|
603
|
+
* @public
|
|
604
|
+
*/
|
|
605
|
+
accountId: string | undefined;
|
|
606
|
+
/**
|
|
607
|
+
* <p>The start date for the credit period as Unix epoch seconds. Must be a past date that is not more than one year before the current date.</p>
|
|
608
|
+
* @public
|
|
609
|
+
*/
|
|
610
|
+
startDate: Date | undefined;
|
|
611
|
+
/**
|
|
612
|
+
* <p>The end date for the credit period as Unix epoch seconds. Must not be a future date and must be on or after <code>startDate</code>. Defaults to the current date when omitted.</p>
|
|
613
|
+
* @public
|
|
614
|
+
*/
|
|
615
|
+
endDate?: Date | undefined;
|
|
616
|
+
/**
|
|
617
|
+
* <p>When <code>true</code> and the caller is the management account, the response aggregates credits across the entire consolidated billing family. When <code>false</code> or omitted, returns only credits for the specified <code>accountId</code>.</p>
|
|
618
|
+
* @public
|
|
619
|
+
*/
|
|
620
|
+
payerAccountFlag?: boolean | undefined;
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* <p>Detailed information about an Amazon Web Services credit, including its identifier, type, monetary amounts, applicable products, sharing configuration, and current enabled status.</p>
|
|
624
|
+
* @public
|
|
625
|
+
*/
|
|
626
|
+
export interface CreditData {
|
|
627
|
+
/**
|
|
628
|
+
* <p>The unique identifier for the credit.</p>
|
|
629
|
+
* @public
|
|
630
|
+
*/
|
|
631
|
+
creditId: string | undefined;
|
|
632
|
+
/**
|
|
633
|
+
* <p>The Amazon Web Services account ID that owns the credit.</p>
|
|
634
|
+
* @public
|
|
635
|
+
*/
|
|
636
|
+
accountId: string | undefined;
|
|
637
|
+
/**
|
|
638
|
+
* <p>The type of credit. Examples: <code>Promotion</code>, <code>Refund</code>, <code>TrueUp</code>.</p>
|
|
639
|
+
* @public
|
|
640
|
+
*/
|
|
641
|
+
creditType: string | undefined;
|
|
642
|
+
/**
|
|
643
|
+
* <p>The initial amount of the credit when it was issued.</p>
|
|
644
|
+
* @public
|
|
645
|
+
*/
|
|
646
|
+
initialAmount: Amount | undefined;
|
|
647
|
+
/**
|
|
648
|
+
* <p>The unused balance of the credit.</p>
|
|
649
|
+
* @public
|
|
650
|
+
*/
|
|
651
|
+
remainingAmount: Amount | undefined;
|
|
652
|
+
/**
|
|
653
|
+
* <p>The estimated remaining balance, including in-flight (open) bills that have not yet been finalized.</p>
|
|
654
|
+
* @public
|
|
655
|
+
*/
|
|
656
|
+
estimatedAmount?: Amount | undefined;
|
|
657
|
+
/**
|
|
658
|
+
* <p>The names of Amazon Web Services services this credit applies to.</p>
|
|
659
|
+
* @public
|
|
660
|
+
*/
|
|
661
|
+
applicableProductNames?: string[] | undefined;
|
|
662
|
+
/**
|
|
663
|
+
* <p>A human-readable description of the credit.</p>
|
|
664
|
+
* @public
|
|
665
|
+
*/
|
|
666
|
+
description: string | undefined;
|
|
667
|
+
/**
|
|
668
|
+
* <p>The date the credit becomes valid, as Unix epoch seconds.</p>
|
|
669
|
+
* @public
|
|
670
|
+
*/
|
|
671
|
+
startDate: Date | undefined;
|
|
672
|
+
/**
|
|
673
|
+
* <p>The date the credit expires, as Unix epoch seconds.</p>
|
|
674
|
+
* @public
|
|
675
|
+
*/
|
|
676
|
+
endDate?: Date | undefined;
|
|
677
|
+
/**
|
|
678
|
+
* <p>The date the credit balance reached zero, as Unix epoch seconds.</p>
|
|
679
|
+
* @public
|
|
680
|
+
*/
|
|
681
|
+
exhaustDate?: Date | undefined;
|
|
682
|
+
/**
|
|
683
|
+
* <p>When the credit is applied during bill computation. Valid values: <code>BEFORE_CROSS_SERVICE_DISCOUNTS</code>, <code>AFTER_DISCOUNTS</code>.</p>
|
|
684
|
+
* @public
|
|
685
|
+
*/
|
|
686
|
+
applicationType?: ApplicationType | undefined;
|
|
687
|
+
/**
|
|
688
|
+
* <p>The Amazon Web Services account IDs entitled to apply this credit.</p>
|
|
689
|
+
* @public
|
|
690
|
+
*/
|
|
691
|
+
shareableAccounts?: string[] | undefined;
|
|
692
|
+
/**
|
|
693
|
+
* <p>Whether the owning account has account-level credit sharing turned on.</p>
|
|
694
|
+
* @public
|
|
695
|
+
*/
|
|
696
|
+
accountHasCreditSharingEnabled?: boolean | undefined;
|
|
697
|
+
/**
|
|
698
|
+
* <p>The display configuration for the credit in the Amazon Web Services Billing console.</p>
|
|
699
|
+
* @public
|
|
700
|
+
*/
|
|
701
|
+
creditConsoleVisibility?: string | undefined;
|
|
702
|
+
/**
|
|
703
|
+
* <p>The sharing configuration for the credit. Valid values: <code>DEFAULT</code>, <code>DISABLED</code>, <code>CUSTOM</code>, <code>COST_CATEGORY_RULE</code>.</p>
|
|
704
|
+
* @public
|
|
705
|
+
*/
|
|
706
|
+
creditSharingType?: CreditSharingType | undefined;
|
|
707
|
+
/**
|
|
708
|
+
* <p>The Amazon Resource Name (ARN) of the Cost Category controlling the credit's sharing scope. Present only when <code>creditSharingType</code> is <code>COST_CATEGORY_RULE</code>.</p>
|
|
709
|
+
* @public
|
|
710
|
+
*/
|
|
711
|
+
costCategoryArn?: string | undefined;
|
|
712
|
+
/**
|
|
713
|
+
* <p>The rule name within the Cost Category. Present only when <code>creditSharingType</code> is <code>COST_CATEGORY_RULE</code>.</p>
|
|
714
|
+
* @public
|
|
715
|
+
*/
|
|
716
|
+
ruleName?: string | undefined;
|
|
717
|
+
/**
|
|
718
|
+
* <p>Whether the credit participates in billing runs. Valid values: <code>ENABLED</code>, <code>DISABLED</code>.</p>
|
|
719
|
+
* @public
|
|
720
|
+
*/
|
|
721
|
+
creditStatus?: CreditStatus | undefined;
|
|
722
|
+
/**
|
|
723
|
+
* <p>Restricts which purchase types this credit applies to. When <code>null</code> or omitted, the credit applies to all purchase types.</p>
|
|
724
|
+
* @public
|
|
725
|
+
*/
|
|
726
|
+
purchaseTypeApplications?: string[] | undefined;
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* @public
|
|
730
|
+
*/
|
|
731
|
+
export interface GetCreditsResponse {
|
|
732
|
+
/**
|
|
733
|
+
* <p>The list of credits matching the request. Returns an empty list when no credits exist.</p>
|
|
734
|
+
* @public
|
|
735
|
+
*/
|
|
736
|
+
credits?: CreditData[] | undefined;
|
|
737
|
+
}
|
|
372
738
|
/**
|
|
373
739
|
* @public
|
|
374
740
|
*/
|
|
@@ -566,6 +932,21 @@ export interface ListTagsForResourceResponse {
|
|
|
566
932
|
*/
|
|
567
933
|
resourceTags?: ResourceTag[] | undefined;
|
|
568
934
|
}
|
|
935
|
+
/**
|
|
936
|
+
* @public
|
|
937
|
+
*/
|
|
938
|
+
export interface RedeemCreditsRequest {
|
|
939
|
+
/**
|
|
940
|
+
* <p>The promotional credit code to redeem.</p>
|
|
941
|
+
* @public
|
|
942
|
+
*/
|
|
943
|
+
promoCode: string | undefined;
|
|
944
|
+
}
|
|
945
|
+
/**
|
|
946
|
+
* @public
|
|
947
|
+
*/
|
|
948
|
+
export interface RedeemCreditsResponse {
|
|
949
|
+
}
|
|
569
950
|
/**
|
|
570
951
|
* @public
|
|
571
952
|
*/
|
|
@@ -606,6 +987,42 @@ export interface UntagResourceRequest {
|
|
|
606
987
|
*/
|
|
607
988
|
export interface UntagResourceResponse {
|
|
608
989
|
}
|
|
990
|
+
/**
|
|
991
|
+
* <p>A single key/value entry used to update a billing preference.</p>
|
|
992
|
+
* @public
|
|
993
|
+
*/
|
|
994
|
+
export interface BillingPreferenceForKey {
|
|
995
|
+
/**
|
|
996
|
+
* <p>The preference key. Format depends on the feature being updated.</p>
|
|
997
|
+
* @public
|
|
998
|
+
*/
|
|
999
|
+
key: string | undefined;
|
|
1000
|
+
/**
|
|
1001
|
+
* <p>The preference value. Valid values: <code>ENABLED</code> or <code>DISABLED</code>.</p>
|
|
1002
|
+
* @public
|
|
1003
|
+
*/
|
|
1004
|
+
value: PreferenceValue | undefined;
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* @public
|
|
1008
|
+
*/
|
|
1009
|
+
export interface UpdateBillingPreferencesRequest {
|
|
1010
|
+
/**
|
|
1011
|
+
* <p>The feature to update. Valid values: <code>BILLING_ALERTS</code>, <code>RI_SHARING</code>, <code>CREDIT_SHARING</code>, <code>CREDIT_LEVEL_SHARING</code>, <code>CREDIT_PREFERENCE_OPTIONS</code>. The history features (<code>RI_SHARING_HISTORY</code> and <code>CREDIT_SHARING_HISTORY</code>) are read-only and cannot be updated.</p>
|
|
1012
|
+
* @public
|
|
1013
|
+
*/
|
|
1014
|
+
feature: BillingFeature | undefined;
|
|
1015
|
+
/**
|
|
1016
|
+
* <p>Key/value pairs to apply. All keys in a single request must be valid for the specified <code>feature</code> and must not be duplicated. For <code>CREDIT_PREFERENCE_OPTIONS</code>, all keys must reference the same <code>creditId</code>.</p>
|
|
1017
|
+
* @public
|
|
1018
|
+
*/
|
|
1019
|
+
billingPreferencesPerKey: BillingPreferenceForKey[] | undefined;
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* @public
|
|
1023
|
+
*/
|
|
1024
|
+
export interface UpdateBillingPreferencesResponse {
|
|
1025
|
+
}
|
|
609
1026
|
/**
|
|
610
1027
|
* @public
|
|
611
1028
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Paginator } from "@smithy/types";
|
|
2
|
+
import { GetCreditAllocationHistoryCommandInput, GetCreditAllocationHistoryCommandOutput } from "../commands/GetCreditAllocationHistoryCommand";
|
|
3
|
+
import type { BillingPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateGetCreditAllocationHistory: (config: BillingPaginationConfiguration, input: GetCreditAllocationHistoryCommandInput, ...rest: any[]) => Paginator<GetCreditAllocationHistoryCommandOutput>;
|
|
@@ -16,22 +16,35 @@ export declare var ValidationException$: StaticErrorSchema;
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const errorTypeRegistries: TypeRegistry[];
|
|
18
18
|
export declare var ActiveTimeRange$: StaticStructureSchema;
|
|
19
|
+
export declare var Amount$: StaticStructureSchema;
|
|
19
20
|
export declare var AssociateSourceViewsRequest$: StaticStructureSchema;
|
|
20
21
|
export declare var AssociateSourceViewsResponse$: StaticStructureSchema;
|
|
22
|
+
export declare var BillingFeatureFilter$: StaticStructureSchema;
|
|
23
|
+
export declare var BillingPeriod$: StaticStructureSchema;
|
|
24
|
+
export declare var BillingPreferenceForKey$: StaticStructureSchema;
|
|
25
|
+
export declare var BillingPreferenceSummary$: StaticStructureSchema;
|
|
21
26
|
export declare var BillingViewElement$: StaticStructureSchema;
|
|
22
27
|
export declare var BillingViewHealthStatus$: StaticStructureSchema;
|
|
23
28
|
export declare var BillingViewListElement$: StaticStructureSchema;
|
|
24
29
|
export declare var CostCategoryValues$: StaticStructureSchema;
|
|
25
30
|
export declare var CreateBillingViewRequest$: StaticStructureSchema;
|
|
26
31
|
export declare var CreateBillingViewResponse$: StaticStructureSchema;
|
|
32
|
+
export declare var CreditAllocationHistoryEntry$: StaticStructureSchema;
|
|
33
|
+
export declare var CreditData$: StaticStructureSchema;
|
|
27
34
|
export declare var DeleteBillingViewRequest$: StaticStructureSchema;
|
|
28
35
|
export declare var DeleteBillingViewResponse$: StaticStructureSchema;
|
|
29
36
|
export declare var DimensionValues$: StaticStructureSchema;
|
|
30
37
|
export declare var DisassociateSourceViewsRequest$: StaticStructureSchema;
|
|
31
38
|
export declare var DisassociateSourceViewsResponse$: StaticStructureSchema;
|
|
32
39
|
export declare var Expression$: StaticStructureSchema;
|
|
40
|
+
export declare var GetBillingPreferencesRequest$: StaticStructureSchema;
|
|
41
|
+
export declare var GetBillingPreferencesResponse$: StaticStructureSchema;
|
|
33
42
|
export declare var GetBillingViewRequest$: StaticStructureSchema;
|
|
34
43
|
export declare var GetBillingViewResponse$: StaticStructureSchema;
|
|
44
|
+
export declare var GetCreditAllocationHistoryRequest$: StaticStructureSchema;
|
|
45
|
+
export declare var GetCreditAllocationHistoryResponse$: StaticStructureSchema;
|
|
46
|
+
export declare var GetCreditsRequest$: StaticStructureSchema;
|
|
47
|
+
export declare var GetCreditsResponse$: StaticStructureSchema;
|
|
35
48
|
export declare var GetResourcePolicyRequest$: StaticStructureSchema;
|
|
36
49
|
export declare var GetResourcePolicyResponse$: StaticStructureSchema;
|
|
37
50
|
export declare var ListBillingViewsRequest$: StaticStructureSchema;
|
|
@@ -40,6 +53,8 @@ export declare var ListSourceViewsForBillingViewRequest$: StaticStructureSchema;
|
|
|
40
53
|
export declare var ListSourceViewsForBillingViewResponse$: StaticStructureSchema;
|
|
41
54
|
export declare var ListTagsForResourceRequest$: StaticStructureSchema;
|
|
42
55
|
export declare var ListTagsForResourceResponse$: StaticStructureSchema;
|
|
56
|
+
export declare var RedeemCreditsRequest$: StaticStructureSchema;
|
|
57
|
+
export declare var RedeemCreditsResponse$: StaticStructureSchema;
|
|
43
58
|
export declare var ResourceTag$: StaticStructureSchema;
|
|
44
59
|
export declare var StringSearch$: StaticStructureSchema;
|
|
45
60
|
export declare var TagResourceRequest$: StaticStructureSchema;
|
|
@@ -48,6 +63,8 @@ export declare var TagValues$: StaticStructureSchema;
|
|
|
48
63
|
export declare var TimeRange$: StaticStructureSchema;
|
|
49
64
|
export declare var UntagResourceRequest$: StaticStructureSchema;
|
|
50
65
|
export declare var UntagResourceResponse$: StaticStructureSchema;
|
|
66
|
+
export declare var UpdateBillingPreferencesRequest$: StaticStructureSchema;
|
|
67
|
+
export declare var UpdateBillingPreferencesResponse$: StaticStructureSchema;
|
|
51
68
|
export declare var UpdateBillingViewRequest$: StaticStructureSchema;
|
|
52
69
|
export declare var UpdateBillingViewResponse$: StaticStructureSchema;
|
|
53
70
|
export declare var ValidationExceptionField$: StaticStructureSchema;
|
|
@@ -55,11 +72,16 @@ export declare var AssociateSourceViews$: StaticOperationSchema;
|
|
|
55
72
|
export declare var CreateBillingView$: StaticOperationSchema;
|
|
56
73
|
export declare var DeleteBillingView$: StaticOperationSchema;
|
|
57
74
|
export declare var DisassociateSourceViews$: StaticOperationSchema;
|
|
75
|
+
export declare var GetBillingPreferences$: StaticOperationSchema;
|
|
58
76
|
export declare var GetBillingView$: StaticOperationSchema;
|
|
77
|
+
export declare var GetCreditAllocationHistory$: StaticOperationSchema;
|
|
78
|
+
export declare var GetCredits$: StaticOperationSchema;
|
|
59
79
|
export declare var GetResourcePolicy$: StaticOperationSchema;
|
|
60
80
|
export declare var ListBillingViews$: StaticOperationSchema;
|
|
61
81
|
export declare var ListSourceViewsForBillingView$: StaticOperationSchema;
|
|
62
82
|
export declare var ListTagsForResource$: StaticOperationSchema;
|
|
83
|
+
export declare var RedeemCredits$: StaticOperationSchema;
|
|
63
84
|
export declare var TagResource$: StaticOperationSchema;
|
|
64
85
|
export declare var UntagResource$: StaticOperationSchema;
|
|
86
|
+
export declare var UpdateBillingPreferences$: StaticOperationSchema;
|
|
65
87
|
export declare var UpdateBillingView$: StaticOperationSchema;
|