@aws-sdk/client-pricing 3.35.0 → 3.38.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/Pricing.js +0 -27
  3. package/dist-cjs/PricingClient.js +0 -32
  4. package/dist-cjs/commands/DescribeServicesCommand.js +0 -31
  5. package/dist-cjs/commands/GetAttributeValuesCommand.js +0 -28
  6. package/dist-cjs/commands/GetProductsCommand.js +0 -25
  7. package/dist-cjs/commands/index.js +6 -0
  8. package/dist-cjs/endpoints.js +1 -2
  9. package/dist-cjs/index.js +4 -10
  10. package/dist-cjs/models/index.js +0 -1
  11. package/dist-cjs/models/models_0.js +0 -43
  12. package/dist-cjs/pagination/DescribeServicesPaginator.js +0 -11
  13. package/dist-cjs/pagination/GetAttributeValuesPaginator.js +0 -11
  14. package/dist-cjs/pagination/GetProductsPaginator.js +0 -11
  15. package/dist-cjs/pagination/Interfaces.js +0 -1
  16. package/dist-cjs/pagination/index.js +7 -0
  17. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  18. package/dist-cjs/runtimeConfig.browser.js +1 -6
  19. package/dist-cjs/runtimeConfig.js +2 -7
  20. package/dist-cjs/runtimeConfig.native.js +0 -4
  21. package/dist-cjs/runtimeConfig.shared.js +0 -4
  22. package/dist-es/Pricing.js +0 -1
  23. package/dist-es/PricingClient.js +0 -1
  24. package/dist-es/commands/DescribeServicesCommand.js +0 -1
  25. package/dist-es/commands/GetAttributeValuesCommand.js +0 -1
  26. package/dist-es/commands/GetProductsCommand.js +0 -1
  27. package/dist-es/commands/index.js +3 -0
  28. package/dist-es/endpoints.js +1 -2
  29. package/dist-es/index.js +4 -10
  30. package/dist-es/models/index.js +0 -1
  31. package/dist-es/models/models_0.js +0 -1
  32. package/dist-es/pagination/DescribeServicesPaginator.js +0 -1
  33. package/dist-es/pagination/GetAttributeValuesPaginator.js +0 -1
  34. package/dist-es/pagination/GetProductsPaginator.js +0 -1
  35. package/dist-es/pagination/Interfaces.js +0 -1
  36. package/dist-es/pagination/index.js +4 -0
  37. package/dist-es/protocols/Aws_json1_1.js +0 -1
  38. package/dist-es/runtimeConfig.browser.js +1 -2
  39. package/dist-es/runtimeConfig.js +2 -3
  40. package/dist-es/runtimeConfig.native.js +0 -1
  41. package/dist-es/runtimeConfig.shared.js +0 -1
  42. package/dist-types/commands/index.d.ts +3 -0
  43. package/dist-types/index.d.ts +4 -9
  44. package/dist-types/pagination/index.d.ts +4 -0
  45. package/dist-types/ts3.4/Pricing.d.ts +4 -44
  46. package/dist-types/ts3.4/PricingClient.d.ts +24 -112
  47. package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +2 -26
  48. package/dist-types/ts3.4/commands/GetAttributeValuesCommand.d.ts +2 -23
  49. package/dist-types/ts3.4/commands/GetProductsCommand.d.ts +2 -20
  50. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  51. package/dist-types/ts3.4/index.d.ts +4 -9
  52. package/dist-types/ts3.4/models/models_0.d.ts +49 -173
  53. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  54. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  55. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  56. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  57. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  58. package/package.json +33 -30
  59. package/dist-cjs/Pricing.js.map +0 -1
  60. package/dist-cjs/PricingClient.js.map +0 -1
  61. package/dist-cjs/commands/DescribeServicesCommand.js.map +0 -1
  62. package/dist-cjs/commands/GetAttributeValuesCommand.js.map +0 -1
  63. package/dist-cjs/commands/GetProductsCommand.js.map +0 -1
  64. package/dist-cjs/endpoints.js.map +0 -1
  65. package/dist-cjs/index.js.map +0 -1
  66. package/dist-cjs/models/index.js.map +0 -1
  67. package/dist-cjs/models/models_0.js.map +0 -1
  68. package/dist-cjs/pagination/DescribeServicesPaginator.js.map +0 -1
  69. package/dist-cjs/pagination/GetAttributeValuesPaginator.js.map +0 -1
  70. package/dist-cjs/pagination/GetProductsPaginator.js.map +0 -1
  71. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  72. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  73. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  74. package/dist-cjs/runtimeConfig.js.map +0 -1
  75. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  76. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  77. package/dist-es/Pricing.js.map +0 -1
  78. package/dist-es/PricingClient.js.map +0 -1
  79. package/dist-es/commands/DescribeServicesCommand.js.map +0 -1
  80. package/dist-es/commands/GetAttributeValuesCommand.js.map +0 -1
  81. package/dist-es/commands/GetProductsCommand.js.map +0 -1
  82. package/dist-es/endpoints.js.map +0 -1
  83. package/dist-es/index.js.map +0 -1
  84. package/dist-es/models/index.js.map +0 -1
  85. package/dist-es/models/models_0.js.map +0 -1
  86. package/dist-es/pagination/DescribeServicesPaginator.js.map +0 -1
  87. package/dist-es/pagination/GetAttributeValuesPaginator.js.map +0 -1
  88. package/dist-es/pagination/GetProductsPaginator.js.map +0 -1
  89. package/dist-es/pagination/Interfaces.js.map +0 -1
  90. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  91. package/dist-es/runtimeConfig.browser.js.map +0 -1
  92. package/dist-es/runtimeConfig.js.map +0 -1
  93. package/dist-es/runtimeConfig.native.js.map +0 -1
  94. package/dist-es/runtimeConfig.shared.js.map +0 -1
  95. package/jest.config.js +0 -4
  96. package/src/Pricing.ts +0 -141
  97. package/src/PricingClient.ts +0 -265
  98. package/src/commands/DescribeServicesCommand.ts +0 -101
  99. package/src/commands/GetAttributeValuesCommand.ts +0 -98
  100. package/src/commands/GetProductsCommand.ts +0 -95
  101. package/src/endpoints.ts +0 -57
  102. package/src/index.ts +0 -10
  103. package/src/models/index.ts +0 -1
  104. package/src/models/models_0.ts +0 -365
  105. package/src/pagination/DescribeServicesPaginator.ts +0 -59
  106. package/src/pagination/GetAttributeValuesPaginator.ts +0 -59
  107. package/src/pagination/GetProductsPaginator.ts +0 -55
  108. package/src/pagination/Interfaces.ts +0 -8
  109. package/src/protocols/Aws_json1_1.ts +0 -675
  110. package/src/runtimeConfig.browser.ts +0 -41
  111. package/src/runtimeConfig.native.ts +0 -17
  112. package/src/runtimeConfig.shared.ts +0 -17
  113. package/src/runtimeConfig.ts +0 -46
  114. package/tsconfig.es.json +0 -10
  115. package/tsconfig.json +0 -33
  116. package/tsconfig.types.json +0 -9
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a;
11
8
  const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
