@aws-sdk/client-freetier 3.975.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/FreeTier.js +7 -1
- package/dist-types/FreeTier.d.ts +15 -1
- package/dist-types/ts3.4/FreeTier.d.ts +19 -1
- package/package.json +17 -17
package/dist-cjs/index.js
CHANGED
|
@@ -449,6 +449,10 @@ class UpgradeAccountPlanCommand extends smithyClient.Command
|
|
|
449
449
|
.build() {
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
+
const paginateGetFreeTierUsage = core.createPaginator(FreeTierClient, GetFreeTierUsageCommand, "nextToken", "nextToken", "maxResults");
|
|
453
|
+
|
|
454
|
+
const paginateListAccountActivities = core.createPaginator(FreeTierClient, ListAccountActivitiesCommand, "nextToken", "nextToken", "maxResults");
|
|
455
|
+
|
|
452
456
|
const commands = {
|
|
453
457
|
GetAccountActivityCommand,
|
|
454
458
|
GetAccountPlanStateCommand,
|
|
@@ -456,13 +460,13 @@ const commands = {
|
|
|
456
460
|
ListAccountActivitiesCommand,
|
|
457
461
|
UpgradeAccountPlanCommand,
|
|
458
462
|
};
|
|
463
|
+
const paginators = {
|
|
464
|
+
paginateGetFreeTierUsage,
|
|
465
|
+
paginateListAccountActivities,
|
|
466
|
+
};
|
|
459
467
|
class FreeTier extends FreeTierClient {
|
|
460
468
|
}
|
|
461
|
-
smithyClient.createAggregatedClient(commands, FreeTier);
|
|
462
|
-
|
|
463
|
-
const paginateGetFreeTierUsage = core.createPaginator(FreeTierClient, GetFreeTierUsageCommand, "nextToken", "nextToken", "maxResults");
|
|
464
|
-
|
|
465
|
-
const paginateListAccountActivities = core.createPaginator(FreeTierClient, ListAccountActivitiesCommand, "nextToken", "nextToken", "maxResults");
|
|
469
|
+
smithyClient.createAggregatedClient(commands, FreeTier, { paginators });
|
|
466
470
|
|
|
467
471
|
const AccountPlanStatus = {
|
|
468
472
|
ACTIVE: "ACTIVE",
|
package/dist-es/FreeTier.js
CHANGED
|
@@ -5,6 +5,8 @@ import { GetFreeTierUsageCommand, } from "./commands/GetFreeTierUsageCommand";
|
|
|
5
5
|
import { ListAccountActivitiesCommand, } from "./commands/ListAccountActivitiesCommand";
|
|
6
6
|
import { UpgradeAccountPlanCommand, } from "./commands/UpgradeAccountPlanCommand";
|
|
7
7
|
import { FreeTierClient } from "./FreeTierClient";
|
|
8
|
+
import { paginateGetFreeTierUsage } from "./pagination/GetFreeTierUsagePaginator";
|
|
9
|
+
import { paginateListAccountActivities } from "./pagination/ListAccountActivitiesPaginator";
|
|
8
10
|
const commands = {
|
|
9
11
|
GetAccountActivityCommand,
|
|
10
12
|
GetAccountPlanStateCommand,
|
|
@@ -12,6 +14,10 @@ const commands = {
|
|
|
12
14
|
ListAccountActivitiesCommand,
|
|
13
15
|
UpgradeAccountPlanCommand,
|
|
14
16
|
};
|
|
17
|
+
const paginators = {
|
|
18
|
+
paginateGetFreeTierUsage,
|
|
19
|
+
paginateListAccountActivities,
|
|
20
|
+
};
|
|
15
21
|
export class FreeTier extends FreeTierClient {
|
|
16
22
|
}
|
|
17
|
-
createAggregatedClient(commands, FreeTier);
|
|
23
|
+
createAggregatedClient(commands, FreeTier, { paginators });
|
package/dist-types/FreeTier.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 { GetAccountActivityCommandInput, GetAccountActivityCommandOutput } from "./commands/GetAccountActivityCommand";
|
|
3
3
|
import { GetAccountPlanStateCommandInput, GetAccountPlanStateCommandOutput } from "./commands/GetAccountPlanStateCommand";
|
|
4
4
|
import { GetFreeTierUsageCommandInput, GetFreeTierUsageCommandOutput } from "./commands/GetFreeTierUsageCommand";
|
|
@@ -39,6 +39,20 @@ export interface FreeTier {
|
|
|
39
39
|
upgradeAccountPlan(args: UpgradeAccountPlanCommandInput, options?: __HttpHandlerOptions): Promise<UpgradeAccountPlanCommandOutput>;
|
|
40
40
|
upgradeAccountPlan(args: UpgradeAccountPlanCommandInput, cb: (err: any, data?: UpgradeAccountPlanCommandOutput) => void): void;
|
|
41
41
|
upgradeAccountPlan(args: UpgradeAccountPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpgradeAccountPlanCommandOutput) => void): void;
|
|
42
|
+
/**
|
|
43
|
+
* @see {@link GetFreeTierUsageCommand}
|
|
44
|
+
* @param args - command input.
|
|
45
|
+
* @param paginationConfig - optional pagination config.
|
|
46
|
+
* @returns AsyncIterable of {@link GetFreeTierUsageCommandOutput}.
|
|
47
|
+
*/
|
|
48
|
+
paginateGetFreeTierUsage(args?: GetFreeTierUsageCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetFreeTierUsageCommandOutput>;
|
|
49
|
+
/**
|
|
50
|
+
* @see {@link ListAccountActivitiesCommand}
|
|
51
|
+
* @param args - command input.
|
|
52
|
+
* @param paginationConfig - optional pagination config.
|
|
53
|
+
* @returns AsyncIterable of {@link ListAccountActivitiesCommandOutput}.
|
|
54
|
+
*/
|
|
55
|
+
paginateListAccountActivities(args?: ListAccountActivitiesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListAccountActivitiesCommandOutput>;
|
|
42
56
|
}
|
|
43
57
|
/**
|
|
44
58
|
* <p>You can use the Amazon Web Services Free Tier API to query programmatically your Free Tier usage data.</p> <p>Free Tier tracks your monthly usage data for all free tier offers that are associated with your Amazon Web Services account. You can use the Free Tier API to filter and show only the data that you want.</p> <p>Service endpoint</p> <p>The Free Tier API provides the following endpoint:</p> <ul/> <p>For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-free-tier.html">Using the Amazon Web Services Free Tier</a> in the <i>Billing User Guide</i>.</p>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
GetAccountActivityCommandInput,
|
|
4
8
|
GetAccountActivityCommandOutput,
|
|
@@ -89,5 +93,19 @@ export interface FreeTier {
|
|
|
89
93
|
options: __HttpHandlerOptions,
|
|
90
94
|
cb: (err: any, data?: UpgradeAccountPlanCommandOutput) => void
|
|
91
95
|
): void;
|
|
96
|
+
paginateGetFreeTierUsage(
|
|
97
|
+
args?: GetFreeTierUsageCommandInput,
|
|
98
|
+
paginationConfig?: Pick<
|
|
99
|
+
PaginationConfiguration,
|
|
100
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
101
|
+
>
|
|
102
|
+
): Paginator<GetFreeTierUsageCommandOutput>;
|
|
103
|
+
paginateListAccountActivities(
|
|
104
|
+
args?: ListAccountActivitiesCommandInput,
|
|
105
|
+
paginationConfig?: Pick<
|
|
106
|
+
PaginationConfiguration,
|
|
107
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
108
|
+
>
|
|
109
|
+
): Paginator<ListAccountActivitiesCommandOutput>;
|
|
92
110
|
}
|
|
93
111
|
export declare class FreeTier extends FreeTierClient implements FreeTier {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-freetier",
|
|
3
3
|
"description": "AWS SDK for JavaScript Freetier 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-freetier",
|
|
@@ -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",
|