@aws-sdk/client-freetier 3.533.0 → 3.540.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.
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -452,9 +452,6 @@ var FreeTier = _FreeTier;
452
452
  // src/pagination/GetFreeTierUsagePaginator.ts
453
453
 
454
454
  var paginateGetFreeTierUsage = (0, import_core.createPaginator)(FreeTierClient, GetFreeTierUsageCommand, "nextToken", "nextToken", "maxResults");
455
-
456
- // src/index.ts
457
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
458
455
  // Annotate the CommonJS export names for ESM import in node:
459
456
 
460
457
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -3,5 +3,4 @@ export * from "./FreeTier";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./models";
6
- import "@aws-sdk/util-endpoints";
7
6
  export { FreeTierServiceException } from "./models/FreeTierServiceException";
@@ -5,12 +5,12 @@ export interface FreeTier {
5
5
  /**
6
6
  * @see {@link GetFreeTierUsageCommand}
7
7
  */
8
+ getFreeTierUsage(): Promise<GetFreeTierUsageCommandOutput>;
8
9
  getFreeTierUsage(args: GetFreeTierUsageCommandInput, options?: __HttpHandlerOptions): Promise<GetFreeTierUsageCommandOutput>;
9
10
  getFreeTierUsage(args: GetFreeTierUsageCommandInput, cb: (err: any, data?: GetFreeTierUsageCommandOutput) => void): void;
10
11
  getFreeTierUsage(args: GetFreeTierUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFreeTierUsageCommandOutput) => void): void;
11
12
  }
12
13
  /**
13
- * @public
14
14
  * <p>You can use the Amazon Web Services Free Tier API to query programmatically your Free Tier usage data.</p>
15
15
  * <p>Free Tier tracks your monthly usage data for all free tier offers that are associated with your
16
16
  * Amazon Web Services account. You can use the Free Tier API to filter and show only the data that you want.</p>
@@ -22,6 +22,7 @@ export interface FreeTier {
22
22
  * </li>
23
23
  * </ul>
24
24
  * <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>
25
+ * @public
25
26
  */
26
27
  export declare class FreeTier extends FreeTierClient implements FreeTier {
27
28
  }
@@ -152,7 +152,6 @@ export type FreeTierClientResolvedConfigType = __SmithyResolvedConfiguration<__H
152
152
  export interface FreeTierClientResolvedConfig extends FreeTierClientResolvedConfigType {
153
153
  }
154
154
  /**
155
- * @public
156
155
  * <p>You can use the Amazon Web Services Free Tier API to query programmatically your Free Tier usage data.</p>
157
156
  * <p>Free Tier tracks your monthly usage data for all free tier offers that are associated with your
158
157
  * Amazon Web Services account. You can use the Free Tier API to filter and show only the data that you want.</p>
@@ -164,6 +163,7 @@ export interface FreeTierClientResolvedConfig extends FreeTierClientResolvedConf
164
163
  * </li>
165
164
  * </ul>
166
165
  * <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>
166
+ * @public
167
167
  */
168
168
  export declare class FreeTierClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, FreeTierClientResolvedConfig> {
169
169
  /**
@@ -22,10 +22,10 @@ export interface GetFreeTierUsageCommandOutput extends GetFreeTierUsageResponse,
22
22
  }
23
23
  declare const GetFreeTierUsageCommand_base: {
24
24
  new (input: GetFreeTierUsageCommandInput): import("@smithy/smithy-client").CommandImpl<GetFreeTierUsageCommandInput, GetFreeTierUsageCommandOutput, FreeTierClientResolvedConfig, GetFreeTierUsageCommandInput, GetFreeTierUsageCommandOutput>;
25
+ new (...[input]: [] | [GetFreeTierUsageCommandInput]): import("@smithy/smithy-client").CommandImpl<GetFreeTierUsageCommandInput, GetFreeTierUsageCommandOutput, FreeTierClientResolvedConfig, GetFreeTierUsageCommandInput, GetFreeTierUsageCommandOutput>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Returns a list of all Free Tier usage objects that match your filters.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
@@ -112,6 +112,7 @@ declare const GetFreeTierUsageCommand_base: {
112
112
  * @throws {@link FreeTierServiceException}
113
113
  * <p>Base exception class for all service exceptions from FreeTier service.</p>
114
114
  *
115
+ * @public
115
116
  */
116
117
  export declare class GetFreeTierUsageCommand extends GetFreeTierUsageCommand_base {
117
118
  }
@@ -21,5 +21,4 @@ export { FreeTierExtensionConfiguration } from "./extensionConfiguration";
21
21
  export * from "./commands";
22
22
  export * from "./pagination";
23
23
  export * from "./models";
24
- import "@aws-sdk/util-endpoints";
25
24
  export { FreeTierServiceException } from "./models/FreeTierServiceException";
@@ -33,86 +33,86 @@ export declare const MatchOption: {
33
33
  */
34
34
  export type MatchOption = (typeof MatchOption)[keyof typeof MatchOption];
35
35
  /**
36
- * @public
37
36
  * <p>Contains the specifications for the filters to use for your request.</p>
37
+ * @public
38
38
  */
39
39
  export interface DimensionValues {
40
40
  /**
41
- * @public
42
41
  * <p>The name of the dimension that you want to filter on.</p>
42
+ * @public
43
43
  */
44
44
  Key: Dimension | undefined;
45
45
  /**
46
- * @public
47
46
  * <p>The metadata values you can specify to filter upon, so that the results all match at least
48
47
  * one of the specified values.</p>
48
+ * @public
49
49
  */
50
50
  Values: string[] | undefined;
51
51
  /**
52
- * @public
53
52
  * <p>The match options that you can use to filter your results. You can specify only one of
54
53
  * these values in the array.</p>
54
+ * @public
55
55
  */
56
56
  MatchOptions: MatchOption[] | undefined;
57
57
  }
58
58
  /**
59
- * @public
60
59
  * <p>Consists of a Amazon Web Services Free Tier offer’s metadata and your data usage for the offer.</p>
60
+ * @public
61
61
  */
62
62
  export interface FreeTierUsage {
63
63
  /**
64
- * @public
65
64
  * <p>The name of the Amazon Web Service providing the Free Tier offer. For example, this can be
66
65
  * Amazon Elastic Compute Cloud.</p>
66
+ * @public
67
67
  */
68
68
  service?: string;
69
69
  /**
70
- * @public
71
70
  * <p>Describes <code>usageType</code> more granularly with the specific Amazon Web Service API
72
71
  * operation. For example, this can be the <code>RunInstances</code> API operation for
73
72
  * Amazon Elastic Compute Cloud.</p>
73
+ * @public
74
74
  */
75
75
  operation?: string;
76
76
  /**
77
- * @public
78
77
  * <p>Describes the usage details of the offer. For example, this might be
79
78
  * <code>Global-BoxUsage:freetrial</code>.</p>
79
+ * @public
80
80
  */
81
81
  usageType?: string;
82
82
  /**
83
- * @public
84
83
  * <p>Describes the Amazon Web Services Region for which this offer is applicable</p>
84
+ * @public
85
85
  */
86
86
  region?: string;
87
87
  /**
88
- * @public
89
88
  * <p>Describes the actual usage accrued month-to-day (MTD) that you've used so far.</p>
89
+ * @public
90
90
  */
91
91
  actualUsageAmount?: number;
92
92
  /**
93
- * @public
94
93
  * <p>Describes the forecasted usage by the month that you're expected to use.</p>
94
+ * @public
95
95
  */
96
96
  forecastedUsageAmount?: number;
97
97
  /**
98
- * @public
99
98
  * <p>Describes the maximum usage allowed in Free Tier.</p>
99
+ * @public
100
100
  */
101
101
  limit?: number;
102
102
  /**
103
- * @public
104
103
  * <p>Describes the unit of the <code>usageType</code>, such as <code>Hrs</code>.</p>
104
+ * @public
105
105
  */
106
106
  unit?: string;
107
107
  /**
108
- * @public
109
108
  * <p>The description of the Free Tier offer.</p>
109
+ * @public
110
110
  */
111
111
  description?: string;
112
112
  /**
113
- * @public
114
113
  * <p>Describes the type of the Free Tier offer. For example, the offer can be <code>"12 Months
115
114
  * Free"</code>, <code>"Always Free"</code>, and <code>"Free Trial"</code>.</p>
115
+ * @public
116
116
  */
117
117
  freeTierType?: string;
118
118
  }
@@ -121,19 +121,19 @@ export interface FreeTierUsage {
121
121
  */
122
122
  export interface GetFreeTierUsageResponse {
123
123
  /**
124
- * @public
125
124
  * <p>The list of Free Tier usage objects that meet your filter expression.</p>
125
+ * @public
126
126
  */
127
127
  freeTierUsages: FreeTierUsage[] | undefined;
128
128
  /**
129
- * @public
130
129
  * <p>The pagination token that indicates the next set of results to retrieve.</p>
130
+ * @public
131
131
  */
132
132
  nextToken?: string;
133
133
  }
134
134
  /**
135
- * @public
136
135
  * <p>An unexpected error occurred during the processing of your request.</p>
136
+ * @public
137
137
  */
138
138
  export declare class InternalServerException extends __BaseException {
139
139
  readonly name: "InternalServerException";
@@ -144,8 +144,8 @@ export declare class InternalServerException extends __BaseException {
144
144
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
145
145
  }
146
146
  /**
147
- * @public
148
147
  * <p>The request was denied due to request throttling.</p>
148
+ * @public
149
149
  */
150
150
  export declare class ThrottlingException extends __BaseException {
151
151
  readonly name: "ThrottlingException";
@@ -156,8 +156,8 @@ export declare class ThrottlingException extends __BaseException {
156
156
  constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
157
157
  }
158
158
  /**
159
- * @public
160
159
  * <p>The input fails to satisfy the constraints specified by an Amazon Web Service.</p>
160
+ * @public
161
161
  */
162
162
  export declare class ValidationException extends __BaseException {
163
163
  readonly name: "ValidationException";
@@ -168,7 +168,6 @@ export declare class ValidationException extends __BaseException {
168
168
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
169
169
  }
170
170
  /**
171
- * @public
172
171
  * <p>Use <code>Expression</code> to filter in the <code>GetFreeTierUsage</code> API operation.</p>
173
172
  * <p>You can use the following patterns:</p>
174
173
  * <ul>
@@ -204,28 +203,29 @@ export declare class ValidationException extends __BaseException {
204
203
  * </p>
205
204
  * <p>In the following <b>Contents</b>, you must specify exactly one of the
206
205
  * following root operators.</p>
206
+ * @public
207
207
  */
208
208
  export interface Expression {
209
209
  /**
210
- * @public
211
210
  * <p>Return results that match any of the <code>Expressions</code> that you specified. in the
212
211
  * array.</p>
212
+ * @public
213
213
  */
214
214
  Or?: Expression[];
215
215
  /**
216
- * @public
217
216
  * <p>Return results that match all <code>Expressions</code> that you specified in the
218
217
  * array.</p>
218
+ * @public
219
219
  */
220
220
  And?: Expression[];
221
221
  /**
222
- * @public
223
222
  * <p>Return results that don’t match the <code>Expression</code> that you specified.</p>
223
+ * @public
224
224
  */
225
225
  Not?: Expression;
226
226
  /**
227
- * @public
228
227
  * <p>The specific dimension, values, and match type to filter objects with.</p>
228
+ * @public
229
229
  */
230
230
  Dimensions?: DimensionValues;
231
231
  }
@@ -234,21 +234,21 @@ export interface Expression {
234
234
  */
235
235
  export interface GetFreeTierUsageRequest {
236
236
  /**
237
- * @public
238
237
  * <p>An expression that specifies the conditions that you want each <code>FreeTierUsage</code> object
239
238
  * to meet.</p>
239
+ * @public
240
240
  */
241
241
  filter?: Expression;
242
242
  /**
243
- * @public
244
243
  * <p>The maximum number of results to return in the response. <code>MaxResults</code> means
245
244
  * that there can be up to the specified number of values, but there might be fewer results based
246
245
  * on your filters.</p>
246
+ * @public
247
247
  */
248
248
  maxResults?: number;
249
249
  /**
250
- * @public
251
250
  * <p>The pagination token that indicates the next set of results to retrieve.</p>
251
+ * @public
252
252
  */
253
253
  nextToken?: string;
254
254
  }
@@ -5,6 +5,7 @@ import {
5
5
  } from "./commands/GetFreeTierUsageCommand";
6
6
  import { FreeTierClient } from "./FreeTierClient";
7
7
  export interface FreeTier {
8
+ getFreeTierUsage(): Promise<GetFreeTierUsageCommandOutput>;
8
9
  getFreeTierUsage(
9
10
  args: GetFreeTierUsageCommandInput,
10
11
  options?: __HttpHandlerOptions
@@ -20,6 +20,15 @@ declare const GetFreeTierUsageCommand_base: {
20
20
  GetFreeTierUsageCommandInput,
21
21
  GetFreeTierUsageCommandOutput
22
22
  >;
23
+ new (
24
+ ...[input]: [] | [GetFreeTierUsageCommandInput]
25
+ ): import("@smithy/smithy-client").CommandImpl<
26
+ GetFreeTierUsageCommandInput,
27
+ GetFreeTierUsageCommandOutput,
28
+ FreeTierClientResolvedConfig,
29
+ GetFreeTierUsageCommandInput,
30
+ GetFreeTierUsageCommandOutput
31
+ >;
23
32
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
24
33
  };
25
34
  export declare class GetFreeTierUsageCommand extends GetFreeTierUsageCommand_base {}
@@ -6,5 +6,4 @@ export { FreeTierExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
8
  export * from "./models";
9
- import "@aws-sdk/util-endpoints";
10
9
  export { FreeTierServiceException } from "./models/FreeTierServiceException";
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.533.0",
4
+ "version": "3.540.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-freetier",
@@ -20,47 +20,47 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.533.0",
24
- "@aws-sdk/core": "3.533.0",
25
- "@aws-sdk/credential-provider-node": "3.533.0",
26
- "@aws-sdk/middleware-host-header": "3.533.0",
27
- "@aws-sdk/middleware-logger": "3.533.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.533.0",
29
- "@aws-sdk/middleware-user-agent": "3.533.0",
30
- "@aws-sdk/region-config-resolver": "3.533.0",
31
- "@aws-sdk/types": "3.533.0",
32
- "@aws-sdk/util-endpoints": "3.533.0",
33
- "@aws-sdk/util-user-agent-browser": "3.533.0",
34
- "@aws-sdk/util-user-agent-node": "3.533.0",
35
- "@smithy/config-resolver": "^2.1.5",
36
- "@smithy/core": "^1.3.8",
37
- "@smithy/fetch-http-handler": "^2.4.5",
38
- "@smithy/hash-node": "^2.1.4",
39
- "@smithy/invalid-dependency": "^2.1.4",
40
- "@smithy/middleware-content-length": "^2.1.4",
41
- "@smithy/middleware-endpoint": "^2.4.6",
42
- "@smithy/middleware-retry": "^2.1.7",
43
- "@smithy/middleware-serde": "^2.2.1",
44
- "@smithy/middleware-stack": "^2.1.4",
45
- "@smithy/node-config-provider": "^2.2.5",
46
- "@smithy/node-http-handler": "^2.4.3",
47
- "@smithy/protocol-http": "^3.2.2",
48
- "@smithy/smithy-client": "^2.4.5",
49
- "@smithy/types": "^2.11.0",
50
- "@smithy/url-parser": "^2.1.4",
51
- "@smithy/util-base64": "^2.2.1",
52
- "@smithy/util-body-length-browser": "^2.1.1",
53
- "@smithy/util-body-length-node": "^2.2.2",
54
- "@smithy/util-defaults-mode-browser": "^2.1.7",
55
- "@smithy/util-defaults-mode-node": "^2.2.7",
56
- "@smithy/util-endpoints": "^1.1.5",
57
- "@smithy/util-middleware": "^2.1.4",
58
- "@smithy/util-retry": "^2.1.4",
59
- "@smithy/util-utf8": "^2.2.0",
60
- "tslib": "^2.5.0"
23
+ "@aws-sdk/client-sts": "3.540.0",
24
+ "@aws-sdk/core": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.540.0",
26
+ "@aws-sdk/middleware-host-header": "3.535.0",
27
+ "@aws-sdk/middleware-logger": "3.535.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.540.0",
30
+ "@aws-sdk/region-config-resolver": "3.535.0",
31
+ "@aws-sdk/types": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.540.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.535.0",
34
+ "@aws-sdk/util-user-agent-node": "3.535.0",
35
+ "@smithy/config-resolver": "^2.2.0",
36
+ "@smithy/core": "^1.4.0",
37
+ "@smithy/fetch-http-handler": "^2.5.0",
38
+ "@smithy/hash-node": "^2.2.0",
39
+ "@smithy/invalid-dependency": "^2.2.0",
40
+ "@smithy/middleware-content-length": "^2.2.0",
41
+ "@smithy/middleware-endpoint": "^2.5.0",
42
+ "@smithy/middleware-retry": "^2.2.0",
43
+ "@smithy/middleware-serde": "^2.3.0",
44
+ "@smithy/middleware-stack": "^2.2.0",
45
+ "@smithy/node-config-provider": "^2.3.0",
46
+ "@smithy/node-http-handler": "^2.5.0",
47
+ "@smithy/protocol-http": "^3.3.0",
48
+ "@smithy/smithy-client": "^2.5.0",
49
+ "@smithy/types": "^2.12.0",
50
+ "@smithy/url-parser": "^2.2.0",
51
+ "@smithy/util-base64": "^2.3.0",
52
+ "@smithy/util-body-length-browser": "^2.2.0",
53
+ "@smithy/util-body-length-node": "^2.3.0",
54
+ "@smithy/util-defaults-mode-browser": "^2.2.0",
55
+ "@smithy/util-defaults-mode-node": "^2.3.0",
56
+ "@smithy/util-endpoints": "^1.2.0",
57
+ "@smithy/util-middleware": "^2.2.0",
58
+ "@smithy/util-retry": "^2.2.0",
59
+ "@smithy/util-utf8": "^2.3.0",
60
+ "tslib": "^2.6.2"
61
61
  },
62
62
  "devDependencies": {
63
- "@smithy/service-client-documentation-generator": "^2.1.1",
63
+ "@smithy/service-client-documentation-generator": "^2.2.0",
64
64
  "@tsconfig/node14": "1.0.3",
65
65
  "@types/node": "^14.14.31",
66
66
  "concurrently": "7.0.0",