17
14
  };
18
15
  };
19
16
  exports.getRuntimeConfig = getRuntimeConfig;
20
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const url_parser_1 = require("@aws-sdk/url-parser");
5
5
  const endpoints_1 = require("./endpoints");
6
- /**
7
- * @internal
8
- */
9
6
  const getRuntimeConfig = (config) => {
10
7
  var _a, _b, _c, _d, _e;
11
8
  return ({
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
18
15
  });
19
16
  };
20
17
  exports.getRuntimeConfig = getRuntimeConfig;
21
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -53,4 +53,3 @@ var Pricing = (function (_super) {
53
53
  return Pricing;
54
54
  }(PricingClient));
55
55
  export { Pricing };
56
- //# sourceMappingURL=Pricing.js.map
@@ -35,4 +35,3 @@ var PricingClient = (function (_super) {
35
35
  return PricingClient;
36
36
  }(__Client));
37
37
  export { PricingClient };
38
- //# sourceMappingURL=PricingClient.js.map
@@ -37,4 +37,3 @@ var DescribeServicesCommand = (function (_super) {
37
37
  return DescribeServicesCommand;
38
38
  }($Command));
39
39
  export { DescribeServicesCommand };
40
- //# sourceMappingURL=DescribeServicesCommand.js.map
@@ -37,4 +37,3 @@ var GetAttributeValuesCommand = (function (_super) {
37
37
  return GetAttributeValuesCommand;
38
38
  }($Command));
