@aws-sdk/client-pricing 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.
- package/dist-cjs/endpoint/endpointResolver.js +4 -2
- package/dist-cjs/index.js +32 -3
- package/dist-es/endpoint/endpointResolver.js +3 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/protocols/Aws_json1_1.js +13 -1
- package/dist-types/Pricing.d.ts +2 -1
- package/dist-types/PricingClient.d.ts +1 -1
- package/dist-types/commands/DescribeServicesCommand.d.ts +2 -1
- package/dist-types/commands/GetAttributeValuesCommand.d.ts +2 -1
- package/dist-types/commands/GetPriceListFileUrlCommand.d.ts +5 -1
- package/dist-types/commands/GetProductsCommand.d.ts +2 -1
- package/dist-types/commands/ListPriceListsCommand.d.ts +5 -1
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +66 -53
- package/dist-types/ts3.4/Pricing.d.ts +1 -0
- package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetAttributeValuesCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetPriceListFileUrlCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/GetProductsCommand.d.ts +9 -0
- package/dist-types/ts3.4/commands/ListPriceListsCommand.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/package.json +40 -40
|
@@ -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("@
|
|
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,
|
|
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
|
@@ -36,6 +36,7 @@ __export(src_exports, {
|
|
|
36
36
|
Pricing: () => Pricing,
|
|
37
37
|
PricingClient: () => PricingClient,
|
|
38
38
|
PricingServiceException: () => PricingServiceException,
|
|
39
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
39
40
|
ThrottlingException: () => ThrottlingException,
|
|
40
41
|
__Client: () => import_smithy_client.Client,
|
|
41
42
|
paginateDescribeServices: () => paginateDescribeServices,
|
|
@@ -347,6 +348,24 @@ var _ThrottlingException = class _ThrottlingException extends PricingServiceExce
|
|
|
347
348
|
};
|
|
348
349
|
__name(_ThrottlingException, "ThrottlingException");
|
|
349
350
|
var ThrottlingException = _ThrottlingException;
|
|
351
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends PricingServiceException {
|
|
352
|
+
/**
|
|
353
|
+
* @internal
|
|
354
|
+
*/
|
|
355
|
+
constructor(opts) {
|
|
356
|
+
super({
|
|
357
|
+
name: "ResourceNotFoundException",
|
|
358
|
+
$fault: "client",
|
|
359
|
+
...opts
|
|
360
|
+
});
|
|
361
|
+
this.name = "ResourceNotFoundException";
|
|
362
|
+
this.$fault = "client";
|
|
363
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
364
|
+
this.Message = opts.Message;
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
368
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
350
369
|
var FilterType = {
|
|
351
370
|
TERM_MATCH: "TERM_MATCH"
|
|
352
371
|
};
|
|
@@ -475,6 +494,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
475
494
|
case "AccessDeniedException":
|
|
476
495
|
case "com.amazonaws.pricing#AccessDeniedException":
|
|
477
496
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
497
|
+
case "ResourceNotFoundException":
|
|
498
|
+
case "com.amazonaws.pricing#ResourceNotFoundException":
|
|
499
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
478
500
|
default:
|
|
479
501
|
const parsedBody = parsedOutput.body;
|
|
480
502
|
return throwDefaultError({
|
|
@@ -538,6 +560,15 @@ var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, contex
|
|
|
538
560
|
});
|
|
539
561
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
540
562
|
}, "de_NotFoundExceptionRes");
|
|
563
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
564
|
+
const body = parsedOutput.body;
|
|
565
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
566
|
+
const exception = new ResourceNotFoundException({
|
|
567
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
568
|
+
...deserialized
|
|
569
|
+
});
|
|
570
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
571
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
541
572
|
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
542
573
|
const body = parsedOutput.body;
|
|
543
574
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -713,9 +744,6 @@ var paginateGetProducts = (0, import_core.createPaginator)(PricingClient, GetPro
|
|
|
713
744
|
// src/pagination/ListPriceListsPaginator.ts
|
|
714
745
|
|
|
715
746
|
var paginateListPriceLists = (0, import_core.createPaginator)(PricingClient, ListPriceListsCommand, "NextToken", "NextToken", "MaxResults");
|
|
716
|
-
|
|
717
|
-
// src/index.ts
|
|
718
|
-
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
719
747
|
// Annotate the CommonJS export names for ESM import in node:
|
|
720
748
|
|
|
721
749
|
0 && (module.exports = {
|
|
@@ -740,6 +768,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
740
768
|
InvalidParameterException,
|
|
741
769
|
NotFoundException,
|
|
742
770
|
ThrottlingException,
|
|
771
|
+
ResourceNotFoundException,
|
|
743
772
|
FilterType
|
|
744
773
|
});
|
|
745
774
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
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
|
@@ -94,6 +94,19 @@ export class ThrottlingException extends __BaseException {
|
|
|
94
94
|
this.Message = opts.Message;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
98
|
+
constructor(opts) {
|
|
99
|
+
super({
|
|
100
|
+
name: "ResourceNotFoundException",
|
|
101
|
+
$fault: "client",
|
|
102
|
+
...opts,
|
|
103
|
+
});
|
|
104
|
+
this.name = "ResourceNotFoundException";
|
|
105
|
+
this.$fault = "client";
|
|
106
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
107
|
+
this.Message = opts.Message;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
97
110
|
export const FilterType = {
|
|
98
111
|
TERM_MATCH: "TERM_MATCH",
|
|
99
112
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, LazyJsonString as __LazyJsonString, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { AccessDeniedException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ThrottlingException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
import { PricingServiceException as __BaseException } from "../models/PricingServiceException";
|
|
6
6
|
export const se_DescribeServicesCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("DescribeServices");
|
|
@@ -126,6 +126,9 @@ const de_CommandError = async (output, context) => {
|
|
|
126
126
|
case "AccessDeniedException":
|
|
127
127
|
case "com.amazonaws.pricing#AccessDeniedException":
|
|
128
128
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
129
|
+
case "ResourceNotFoundException":
|
|
130
|
+
case "com.amazonaws.pricing#ResourceNotFoundException":
|
|
131
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
129
132
|
default:
|
|
130
133
|
const parsedBody = parsedOutput.body;
|
|
131
134
|
return throwDefaultError({
|
|
@@ -189,6 +192,15 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
189
192
|
});
|
|
190
193
|
return __decorateServiceException(exception, body);
|
|
191
194
|
};
|
|
195
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
196
|
+
const body = parsedOutput.body;
|
|
197
|
+
const deserialized = _json(body);
|
|
198
|
+
const exception = new ResourceNotFoundException({
|
|
199
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
200
|
+
...deserialized,
|
|
201
|
+
});
|
|
202
|
+
return __decorateServiceException(exception, body);
|
|
203
|
+
};
|
|
192
204
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
193
205
|
const body = parsedOutput.body;
|
|
194
206
|
const deserialized = _json(body);
|
package/dist-types/Pricing.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface Pricing {
|
|
|
9
9
|
/**
|
|
10
10
|
* @see {@link DescribeServicesCommand}
|
|
11
11
|
*/
|
|
12
|
+
describeServices(): Promise<DescribeServicesCommandOutput>;
|
|
12
13
|
describeServices(args: DescribeServicesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeServicesCommandOutput>;
|
|
13
14
|
describeServices(args: DescribeServicesCommandInput, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
|
|
14
15
|
describeServices(args: DescribeServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
|
|
@@ -38,7 +39,6 @@ export interface Pricing {
|
|
|
38
39
|
listPriceLists(args: ListPriceListsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPriceListsCommandOutput) => void): void;
|
|
39
40
|
}
|
|
40
41
|
/**
|
|
41
|
-
* @public
|
|
42
42
|
* <p>The Amazon Web Services Price List API is a centralized and convenient way to programmatically
|
|
43
43
|
* query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List uses standardized product attributes such as <code>Location</code>,
|
|
44
44
|
* <code>Storage Class</code>, and <code>Operating System</code>, and provides prices at
|
|
@@ -68,6 +68,7 @@ export interface Pricing {
|
|
|
68
68
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/price-changes.html">Using the
|
|
69
69
|
* Amazon Web Services Price List API</a> in the <i>Billing User
|
|
70
70
|
* Guide</i>.</p>
|
|
71
|
+
* @public
|
|
71
72
|
*/
|
|
72
73
|
export declare class Pricing extends PricingClient implements Pricing {
|
|
73
74
|
}
|
|
@@ -156,7 +156,6 @@ export type PricingClientResolvedConfigType = __SmithyResolvedConfiguration<__Ht
|
|
|
156
156
|
export interface PricingClientResolvedConfig extends PricingClientResolvedConfigType {
|
|
157
157
|
}
|
|
158
158
|
/**
|
|
159
|
-
* @public
|
|
160
159
|
* <p>The Amazon Web Services Price List API is a centralized and convenient way to programmatically
|
|
161
160
|
* query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List uses standardized product attributes such as <code>Location</code>,
|
|
162
161
|
* <code>Storage Class</code>, and <code>Operating System</code>, and provides prices at
|
|
@@ -186,6 +185,7 @@ export interface PricingClientResolvedConfig extends PricingClientResolvedConfig
|
|
|
186
185
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/price-changes.html">Using the
|
|
187
186
|
* Amazon Web Services Price List API</a> in the <i>Billing User
|
|
188
187
|
* Guide</i>.</p>
|
|
188
|
+
* @public
|
|
189
189
|
*/
|
|
190
190
|
export declare class PricingClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PricingClientResolvedConfig> {
|
|
191
191
|
/**
|
|
@@ -22,10 +22,10 @@ export interface DescribeServicesCommandOutput extends DescribeServicesResponse,
|
|
|
22
22
|
}
|
|
23
23
|
declare const DescribeServicesCommand_base: {
|
|
24
24
|
new (input: DescribeServicesCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeServicesCommandInput, DescribeServicesCommandOutput, PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (...[input]: [] | [DescribeServicesCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeServicesCommandInput, DescribeServicesCommandOutput, PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns the metadata for one service or a list of the metadata for all services. Use
|
|
30
30
|
* this without a service code to get the service codes for all services.
|
|
31
31
|
* Use it with a service code, such as <code>AmazonEC2</code>, to get information specific to
|
|
@@ -90,6 +90,7 @@ declare const DescribeServicesCommand_base: {
|
|
|
90
90
|
* @throws {@link PricingServiceException}
|
|
91
91
|
* <p>Base exception class for all service exceptions from Pricing service.</p>
|
|
92
92
|
*
|
|
93
|
+
* @public
|
|
93
94
|
*/
|
|
94
95
|
export declare class DescribeServicesCommand extends DescribeServicesCommand_base {
|
|
95
96
|
}
|
|
@@ -22,10 +22,10 @@ export interface GetAttributeValuesCommandOutput extends GetAttributeValuesRespo
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetAttributeValuesCommand_base: {
|
|
24
24
|
new (input: GetAttributeValuesCommandInput): import("@smithy/smithy-client").CommandImpl<GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput, PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetAttributeValuesCommandInput): import("@smithy/smithy-client").CommandImpl<GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput, PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns a list of attribute values. Attributes are similar to the details
|
|
30
30
|
* in a Price List API offer file. For a list of available attributes, see
|
|
31
31
|
* <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
|
|
@@ -83,6 +83,7 @@ declare const GetAttributeValuesCommand_base: {
|
|
|
83
83
|
* @throws {@link PricingServiceException}
|
|
84
84
|
* <p>Base exception class for all service exceptions from Pricing service.</p>
|
|
85
85
|
*
|
|
86
|
+
* @public
|
|
86
87
|
*/
|
|
87
88
|
export declare class GetAttributeValuesCommand extends GetAttributeValuesCommand_base {
|
|
88
89
|
}
|
|
@@ -22,10 +22,10 @@ export interface GetPriceListFileUrlCommandOutput extends GetPriceListFileUrlRes
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetPriceListFileUrlCommand_base: {
|
|
24
24
|
new (input: GetPriceListFileUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetPriceListFileUrlCommandInput, GetPriceListFileUrlCommandOutput, PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetPriceListFileUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GetPriceListFileUrlCommandInput, GetPriceListFileUrlCommandOutput, PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>
|
|
30
30
|
* <i>
|
|
31
31
|
* <b>This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the <a href="https://aws.amazon.com/service-terms/">Amazon Web Services Service Terms</a> (Section 1.10).</b>
|
|
@@ -70,6 +70,9 @@ declare const GetPriceListFileUrlCommand_base: {
|
|
|
70
70
|
* @throws {@link NotFoundException} (client fault)
|
|
71
71
|
* <p>The requested resource can't be found.</p>
|
|
72
72
|
*
|
|
73
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
74
|
+
* <p>The requested resource can't be found.</p>
|
|
75
|
+
*
|
|
73
76
|
* @throws {@link ThrottlingException} (client fault)
|
|
74
77
|
* <p>You've made too many requests exceeding service quotas.
|
|
75
78
|
* </p>
|
|
@@ -77,6 +80,7 @@ declare const GetPriceListFileUrlCommand_base: {
|
|
|
77
80
|
* @throws {@link PricingServiceException}
|
|
78
81
|
* <p>Base exception class for all service exceptions from Pricing service.</p>
|
|
79
82
|
*
|
|
83
|
+
* @public
|
|
80
84
|
*/
|
|
81
85
|
export declare class GetPriceListFileUrlCommand extends GetPriceListFileUrlCommand_base {
|
|
82
86
|
}
|
|
@@ -22,10 +22,10 @@ export interface GetProductsCommandOutput extends GetProductsResponse, __Metadat
|
|
|
22
22
|
}
|
|
23
23
|
declare const GetProductsCommand_base: {
|
|
24
24
|
new (input: GetProductsCommandInput): import("@smithy/smithy-client").CommandImpl<GetProductsCommandInput, GetProductsCommandOutput, PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: GetProductsCommandInput): import("@smithy/smithy-client").CommandImpl<GetProductsCommandInput, GetProductsCommandOutput, PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>Returns a list of all products that match the filter criteria.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -86,6 +86,7 @@ declare const GetProductsCommand_base: {
|
|
|
86
86
|
* @throws {@link PricingServiceException}
|
|
87
87
|
* <p>Base exception class for all service exceptions from Pricing service.</p>
|
|
88
88
|
*
|
|
89
|
+
* @public
|
|
89
90
|
*/
|
|
90
91
|
export declare class GetProductsCommand extends GetProductsCommand_base {
|
|
91
92
|
}
|
|
@@ -22,10 +22,10 @@ export interface ListPriceListsCommandOutput extends ListPriceListsResponse, __M
|
|
|
22
22
|
}
|
|
23
23
|
declare const ListPriceListsCommand_base: {
|
|
24
24
|
new (input: ListPriceListsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPriceListsCommandInput, ListPriceListsCommandOutput, PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: ListPriceListsCommandInput): import("@smithy/smithy-client").CommandImpl<ListPriceListsCommandInput, ListPriceListsCommandOutput, PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
26
27
|
};
|
|
27
28
|
/**
|
|
28
|
-
* @public
|
|
29
29
|
* <p>
|
|
30
30
|
* <i>
|
|
31
31
|
* <b>This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the <a href="https://aws.amazon.com/service-terms/">Amazon Web Services Service Terms</a> (Section 1.10).</b>
|
|
@@ -94,6 +94,9 @@ declare const ListPriceListsCommand_base: {
|
|
|
94
94
|
* @throws {@link NotFoundException} (client fault)
|
|
95
95
|
* <p>The requested resource can't be found.</p>
|
|
96
96
|
*
|
|
97
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
98
|
+
* <p>The requested resource can't be found.</p>
|
|
99
|
+
*
|
|
97
100
|
* @throws {@link ThrottlingException} (client fault)
|
|
98
101
|
* <p>You've made too many requests exceeding service quotas.
|
|
99
102
|
* </p>
|
|
@@ -101,6 +104,7 @@ declare const ListPriceListsCommand_base: {
|
|
|
101
104
|
* @throws {@link PricingServiceException}
|
|
102
105
|
* <p>Base exception class for all service exceptions from Pricing service.</p>
|
|
103
106
|
*
|
|
107
|
+
* @public
|
|
104
108
|
*/
|
|
105
109
|
export declare class ListPriceListsCommand extends ListPriceListsCommand_base {
|
|
106
110
|
}
|
package/dist-types/index.d.ts
CHANGED
|
@@ -39,5 +39,4 @@ export { PricingExtensionConfiguration } from "./extensionConfiguration";
|
|
|
39
39
|
export * from "./commands";
|
|
40
40
|
export * from "./pagination";
|
|
41
41
|
export * from "./models";
|
|
42
|
-
import "@aws-sdk/util-endpoints";
|
|
43
42
|
export { PricingServiceException } from "./models/PricingServiceException";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType, LazyJsonString as __LazyJsonString } from "@smithy/smithy-client";
|
|
2
2
|
import { PricingServiceException as __BaseException } from "./PricingServiceException";
|
|
3
3
|
/**
|
|
4
|
-
* @public
|
|
5
4
|
* <p>General authentication failure. The request wasn't signed correctly.</p>
|
|
5
|
+
* @public
|
|
6
6
|
*/
|
|
7
7
|
export declare class AccessDeniedException extends __BaseException {
|
|
8
8
|
readonly name: "AccessDeniedException";
|
|
@@ -14,15 +14,15 @@ export declare class AccessDeniedException extends __BaseException {
|
|
|
14
14
|
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* @public
|
|
18
17
|
* <p>The values of a given attribute, such as <code>Throughput Optimized HDD</code> or <code>Provisioned
|
|
19
18
|
* IOPS</code> for the <code>Amazon EC2</code>
|
|
20
19
|
* <code>volumeType</code> attribute.</p>
|
|
20
|
+
* @public
|
|
21
21
|
*/
|
|
22
22
|
export interface AttributeValue {
|
|
23
23
|
/**
|
|
24
|
-
* @public
|
|
25
24
|
* <p>The specific value of an <code>attributeName</code>.</p>
|
|
25
|
+
* @public
|
|
26
26
|
*/
|
|
27
27
|
Value?: string;
|
|
28
28
|
}
|
|
@@ -31,44 +31,44 @@ export interface AttributeValue {
|
|
|
31
31
|
*/
|
|
32
32
|
export interface DescribeServicesRequest {
|
|
33
33
|
/**
|
|
34
|
-
* @public
|
|
35
34
|
* <p>The code for the service whose information you want to retrieve, such as <code>AmazonEC2</code>.
|
|
36
35
|
* You can use
|
|
37
36
|
* the <code>ServiceCode</code> to filter the results in a <code>GetProducts</code> call.
|
|
38
37
|
* To retrieve a list of all services, leave this blank.</p>
|
|
38
|
+
* @public
|
|
39
39
|
*/
|
|
40
40
|
ServiceCode?: string;
|
|
41
41
|
/**
|
|
42
|
-
* @public
|
|
43
42
|
* <p>The format version that you want the response to be in.</p>
|
|
44
43
|
* <p>Valid values are: <code>aws_v1</code>
|
|
45
44
|
* </p>
|
|
45
|
+
* @public
|
|
46
46
|
*/
|
|
47
47
|
FormatVersion?: string;
|
|
48
48
|
/**
|
|
49
|
-
* @public
|
|
50
49
|
* <p>The pagination token that indicates the next set of results that you want to retrieve.</p>
|
|
50
|
+
* @public
|
|
51
51
|
*/
|
|
52
52
|
NextToken?: string;
|
|
53
53
|
/**
|
|
54
|
-
* @public
|
|
55
54
|
* <p>The maximum number of results that you want returned in the response.</p>
|
|
55
|
+
* @public
|
|
56
56
|
*/
|
|
57
57
|
MaxResults?: number;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* @public
|
|
61
60
|
* <p>The metadata for a service, such as the service code and available attribute names.</p>
|
|
61
|
+
* @public
|
|
62
62
|
*/
|
|
63
63
|
export interface Service {
|
|
64
64
|
/**
|
|
65
|
-
* @public
|
|
66
65
|
* <p>The code for the Amazon Web Services service.</p>
|
|
66
|
+
* @public
|
|
67
67
|
*/
|
|
68
68
|
ServiceCode: string | undefined;
|
|
69
69
|
/**
|
|
70
|
-
* @public
|
|
71
70
|
* <p>The attributes that are available for this service.</p>
|
|
71
|
+
* @public
|
|
72
72
|
*/
|
|
73
73
|
AttributeNames?: string[];
|
|
74
74
|
}
|
|
@@ -77,24 +77,24 @@ export interface Service {
|
|
|
77
77
|
*/
|
|
78
78
|
export interface DescribeServicesResponse {
|
|
79
79
|
/**
|
|
80
|
-
* @public
|
|
81
80
|
* <p>The service metadata for the service or services in the response.</p>
|
|
81
|
+
* @public
|
|
82
82
|
*/
|
|
83
83
|
Services?: Service[];
|
|
84
84
|
/**
|
|
85
|
-
* @public
|
|
86
85
|
* <p>The format version of the response. For example, <code>aws_v1</code>.</p>
|
|
86
|
+
* @public
|
|
87
87
|
*/
|
|
88
88
|
FormatVersion?: string;
|
|
89
89
|
/**
|
|
90
|
-
* @public
|
|
91
90
|
* <p>The pagination token for the next set of retrievable results.</p>
|
|
91
|
+
* @public
|
|
92
92
|
*/
|
|
93
93
|
NextToken?: string;
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
|
-
* @public
|
|
97
96
|
* <p>The pagination token expired. Try again without a pagination token.</p>
|
|
97
|
+
* @public
|
|
98
98
|
*/
|
|
99
99
|
export declare class ExpiredNextTokenException extends __BaseException {
|
|
100
100
|
readonly name: "ExpiredNextTokenException";
|
|
@@ -106,8 +106,8 @@ export declare class ExpiredNextTokenException extends __BaseException {
|
|
|
106
106
|
constructor(opts: __ExceptionOptionType<ExpiredNextTokenException, __BaseException>);
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* @public
|
|
110
109
|
* <p>An error on the server occurred during the processing of your request. Try again later.</p>
|
|
110
|
+
* @public
|
|
111
111
|
*/
|
|
112
112
|
export declare class InternalErrorException extends __BaseException {
|
|
113
113
|
readonly name: "InternalErrorException";
|
|
@@ -120,8 +120,8 @@ export declare class InternalErrorException extends __BaseException {
|
|
|
120
120
|
constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
* @public
|
|
124
123
|
* <p>The pagination token is invalid. Try again without a pagination token.</p>
|
|
124
|
+
* @public
|
|
125
125
|
*/
|
|
126
126
|
export declare class InvalidNextTokenException extends __BaseException {
|
|
127
127
|
readonly name: "InvalidNextTokenException";
|
|
@@ -133,8 +133,8 @@ export declare class InvalidNextTokenException extends __BaseException {
|
|
|
133
133
|
constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
|
|
134
134
|
}
|
|
135
135
|
/**
|
|
136
|
-
* @public
|
|
137
136
|
* <p>One or more parameters had an invalid value.</p>
|
|
137
|
+
* @public
|
|
138
138
|
*/
|
|
139
139
|
export declare class InvalidParameterException extends __BaseException {
|
|
140
140
|
readonly name: "InvalidParameterException";
|
|
@@ -146,8 +146,8 @@ export declare class InvalidParameterException extends __BaseException {
|
|
|
146
146
|
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
* @public
|
|
150
149
|
* <p>The requested resource can't be found.</p>
|
|
150
|
+
* @public
|
|
151
151
|
*/
|
|
152
152
|
export declare class NotFoundException extends __BaseException {
|
|
153
153
|
readonly name: "NotFoundException";
|
|
@@ -159,9 +159,9 @@ export declare class NotFoundException extends __BaseException {
|
|
|
159
159
|
constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
|
|
160
160
|
}
|
|
161
161
|
/**
|
|
162
|
-
* @public
|
|
163
162
|
* <p>You've made too many requests exceeding service quotas.
|
|
164
163
|
* </p>
|
|
164
|
+
* @public
|
|
165
165
|
*/
|
|
166
166
|
export declare class ThrottlingException extends __BaseException {
|
|
167
167
|
readonly name: "ThrottlingException";
|
|
@@ -180,24 +180,24 @@ export declare class ThrottlingException extends __BaseException {
|
|
|
180
180
|
*/
|
|
181
181
|
export interface GetAttributeValuesRequest {
|
|
182
182
|
/**
|
|
183
|
-
* @public
|
|
184
183
|
* <p>The service code for the service whose attributes you want to retrieve. For example, if you want
|
|
185
184
|
* the retrieve an EC2 attribute, use <code>AmazonEC2</code>.</p>
|
|
185
|
+
* @public
|
|
186
186
|
*/
|
|
187
187
|
ServiceCode: string | undefined;
|
|
188
188
|
/**
|
|
189
|
-
* @public
|
|
190
189
|
* <p>The name of the attribute that you want to retrieve the values for, such as <code>volumeType</code>.</p>
|
|
190
|
+
* @public
|
|
191
191
|
*/
|
|
192
192
|
AttributeName: string | undefined;
|
|
193
193
|
/**
|
|
194
|
-
* @public
|
|
195
194
|
* <p>The pagination token that indicates the next set of results that you want to retrieve.</p>
|
|
195
|
+
* @public
|
|
196
196
|
*/
|
|
197
197
|
NextToken?: string;
|
|
198
198
|
/**
|
|
199
|
-
* @public
|
|
200
199
|
* <p>The maximum number of results to return in response.</p>
|
|
200
|
+
* @public
|
|
201
201
|
*/
|
|
202
202
|
MaxResults?: number;
|
|
203
203
|
}
|
|
@@ -206,15 +206,15 @@ export interface GetAttributeValuesRequest {
|
|
|
206
206
|
*/
|
|
207
207
|
export interface GetAttributeValuesResponse {
|
|
208
208
|
/**
|
|
209
|
-
* @public
|
|
210
209
|
* <p>The list of values for an attribute. For example, <code>Throughput Optimized HDD</code> and
|
|
211
210
|
* <code>Provisioned IOPS</code> are two available values for the <code>AmazonEC2</code>
|
|
212
211
|
* <code>volumeType</code>.</p>
|
|
212
|
+
* @public
|
|
213
213
|
*/
|
|
214
214
|
AttributeValues?: AttributeValue[];
|
|
215
215
|
/**
|
|
216
|
-
* @public
|
|
217
216
|
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
217
|
+
* @public
|
|
218
218
|
*/
|
|
219
219
|
NextToken?: string;
|
|
220
220
|
}
|
|
@@ -223,15 +223,15 @@ export interface GetAttributeValuesResponse {
|
|
|
223
223
|
*/
|
|
224
224
|
export interface GetPriceListFileUrlRequest {
|
|
225
225
|
/**
|
|
226
|
-
* @public
|
|
227
226
|
* <p>The unique identifier that maps to where your Price List files are located.
|
|
228
227
|
* <code>PriceListArn</code> can be obtained from the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_ListPriceLists.html">ListPriceLists</a> response. </p>
|
|
228
|
+
* @public
|
|
229
229
|
*/
|
|
230
230
|
PriceListArn: string | undefined;
|
|
231
231
|
/**
|
|
232
|
-
* @public
|
|
233
232
|
* <p>The format that you want to retrieve your Price List files in. The
|
|
234
233
|
* <code>FileFormat</code> can be obtained from the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_ListPriceLists.html">ListPriceLists</a> response. </p>
|
|
234
|
+
* @public
|
|
235
235
|
*/
|
|
236
236
|
FileFormat: string | undefined;
|
|
237
237
|
}
|
|
@@ -240,11 +240,24 @@ export interface GetPriceListFileUrlRequest {
|
|
|
240
240
|
*/
|
|
241
241
|
export interface GetPriceListFileUrlResponse {
|
|
242
242
|
/**
|
|
243
|
-
* @public
|
|
244
243
|
* <p>The URL to download your Price List file from. </p>
|
|
244
|
+
* @public
|
|
245
245
|
*/
|
|
246
246
|
Url?: string;
|
|
247
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* <p>The requested resource can't be found.</p>
|
|
250
|
+
* @public
|
|
251
|
+
*/
|
|
252
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
253
|
+
readonly name: "ResourceNotFoundException";
|
|
254
|
+
readonly $fault: "client";
|
|
255
|
+
Message?: string;
|
|
256
|
+
/**
|
|
257
|
+
* @internal
|
|
258
|
+
*/
|
|
259
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
260
|
+
}
|
|
248
261
|
/**
|
|
249
262
|
* @public
|
|
250
263
|
* @enum
|
|
@@ -257,19 +270,18 @@ export declare const FilterType: {
|
|
|
257
270
|
*/
|
|
258
271
|
export type FilterType = (typeof FilterType)[keyof typeof FilterType];
|
|
259
272
|
/**
|
|
260
|
-
* @public
|
|
261
273
|
* <p>The constraints that you want all returned products to match.</p>
|
|
274
|
+
* @public
|
|
262
275
|
*/
|
|
263
276
|
export interface Filter {
|
|
264
277
|
/**
|
|
265
|
-
* @public
|
|
266
278
|
* <p>The type of filter that you want to use.</p>
|
|
267
279
|
* <p>Valid values are: <code>TERM_MATCH</code>. <code>TERM_MATCH</code> returns only
|
|
268
280
|
* products that match both the given filter field and the given value.</p>
|
|
281
|
+
* @public
|
|
269
282
|
*/
|
|
270
283
|
Type: FilterType | undefined;
|
|
271
284
|
/**
|
|
272
|
-
* @public
|
|
273
285
|
* <p>The product metadata field that you want to filter on. You can filter by just the
|
|
274
286
|
* service code to see all products for a specific service, filter
|
|
275
287
|
* by just the attribute name to see a specific attribute for multiple services, or use both a service code
|
|
@@ -277,14 +289,15 @@ export interface Filter {
|
|
|
277
289
|
* <p>Valid values include: <code>ServiceCode</code>, and all attribute names</p>
|
|
278
290
|
* <p>For example, you can filter by the <code>AmazonEC2</code> service code and the
|
|
279
291
|
* <code>volumeType</code> attribute name to get the prices for only Amazon EC2 volumes.</p>
|
|
292
|
+
* @public
|
|
280
293
|
*/
|
|
281
294
|
Field: string | undefined;
|
|
282
295
|
/**
|
|
283
|
-
* @public
|
|
284
296
|
* <p>The service code or attribute value that you want to filter by. If you're filtering
|
|
285
297
|
* by service code this is the actual service code, such as <code>AmazonEC2</code>. If you're
|
|
286
298
|
* filtering by attribute name, this is the attribute value that you want the returned
|
|
287
299
|
* products to match, such as a <code>Provisioned IOPS</code> volume.</p>
|
|
300
|
+
* @public
|
|
288
301
|
*/
|
|
289
302
|
Value: string | undefined;
|
|
290
303
|
}
|
|
@@ -293,31 +306,31 @@ export interface Filter {
|
|
|
293
306
|
*/
|
|
294
307
|
export interface GetProductsRequest {
|
|
295
308
|
/**
|
|
296
|
-
* @public
|
|
297
309
|
* <p>The code for the service whose products you want to retrieve. </p>
|
|
310
|
+
* @public
|
|
298
311
|
*/
|
|
299
312
|
ServiceCode: string | undefined;
|
|
300
313
|
/**
|
|
301
|
-
* @public
|
|
302
314
|
* <p>The list of filters that limit the returned products. only products that match all filters
|
|
303
315
|
* are returned.</p>
|
|
316
|
+
* @public
|
|
304
317
|
*/
|
|
305
318
|
Filters?: Filter[];
|
|
306
319
|
/**
|
|
307
|
-
* @public
|
|
308
320
|
* <p>The format version that you want the response to be in.</p>
|
|
309
321
|
* <p>Valid values are: <code>aws_v1</code>
|
|
310
322
|
* </p>
|
|
323
|
+
* @public
|
|
311
324
|
*/
|
|
312
325
|
FormatVersion?: string;
|
|
313
326
|
/**
|
|
314
|
-
* @public
|
|
315
327
|
* <p>The pagination token that indicates the next set of results that you want to retrieve.</p>
|
|
328
|
+
* @public
|
|
316
329
|
*/
|
|
317
330
|
NextToken?: string;
|
|
318
331
|
/**
|
|
319
|
-
* @public
|
|
320
332
|
* <p>The maximum number of results to return in the response.</p>
|
|
333
|
+
* @public
|
|
321
334
|
*/
|
|
322
335
|
MaxResults?: number;
|
|
323
336
|
}
|
|
@@ -326,19 +339,19 @@ export interface GetProductsRequest {
|
|
|
326
339
|
*/
|
|
327
340
|
export interface GetProductsResponse {
|
|
328
341
|
/**
|
|
329
|
-
* @public
|
|
330
342
|
* <p>The format version of the response. For example, aws_v1.</p>
|
|
343
|
+
* @public
|
|
331
344
|
*/
|
|
332
345
|
FormatVersion?: string;
|
|
333
346
|
/**
|
|
334
|
-
* @public
|
|
335
347
|
* <p>The list of products that match your filters. The list contains both the product metadata and
|
|
336
348
|
* the price information.</p>
|
|
349
|
+
* @public
|
|
337
350
|
*/
|
|
338
351
|
PriceList?: (__LazyJsonString | string)[];
|
|
339
352
|
/**
|
|
340
|
-
* @public
|
|
341
353
|
* <p>The pagination token that indicates the next set of results to retrieve.</p>
|
|
354
|
+
* @public
|
|
342
355
|
*/
|
|
343
356
|
NextToken?: string;
|
|
344
357
|
}
|
|
@@ -347,7 +360,6 @@ export interface GetProductsResponse {
|
|
|
347
360
|
*/
|
|
348
361
|
export interface ListPriceListsRequest {
|
|
349
362
|
/**
|
|
350
|
-
* @public
|
|
351
363
|
* <p>The service code or the Savings Plan service code for the attributes that
|
|
352
364
|
* you want to retrieve. For example, to get the list of applicable Amazon EC2 price
|
|
353
365
|
* lists, use <code>AmazonEC2</code>. For a full list of service codes containing On-Demand
|
|
@@ -356,79 +368,80 @@ export interface ListPriceListsRequest {
|
|
|
356
368
|
* use <code>ComputeSavingsPlans</code>. </p>
|
|
357
369
|
* <p>To retrieve Machine Learning Savings Plans price lists, use
|
|
358
370
|
* <code>MachineLearningSavingsPlans</code>. </p>
|
|
371
|
+
* @public
|
|
359
372
|
*/
|
|
360
373
|
ServiceCode: string | undefined;
|
|
361
374
|
/**
|
|
362
|
-
* @public
|
|
363
375
|
* <p>The date that the Price List file prices are effective from. </p>
|
|
376
|
+
* @public
|
|
364
377
|
*/
|
|
365
378
|
EffectiveDate: Date | undefined;
|
|
366
379
|
/**
|
|
367
|
-
* @public
|
|
368
380
|
* <p>This is used to filter the Price List by Amazon Web Services Region. For example, to get
|
|
369
381
|
* the price list only for the <code>US East (N. Virginia)</code> Region, use
|
|
370
382
|
* <code>us-east-1</code>. If nothing is specified, you retrieve price lists for all
|
|
371
383
|
* applicable Regions. The available <code>RegionCode</code> list can be retrieved from <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_GetAttributeValues.html">GetAttributeValues</a> API.</p>
|
|
384
|
+
* @public
|
|
372
385
|
*/
|
|
373
386
|
RegionCode?: string;
|
|
374
387
|
/**
|
|
375
|
-
* @public
|
|
376
388
|
* <p>The three alphabetical character ISO-4217 currency code that the Price List files are
|
|
377
389
|
* denominated in. </p>
|
|
390
|
+
* @public
|
|
378
391
|
*/
|
|
379
392
|
CurrencyCode: string | undefined;
|
|
380
393
|
/**
|
|
381
|
-
* @public
|
|
382
394
|
* <p>The pagination token that indicates the next set of results that you want to retrieve. </p>
|
|
395
|
+
* @public
|
|
383
396
|
*/
|
|
384
397
|
NextToken?: string;
|
|
385
398
|
/**
|
|
386
|
-
* @public
|
|
387
399
|
* <p>The maximum number of results to return in the response.
|
|
388
400
|
* </p>
|
|
401
|
+
* @public
|
|
389
402
|
*/
|
|
390
403
|
MaxResults?: number;
|
|
391
404
|
}
|
|
392
405
|
/**
|
|
393
|
-
* @public
|
|
394
406
|
* <p>
|
|
395
407
|
* <i>
|
|
396
408
|
* <b>This feature is in preview release and is subject to change. Your use of Amazon Web Services Price List API is subject to the Beta Service Participation terms of the <a href="https://aws.amazon.com/service-terms/">Amazon Web Services Service Terms</a> (Section 1.10).</b>
|
|
397
409
|
* </i>
|
|
398
410
|
* </p>
|
|
399
411
|
* <p>This is the type of price list references that match your request. </p>
|
|
412
|
+
* @public
|
|
400
413
|
*/
|
|
401
414
|
export interface PriceList {
|
|
402
415
|
/**
|
|
403
|
-
* @public
|
|
404
416
|
* <p>The unique identifier that maps to where your Price List files are located.
|
|
405
417
|
* <code>PriceListArn</code> can be obtained from the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_ListPriceLists.html">
|
|
406
418
|
* <code>ListPriceList</code>
|
|
407
419
|
* </a> response. </p>
|
|
420
|
+
* @public
|
|
408
421
|
*/
|
|
409
422
|
PriceListArn?: string;
|
|
410
423
|
/**
|
|
411
|
-
* @public
|
|
412
424
|
* <p>This is used to filter the Price List by Amazon Web Services Region. For example, to get
|
|
413
425
|
* the price list only for the <code>US East (N. Virginia)</code> Region, use
|
|
414
426
|
* <code>us-east-1</code>. If nothing is specified, you retrieve price lists for all
|
|
415
427
|
* applicable Regions. The available <code>RegionCode</code> list can be retrieved from <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_GetAttributeValues.html">
|
|
416
428
|
* <code>GetAttributeValues</code>
|
|
417
429
|
* </a> API. </p>
|
|
430
|
+
* @public
|
|
418
431
|
*/
|
|
419
432
|
RegionCode?: string;
|
|
420
433
|
/**
|
|
421
|
-
* @public
|
|
422
434
|
* <p>The three alphabetical character ISO-4217 currency code the Price List files are
|
|
423
435
|
* denominated in. </p>
|
|
436
|
+
* @public
|
|
424
437
|
*/
|
|
425
438
|
CurrencyCode?: string;
|
|
426
439
|
/**
|
|
427
|
-
* @public
|
|
428
440
|
* <p>The format you want to retrieve your Price List files. The <code>FileFormat</code> can
|
|
429
441
|
* be obtained from the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_ListPriceLists.html">
|
|
430
442
|
* <code>ListPriceList</code>
|
|
431
443
|
* </a> response. </p>
|
|
444
|
+
* @public
|
|
432
445
|
*/
|
|
433
446
|
FileFormats?: string[];
|
|
434
447
|
}
|
|
@@ -437,13 +450,13 @@ export interface PriceList {
|
|
|
437
450
|
*/
|
|
438
451
|
export interface ListPriceListsResponse {
|
|
439
452
|
/**
|
|
440
|
-
* @public
|
|
441
453
|
* <p>The type of price list references that match your request. </p>
|
|
454
|
+
* @public
|
|
442
455
|
*/
|
|
443
456
|
PriceLists?: PriceList[];
|
|
444
457
|
/**
|
|
445
|
-
* @public
|
|
446
458
|
* <p>The pagination token that indicates the next set of results to retrieve. </p>
|
|
459
|
+
* @public
|
|
447
460
|
*/
|
|
448
461
|
NextToken?: string;
|
|
449
462
|
}
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
} from "./commands/ListPriceListsCommand";
|
|
22
22
|
import { PricingClient } from "./PricingClient";
|
|
23
23
|
export interface Pricing {
|
|
24
|
+
describeServices(): Promise<DescribeServicesCommandOutput>;
|
|
24
25
|
describeServices(
|
|
25
26
|
args: DescribeServicesCommandInput,
|
|
26
27
|
options?: __HttpHandlerOptions
|
|
@@ -24,6 +24,15 @@ declare const DescribeServicesCommand_base: {
|
|
|
24
24
|
ServiceInputTypes,
|
|
25
25
|
ServiceOutputTypes
|
|
26
26
|
>;
|
|
27
|
+
new (
|
|
28
|
+
...[input]: [] | [DescribeServicesCommandInput]
|
|
29
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
30
|
+
DescribeServicesCommandInput,
|
|
31
|
+
DescribeServicesCommandOutput,
|
|
32
|
+
PricingClientResolvedConfig,
|
|
33
|
+
ServiceInputTypes,
|
|
34
|
+
ServiceOutputTypes
|
|
35
|
+
>;
|
|
27
36
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
37
|
};
|
|
29
38
|
export declare class DescribeServicesCommand extends DescribeServicesCommand_base {}
|
|
@@ -25,6 +25,15 @@ declare const GetAttributeValuesCommand_base: {
|
|
|
25
25
|
ServiceInputTypes,
|
|
26
26
|
ServiceOutputTypes
|
|
27
27
|
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: GetAttributeValuesCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
GetAttributeValuesCommandInput,
|
|
32
|
+
GetAttributeValuesCommandOutput,
|
|
33
|
+
PricingClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
28
37
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
29
38
|
};
|
|
30
39
|
export declare class GetAttributeValuesCommand extends GetAttributeValuesCommand_base {}
|
|
@@ -25,6 +25,15 @@ declare const GetPriceListFileUrlCommand_base: {
|
|
|
25
25
|
ServiceInputTypes,
|
|
26
26
|
ServiceOutputTypes
|
|
27
27
|
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: GetPriceListFileUrlCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
GetPriceListFileUrlCommandInput,
|
|
32
|
+
GetPriceListFileUrlCommandOutput,
|
|
33
|
+
PricingClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
28
37
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
29
38
|
};
|
|
30
39
|
export declare class GetPriceListFileUrlCommand extends GetPriceListFileUrlCommand_base {}
|
|
@@ -21,6 +21,15 @@ declare const GetProductsCommand_base: {
|
|
|
21
21
|
ServiceInputTypes,
|
|
22
22
|
ServiceOutputTypes
|
|
23
23
|
>;
|
|
24
|
+
new (
|
|
25
|
+
__0_0: GetProductsCommandInput
|
|
26
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
27
|
+
GetProductsCommandInput,
|
|
28
|
+
GetProductsCommandOutput,
|
|
29
|
+
PricingClientResolvedConfig,
|
|
30
|
+
ServiceInputTypes,
|
|
31
|
+
ServiceOutputTypes
|
|
32
|
+
>;
|
|
24
33
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
25
34
|
};
|
|
26
35
|
export declare class GetProductsCommand extends GetProductsCommand_base {}
|
|
@@ -24,6 +24,15 @@ declare const ListPriceListsCommand_base: {
|
|
|
24
24
|
ServiceInputTypes,
|
|
25
25
|
ServiceOutputTypes
|
|
26
26
|
>;
|
|
27
|
+
new (
|
|
28
|
+
__0_0: ListPriceListsCommandInput
|
|
29
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
30
|
+
ListPriceListsCommandInput,
|
|
31
|
+
ListPriceListsCommandOutput,
|
|
32
|
+
PricingClientResolvedConfig,
|
|
33
|
+
ServiceInputTypes,
|
|
34
|
+
ServiceOutputTypes
|
|
35
|
+
>;
|
|
27
36
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
37
|
};
|
|
29
38
|
export declare class ListPriceListsCommand extends ListPriceListsCommand_base {}
|
|
@@ -6,5 +6,4 @@ export { PricingExtensionConfiguration } 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 { PricingServiceException } from "./models/PricingServiceException";
|
|
@@ -96,6 +96,14 @@ export interface GetPriceListFileUrlRequest {
|
|
|
96
96
|
export interface GetPriceListFileUrlResponse {
|
|
97
97
|
Url?: string;
|
|
98
98
|
}
|
|
99
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
100
|
+
readonly name: "ResourceNotFoundException";
|
|
101
|
+
readonly $fault: "client";
|
|
102
|
+
Message?: string;
|
|
103
|
+
constructor(
|
|
104
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
99
107
|
export declare const FilterType: {
|
|
100
108
|
readonly TERM_MATCH: "TERM_MATCH";
|
|
101
109
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-pricing",
|
|
3
3
|
"description": "AWS SDK for JavaScript Pricing Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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-pricing",
|
|
@@ -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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.
|
|
36
|
-
"@smithy/core": "^1.
|
|
37
|
-
"@smithy/fetch-http-handler": "^2.
|
|
38
|
-
"@smithy/hash-node": "^2.
|
|
39
|
-
"@smithy/invalid-dependency": "^2.
|
|
40
|
-
"@smithy/middleware-content-length": "^2.
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.
|
|
42
|
-
"@smithy/middleware-retry": "^2.
|
|
43
|
-
"@smithy/middleware-serde": "^2.
|
|
44
|
-
"@smithy/middleware-stack": "^2.
|
|
45
|
-
"@smithy/node-config-provider": "^2.
|
|
46
|
-
"@smithy/node-http-handler": "^2.
|
|
47
|
-
"@smithy/protocol-http": "^3.
|
|
48
|
-
"@smithy/smithy-client": "^2.
|
|
49
|
-
"@smithy/types": "^2.
|
|
50
|
-
"@smithy/url-parser": "^2.
|
|
51
|
-
"@smithy/util-base64": "^2.
|
|
52
|
-
"@smithy/util-body-length-browser": "^2.
|
|
53
|
-
"@smithy/util-body-length-node": "^2.
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.
|
|
57
|
-
"@smithy/util-middleware": "^2.
|
|
58
|
-
"@smithy/util-retry": "^2.
|
|
59
|
-
"@smithy/util-utf8": "^2.
|
|
60
|
-
"tslib": "^2.
|
|
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.
|
|
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",
|