@aws-sdk/client-freetier 3.1137.0 → 3.1139.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 CHANGED
@@ -67,7 +67,7 @@ const commonParams = {
67
67
  Region: { type: "builtInParams", name: "region" },
68
68
  };
69
69
 
70
- var version = "3.1136.0";
70
+ var version = "3.1138.0";
71
71
  var packageInfo = {
72
72
  version: version};
73
73
 
@@ -273,10 +273,10 @@ const _t = "title";
273
273
  const _u = "unit";
274
274
  const _uT = "usageType";
275
275
  const n0 = "com.amazonaws.freetier";
276
- const _s_registry = TypeRegistry.for(_s);
276
+ const _s_registry = new TypeRegistry(_s);
277
277
  var FreeTierServiceException$ = [-3, _s, "FreeTierServiceException", 0, [], []];
278
278
  _s_registry.registerError(FreeTierServiceException$, FreeTierServiceException);
279
- const n0_registry = TypeRegistry.for(n0);
279
+ const n0_registry = new TypeRegistry(n0);
280
280
  var AccessDeniedException$ = [-3, n0, _ADE,
281
281
  { [_e]: _c, [_hE]: 403 },
282
282
  [_m],
@@ -77,10 +77,10 @@ const n0 = "com.amazonaws.freetier";
77
77
  import { TypeRegistry } from "@smithy/core/schema";
78
78
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
79
79
  import { FreeTierServiceException } from "../models/FreeTierServiceException";
80
- const _s_registry = TypeRegistry.for(_s);
80
+ const _s_registry = new TypeRegistry(_s);
81
81
  export var FreeTierServiceException$ = [-3, _s, "FreeTierServiceException", 0, [], []];
82
82
  _s_registry.registerError(FreeTierServiceException$, FreeTierServiceException);
83
- const n0_registry = TypeRegistry.for(n0);
83
+ const n0_registry = new TypeRegistry(n0);
84
84
  export var AccessDeniedException$ = [-3, n0, _ADE,
85
85
  { [_e]: _c, [_hE]: 403 },
86
86
  [_m],
@@ -1,44 +1,50 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type GetAccountActivityCommandInput, type GetAccountActivityCommandOutput } from "./commands/GetAccountActivityCommand";
3
3
  import { type GetAccountPlanStateCommandInput, type GetAccountPlanStateCommandOutput } from "./commands/GetAccountPlanStateCommand";
4
4
  import { type GetFreeTierUsageCommandInput, type GetFreeTierUsageCommandOutput } from "./commands/GetFreeTierUsageCommand";
5
5
  import { type ListAccountActivitiesCommandInput, type ListAccountActivitiesCommandOutput } from "./commands/ListAccountActivitiesCommand";
6
6
  import { type UpgradeAccountPlanCommandInput, type UpgradeAccountPlanCommandOutput } from "./commands/UpgradeAccountPlanCommand";
7
7
  import { FreeTierClient } from "./FreeTierClient";
8
+ /**
9
+ * @public
10
+ */
11
+ export interface FreeTierRequestOptions extends __HttpHandlerOptions {
12
+ metricsRecorder?: __MetricsRecorder<unknown>;
13
+ }
8
14
  export interface FreeTier {
9
15
  /**
10
16
  * @see {@link GetAccountActivityCommand}
11
17
  */
12
- getAccountActivity(args: GetAccountActivityCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountActivityCommandOutput>;
18
+ getAccountActivity(args: GetAccountActivityCommandInput, options?: FreeTierRequestOptions): Promise<GetAccountActivityCommandOutput>;
13
19
  getAccountActivity(args: GetAccountActivityCommandInput, cb: (err: any, data?: GetAccountActivityCommandOutput) => void): void;
14
- getAccountActivity(args: GetAccountActivityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountActivityCommandOutput) => void): void;
20
+ getAccountActivity(args: GetAccountActivityCommandInput, options: FreeTierRequestOptions, cb: (err: any, data?: GetAccountActivityCommandOutput) => void): void;
15
21
  /**
16
22
  * @see {@link GetAccountPlanStateCommand}
17
23
  */
18
24
  getAccountPlanState(): Promise<GetAccountPlanStateCommandOutput>;
19
- getAccountPlanState(args: GetAccountPlanStateCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountPlanStateCommandOutput>;
25
+ getAccountPlanState(args: GetAccountPlanStateCommandInput, options?: FreeTierRequestOptions): Promise<GetAccountPlanStateCommandOutput>;
20
26
  getAccountPlanState(args: GetAccountPlanStateCommandInput, cb: (err: any, data?: GetAccountPlanStateCommandOutput) => void): void;
21
- getAccountPlanState(args: GetAccountPlanStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountPlanStateCommandOutput) => void): void;
27
+ getAccountPlanState(args: GetAccountPlanStateCommandInput, options: FreeTierRequestOptions, cb: (err: any, data?: GetAccountPlanStateCommandOutput) => void): void;
22
28
  /**
23
29
  * @see {@link GetFreeTierUsageCommand}
24
30
  */
25
31
  getFreeTierUsage(): Promise<GetFreeTierUsageCommandOutput>;
26
- getFreeTierUsage(args: GetFreeTierUsageCommandInput, options?: __HttpHandlerOptions): Promise<GetFreeTierUsageCommandOutput>;
32
+ getFreeTierUsage(args: GetFreeTierUsageCommandInput, options?: FreeTierRequestOptions): Promise<GetFreeTierUsageCommandOutput>;
27
33
  getFreeTierUsage(args: GetFreeTierUsageCommandInput, cb: (err: any, data?: GetFreeTierUsageCommandOutput) => void): void;
28
- getFreeTierUsage(args: GetFreeTierUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFreeTierUsageCommandOutput) => void): void;
34
+ getFreeTierUsage(args: GetFreeTierUsageCommandInput, options: FreeTierRequestOptions, cb: (err: any, data?: GetFreeTierUsageCommandOutput) => void): void;
29
35
  /**
30
36
  * @see {@link ListAccountActivitiesCommand}
31
37
  */
32
38
  listAccountActivities(): Promise<ListAccountActivitiesCommandOutput>;
33
- listAccountActivities(args: ListAccountActivitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountActivitiesCommandOutput>;
39
+ listAccountActivities(args: ListAccountActivitiesCommandInput, options?: FreeTierRequestOptions): Promise<ListAccountActivitiesCommandOutput>;
34
40
  listAccountActivities(args: ListAccountActivitiesCommandInput, cb: (err: any, data?: ListAccountActivitiesCommandOutput) => void): void;
35
- listAccountActivities(args: ListAccountActivitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountActivitiesCommandOutput) => void): void;
41
+ listAccountActivities(args: ListAccountActivitiesCommandInput, options: FreeTierRequestOptions, cb: (err: any, data?: ListAccountActivitiesCommandOutput) => void): void;
36
42
  /**
37
43
  * @see {@link UpgradeAccountPlanCommand}
38
44
  */
39
- upgradeAccountPlan(args: UpgradeAccountPlanCommandInput, options?: __HttpHandlerOptions): Promise<UpgradeAccountPlanCommandOutput>;
45
+ upgradeAccountPlan(args: UpgradeAccountPlanCommandInput, options?: FreeTierRequestOptions): Promise<UpgradeAccountPlanCommandOutput>;
40
46
  upgradeAccountPlan(args: UpgradeAccountPlanCommandInput, cb: (err: any, data?: UpgradeAccountPlanCommandOutput) => void): void;
41
- upgradeAccountPlan(args: UpgradeAccountPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpgradeAccountPlanCommandOutput) => void): void;
47
+ upgradeAccountPlan(args: UpgradeAccountPlanCommandInput, options: FreeTierRequestOptions, cb: (err: any, data?: UpgradeAccountPlanCommandOutput) => void): void;
42
48
  /**
43
49
  * @see {@link GetFreeTierUsageCommand}
44
50
  * @param args - command input.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
3
4
  PaginationConfiguration,
4
5
  Paginator,
5
6
  } from "@smithy/types";
@@ -24,10 +25,13 @@ import {
24
25
  UpgradeAccountPlanCommandOutput,
25
26
  } from "./commands/UpgradeAccountPlanCommand";
26
27
  import { FreeTierClient } from "./FreeTierClient";
28
+ export interface FreeTierRequestOptions extends __HttpHandlerOptions {
29
+ metricsRecorder?: __MetricsRecorder<unknown>;
30
+ }
27
31
  export interface FreeTier {
28
32
  getAccountActivity(
29
33
  args: GetAccountActivityCommandInput,
30
- options?: __HttpHandlerOptions,
34
+ options?: FreeTierRequestOptions,
31
35
  ): Promise<GetAccountActivityCommandOutput>;
32
36
  getAccountActivity(
33
37
  args: GetAccountActivityCommandInput,
@@ -35,13 +39,13 @@ export interface FreeTier {
35
39
  ): void;
36
40
  getAccountActivity(
37
41
  args: GetAccountActivityCommandInput,
38
- options: __HttpHandlerOptions,
42
+ options: FreeTierRequestOptions,
39
43
  cb: (err: any, data?: GetAccountActivityCommandOutput) => void,
40
44
  ): void;
41
45
  getAccountPlanState(): Promise<GetAccountPlanStateCommandOutput>;
42
46
  getAccountPlanState(
43
47
  args: GetAccountPlanStateCommandInput,
44
- options?: __HttpHandlerOptions,
48
+ options?: FreeTierRequestOptions,
45
49
  ): Promise<GetAccountPlanStateCommandOutput>;
46
50
  getAccountPlanState(
47
51
  args: GetAccountPlanStateCommandInput,
@@ -49,13 +53,13 @@ export interface FreeTier {
49
53
  ): void;
50
54
  getAccountPlanState(
51
55
  args: GetAccountPlanStateCommandInput,
52
- options: __HttpHandlerOptions,
56
+ options: FreeTierRequestOptions,
53
57
  cb: (err: any, data?: GetAccountPlanStateCommandOutput) => void,
54
58
  ): void;
55
59
  getFreeTierUsage(): Promise<GetFreeTierUsageCommandOutput>;
56
60
  getFreeTierUsage(
57
61
  args: GetFreeTierUsageCommandInput,
58
- options?: __HttpHandlerOptions,
62
+ options?: FreeTierRequestOptions,
59
63
  ): Promise<GetFreeTierUsageCommandOutput>;
60
64
  getFreeTierUsage(
61
65
  args: GetFreeTierUsageCommandInput,
@@ -63,13 +67,13 @@ export interface FreeTier {
63
67
  ): void;
64
68
  getFreeTierUsage(
65
69
  args: GetFreeTierUsageCommandInput,
66
- options: __HttpHandlerOptions,
70
+ options: FreeTierRequestOptions,
67
71
  cb: (err: any, data?: GetFreeTierUsageCommandOutput) => void,
68
72
  ): void;
69
73
  listAccountActivities(): Promise<ListAccountActivitiesCommandOutput>;
70
74
  listAccountActivities(
71
75
  args: ListAccountActivitiesCommandInput,
72
- options?: __HttpHandlerOptions,
76
+ options?: FreeTierRequestOptions,
73
77
  ): Promise<ListAccountActivitiesCommandOutput>;
74
78
  listAccountActivities(
75
79
  args: ListAccountActivitiesCommandInput,
@@ -77,12 +81,12 @@ export interface FreeTier {
77
81
  ): void;
78
82
  listAccountActivities(
79
83
  args: ListAccountActivitiesCommandInput,
80
- options: __HttpHandlerOptions,
84
+ options: FreeTierRequestOptions,
81
85
  cb: (err: any, data?: ListAccountActivitiesCommandOutput) => void,
82
86
  ): void;
83
87
  upgradeAccountPlan(
84
88
  args: UpgradeAccountPlanCommandInput,
85
- options?: __HttpHandlerOptions,
89
+ options?: FreeTierRequestOptions,
86
90
  ): Promise<UpgradeAccountPlanCommandOutput>;
87
91
  upgradeAccountPlan(
88
92
  args: UpgradeAccountPlanCommandInput,
@@ -90,7 +94,7 @@ export interface FreeTier {
90
94
  ): void;
91
95
  upgradeAccountPlan(
92
96
  args: UpgradeAccountPlanCommandInput,
93
- options: __HttpHandlerOptions,
97
+ options: FreeTierRequestOptions,
94
98
  cb: (err: any, data?: UpgradeAccountPlanCommandOutput) => void,
95
99
  ): void;
96
100
  paginateGetFreeTierUsage(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-freetier",
3
- "version": "3.1137.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Freetier Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-freetier",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {