@aws-sdk/client-pricing 3.31.0 → 3.35.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/CHANGELOG.md +39 -0
- package/{dist/cjs → dist-cjs}/Pricing.js +1 -1
- package/dist-cjs/Pricing.js.map +1 -0
- package/{dist/cjs → dist-cjs}/PricingClient.js +14 -14
- package/dist-cjs/PricingClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeServicesCommand.js +5 -5
- package/dist-cjs/commands/DescribeServicesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetAttributeValuesCommand.js +5 -5
- package/dist-cjs/commands/GetAttributeValuesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetProductsCommand.js +5 -5
- package/dist-cjs/commands/GetProductsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +14 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/DescribeServicesPaginator.js +1 -1
- package/dist-cjs/pagination/DescribeServicesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/GetAttributeValuesPaginator.js +1 -1
- package/dist-cjs/pagination/GetAttributeValuesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/GetProductsPaginator.js +1 -1
- package/dist-cjs/pagination/GetProductsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +13 -13
- package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/Pricing.js +2 -28
- package/dist-es/Pricing.js.map +1 -0
- package/dist-es/PricingClient.js +38 -0
- package/dist-es/PricingClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/DescribeServicesCommand.js +4 -35
- package/dist-es/commands/DescribeServicesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetAttributeValuesCommand.js +4 -32
- package/dist-es/commands/GetAttributeValuesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetProductsCommand.js +4 -29
- package/dist-es/commands/GetProductsCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -42
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/DescribeServicesPaginator.js +17 -29
- package/dist-es/pagination/DescribeServicesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/GetAttributeValuesPaginator.js +17 -29
- package/dist-es/pagination/GetAttributeValuesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/GetProductsPaginator.js +17 -29
- package/dist-es/pagination/GetProductsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +89 -94
- package/dist-es/protocols/Aws_json1_1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/Pricing.d.ts +2 -2
- package/{dist/types → dist-types}/PricingClient.d.ts +4 -4
- package/{dist/types → dist-types}/commands/DescribeServicesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetAttributeValuesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetProductsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/DescribeServicesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetAttributeValuesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/GetProductsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Pricing.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/PricingClient.d.ts +4 -4
- package/{dist/types → dist-types}/ts3.4/commands/DescribeServicesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetAttributeValuesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetProductsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/DescribeServicesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetAttributeValuesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/GetProductsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{Pricing.ts → src/Pricing.ts} +3 -2
- package/{PricingClient.ts → src/PricingClient.ts} +18 -17
- package/{commands → src/commands}/DescribeServicesCommand.ts +8 -7
- package/{commands → src/commands}/GetAttributeValuesCommand.ts +8 -7
- package/{commands → src/commands}/GetProductsCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/DescribeServicesPaginator.ts +4 -3
- package/{pagination → src/pagination}/GetAttributeValuesPaginator.ts +4 -3
- package/{pagination → src/pagination}/GetProductsPaginator.ts +3 -2
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{protocols → src/protocols}/Aws_json1_1.ts +14 -13
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/Pricing.js.map +0 -1
- package/dist/cjs/PricingClient.js.map +0 -1
- package/dist/cjs/commands/DescribeServicesCommand.js.map +0 -1
- package/dist/cjs/commands/GetAttributeValuesCommand.js.map +0 -1
- package/dist/cjs/commands/GetProductsCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -14
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/DescribeServicesPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetAttributeValuesPaginator.js.map +0 -1
- package/dist/cjs/pagination/GetProductsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Pricing.js.map +0 -1
- package/dist/es/PricingClient.js +0 -69
- package/dist/es/PricingClient.js.map +0 -1
- package/dist/es/commands/DescribeServicesCommand.js.map +0 -1
- package/dist/es/commands/GetAttributeValuesCommand.js.map +0 -1
- package/dist/es/commands/GetProductsCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/DescribeServicesPaginator.js.map +0 -1
- package/dist/es/pagination/GetAttributeValuesPaginator.js.map +0 -1
- package/dist/es/pagination/GetProductsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -8,7 +8,7 @@ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
|
8
8
|
*/
|
|
9
9
|
const getRuntimeConfig = (config) => {
|
|
10
10
|
var _a;
|
|
11
|
-
const browserDefaults =
|
|
11
|
+
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
12
12
|
return {
|
|
13
13
|
...browserDefaults,
|
|
14
14
|
...config,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeConfig.native.js","sourceRoot":"","sources":["../src/runtimeConfig.native.ts"],"names":[],"mappings":";;;AAAA,qDAA+C;AAG/C,mEAAsF;AAEtF;;GAEG;AACI,MAAM,gBAAgB,GAAG,CAAC,MAA2B,EAAE,EAAE;;IAC9D,MAAM,eAAe,GAAG,wCAAuB,CAAC,MAAM,CAAC,CAAC;IACxD,OAAO;QACL,GAAG,eAAe;QAClB,GAAG,MAAM;QACT,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,mCAAI,kBAAM;KACjC,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const endpoints_1 = require("./endpoints");
|
|
5
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtimeConfig.shared.js","sourceRoot":"","sources":["../src/runtimeConfig.shared.ts"],"names":[],"mappings":";;;AACA,oDAA+C;AAE/C,2CAAwD;AAGxD;;GAEG;AACI,MAAM,gBAAgB,GAAG,CAAC,MAA2B,EAAE,EAAE;;IAAC,OAAA,CAAC;QAChE,UAAU,EAAE,YAAY;QACxB,iBAAiB,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,iBAAiB,mCAAI,KAAK;QACrD,MAAM,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,mCAAK,EAAe;QAC1C,kBAAkB,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,kBAAkB,mCAAI,qCAAyB;QAC3E,SAAS,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,mCAAI,SAAS;QACzC,SAAS,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,mCAAI,qBAAQ;KACzC,CAAC,CAAA;CAAA,CAAC;AAPU,QAAA,gBAAgB,oBAO1B"}
|
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { PricingClient } from "./PricingClient";
|
|
3
2
|
import { DescribeServicesCommand, } from "./commands/DescribeServicesCommand";
|
|
4
3
|
import { GetAttributeValuesCommand, } from "./commands/GetAttributeValuesCommand";
|
|
5
4
|
import { GetProductsCommand } from "./commands/GetProductsCommand";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
* programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List Service
|
|
9
|
-
* uses standardized product attributes such as <code>Location</code>, <code>Storage
|
|
10
|
-
* Class</code>, and <code>Operating System</code>, and provides prices at the SKU
|
|
11
|
-
* level. You can use the Amazon Web Services Price List Service to build cost control and scenario planning tools, reconcile
|
|
12
|
-
* billing data, forecast future spend for budgeting purposes, and provide cost benefit
|
|
13
|
-
* analysis that compare your internal workloads with Amazon Web Services.</p>
|
|
14
|
-
* <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
|
|
15
|
-
* <code>GetServices</code> with a service code to retreive the attribute names for
|
|
16
|
-
* that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>
|
|
17
|
-
* to see what values are available for an attribute. With the service code and an attribute name and value,
|
|
18
|
-
* you can use <code>GetProducts</code> to find specific products that you're interested in, such as
|
|
19
|
-
* an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
|
|
20
|
-
* <code>volumeType</code>.</p>
|
|
21
|
-
* <p>Service Endpoint</p>
|
|
22
|
-
* <p>Amazon Web Services Price List Service API provides the following two endpoints:</p>
|
|
23
|
-
* <ul>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>https://api.pricing.us-east-1.amazonaws.com</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>https://api.pricing.ap-south-1.amazonaws.com</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* </ul>
|
|
31
|
-
*/
|
|
32
|
-
var Pricing = /** @class */ (function (_super) {
|
|
5
|
+
import { PricingClient } from "./PricingClient";
|
|
6
|
+
var Pricing = (function (_super) {
|
|
33
7
|
__extends(Pricing, _super);
|
|
34
8
|
function Pricing() {
|
|
35
9
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pricing.js","sourceRoot":"","sources":["../src/Pricing.ts"],"names":[],"mappings":";AAEA,OAAO,EACL,uBAAuB,GAGxB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,yBAAyB,GAG1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAqD,MAAM,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6BAAW,GAAlB,UACE,IAA6B,EAC7B,WAA0F,EAC1F,EAAwD;QAExD,IAAM,OAAO,GAAG,IAAI,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;YACrC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;SACjC;aAAM,IAAI,OAAO,EAAE,KAAK,UAAU,EAAE;YACnC,IAAI,OAAO,WAAW,KAAK,QAAQ;gBAAE,MAAM,IAAI,KAAK,CAAC,iCAA+B,OAAO,WAAa,CAAC,CAAC;YAC1G,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SAC3C;aAAM;YACL,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;SACxC;IACH,CAAC;IACH,cAAC;AAAD,CAAC,AAnGD,CAA6B,aAAa,GAmGzC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
+
var PricingClient = (function (_super) {
|
|
12
|
+
__extends(PricingClient, _super);
|
|
13
|
+
function PricingClient(configuration) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
17
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
18
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
19
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
20
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
21
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
22
|
+
_this = _super.call(this, _config_6) || this;
|
|
23
|
+
_this.config = _config_6;
|
|
24
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
25
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
PricingClient.prototype.destroy = function () {
|
|
33
|
+
_super.prototype.destroy.call(this);
|
|
34
|
+
};
|
|
35
|
+
return PricingClient;
|
|
36
|
+
}(__Client));
|
|
37
|
+
export { PricingClient };
|
|
38
|
+
//# sourceMappingURL=PricingClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PricingClient.js","sourceRoot":"","sources":["../src/PricingClient.ts"],"names":[],"mappings":";AAAA,OAAO,EAKL,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EACL,mBAAmB,EAGnB,uBAAuB,GACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,4BA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CAAC,CAAC,CAAC;QACvD,KAAI,CAAC,eAAe,CAAC,GAAG,CAAC,gBAAgB,CAAC,KAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACxD,KAAI,CAAC,eAAe,CAAC,GAAG,CAAC,kBAAkB,CAAC,KAAI,CAAC,MAAM,CAAC,CAAC,CAAC;;IAC5D,CAAC;IAOD,+BAAO,GAAP;QACE,iBAAM,OAAO,WAAE,CAAC;IAClB,CAAC;IACH,oBAAC;AAAD,CAAC,AArCD,CAAmC,QAAQ,GAqC1C"}
|
|
@@ -1,46 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { DescribeServicesRequest, DescribeServicesResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1DescribeServicesCommand, serializeAws_json1_1DescribeServicesCommand, } from "../protocols/Aws_json1_1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Use it with a service code, such as <code>AmazonEC2</code>, to get information specific to
|
|
10
|
-
* that service, such as the attribute
|
|
11
|
-
* names available for that service. For example, some of the attribute names available for EC2 are
|
|
12
|
-
* <code>volumeType</code>, <code>maxIopsVolume</code>, <code>operation</code>,
|
|
13
|
-
* <code>locationType</code>, and <code>instanceCapacity10xlarge</code>.</p>
|
|
14
|
-
* @example
|
|
15
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
-
* ```javascript
|
|
17
|
-
* import { PricingClient, DescribeServicesCommand } from "@aws-sdk/client-pricing"; // ES Modules import
|
|
18
|
-
* // const { PricingClient, DescribeServicesCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
|
|
19
|
-
* const client = new PricingClient(config);
|
|
20
|
-
* const command = new DescribeServicesCommand(input);
|
|
21
|
-
* const response = await client.send(command);
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @see {@link DescribeServicesCommandInput} for command's `input` shape.
|
|
25
|
-
* @see {@link DescribeServicesCommandOutput} for command's `response` shape.
|
|
26
|
-
* @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
var DescribeServicesCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { DescribeServicesRequest, DescribeServicesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeServicesCommand, serializeAws_json1_1DescribeServicesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DescribeServicesCommand = (function (_super) {
|
|
30
7
|
__extends(DescribeServicesCommand, _super);
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
8
|
function DescribeServicesCommand(input) {
|
|
34
|
-
var _this =
|
|
35
|
-
// Start section: command_constructor
|
|
36
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
37
10
|
_this.input = input;
|
|
38
11
|
return _this;
|
|
39
|
-
// End section: command_constructor
|
|
40
12
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
13
|
DescribeServicesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
45
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
46
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescribeServicesCommand.js","sourceRoot":"","sources":["../../src/commands/DescribeServicesCommand.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAW7D,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAEvF,OAAO,EACL,6CAA6C,EAC7C,2CAA2C,GAC5C,MAAM,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1,43 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { GetAttributeValuesRequest, GetAttributeValuesResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1GetAttributeValuesCommand, serializeAws_json1_1GetAttributeValuesCommand, } from "../protocols/Aws_json1_1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
|
|
10
|
-
* in the <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-what-is.html">Amazon Web Services Billing and Cost Management User Guide</a>.</p>
|
|
11
|
-
* @example
|
|
12
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
-
* ```javascript
|
|
14
|
-
* import { PricingClient, GetAttributeValuesCommand } from "@aws-sdk/client-pricing"; // ES Modules import
|
|
15
|
-
* // const { PricingClient, GetAttributeValuesCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
|
|
16
|
-
* const client = new PricingClient(config);
|
|
17
|
-
* const command = new GetAttributeValuesCommand(input);
|
|
18
|
-
* const response = await client.send(command);
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see {@link GetAttributeValuesCommandInput} for command's `input` shape.
|
|
22
|
-
* @see {@link GetAttributeValuesCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
var GetAttributeValuesCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { GetAttributeValuesRequest, GetAttributeValuesResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetAttributeValuesCommand, serializeAws_json1_1GetAttributeValuesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetAttributeValuesCommand = (function (_super) {
|
|
27
7
|
__extends(GetAttributeValuesCommand, _super);
|
|
28
|
-
// Start section: command_properties
|
|
29
|
-
// End section: command_properties
|
|
30
8
|
function GetAttributeValuesCommand(input) {
|
|
31
|
-
var _this =
|
|
32
|
-
// Start section: command_constructor
|
|
33
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
34
10
|
_this.input = input;
|
|
35
11
|
return _this;
|
|
36
|
-
// End section: command_constructor
|
|
37
12
|
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
13
|
GetAttributeValuesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
42
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
43
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetAttributeValuesCommand.js","sourceRoot":"","sources":["../../src/commands/GetAttributeValuesCommand.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAW7D,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAE3F,OAAO,EACL,+CAA+C,EAC/C,6CAA6C,GAC9C,MAAM,0BAA0B,CAAC;AAyBlC;IAA+C,6CAI9C;IAIC,mCAAqB,KAAqC;QAA1D,YAEE,iBAAO,SAER;QAJoB,WAAK,GAAL,KAAK,CAAgC;;IAI1D,CAAC;IAKD,qDAAiB,GAAjB,UACE,WAAmE,EACnE,aAA0C,EAC1C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,IAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAE/C,IAAA,MAAM,GAAK,aAAa,OAAlB,CAAmB;QACjC,IAAM,UAAU,GAAG,eAAe,CAAC;QACnC,IAAM,WAAW,GAAG,2BAA2B,CAAC;QAChD,IAAM,uBAAuB,GAA4B;YACvD,MAAM,QAAA;YACN,UAAU,YAAA;YACV,WAAW,aAAA;YACX,uBAAuB,EAAE,yBAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,0BAA0B,CAAC,kBAAkB;SACxE,CAAC;QACM,IAAA,cAAc,GAAK,aAAa,eAAlB,CAAmB;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,UAAC,OAAsC;YACrC,OAAA,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC;QAAtE,CAAsE,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,6CAAS,GAAjB,UAAkB,KAAqC,EAAE,OAAuB;QAC9E,OAAO,6CAA6C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAEO,+CAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,+CAA+C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;IAIH,gCAAC;AAAD,CAAC,AAtDD,CAA+C,QAAQ,GAsDtD"}
|
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { GetProductsRequest, GetProductsResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1GetProductsCommand, serializeAws_json1_1GetProductsCommand, } from "../protocols/Aws_json1_1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { PricingClient, GetProductsCommand } from "@aws-sdk/client-pricing"; // ES Modules import
|
|
12
|
-
* // const { PricingClient, GetProductsCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
|
|
13
|
-
* const client = new PricingClient(config);
|
|
14
|
-
* const command = new GetProductsCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link GetProductsCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link GetProductsCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var GetProductsCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { GetProductsRequest, GetProductsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetProductsCommand, serializeAws_json1_1GetProductsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetProductsCommand = (function (_super) {
|
|
24
7
|
__extends(GetProductsCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function GetProductsCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
GetProductsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetProductsCommand.js","sourceRoot":"","sources":["../../src/commands/GetPro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OAAuB;QACvE,OAAO,sCAAsC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAEO,wCAAW,GAAnB,UAAoB,MAAsB,EAAE,OAAuB;QACjE,OAAO,wCAAwC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAIH,yBAAC;AAAD,CAAC,AAtDD,CAAwC,QAAQ,GAsD/C"}
|
|
@@ -47,7 +47,7 @@ var partitionHash = {
|
|
|
47
47
|
};
|
|
48
48
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
|
-
return [2
|
|
50
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "pricing", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
51
51
|
});
|
|
52
52
|
}); };
|
|
53
53
|
//# sourceMappingURL=endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../src/endpoints.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAA6B,MAAM,0BAA0B,CAAC;AAGpF,IAAM,UAAU,GAAe,EAAE,CAAC;AAElC,IAAM,aAAa,GAAkB;IACnC,GAAG,EAAE;QACH,OAAO,EAAE;YACP,YAAY;YACZ,WAAW;YACX,gBAAgB;YAChB,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,gBAAgB;YAChB,gBAAgB;YAChB,cAAc;YACd,cAAc;YACd,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,WAAW;YACX,WAAW;YACX,YAAY;YACZ,WAAW;YACX,WAAW;YACX,WAAW;YACX,WAAW;YACX,WAAW;SACZ;QACD,QAAQ,EAAE,oCAAoC;KAC/C;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;QACzC,QAAQ,EAAE,uCAAuC;KAClD;IACD,SAAS,EAAE;QACT,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,QAAQ,EAAE,iCAAiC;KAC5C;IACD,WAAW,EAAE;QACX,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,QAAQ,EAAE,oCAAoC;KAC/C;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;QAC3C,QAAQ,EAAE,oCAAoC;KAC/C;CACF,CAAC;AAEF,MAAM,CAAC,IAAM,yBAAyB,GAAuB,UAAO,MAAc,EAAE,OAAa;;QAC/F,WAAA,aAAa,CAAC,MAAM,wBACf,OAAO,KACV,cAAc,EAAE,SAAS,EACzB,UAAU,YAAA,EACV,aAAa,eAAA,IACb,EAAA;;KAAA,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1,79 +1,46 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
export var AttributeValue;
|
|
3
3
|
(function (AttributeValue) {
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
4
|
AttributeValue.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
8
5
|
})(AttributeValue || (AttributeValue = {}));
|
|
9
6
|
export var DescribeServicesRequest;
|
|
10
7
|
(function (DescribeServicesRequest) {
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
8
|
DescribeServicesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
15
9
|
})(DescribeServicesRequest || (DescribeServicesRequest = {}));
|
|
16
10
|
export var Service;
|
|
17
11
|
(function (Service) {
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
*/
|
|
21
12
|
Service.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
22
13
|
})(Service || (Service = {}));
|
|
23
14
|
export var DescribeServicesResponse;
|
|
24
15
|
(function (DescribeServicesResponse) {
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
16
|
DescribeServicesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
29
17
|
})(DescribeServicesResponse || (DescribeServicesResponse = {}));
|
|
30
18
|
export var ExpiredNextTokenException;
|
|
31
19
|
(function (ExpiredNextTokenException) {
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
20
|
ExpiredNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
36
21
|
})(ExpiredNextTokenException || (ExpiredNextTokenException = {}));
|
|
37
22
|
export var InternalErrorException;
|
|
38
23
|
(function (InternalErrorException) {
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
24
|
InternalErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
43
25
|
})(InternalErrorException || (InternalErrorException = {}));
|
|
44
26
|
export var InvalidNextTokenException;
|
|
45
27
|
(function (InvalidNextTokenException) {
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
28
|
InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
50
29
|
})(InvalidNextTokenException || (InvalidNextTokenException = {}));
|
|
51
30
|
export var InvalidParameterException;
|
|
52
31
|
(function (InvalidParameterException) {
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
32
|
InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
57
33
|
})(InvalidParameterException || (InvalidParameterException = {}));
|
|
58
34
|
export var NotFoundException;
|
|
59
35
|
(function (NotFoundException) {
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
36
|
NotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
37
|
})(NotFoundException || (NotFoundException = {}));
|
|
65
38
|
export var GetAttributeValuesRequest;
|
|
66
39
|
(function (GetAttributeValuesRequest) {
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
*/
|
|
70
40
|
GetAttributeValuesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
71
41
|
})(GetAttributeValuesRequest || (GetAttributeValuesRequest = {}));
|
|
72
42
|
export var GetAttributeValuesResponse;
|
|
73
43
|
(function (GetAttributeValuesResponse) {
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
77
44
|
GetAttributeValuesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
78
45
|
})(GetAttributeValuesResponse || (GetAttributeValuesResponse = {}));
|
|
79
46
|
export var FilterType;
|
|
@@ -82,23 +49,14 @@ export var FilterType;
|
|
|
82
49
|
})(FilterType || (FilterType = {}));
|
|
83
50
|
export var Filter;
|
|
84
51
|
(function (Filter) {
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
52
|
Filter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
89
53
|
})(Filter || (Filter = {}));
|
|
90
54
|
export var GetProductsRequest;
|
|
91
55
|
(function (GetProductsRequest) {
|
|
92
|
-
/**
|
|
93
|
-
* @internal
|
|
94
|
-
*/
|
|
95
56
|
GetProductsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
96
57
|
})(GetProductsRequest || (GetProductsRequest = {}));
|
|
97
58
|
export var GetProductsResponse;
|
|
98
59
|
(function (GetProductsResponse) {
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
60
|
GetProductsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
103
61
|
})(GetProductsResponse || (GetProductsResponse = {}));
|
|
104
62
|
//# sourceMappingURL=models_0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models_0.js","sourceRoot":"","sources":["../../src/models/models_0.ts"],"names":[],"mappings":";AAeA,MAAM,KAAW,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAIhB,iCAAkB,GAAG,UAAC,GAAmB,IAAU,OAAA,cAC3D,GAAG,EACN,EAF8D,CAE9D,CAAC;AACL,CAAC,EAPgB,cAAc,KAAd,cAAc,QAO9B;AA6BD,MAAM,KAAW,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IAIzB,0CAAkB,GAAG,UAAC,GAA4B,IAAU,OAAA,cACpE,GAAG,EACN,EAFuE,CAEvE,CAAC;AACL,CAAC,EAPgB,uBAAuB,KAAvB,uBAAuB,QAOvC;AAiBD,MAAM,KAAW,OAAO,CAOvB;AAPD,WAAiB,OAAO;IAIT,0BAAkB,GAAG,UAAC,GAAY,IAAU,OAAA,cACpD,GAAG,EACN,EAFuD,CAEvD,CAAC;AACL,CAAC,EAPgB,OAAO,KAAP,OAAO,QAOvB;AAmBD,MAAM,KAAW,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IAI1B,2CAAkB,GAAG,UAAC,GAA6B,IAAU,OAAA,cACrE,GAAG,EACN,EAFwE,CAExE,CAAC;AACL,CAAC,EAPgB,wBAAwB,KAAxB,wBAAwB,QAOxC;AAWD,MAAM,KAAW,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IAI3B,4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AA0B,KAA1B,0BAA0B,QAO1C;AAED,MAAM,CAAN,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,uCAAyB,CAAA;AAC3B,CAAC,EAFW,UAAU,KAAV,UAAU,QAErB;AAkCD,MAAM,KAAW,MAAM,CAOtB;AAPD,WAAiB,MAAM;IAIR,yBAAkB,GAAG,UAAC,GAAW,IAAU,OAAA,cACnD,GAAG,EACN,EAFsD,CAEtD,CAAC;AACL,CAAC,EAPgB,MAAM,KAAN,MAAM,QAOtB;AAgCD,MAAM,KAAW,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IAIpB,qCAAkB,GAAG,UAAC,GAAuB,IAAU,OAAA,cAC/D,GAAG,EACN,EAFkE,CAElE,CAAC;AACL,CAAC,EAPgB,kBAAkB,KAAlB,kBAAkB,QAOlC;AAoBD,MAAM,KAAW,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAIrB,sCAAkB,GAAG,UAAC,GAAwB,IAAU,OAAA,cAChE,GAAG,EACN,EAFmE,CAEnE,CAAC;AACL,CAAC,EAPgB,mBAAmB,KAAnB,mBAAmB,QAOnC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { DescribeServicesCommand, } from "../commands/DescribeServicesCommand";
|
|
2
3
|
import { Pricing } from "../Pricing";
|
|
3
4
|
import { PricingClient } from "../PricingClient";
|
|
4
|
-
import { DescribeServicesCommand, } from "../commands/DescribeServicesCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new DescribeServicesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.describeServices.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,32 +44,30 @@ export function paginateDescribeServices(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof Pricing)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof Pricing)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof PricingClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof PricingClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected Pricing | PricingClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.NextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescribeServicesPaginator.js","sourceRoot":"","sources":["../../src/pagination/DescribeServicesPaginator.ts"],"names":[],"mappings":";AAEA,OAAO,EACL,uBAAuB,GAGxB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMjD,IAAM,sBAAsB,GAAG,UAC7B,MAAqB,EACrB,KAAmC;IACnC,cAAY;SAAZ,UAAY,EAAZ,qBAAY,EAAZ,IAAY;QAAZ,6BAAY;;;;;wBAGL,WAAM,MAAM,CAAC,IAAI,OAAX,MAAM,iBAAM,IAAI,uBAAuB,CAAC,K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AhB,sBAAiB;;;;CAClB"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { GetAttributeValuesCommand, } from "../commands/GetAttributeValuesCommand";
|
|
2
3
|
import { Pricing } from "../Pricing";
|
|
3
4
|
import { PricingClient } from "../PricingClient";
|
|
4
|
-
import { GetAttributeValuesCommand, } from "../commands/GetAttributeValuesCommand";
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
*/
|
|
8
5
|
var makePagedClientRequest = function (client, input) {
|
|
9
6
|
var args = [];
|
|
10
7
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -13,17 +10,12 @@ var makePagedClientRequest = function (client, input) {
|
|
|
13
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
14
11
|
return __generator(this, function (_a) {
|
|
15
12
|
switch (_a.label) {
|
|
16
|
-
case 0: return [4
|
|
17
|
-
case 1:
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return [2 /*return*/, _a.sent()];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetAttributeValuesCommand(input)], __read(args)))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
20
15
|
}
|
|
21
16
|
});
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
|
-
/**
|
|
25
|
-
* @private
|
|
26
|
-
*/
|
|
27
19
|
var makePagedRequest = function (client, input) {
|
|
28
20
|
var args = [];
|
|
29
21
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
@@ -32,10 +24,8 @@ var makePagedRequest = function (client, input) {
|
|
|
32
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
33
25
|
return __generator(this, function (_a) {
|
|
34
26
|
switch (_a.label) {
|
|
35
|
-
case 0: return [4
|
|
36
|
-
case 1:
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
return [2 /*return*/, _a.sent()];
|
|
27
|
+
case 0: return [4, client.getAttributeValues.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
39
29
|
}
|
|
40
30
|
});
|
|
41
31
|
});
|
|
@@ -54,32 +44,30 @@ export function paginateGetAttributeValues(config, input) {
|
|
|
54
44
|
hasNext = true;
|
|
55
45
|
_a.label = 1;
|
|
56
46
|
case 1:
|
|
57
|
-
if (!hasNext) return [3
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
58
48
|
input.NextToken = token;
|
|
59
49
|
input["MaxResults"] = config.pageSize;
|
|
60
|
-
if (!(config.client instanceof Pricing)) return [3
|
|
61
|
-
return [4
|
|
50
|
+
if (!(config.client instanceof Pricing)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
62
52
|
case 2:
|
|
63
53
|
page = _a.sent();
|
|
64
|
-
return [3
|
|
54
|
+
return [3, 6];
|
|
65
55
|
case 3:
|
|
66
|
-
if (!(config.client instanceof PricingClient)) return [3
|
|
67
|
-
return [4
|
|
56
|
+
if (!(config.client instanceof PricingClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
68
58
|
case 4:
|
|
69
59
|
page = _a.sent();
|
|
70
|
-
return [3
|
|
60
|
+
return [3, 6];
|
|
71
61
|
case 5: throw new Error("Invalid client, expected Pricing | PricingClient");
|
|
72
|
-
case 6: return [4
|
|
73
|
-
case 7: return [4
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
74
64
|
case 8:
|
|
75
65
|
_a.sent();
|
|
76
66
|
token = page.NextToken;
|
|
77
67
|
hasNext = !!token;
|
|
78
|
-
return [3
|
|
79
|
-
case 9: return [4
|
|
80
|
-
case 10:
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return [2 /*return*/, _a.sent()];
|
|
68
|
+
return [3, 1];
|
|
69
|
+
case 9: return [4, __await(undefined)];
|
|
70
|
+
case 10: return [2, _a.sent()];
|
|
83
71
|
}
|
|
84
72
|
});
|
|
85
73
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetAttributeValuesPaginator.js","sourceRoot":"","sources":["../../src/pagination/GetAttributeValuesPaginator.ts"],"names":[],"mappings":";AAEA,OAAO,EACL,yBAAyB,GAG1B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMjD,IAAM,sBAAsB,GAAG,UAC7B,MAAqB,EACrB,KAAqC;IACrC,cAAY;SAAZ,UAAY,EAAZ,qBAAY,EAAZ,IAAY;QAAZ,6BAAY;;;;;wBAGL,WAAM,MAAM,CAAC,IAAI,OAAX,MAAM,iBAAM,IAAI,yBAAyB,CAAC,KAAK,CAAC,UAAK,IAAI,KAAC;wBAAvE,WAAO,SAAgE,EAAC;;;;CACzE,CAAC;AAIF,IAAM,gBAAgB,GAAG,UACvB,MAAe,EACf,KAAqC;IACrC,cAAY;SAAZ,UAAY,EAAZ,qBAAY,EAAZ,IAAY;QAAZ,6BAAY;;;;;wBAGL,WAAM,MAAM,CAAC,kBAAkB,OAAzB,MAAM,iBAAoB,KAAK,UAAK,IAAI,KAAC;wBAAtD,WAAO,SAA+C,EAAC;;;;CACxD,CAAC;AACF,MAAM,UAAiB,0BAA0B,CAC/C,MAAsC,EACtC,KAAqC;IACrC,6BAA2B;SAA3B,UAA2B,EAA3B,qBAA2B,EAA3B,IAA2B;QAA3B,4CAA2B;;;;;;;oBAGvB,KAAK,GAAuC,MAAM,CAAC,aAAa,IAAI,SAAS,CAAC;oBAC9E,OAAO,GAAG,IAAI,CAAC;;;yBAEZ,OAAO;oBACZ,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC;oBACxB,KAAK,CAAC,YAAY,CAAC,GAAG,MAAM,CAA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