@aws-sdk/client-billing 3.1079.0 → 3.1080.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
|
@@ -20,10 +20,22 @@ import {
|
|
|
20
20
|
DisassociateSourceViewsCommandInput,
|
|
21
21
|
DisassociateSourceViewsCommandOutput,
|
|
22
22
|
} from "./commands/DisassociateSourceViewsCommand";
|
|
23
|
+
import {
|
|
24
|
+
GetBillingPreferencesCommandInput,
|
|
25
|
+
GetBillingPreferencesCommandOutput,
|
|
26
|
+
} from "./commands/GetBillingPreferencesCommand";
|
|
23
27
|
import {
|
|
24
28
|
GetBillingViewCommandInput,
|
|
25
29
|
GetBillingViewCommandOutput,
|
|
26
30
|
} from "./commands/GetBillingViewCommand";
|
|
31
|
+
import {
|
|
32
|
+
GetCreditAllocationHistoryCommandInput,
|
|
33
|
+
GetCreditAllocationHistoryCommandOutput,
|
|
34
|
+
} from "./commands/GetCreditAllocationHistoryCommand";
|
|
35
|
+
import {
|
|
36
|
+
GetCreditsCommandInput,
|
|
37
|
+
GetCreditsCommandOutput,
|
|
38
|
+
} from "./commands/GetCreditsCommand";
|
|
27
39
|
import {
|
|
28
40
|
GetResourcePolicyCommandInput,
|
|
29
41
|
GetResourcePolicyCommandOutput,
|
|
@@ -40,6 +52,10 @@ import {
|
|
|
40
52
|
ListTagsForResourceCommandInput,
|
|
41
53
|
ListTagsForResourceCommandOutput,
|
|
42
54
|
} from "./commands/ListTagsForResourceCommand";
|
|
55
|
+
import {
|
|
56
|
+
RedeemCreditsCommandInput,
|
|
57
|
+
RedeemCreditsCommandOutput,
|
|
58
|
+
} from "./commands/RedeemCreditsCommand";
|
|
43
59
|
import {
|
|
44
60
|
TagResourceCommandInput,
|
|
45
61
|
TagResourceCommandOutput,
|
|
@@ -48,6 +64,10 @@ import {
|
|
|
48
64
|
UntagResourceCommandInput,
|
|
49
65
|
UntagResourceCommandOutput,
|
|
50
66
|
} from "./commands/UntagResourceCommand";
|
|
67
|
+
import {
|
|
68
|
+
UpdateBillingPreferencesCommandInput,
|
|
69
|
+
UpdateBillingPreferencesCommandOutput,
|
|
70
|
+
} from "./commands/UpdateBillingPreferencesCommand";
|
|
51
71
|
import {
|
|
52
72
|
UpdateBillingViewCommandInput,
|
|
53
73
|
UpdateBillingViewCommandOutput,
|
|
@@ -105,6 +125,19 @@ export interface Billing {
|
|
|
105
125
|
options: __HttpHandlerOptions,
|
|
106
126
|
cb: (err: any, data?: DisassociateSourceViewsCommandOutput) => void
|
|
107
127
|
): void;
|
|
128
|
+
getBillingPreferences(
|
|
129
|
+
args: GetBillingPreferencesCommandInput,
|
|
130
|
+
options?: __HttpHandlerOptions
|
|
131
|
+
): Promise<GetBillingPreferencesCommandOutput>;
|
|
132
|
+
getBillingPreferences(
|
|
133
|
+
args: GetBillingPreferencesCommandInput,
|
|
134
|
+
cb: (err: any, data?: GetBillingPreferencesCommandOutput) => void
|
|
135
|
+
): void;
|
|
136
|
+
getBillingPreferences(
|
|
137
|
+
args: GetBillingPreferencesCommandInput,
|
|
138
|
+
options: __HttpHandlerOptions,
|
|
139
|
+
cb: (err: any, data?: GetBillingPreferencesCommandOutput) => void
|
|
140
|
+
): void;
|
|
108
141
|
getBillingView(
|
|
109
142
|
args: GetBillingViewCommandInput,
|
|
110
143
|
options?: __HttpHandlerOptions
|
|
@@ -118,6 +151,32 @@ export interface Billing {
|
|
|
118
151
|
options: __HttpHandlerOptions,
|
|
119
152
|
cb: (err: any, data?: GetBillingViewCommandOutput) => void
|
|
120
153
|
): void;
|
|
154
|
+
getCreditAllocationHistory(
|
|
155
|
+
args: GetCreditAllocationHistoryCommandInput,
|
|
156
|
+
options?: __HttpHandlerOptions
|
|
157
|
+
): Promise<GetCreditAllocationHistoryCommandOutput>;
|
|
158
|
+
getCreditAllocationHistory(
|
|
159
|
+
args: GetCreditAllocationHistoryCommandInput,
|
|
160
|
+
cb: (err: any, data?: GetCreditAllocationHistoryCommandOutput) => void
|
|
161
|
+
): void;
|
|
162
|
+
getCreditAllocationHistory(
|
|
163
|
+
args: GetCreditAllocationHistoryCommandInput,
|
|
164
|
+
options: __HttpHandlerOptions,
|
|
165
|
+
cb: (err: any, data?: GetCreditAllocationHistoryCommandOutput) => void
|
|
166
|
+
): void;
|
|
167
|
+
getCredits(
|
|
168
|
+
args: GetCreditsCommandInput,
|
|
169
|
+
options?: __HttpHandlerOptions
|
|
170
|
+
): Promise<GetCreditsCommandOutput>;
|
|
171
|
+
getCredits(
|
|
172
|
+
args: GetCreditsCommandInput,
|
|
173
|
+
cb: (err: any, data?: GetCreditsCommandOutput) => void
|
|
174
|
+
): void;
|
|
175
|
+
getCredits(
|
|
176
|
+
args: GetCreditsCommandInput,
|
|
177
|
+
options: __HttpHandlerOptions,
|
|
178
|
+
cb: (err: any, data?: GetCreditsCommandOutput) => void
|
|
179
|
+
): void;
|
|
121
180
|
getResourcePolicy(
|
|
122
181
|
args: GetResourcePolicyCommandInput,
|
|
123
182
|
options?: __HttpHandlerOptions
|
|
@@ -171,6 +230,19 @@ export interface Billing {
|
|
|
171
230
|
options: __HttpHandlerOptions,
|
|
172
231
|
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
173
232
|
): void;
|
|
233
|
+
redeemCredits(
|
|
234
|
+
args: RedeemCreditsCommandInput,
|
|
235
|
+
options?: __HttpHandlerOptions
|
|
236
|
+
): Promise<RedeemCreditsCommandOutput>;
|
|
237
|
+
redeemCredits(
|
|
238
|
+
args: RedeemCreditsCommandInput,
|
|
239
|
+
cb: (err: any, data?: RedeemCreditsCommandOutput) => void
|
|
240
|
+
): void;
|
|
241
|
+
redeemCredits(
|
|
242
|
+
args: RedeemCreditsCommandInput,
|
|
243
|
+
options: __HttpHandlerOptions,
|
|
244
|
+
cb: (err: any, data?: RedeemCreditsCommandOutput) => void
|
|
245
|
+
): void;
|
|
174
246
|
tagResource(
|
|
175
247
|
args: TagResourceCommandInput,
|
|
176
248
|
options?: __HttpHandlerOptions
|
|
@@ -197,6 +269,19 @@ export interface Billing {
|
|
|
197
269
|
options: __HttpHandlerOptions,
|
|
198
270
|
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
199
271
|
): void;
|
|
272
|
+
updateBillingPreferences(
|
|
273
|
+
args: UpdateBillingPreferencesCommandInput,
|
|
274
|
+
options?: __HttpHandlerOptions
|
|
275
|
+
): Promise<UpdateBillingPreferencesCommandOutput>;
|
|
276
|
+
updateBillingPreferences(
|
|
277
|
+
args: UpdateBillingPreferencesCommandInput,
|
|
278
|
+
cb: (err: any, data?: UpdateBillingPreferencesCommandOutput) => void
|
|
279
|
+
): void;
|
|
280
|
+
updateBillingPreferences(
|
|
281
|
+
args: UpdateBillingPreferencesCommandInput,
|
|
282
|
+
options: __HttpHandlerOptions,
|
|
283
|
+
cb: (err: any, data?: UpdateBillingPreferencesCommandOutput) => void
|
|
284
|
+
): void;
|
|
200
285
|
updateBillingView(
|
|
201
286
|
args: UpdateBillingViewCommandInput,
|
|
202
287
|
options?: __HttpHandlerOptions
|
|
@@ -210,6 +295,13 @@ export interface Billing {
|
|
|
210
295
|
options: __HttpHandlerOptions,
|
|
211
296
|
cb: (err: any, data?: UpdateBillingViewCommandOutput) => void
|
|
212
297
|
): void;
|
|
298
|
+
paginateGetCreditAllocationHistory(
|
|
299
|
+
args: GetCreditAllocationHistoryCommandInput,
|
|
300
|
+
paginationConfig?: Pick<
|
|
301
|
+
PaginationConfiguration,
|
|
302
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
303
|
+
>
|
|
304
|
+
): Paginator<GetCreditAllocationHistoryCommandOutput>;
|
|
213
305
|
paginateListBillingViews(
|
|
214
306
|
args?: ListBillingViewsCommandInput,
|
|
215
307
|
paginationConfig?: Pick<
|
|
@@ -52,10 +52,22 @@ import {
|
|
|
52
52
|
DisassociateSourceViewsCommandInput,
|
|
53
53
|
DisassociateSourceViewsCommandOutput,
|
|
54
54
|
} from "./commands/DisassociateSourceViewsCommand";
|
|
55
|
+
import {
|
|
56
|
+
GetBillingPreferencesCommandInput,
|
|
57
|
+
GetBillingPreferencesCommandOutput,
|
|
58
|
+
} from "./commands/GetBillingPreferencesCommand";
|
|
55
59
|
import {
|
|
56
60
|
GetBillingViewCommandInput,
|
|
57
61
|
GetBillingViewCommandOutput,
|
|
58
62
|
} from "./commands/GetBillingViewCommand";
|
|
63
|
+
import {
|
|
64
|
+
GetCreditAllocationHistoryCommandInput,
|
|
65
|
+
GetCreditAllocationHistoryCommandOutput,
|
|
66
|
+
} from "./commands/GetCreditAllocationHistoryCommand";
|
|
67
|
+
import {
|
|
68
|
+
GetCreditsCommandInput,
|
|
69
|
+
GetCreditsCommandOutput,
|
|
70
|
+
} from "./commands/GetCreditsCommand";
|
|
59
71
|
import {
|
|
60
72
|
GetResourcePolicyCommandInput,
|
|
61
73
|
GetResourcePolicyCommandOutput,
|
|
@@ -72,6 +84,10 @@ import {
|
|
|
72
84
|
ListTagsForResourceCommandInput,
|
|
73
85
|
ListTagsForResourceCommandOutput,
|
|
74
86
|
} from "./commands/ListTagsForResourceCommand";
|
|
87
|
+
import {
|
|
88
|
+
RedeemCreditsCommandInput,
|
|
89
|
+
RedeemCreditsCommandOutput,
|
|
90
|
+
} from "./commands/RedeemCreditsCommand";
|
|
75
91
|
import {
|
|
76
92
|
TagResourceCommandInput,
|
|
77
93
|
TagResourceCommandOutput,
|
|
@@ -80,6 +96,10 @@ import {
|
|
|
80
96
|
UntagResourceCommandInput,
|
|
81
97
|
UntagResourceCommandOutput,
|
|
82
98
|
} from "./commands/UntagResourceCommand";
|
|
99
|
+
import {
|
|
100
|
+
UpdateBillingPreferencesCommandInput,
|
|
101
|
+
UpdateBillingPreferencesCommandOutput,
|
|
102
|
+
} from "./commands/UpdateBillingPreferencesCommand";
|
|
83
103
|
import {
|
|
84
104
|
UpdateBillingViewCommandInput,
|
|
85
105
|
UpdateBillingViewCommandOutput,
|
|
@@ -96,26 +116,36 @@ export type ServiceInputTypes =
|
|
|
96
116
|
| CreateBillingViewCommandInput
|
|
97
117
|
| DeleteBillingViewCommandInput
|
|
98
118
|
| DisassociateSourceViewsCommandInput
|
|
119
|
+
| GetBillingPreferencesCommandInput
|
|
99
120
|
| GetBillingViewCommandInput
|
|
121
|
+
| GetCreditAllocationHistoryCommandInput
|
|
122
|
+
| GetCreditsCommandInput
|
|
100
123
|
| GetResourcePolicyCommandInput
|
|
101
124
|
| ListBillingViewsCommandInput
|
|
102
125
|
| ListSourceViewsForBillingViewCommandInput
|
|
103
126
|
| ListTagsForResourceCommandInput
|
|
127
|
+
| RedeemCreditsCommandInput
|
|
104
128
|
| TagResourceCommandInput
|
|
105
129
|
| UntagResourceCommandInput
|
|
130
|
+
| UpdateBillingPreferencesCommandInput
|
|
106
131
|
| UpdateBillingViewCommandInput;
|
|
107
132
|
export type ServiceOutputTypes =
|
|
108
133
|
| AssociateSourceViewsCommandOutput
|
|
109
134
|
| CreateBillingViewCommandOutput
|
|
110
135
|
| DeleteBillingViewCommandOutput
|
|
111
136
|
| DisassociateSourceViewsCommandOutput
|
|
137
|
+
| GetBillingPreferencesCommandOutput
|
|
112
138
|
| GetBillingViewCommandOutput
|
|
139
|
+
| GetCreditAllocationHistoryCommandOutput
|
|
140
|
+
| GetCreditsCommandOutput
|
|
113
141
|
| GetResourcePolicyCommandOutput
|
|
114
142
|
| ListBillingViewsCommandOutput
|
|
115
143
|
| ListSourceViewsForBillingViewCommandOutput
|
|
116
144
|
| ListTagsForResourceCommandOutput
|
|
145
|
+
| RedeemCreditsCommandOutput
|
|
117
146
|
| TagResourceCommandOutput
|
|
118
147
|
| UntagResourceCommandOutput
|
|
148
|
+
| UpdateBillingPreferencesCommandOutput
|
|
119
149
|
| UpdateBillingViewCommandOutput;
|
|
120
150
|
export interface ClientDefaults
|
|
121
151
|
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetBillingPreferencesRequest,
|
|
4
|
+
GetBillingPreferencesResponse,
|
|
5
|
+
} from "../models/models_0";
|
|
6
|
+
export { __MetadataBearer };
|
|
7
|
+
export interface GetBillingPreferencesCommandInput
|
|
8
|
+
extends GetBillingPreferencesRequest {}
|
|
9
|
+
export interface GetBillingPreferencesCommandOutput
|
|
10
|
+
extends GetBillingPreferencesResponse,
|
|
11
|
+
__MetadataBearer {}
|
|
12
|
+
declare const GetBillingPreferencesCommand_base: {
|
|
13
|
+
new (
|
|
14
|
+
input: GetBillingPreferencesCommandInput
|
|
15
|
+
): import("@smithy/core/client").CommandImpl<
|
|
16
|
+
GetBillingPreferencesCommandInput,
|
|
17
|
+
GetBillingPreferencesCommandOutput,
|
|
18
|
+
import("..").BillingClientResolvedConfig,
|
|
19
|
+
import("..").ServiceInputTypes,
|
|
20
|
+
import("..").ServiceOutputTypes
|
|
21
|
+
>;
|
|
22
|
+
new (
|
|
23
|
+
input: GetBillingPreferencesCommandInput
|
|
24
|
+
): import("@smithy/core/client").CommandImpl<
|
|
25
|
+
GetBillingPreferencesCommandInput,
|
|
26
|
+
GetBillingPreferencesCommandOutput,
|
|
27
|
+
import("..").BillingClientResolvedConfig,
|
|
28
|
+
import("..").ServiceInputTypes,
|
|
29
|
+
import("..").ServiceOutputTypes
|
|
30
|
+
>;
|
|
31
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
32
|
+
};
|
|
33
|
+
export declare class GetBillingPreferencesCommand extends GetBillingPreferencesCommand_base {
|
|
34
|
+
protected static __types: {
|
|
35
|
+
api: {
|
|
36
|
+
input: GetBillingPreferencesRequest;
|
|
37
|
+
output: GetBillingPreferencesResponse;
|
|
38
|
+
};
|
|
39
|
+
sdk: {
|
|
40
|
+
input: GetBillingPreferencesCommandInput;
|
|
41
|
+
output: GetBillingPreferencesCommandOutput;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetCreditAllocationHistoryRequest,
|
|
4
|
+
GetCreditAllocationHistoryResponse,
|
|
5
|
+
} from "../models/models_0";
|
|
6
|
+
export { __MetadataBearer };
|
|
7
|
+
export interface GetCreditAllocationHistoryCommandInput
|
|
8
|
+
extends GetCreditAllocationHistoryRequest {}
|
|
9
|
+
export interface GetCreditAllocationHistoryCommandOutput
|
|
10
|
+
extends GetCreditAllocationHistoryResponse,
|
|
11
|
+
__MetadataBearer {}
|
|
12
|
+
declare const GetCreditAllocationHistoryCommand_base: {
|
|
13
|
+
new (
|
|
14
|
+
input: GetCreditAllocationHistoryCommandInput
|
|
15
|
+
): import("@smithy/core/client").CommandImpl<
|
|
16
|
+
GetCreditAllocationHistoryCommandInput,
|
|
17
|
+
GetCreditAllocationHistoryCommandOutput,
|
|
18
|
+
import("..").BillingClientResolvedConfig,
|
|
19
|
+
import("..").ServiceInputTypes,
|
|
20
|
+
import("..").ServiceOutputTypes
|
|
21
|
+
>;
|
|
22
|
+
new (
|
|
23
|
+
input: GetCreditAllocationHistoryCommandInput
|
|
24
|
+
): import("@smithy/core/client").CommandImpl<
|
|
25
|
+
GetCreditAllocationHistoryCommandInput,
|
|
26
|
+
GetCreditAllocationHistoryCommandOutput,
|
|
27
|
+
import("..").BillingClientResolvedConfig,
|
|
28
|
+
import("..").ServiceInputTypes,
|
|
29
|
+
import("..").ServiceOutputTypes
|
|
30
|
+
>;
|
|
31
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
32
|
+
};
|
|
33
|
+
export declare class GetCreditAllocationHistoryCommand extends GetCreditAllocationHistoryCommand_base {
|
|
34
|
+
protected static __types: {
|
|
35
|
+
api: {
|
|
36
|
+
input: GetCreditAllocationHistoryRequest;
|
|
37
|
+
output: GetCreditAllocationHistoryResponse;
|
|
38
|
+
};
|
|
39
|
+
sdk: {
|
|
40
|
+
input: GetCreditAllocationHistoryCommandInput;
|
|
41
|
+
output: GetCreditAllocationHistoryCommandOutput;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { GetCreditsRequest, GetCreditsResponse } from "../models/models_0";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface GetCreditsCommandInput extends GetCreditsRequest {}
|
|
5
|
+
export interface GetCreditsCommandOutput
|
|
6
|
+
extends GetCreditsResponse,
|
|
7
|
+
__MetadataBearer {}
|
|
8
|
+
declare const GetCreditsCommand_base: {
|
|
9
|
+
new (
|
|
10
|
+
input: GetCreditsCommandInput
|
|
11
|
+
): import("@smithy/core/client").CommandImpl<
|
|
12
|
+
GetCreditsCommandInput,
|
|
13
|
+
GetCreditsCommandOutput,
|
|
14
|
+
import("..").BillingClientResolvedConfig,
|
|
15
|
+
import("..").ServiceInputTypes,
|
|
16
|
+
import("..").ServiceOutputTypes
|
|
17
|
+
>;
|
|
18
|
+
new (
|
|
19
|
+
input: GetCreditsCommandInput
|
|
20
|
+
): import("@smithy/core/client").CommandImpl<
|
|
21
|
+
GetCreditsCommandInput,
|
|
22
|
+
GetCreditsCommandOutput,
|
|
23
|
+
import("..").BillingClientResolvedConfig,
|
|
24
|
+
import("..").ServiceInputTypes,
|
|
25
|
+
import("..").ServiceOutputTypes
|
|
26
|
+
>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
export declare class GetCreditsCommand extends GetCreditsCommand_base {
|
|
30
|
+
protected static __types: {
|
|
31
|
+
api: {
|
|
32
|
+
input: GetCreditsRequest;
|
|
33
|
+
output: GetCreditsResponse;
|
|
34
|
+
};
|
|
35
|
+
sdk: {
|
|
36
|
+
input: GetCreditsCommandInput;
|
|
37
|
+
output: GetCreditsCommandOutput;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
RedeemCreditsRequest,
|
|
4
|
+
RedeemCreditsResponse,
|
|
5
|
+
} from "../models/models_0";
|
|
6
|
+
export { __MetadataBearer };
|
|
7
|
+
export interface RedeemCreditsCommandInput extends RedeemCreditsRequest {}
|
|
8
|
+
export interface RedeemCreditsCommandOutput
|
|
9
|
+
extends RedeemCreditsResponse,
|
|
10
|
+
__MetadataBearer {}
|
|
11
|
+
declare const RedeemCreditsCommand_base: {
|
|
12
|
+
new (
|
|
13
|
+
input: RedeemCreditsCommandInput
|
|
14
|
+
): import("@smithy/core/client").CommandImpl<
|
|
15
|
+
RedeemCreditsCommandInput,
|
|
16
|
+
RedeemCreditsCommandOutput,
|
|
17
|
+
import("..").BillingClientResolvedConfig,
|
|
18
|
+
import("..").ServiceInputTypes,
|
|
19
|
+
import("..").ServiceOutputTypes
|
|
20
|
+
>;
|
|
21
|
+
new (
|
|
22
|
+
input: RedeemCreditsCommandInput
|
|
23
|
+
): import("@smithy/core/client").CommandImpl<
|
|
24
|
+
RedeemCreditsCommandInput,
|
|
25
|
+
RedeemCreditsCommandOutput,
|
|
26
|
+
import("..").BillingClientResolvedConfig,
|
|
27
|
+
import("..").ServiceInputTypes,
|
|
28
|
+
import("..").ServiceOutputTypes
|
|
29
|
+
>;
|
|
30
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
31
|
+
};
|
|
32
|
+
export declare class RedeemCreditsCommand extends RedeemCreditsCommand_base {
|
|
33
|
+
protected static __types: {
|
|
34
|
+
api: {
|
|
35
|
+
input: RedeemCreditsRequest;
|
|
36
|
+
output: {};
|
|
37
|
+
};
|
|
38
|
+
sdk: {
|
|
39
|
+
input: RedeemCreditsCommandInput;
|
|
40
|
+
output: RedeemCreditsCommandOutput;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
UpdateBillingPreferencesRequest,
|
|
4
|
+
UpdateBillingPreferencesResponse,
|
|
5
|
+
} from "../models/models_0";
|
|
6
|
+
export { __MetadataBearer };
|
|
7
|
+
export interface UpdateBillingPreferencesCommandInput
|
|
8
|
+
extends UpdateBillingPreferencesRequest {}
|
|
9
|
+
export interface UpdateBillingPreferencesCommandOutput
|
|
10
|
+
extends UpdateBillingPreferencesResponse,
|
|
11
|
+
__MetadataBearer {}
|
|
12
|
+
declare const UpdateBillingPreferencesCommand_base: {
|
|
13
|
+
new (
|
|
14
|
+
input: UpdateBillingPreferencesCommandInput
|
|
15
|
+
): import("@smithy/core/client").CommandImpl<
|
|
16
|
+
UpdateBillingPreferencesCommandInput,
|
|
17
|
+
UpdateBillingPreferencesCommandOutput,
|
|
18
|
+
import("..").BillingClientResolvedConfig,
|
|
19
|
+
import("..").ServiceInputTypes,
|
|
20
|
+
import("..").ServiceOutputTypes
|
|
21
|
+
>;
|
|
22
|
+
new (
|
|
23
|
+
input: UpdateBillingPreferencesCommandInput
|
|
24
|
+
): import("@smithy/core/client").CommandImpl<
|
|
25
|
+
UpdateBillingPreferencesCommandInput,
|
|
26
|
+
UpdateBillingPreferencesCommandOutput,
|
|
27
|
+
import("..").BillingClientResolvedConfig,
|
|
28
|
+
import("..").ServiceInputTypes,
|
|
29
|
+
import("..").ServiceOutputTypes
|
|
30
|
+
>;
|
|
31
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
32
|
+
};
|
|
33
|
+
export declare class UpdateBillingPreferencesCommand extends UpdateBillingPreferencesCommand_base {
|
|
34
|
+
protected static __types: {
|
|
35
|
+
api: {
|
|
36
|
+
input: UpdateBillingPreferencesRequest;
|
|
37
|
+
output: {};
|
|
38
|
+
};
|
|
39
|
+
sdk: {
|
|
40
|
+
input: UpdateBillingPreferencesCommandInput;
|
|
41
|
+
output: UpdateBillingPreferencesCommandOutput;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -2,11 +2,16 @@ export * from "./AssociateSourceViewsCommand";
|
|
|
2
2
|
export * from "./CreateBillingViewCommand";
|
|
3
3
|
export * from "./DeleteBillingViewCommand";
|
|
4
4
|
export * from "./DisassociateSourceViewsCommand";
|
|
5
|
+
export * from "./GetBillingPreferencesCommand";
|
|
5
6
|
export * from "./GetBillingViewCommand";
|
|
7
|
+
export * from "./GetCreditAllocationHistoryCommand";
|
|
8
|
+
export * from "./GetCreditsCommand";
|
|
6
9
|
export * from "./GetResourcePolicyCommand";
|
|
7
10
|
export * from "./ListBillingViewsCommand";
|
|
8
11
|
export * from "./ListSourceViewsForBillingViewCommand";
|
|
9
12
|
export * from "./ListTagsForResourceCommand";
|
|
13
|
+
export * from "./RedeemCreditsCommand";
|
|
10
14
|
export * from "./TagResourceCommand";
|
|
11
15
|
export * from "./UntagResourceCommand";
|
|
16
|
+
export * from "./UpdateBillingPreferencesCommand";
|
|
12
17
|
export * from "./UpdateBillingViewCommand";
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export declare const ApplicationType: {
|
|
2
|
+
readonly AFTER_DISCOUNTS: "AFTER_DISCOUNTS";
|
|
3
|
+
readonly BEFORE_CROSS_SERVICE_DISCOUNTS: "BEFORE_CROSS_SERVICE_DISCOUNTS";
|
|
4
|
+
};
|
|
5
|
+
export type ApplicationType =
|
|
6
|
+
(typeof ApplicationType)[keyof typeof ApplicationType];
|
|
1
7
|
export declare const ValidationExceptionReason: {
|
|
2
8
|
readonly CANNOT_PARSE: "cannotParse";
|
|
3
9
|
readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
|
|
@@ -10,6 +16,28 @@ export declare const Dimension: {
|
|
|
10
16
|
readonly LINKED_ACCOUNT: "LINKED_ACCOUNT";
|
|
11
17
|
};
|
|
12
18
|
export type Dimension = (typeof Dimension)[keyof typeof Dimension];
|
|
19
|
+
export declare const BillingFeature: {
|
|
20
|
+
readonly BILLING_ALERTS: "BILLING_ALERTS";
|
|
21
|
+
readonly CREDIT_LEVEL_SHARING: "CREDIT_LEVEL_SHARING";
|
|
22
|
+
readonly CREDIT_PREFERENCE_OPTIONS: "CREDIT_PREFERENCE_OPTIONS";
|
|
23
|
+
readonly CREDIT_SHARING: "CREDIT_SHARING";
|
|
24
|
+
readonly CREDIT_SHARING_HISTORY: "CREDIT_SHARING_HISTORY";
|
|
25
|
+
readonly RI_SHARING: "RI_SHARING";
|
|
26
|
+
readonly RI_SHARING_HISTORY: "RI_SHARING_HISTORY";
|
|
27
|
+
};
|
|
28
|
+
export type BillingFeature =
|
|
29
|
+
(typeof BillingFeature)[keyof typeof BillingFeature];
|
|
30
|
+
export declare const BillingFeatureFilterName: {
|
|
31
|
+
readonly PREFERENCE_KEY: "PREFERENCE_KEY";
|
|
32
|
+
};
|
|
33
|
+
export type BillingFeatureFilterName =
|
|
34
|
+
(typeof BillingFeatureFilterName)[keyof typeof BillingFeatureFilterName];
|
|
35
|
+
export declare const PreferenceValue: {
|
|
36
|
+
readonly DISABLED: "DISABLED";
|
|
37
|
+
readonly ENABLED: "ENABLED";
|
|
38
|
+
};
|
|
39
|
+
export type PreferenceValue =
|
|
40
|
+
(typeof PreferenceValue)[keyof typeof PreferenceValue];
|
|
13
41
|
export declare const BillingViewType: {
|
|
14
42
|
readonly BILLING_GROUP: "BILLING_GROUP";
|
|
15
43
|
readonly BILLING_TRANSFER: "BILLING_TRANSFER";
|
|
@@ -39,6 +67,19 @@ export declare const BillingViewStatusReason: {
|
|
|
39
67
|
};
|
|
40
68
|
export type BillingViewStatusReason =
|
|
41
69
|
(typeof BillingViewStatusReason)[keyof typeof BillingViewStatusReason];
|
|
70
|
+
export declare const CreditSharingType: {
|
|
71
|
+
readonly COST_CATEGORY_RULE: "COST_CATEGORY_RULE";
|
|
72
|
+
readonly CUSTOM: "CUSTOM";
|
|
73
|
+
readonly DEFAULT: "DEFAULT";
|
|
74
|
+
readonly DISABLED: "DISABLED";
|
|
75
|
+
};
|
|
76
|
+
export type CreditSharingType =
|
|
77
|
+
(typeof CreditSharingType)[keyof typeof CreditSharingType];
|
|
78
|
+
export declare const CreditStatus: {
|
|
79
|
+
readonly DISABLED: "DISABLED";
|
|
80
|
+
readonly ENABLED: "ENABLED";
|
|
81
|
+
};
|
|
82
|
+
export type CreditStatus = (typeof CreditStatus)[keyof typeof CreditStatus];
|
|
42
83
|
export declare const SearchOption: {
|
|
43
84
|
readonly STARTS_WITH: "STARTS_WITH";
|
|
44
85
|
};
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ApplicationType,
|
|
3
|
+
BillingFeature,
|
|
4
|
+
BillingFeatureFilterName,
|
|
2
5
|
BillingViewStatus,
|
|
3
6
|
BillingViewStatusReason,
|
|
4
7
|
BillingViewType,
|
|
8
|
+
CreditSharingType,
|
|
9
|
+
CreditStatus,
|
|
5
10
|
Dimension,
|
|
11
|
+
PreferenceValue,
|
|
6
12
|
SearchOption,
|
|
7
13
|
} from "./enums";
|
|
8
14
|
export interface ActiveTimeRange {
|
|
9
15
|
activeAfterInclusive: Date | undefined;
|
|
10
16
|
activeBeforeInclusive: Date | undefined;
|
|
11
17
|
}
|
|
18
|
+
export interface Amount {
|
|
19
|
+
currencyCode: string | undefined;
|
|
20
|
+
currencyAmount: string | undefined;
|
|
21
|
+
}
|
|
12
22
|
export interface AssociateSourceViewsRequest {
|
|
13
23
|
arn: string | undefined;
|
|
14
24
|
sourceViews: string[] | undefined;
|
|
@@ -72,6 +82,32 @@ export interface DisassociateSourceViewsRequest {
|
|
|
72
82
|
export interface DisassociateSourceViewsResponse {
|
|
73
83
|
arn: string | undefined;
|
|
74
84
|
}
|
|
85
|
+
export interface BillingFeatureFilter {
|
|
86
|
+
name?: BillingFeatureFilterName | undefined;
|
|
87
|
+
value?: string[] | undefined;
|
|
88
|
+
}
|
|
89
|
+
export interface GetBillingPreferencesRequest {
|
|
90
|
+
nextToken?: string | undefined;
|
|
91
|
+
maxResults?: number | undefined;
|
|
92
|
+
features: BillingFeature[] | undefined;
|
|
93
|
+
filters?: BillingFeatureFilter[] | undefined;
|
|
94
|
+
}
|
|
95
|
+
export interface BillingPeriod {
|
|
96
|
+
year: number | undefined;
|
|
97
|
+
month: number | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface BillingPreferenceSummary {
|
|
100
|
+
feature: BillingFeature | undefined;
|
|
101
|
+
key: string | undefined;
|
|
102
|
+
value: PreferenceValue | undefined;
|
|
103
|
+
accountName?: string | undefined;
|
|
104
|
+
accountId?: string | undefined;
|
|
105
|
+
billingPeriod?: BillingPeriod | undefined;
|
|
106
|
+
}
|
|
107
|
+
export interface GetBillingPreferencesResponse {
|
|
108
|
+
billingPreferences: BillingPreferenceSummary[] | undefined;
|
|
109
|
+
nextToken?: string | undefined;
|
|
110
|
+
}
|
|
75
111
|
export interface GetBillingViewRequest {
|
|
76
112
|
arn: string | undefined;
|
|
77
113
|
}
|
|
@@ -97,6 +133,60 @@ export interface BillingViewElement {
|
|
|
97
133
|
export interface GetBillingViewResponse {
|
|
98
134
|
billingView: BillingViewElement | undefined;
|
|
99
135
|
}
|
|
136
|
+
export interface GetCreditAllocationHistoryRequest {
|
|
137
|
+
accountId: string | undefined;
|
|
138
|
+
creditId?: number | undefined;
|
|
139
|
+
startDate: Date | undefined;
|
|
140
|
+
endDate: Date | undefined;
|
|
141
|
+
nextToken?: string | undefined;
|
|
142
|
+
maxResults?: number | undefined;
|
|
143
|
+
}
|
|
144
|
+
export interface CreditAllocationHistoryEntry {
|
|
145
|
+
creditId: string | undefined;
|
|
146
|
+
creditAmount: Amount | undefined;
|
|
147
|
+
description?: string | undefined;
|
|
148
|
+
accountId: string | undefined;
|
|
149
|
+
appliedServiceName: string | undefined;
|
|
150
|
+
billingMonth: string | undefined;
|
|
151
|
+
isEstimatedBill: boolean | undefined;
|
|
152
|
+
}
|
|
153
|
+
export interface GetCreditAllocationHistoryResponse {
|
|
154
|
+
creditAllocationHistoryList?: CreditAllocationHistoryEntry[] | undefined;
|
|
155
|
+
partialResults: boolean | undefined;
|
|
156
|
+
failedMonths?: string[] | undefined;
|
|
157
|
+
nextToken?: string | undefined;
|
|
158
|
+
}
|
|
159
|
+
export interface GetCreditsRequest {
|
|
160
|
+
accountId: string | undefined;
|
|
161
|
+
startDate: Date | undefined;
|
|
162
|
+
endDate?: Date | undefined;
|
|
163
|
+
payerAccountFlag?: boolean | undefined;
|
|
164
|
+
}
|
|
165
|
+
export interface CreditData {
|
|
166
|
+
creditId: string | undefined;
|
|
167
|
+
accountId: string | undefined;
|
|
168
|
+
creditType: string | undefined;
|
|
169
|
+
initialAmount: Amount | undefined;
|
|
170
|
+
remainingAmount: Amount | undefined;
|
|
171
|
+
estimatedAmount?: Amount | undefined;
|
|
172
|
+
applicableProductNames?: string[] | undefined;
|
|
173
|
+
description: string | undefined;
|
|
174
|
+
startDate: Date | undefined;
|
|
175
|
+
endDate?: Date | undefined;
|
|
176
|
+
exhaustDate?: Date | undefined;
|
|
177
|
+
applicationType?: ApplicationType | undefined;
|
|
178
|
+
shareableAccounts?: string[] | undefined;
|
|
179
|
+
accountHasCreditSharingEnabled?: boolean | undefined;
|
|
180
|
+
creditConsoleVisibility?: string | undefined;
|
|
181
|
+
creditSharingType?: CreditSharingType | undefined;
|
|
182
|
+
costCategoryArn?: string | undefined;
|
|
183
|
+
ruleName?: string | undefined;
|
|
184
|
+
creditStatus?: CreditStatus | undefined;
|
|
185
|
+
purchaseTypeApplications?: string[] | undefined;
|
|
186
|
+
}
|
|
187
|
+
export interface GetCreditsResponse {
|
|
188
|
+
credits?: CreditData[] | undefined;
|
|
189
|
+
}
|
|
100
190
|
export interface GetResourcePolicyRequest {
|
|
101
191
|
resourceArn: string | undefined;
|
|
102
192
|
}
|
|
@@ -146,6 +236,10 @@ export interface ListTagsForResourceRequest {
|
|
|
146
236
|
export interface ListTagsForResourceResponse {
|
|
147
237
|
resourceTags?: ResourceTag[] | undefined;
|
|
148
238
|
}
|
|
239
|
+
export interface RedeemCreditsRequest {
|
|
240
|
+
promoCode: string | undefined;
|
|
241
|
+
}
|
|
242
|
+
export interface RedeemCreditsResponse {}
|
|
149
243
|
export interface TagResourceRequest {
|
|
150
244
|
resourceArn: string | undefined;
|
|
151
245
|
resourceTags: ResourceTag[] | undefined;
|
|
@@ -156,6 +250,15 @@ export interface UntagResourceRequest {
|
|
|
156
250
|
resourceTagKeys: string[] | undefined;
|
|
157
251
|
}
|
|
158
252
|
export interface UntagResourceResponse {}
|
|
253
|
+
export interface BillingPreferenceForKey {
|
|
254
|
+
key: string | undefined;
|
|
255
|
+
value: PreferenceValue | undefined;
|
|
256
|
+
}
|
|
257
|
+
export interface UpdateBillingPreferencesRequest {
|
|
258
|
+
feature: BillingFeature | undefined;
|
|
259
|
+
billingPreferencesPerKey: BillingPreferenceForKey[] | undefined;
|
|
260
|
+
}
|
|
261
|
+
export interface UpdateBillingPreferencesResponse {}
|
|
159
262
|
export interface UpdateBillingViewRequest {
|
|
160
263
|
arn: string | undefined;
|
|
161
264
|
name?: string | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetCreditAllocationHistoryCommandInput,
|
|
4
|
+
GetCreditAllocationHistoryCommandOutput,
|
|
5
|
+
} from "../commands/GetCreditAllocationHistoryCommand";
|
|
6
|
+
import { BillingPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateGetCreditAllocationHistory: (
|
|
8
|
+
config: BillingPaginationConfiguration,
|
|
9
|
+
input: GetCreditAllocationHistoryCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetCreditAllocationHistoryCommandOutput>;
|