39
39
  export { GetAttributeValuesCommand };
40
- //# sourceMappingURL=GetAttributeValuesCommand.js.map
@@ -37,4 +37,3 @@ var GetProductsCommand = (function (_super) {
37
37
  return GetProductsCommand;
38
38
  }($Command));
39
39
  export { GetProductsCommand };
40
- //# sourceMappingURL=GetProductsCommand.js.map
@@ -0,0 +1,3 @@
1
+ export * from "./DescribeServicesCommand";
2
+ export * from "./GetAttributeValuesCommand";
3
+ export * from "./GetProductsCommand";
@@ -33,7 +33,7 @@ var partitionHash = {
33
33
  hostname: "api.pricing.{region}.amazonaws.com.cn",
34
34
  },
35
35
  "aws-iso": {
36
- regions: ["us-iso-east-1"],
36
+ regions: ["us-iso-east-1", "us-iso-west-1"],
37
37
  hostname: "api.pricing.{region}.c2s.ic.gov",
38
38
  },
39
39
  "aws-iso-b": {
@@ -50,4 +50,3 @@ export var defaultRegionInfoProvider = function (region, options) { return __awa
50
50
  return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "pricing", regionHash: regionHash, partitionHash: partitionHash }))];
51
51
  });
52
52
  }); };
53
- //# sourceMappingURL=endpoints.js.map
package/dist-es/index.js CHANGED
@@ -1,11 +1,5 @@
1
- export * from "./PricingClient";
2
1
  export * from "./Pricing";
3
- export * from "./commands/DescribeServicesCommand";
4
- export * from "./pagination/DescribeServicesPaginator";
5
- export * from "./commands/GetAttributeValuesCommand";
6
- export * from "./pagination/GetAttributeValuesPaginator";
7
- export * from "./commands/GetProductsCommand";
8
- export * from "./pagination/GetProductsPaginator";
9
- export * from "./pagination/Interfaces";
10
- export * from "./models/index";
11
- //# sourceMappingURL=index.js.map
2
+ export * from "./PricingClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -1,2 +1 @@
1
1
  export * from "./models_0";
2
- //# sourceMappingURL=index.js.map
@@ -59,4 +59,3 @@ export var GetProductsResponse;
59
59
  (function (GetProductsResponse) {
60
60
  GetProductsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
61
61
  })(GetProductsResponse || (GetProductsResponse = {}));
62
- //# sourceMappingURL=models_0.js.map
@@ -72,4 +72,3 @@ export function paginateDescribeServices(config, input) {
72
72
  });
73
73
  });
74
74
  }
75
- //# sourceMappingURL=DescribeServicesPaginator.js.map
@@ -72,4 +72,3 @@ export function paginateGetAttributeValues(config, input) {
72
72
  });
73
73
  });
74
74
  }
75
- //# sourceMappingURL=GetAttributeValuesPaginator.js.map
@@ -72,4 +72,3 @@ export function paginateGetProducts(config, input) {
72
72
  });
73
73
  });
74
74
  }
