@aws-sdk/client-billing 3.974.0 → 3.978.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/index.js +9 -5
- package/dist-es/Billing.js +7 -1
- package/dist-types/Billing.d.ts +15 -1
- package/dist-types/ts3.4/Billing.d.ts +19 -1
- package/package.json +17 -17
package/dist-cjs/index.js
CHANGED
|
@@ -783,6 +783,10 @@ class UpdateBillingViewCommand extends smithyClient.Command
|
|
|
783
783
|
.build() {
|
|
784
784
|
}
|
|
785
785
|
|
|
786
|
+
const paginateListBillingViews = core.createPaginator(BillingClient, ListBillingViewsCommand, "nextToken", "nextToken", "maxResults");
|
|
787
|
+
|
|
788
|
+
const paginateListSourceViewsForBillingView = core.createPaginator(BillingClient, ListSourceViewsForBillingViewCommand, "nextToken", "nextToken", "maxResults");
|
|
789
|
+
|
|
786
790
|
const commands = {
|
|
787
791
|
AssociateSourceViewsCommand,
|
|
788
792
|
CreateBillingViewCommand,
|
|
@@ -797,13 +801,13 @@ const commands = {
|
|
|
797
801
|
UntagResourceCommand,
|
|
798
802
|
UpdateBillingViewCommand,
|
|
799
803
|
};
|
|
804
|
+
const paginators = {
|
|
805
|
+
paginateListBillingViews,
|
|
806
|
+
paginateListSourceViewsForBillingView,
|
|
807
|
+
};
|
|
800
808
|
class Billing extends BillingClient {
|
|
801
809
|
}
|
|
802
|
-
smithyClient.createAggregatedClient(commands, Billing);
|
|
803
|
-
|
|
804
|
-
const paginateListBillingViews = core.createPaginator(BillingClient, ListBillingViewsCommand, "nextToken", "nextToken", "maxResults");
|
|
805
|
-
|
|
806
|
-
const paginateListSourceViewsForBillingView = core.createPaginator(BillingClient, ListSourceViewsForBillingViewCommand, "nextToken", "nextToken", "maxResults");
|
|
810
|
+
smithyClient.createAggregatedClient(commands, Billing, { paginators });
|
|
807
811
|
|
|
808
812
|
const ValidationExceptionReason = {
|
|
809
813
|
CANNOT_PARSE: "cannotParse",
|
package/dist-es/Billing.js
CHANGED
|
@@ -12,6 +12,8 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
|
|
|
12
12
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
13
13
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
14
14
|
import { UpdateBillingViewCommand, } from "./commands/UpdateBillingViewCommand";
|
|
15
|
+
import { paginateListBillingViews } from "./pagination/ListBillingViewsPaginator";
|
|
16
|
+
import { paginateListSourceViewsForBillingView } from "./pagination/ListSourceViewsForBillingViewPaginator";
|
|
15
17
|
const commands = {
|
|
16
18
|
AssociateSourceViewsCommand,
|
|
17
19
|
CreateBillingViewCommand,
|
|
@@ -26,6 +28,10 @@ const commands = {
|
|
|
26
28
|
UntagResourceCommand,
|
|
27
29
|
UpdateBillingViewCommand,
|
|
28
30
|
};
|
|
31
|
+
const paginators = {
|
|
32
|
+
paginateListBillingViews,
|
|
33
|
+
paginateListSourceViewsForBillingView,
|
|
34
|
+
};
|
|
29
35
|
export class Billing extends BillingClient {
|
|
30
36
|
}
|
|
31
|
-
createAggregatedClient(commands, Billing);
|
|
37
|
+
createAggregatedClient(commands, Billing, { paginators });
|
package/dist-types/Billing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { BillingClient } from "./BillingClient";
|
|
3
3
|
import { AssociateSourceViewsCommandInput, AssociateSourceViewsCommandOutput } from "./commands/AssociateSourceViewsCommand";
|
|
4
4
|
import { CreateBillingViewCommandInput, CreateBillingViewCommandOutput } from "./commands/CreateBillingViewCommand";
|
|
@@ -86,6 +86,20 @@ export interface Billing {
|
|
|
86
86
|
updateBillingView(args: UpdateBillingViewCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBillingViewCommandOutput>;
|
|
87
87
|
updateBillingView(args: UpdateBillingViewCommandInput, cb: (err: any, data?: UpdateBillingViewCommandOutput) => void): void;
|
|
88
88
|
updateBillingView(args: UpdateBillingViewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBillingViewCommandOutput) => void): void;
|
|
89
|
+
/**
|
|
90
|
+
* @see {@link ListBillingViewsCommand}
|
|
91
|
+
* @param args - command input.
|
|
92
|
+
* @param paginationConfig - optional pagination config.
|
|
93
|
+
* @returns AsyncIterable of {@link ListBillingViewsCommandOutput}.
|
|
94
|
+
*/
|
|
95
|
+
paginateListBillingViews(args?: ListBillingViewsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListBillingViewsCommandOutput>;
|
|
96
|
+
/**
|
|
97
|
+
* @see {@link ListSourceViewsForBillingViewCommand}
|
|
98
|
+
* @param args - command input.
|
|
99
|
+
* @param paginationConfig - optional pagination config.
|
|
100
|
+
* @returns AsyncIterable of {@link ListSourceViewsForBillingViewCommandOutput}.
|
|
101
|
+
*/
|
|
102
|
+
paginateListSourceViewsForBillingView(args: ListSourceViewsForBillingViewCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSourceViewsForBillingViewCommandOutput>;
|
|
89
103
|
}
|
|
90
104
|
/**
|
|
91
105
|
* <p> You can use the Billing API to programatically list the billing views available to you for a given time period. A billing view represents a set of billing data. </p> <p>The Billing API provides the following endpoint:</p> <p> <code>https://billing.us-east-1.api.aws</code> </p>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import { BillingClient } from "./BillingClient";
|
|
3
7
|
import {
|
|
4
8
|
AssociateSourceViewsCommandInput,
|
|
@@ -206,5 +210,19 @@ export interface Billing {
|
|
|
206
210
|
options: __HttpHandlerOptions,
|
|
207
211
|
cb: (err: any, data?: UpdateBillingViewCommandOutput) => void
|
|
208
212
|
): void;
|
|
213
|
+
paginateListBillingViews(
|
|
214
|
+
args?: ListBillingViewsCommandInput,
|
|
215
|
+
paginationConfig?: Pick<
|
|
216
|
+
PaginationConfiguration,
|
|
217
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
218
|
+
>
|
|
219
|
+
): Paginator<ListBillingViewsCommandOutput>;
|
|
220
|
+
paginateListSourceViewsForBillingView(
|
|
221
|
+
args: ListSourceViewsForBillingViewCommandInput,
|
|
222
|
+
paginationConfig?: Pick<
|
|
223
|
+
PaginationConfiguration,
|
|
224
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
225
|
+
>
|
|
226
|
+
): Paginator<ListSourceViewsForBillingViewCommandOutput>;
|
|
209
227
|
}
|
|
210
228
|
export declare class Billing extends BillingClient implements Billing {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-billing",
|
|
3
3
|
"description": "AWS SDK for JavaScript Billing Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.978.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-billing",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.973.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|