75
- //# sourceMappingURL=GetProductsPaginator.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=Interfaces.js.map
@@ -0,0 +1,4 @@
1
+ export * from "./DescribeServicesPaginator";
2
+ export * from "./GetAttributeValuesPaginator";
3
+ export * from "./GetProductsPaginator";
4
+ export * from "./Interfaces";
@@ -546,4 +546,3 @@ var loadRestJsonErrorCode = function (output, data) {
546
546
  }
547
547
  return "";
548
548
  };
549
- //# sourceMappingURL=Aws_json1_1.js.map
@@ -1,4 +1,5 @@
1
1
  import { __assign } from "tslib";
2
+ import packageInfo from "../package.json";
2
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
4
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
4
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -7,11 +8,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
7
8
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
8
9
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
10
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
- import packageInfo from "../package.json";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
12
  export var getRuntimeConfig = function (config) {
13
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
14
  var clientSharedValues = getSharedRuntimeConfig(config);
15
15
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
16
  };
17
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -1,4 +1,5 @@
1
1
  import { __assign } from "tslib";
2
+ import packageInfo from "../package.json";
2
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -6,17 +7,15 @@ import { Hash } from "@aws-sdk/hash-node";
6
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
9
  import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
- import packageInfo from "../package.json";
15
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
20
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
21
21
  };
22
- //# sourceMappingURL=runtimeConfig.js.map
@@ -6,4 +6,3 @@ export var getRuntimeConfig = function (config) {
6
6
  var browserDefaults = getBrowserRuntimeConfig(config);
7
7
  return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
8
8
  };
9
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -11,4 +11,3 @@ export var getRuntimeConfig = function (config) {
11
11
  urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
12
  });
13
13
  };
14
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -0,0 +1,3 @@
1
+ export * from "./DescribeServicesCommand";
2
+ export * from "./GetAttributeValuesCommand";
3
+ export * from "./GetProductsCommand";
@@ -1,10 +1,5 @@
1
- export * from "./PricingClient";
2
1
  export * from "./Pricing";
3
- export * from "./commands/DescribeServicesCommand";
4
- export * from "./pagination/DescribeServicesPaginator";
5
- export * from "./commands/GetAttributeValuesCommand";
6
- export * from "./pagination/GetAttributeValuesPaginator";
7
- export * from "./commands/GetProductsCommand";
8
- export * from "./pagination/GetProductsPaginator";
9
- export * from "./pagination/Interfaces";
10
- export * from "./models/index";
2
+ export * from "./PricingClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,4 @@
1
+ export * from "./DescribeServicesPaginator";
2
+ export * from "./GetAttributeValuesPaginator";
3
+ export * from "./GetProductsPaginator";
4
+ export * from "./Interfaces";
@@ -3,57 +3,17 @@ import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "./c
3
3
  import { GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput } from "./commands/GetAttributeValuesCommand";
4
4
  import { GetProductsCommandInput, GetProductsCommandOutput } from "./commands/GetProductsCommand";
5
5
  import { PricingClient } from "./PricingClient";
6
- /**
7
- * <p>Amazon Web Services Price List Service API (Amazon Web Services Price List Service) is a centralized and convenient way to
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
- */
6
+
32
7
  export declare class Pricing extends PricingClient {
33
- /**
34
- * <p>Returns the metadata for one service or a list of the metadata for all services. Use
35
- * this without a service code to get the service codes for all services.
36
- * Use it with a service code, such as <code>AmazonEC2</code>, to get information specific to
37
- * that service, such as the attribute
38
- * names available for that service. For example, some of the attribute names available for EC2 are
39
- * <code>volumeType</code>, <code>maxIopsVolume</code>, <code>operation</code>,
40
- * <code>locationType</code>, and <code>instanceCapacity10xlarge</code>.</p>
41
- */
8
+
42
9
  describeServices(args: DescribeServicesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeServicesCommandOutput>;
43
10
  describeServices(args: DescribeServicesCommandInput, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
44
11
  describeServices(args: DescribeServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeServicesCommandOutput) => void): void;
45
- /**
46
- * <p>Returns a list of attribute values. Attibutes are similar to the details
47
- * in a Price List API offer file. For a list of available attributes, see
48
- * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
49
- * 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>
50
- */
12
+
51
13
  getAttributeValues(args: GetAttributeValuesCommandInput, options?: __HttpHandlerOptions): Promise<GetAttributeValuesCommandOutput>;
52
14
  getAttributeValues(args: GetAttributeValuesCommandInput, cb: (err: any, data?: GetAttributeValuesCommandOutput) => void): void;
53
15
  getAttributeValues(args: GetAttributeValuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAttributeValuesCommandOutput) => void): void;
54
- /**
55
- * <p>Returns a list of all products that match the filter criteria.</p>
56
- */
16
+
57
17
  getProducts(args: GetProductsCommandInput, options?: __HttpHandlerOptions): Promise<GetProductsCommandOutput>;
58
18
  getProducts(args: GetProductsCommandInput, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
59
19
  getProducts(args: GetProductsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
@@ -12,147 +12,59 @@ import { GetProductsCommandInput, GetProductsCommandOutput } from "./commands/Ge
12
12
  export declare type ServiceInputTypes = DescribeServicesCommandInput | GetAttributeValuesCommandInput | GetProductsCommandInput;
13
13
  export declare type ServiceOutputTypes = DescribeServicesCommandOutput | GetAttributeValuesCommandOutput | GetProductsCommandOutput;
14
14
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
15
- /**
16
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
17
- */
15
+
18
16
  requestHandler?: __HttpHandler;
19
- /**
20
- * A constructor for a class implementing the {@link __Hash} interface
21
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
22
- * @internal
23
- */
17
+
24
18
  sha256?: __HashConstructor;
25
- /**
26
- * The function that will be used to convert strings into HTTP endpoints.
27
- * @internal
28
- */
19
+
29
20
  urlParser?: __UrlParser;
30
- /**
31
- * A function that can calculate the length of a request body.
32
- * @internal
33
- */
21
+
34
22
  bodyLengthChecker?: (body: any) => number | undefined;
35
- /**
36
- * A function that converts a stream into an array of bytes.
37
- * @internal
38
- */
23
+
39
24
  streamCollector?: __StreamCollector;
40
- /**
41
- * The function that will be used to convert a base64-encoded string to a byte array.
42
- * @internal
43
- */
25
+
44
26
  base64Decoder?: __Decoder;
45
- /**
46
- * The function that will be used to convert binary data to a base64-encoded string.
47
- * @internal
48
- */
27
+
49
28
  base64Encoder?: __Encoder;
50
- /**
51
- * The function that will be used to convert a UTF8-encoded string to a byte array.
52
- * @internal
53
- */
29
+
54
30
  utf8Decoder?: __Decoder;
55
- /**
56
- * The function that will be used to convert binary data to a UTF-8 encoded string.
57
- * @internal
58
- */
31
+
59
32
  utf8Encoder?: __Encoder;
60
- /**
61
- * The runtime environment.
62
- * @internal
63
- */
33
+
64
34
  runtime?: string;
65
- /**
66
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
67
- * trait of an operation.
68
- */
35
+
69
36
  disableHostPrefix?: boolean;
70
- /**
71
- * Value for how many times a request will be made at most in case of retry.
72
- */
37
+
73
38
  maxAttempts?: number | __Provider<number>;
74
- /**
75
- * Specifies which retry algorithm to use.
76
- */
39
+
77
40
  retryMode?: string | __Provider<string>;
78
- /**
79
- * Optional logger for logging debug/info/warn/error.
80
- */
41
+
81
42
  logger?: __Logger;
82
- /**
83
- * Unique service identifier.
84
- * @internal
85
- */
43
+
86
44
  serviceId?: string;
87
- /**
88
- * The AWS region to which this client will send requests
89
- */
45
+
90
46
  region?: string | __Provider<string>;
91
- /**
92
- * Default credentials provider; Not available in browser runtime.
93
- * @internal
94
- */
47
+
95
48
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
96
- /**
97
- * Fetch related hostname, signing name or signing region with given region.
98
- * @internal
99
- */
49
+
100
50
  regionInfoProvider?: RegionInfoProvider;
101
- /**
102
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
103
- * @internal
104
- */
51
+
105
52
  defaultUserAgentProvider?: Provider<__UserAgent>;
106
53
  }
107
54
  declare type PricingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
108
- /**
109
- * The configuration interface of PricingClient class constructor that set the region, credentials and other options.
110
- */
55
+
111
56
  export interface PricingClientConfig extends PricingClientConfigType {
112
57
  }
113
58
  declare type PricingClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
114
- /**
115
- * The resolved configuration interface of PricingClient class. This is resolved and normalized from the {@link PricingClientConfig | constructor configuration interface}.
116
- */
59
+
117
60
  export interface PricingClientResolvedConfig extends PricingClientResolvedConfigType {
118
61
  }
119
- /**
120
- * <p>Amazon Web Services Price List Service API (Amazon Web Services Price List Service) is a centralized and convenient way to
121
- * programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List Service
122
- * uses standardized product attributes such as <code>Location</code>, <code>Storage
123
- * Class</code>, and <code>Operating System</code>, and provides prices at the SKU
124
- * level. You can use the Amazon Web Services Price List Service to build cost control and scenario planning tools, reconcile
125
- * billing data, forecast future spend for budgeting purposes, and provide cost benefit
126
- * analysis that compare your internal workloads with Amazon Web Services.</p>
127
- * <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
128
- * <code>GetServices</code> with a service code to retreive the attribute names for
129
- * that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>
130
- * to see what values are available for an attribute. With the service code and an attribute name and value,
131
- * you can use <code>GetProducts</code> to find specific products that you're interested in, such as
132
- * an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
133
- * <code>volumeType</code>.</p>
134
- * <p>Service Endpoint</p>
135
- * <p>Amazon Web Services Price List Service API provides the following two endpoints:</p>
136
- * <ul>
137
- * <li>
138
- * <p>https://api.pricing.us-east-1.amazonaws.com</p>
139
- * </li>
140
- * <li>
141
- * <p>https://api.pricing.ap-south-1.amazonaws.com</p>
142
- * </li>
143
- * </ul>
144
- */
62
+
145
63
  export declare class PricingClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, PricingClientResolvedConfig> {
146
- /**
147
- * The resolved configuration of PricingClient class. This is resolved and normalized from the {@link PricingClientConfig | constructor configuration interface}.
148
- */
64
+
149
65
  readonly config: PricingClientResolvedConfig;
150
66
  constructor(configuration: PricingClientConfig);
151
- /**
152
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
153
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
154
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
155
- */
67
+
156
68
  destroy(): void;
157
69
  }
158
70
  export {};
@@ -6,35 +6,11 @@ export interface DescribeServicesCommandInput extends DescribeServicesRequest {
6
6
  }
7
7
  export interface DescribeServicesCommandOutput extends DescribeServicesResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns the metadata for one service or a list of the metadata for all services. Use
11
- * this without a service code to get the service codes for all services.
12
- * Use it with a service code, such as <code>AmazonEC2</code>, to get information specific to
13
- * that service, such as the attribute
14
- * names available for that service. For example, some of the attribute names available for EC2 are
15
- * <code>volumeType</code>, <code>maxIopsVolume</code>, <code>operation</code>,
16
- * <code>locationType</code>, and <code>instanceCapacity10xlarge</code>.</p>
17
- * @example
18
- * Use a bare-bones client and the command you need to make an API call.
19
- * ```javascript
20
- * import { PricingClient, DescribeServicesCommand } from "@aws-sdk/client-pricing"; // ES Modules import
21
- * // const { PricingClient, DescribeServicesCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
22
- * const client = new PricingClient(config);
23
- * const command = new DescribeServicesCommand(input);
24
- * const response = await client.send(command);
25
- * ```
26
- *
27
- * @see {@link DescribeServicesCommandInput} for command's `input` shape.
28
- * @see {@link DescribeServicesCommandOutput} for command's `response` shape.
29
- * @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
30
- *
31
- */
9
+
32
10
  export declare class DescribeServicesCommand extends $Command<DescribeServicesCommandInput, DescribeServicesCommandOutput, PricingClientResolvedConfig> {
33
11
  readonly input: DescribeServicesCommandInput;
34
12
  constructor(input: DescribeServicesCommandInput);
35
- /**
36
- * @internal
37
- */
13
+
38
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PricingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeServicesCommandInput, DescribeServicesCommandOutput>;
39
15
  private serialize;
40
16
  private deserialize;
@@ -6,32 +6,11 @@ export interface GetAttributeValuesCommandInput extends GetAttributeValuesReques
6
6
  }
7
7
  export interface GetAttributeValuesCommandOutput extends GetAttributeValuesResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns a list of attribute values. Attibutes are similar to the details
11
- * in a Price List API offer file. For a list of available attributes, see
12
- * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
13
- * 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>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { PricingClient, GetAttributeValuesCommand } from "@aws-sdk/client-pricing"; // ES Modules import
18
- * // const { PricingClient, GetAttributeValuesCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
19
- * const client = new PricingClient(config);
20
- * const command = new GetAttributeValuesCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link GetAttributeValuesCommandInput} for command's `input` shape.
25
- * @see {@link GetAttributeValuesCommandOutput} for command's `response` shape.
26
- * @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
9
+
29
10
  export declare class GetAttributeValuesCommand extends $Command<GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput, PricingClientResolvedConfig> {
30
11
  readonly input: GetAttributeValuesCommandInput;
31
12
  constructor(input: GetAttributeValuesCommandInput);
32
- /**
33
- * @internal
34
- */
13
+
35
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PricingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput>;
36
15
  private serialize;
37
16
  private deserialize;
@@ -6,29 +6,11 @@ export interface GetProductsCommandInput extends GetProductsRequest {
6
6
  }
7
7
  export interface GetProductsCommandOutput extends GetProductsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns a list of all products that match the filter criteria.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { PricingClient, GetProductsCommand } from "@aws-sdk/client-pricing"; // ES Modules import
15
- * // const { PricingClient, GetProductsCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
16
- * const client = new PricingClient(config);
17
- * const command = new GetProductsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link GetProductsCommandInput} for command's `input` shape.
22
- * @see {@link GetProductsCommandOutput} for command's `response` shape.
23
- * @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
9
+
26
10
  export declare class GetProductsCommand extends $Command<GetProductsCommandInput, GetProductsCommandOutput, PricingClientResolvedConfig> {
27
11
  readonly input: GetProductsCommandInput;
28
12
  constructor(input: GetProductsCommandInput);
29
- /**
30
- * @internal
31
- */
13
+
32
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PricingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetProductsCommandInput, GetProductsCommandOutput>;
33
15
  private serialize;
34
16
  private deserialize;
@@ -0,0 +1,3 @@
1
+ export * from "./DescribeServicesCommand";
2
+ export * from "./GetAttributeValuesCommand";
3
+ export * from "./GetProductsCommand";
@@ -1,10 +1,5 @@
1
- export * from "./PricingClient";
2
1
  export * from "./Pricing";
3
- export * from "./commands/DescribeServicesCommand";
4
- export * from "./pagination/DescribeServicesPaginator";
5
- export * from "./commands/GetAttributeValuesCommand";
6
- export * from "./pagination/GetAttributeValuesPaginator";
7
- export * from "./commands/GetProductsCommand";
8
- export * from "./pagination/GetProductsPaginator";
9
- export * from "./pagination/Interfaces";
10
- export * from "./models/index";
2
+ export * from "./PricingClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";