@aws-sdk/client-pricing 3.658.1 → 3.662.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/README.md CHANGED
@@ -25,7 +25,7 @@ the SKU level. You can use the Amazon Web Services Price List to do the followin
25
25
  </li>
26
26
  </ul>
27
27
  <p>Use <code>GetServices</code> without a service code to retrieve the service codes for
28
- all Amazon Web Services, then <code>GetServices</code> with a service code to
28
+ all Amazon Web Services services, then <code>GetServices</code> with a service code to
29
29
  retrieve the attribute names for that service. After you have the service code and
30
30
  attribute names, you can use <code>GetAttributeValues</code> to see what values are
31
31
  available for an attribute. With the service code and an attribute name and value, you can
@@ -58,7 +58,7 @@ export interface Pricing {
58
58
  * </li>
59
59
  * </ul>
60
60
  * <p>Use <code>GetServices</code> without a service code to retrieve the service codes for
61
- * all Amazon Web Services, then <code>GetServices</code> with a service code to
61
+ * all Amazon Web Services services, then <code>GetServices</code> with a service code to
62
62
  * retrieve the attribute names for that service. After you have the service code and
63
63
  * attribute names, you can use <code>GetAttributeValues</code> to see what values are
64
64
  * available for an attribute. With the service code and an attribute name and value, you can
@@ -175,7 +175,7 @@ export interface PricingClientResolvedConfig extends PricingClientResolvedConfig
175
175
  * </li>
176
176
  * </ul>
177
177
  * <p>Use <code>GetServices</code> without a service code to retrieve the service codes for
178
- * all Amazon Web Services, then <code>GetServices</code> with a service code to
178
+ * all Amazon Web Services services, then <code>GetServices</code> with a service code to
179
179
  * retrieve the attribute names for that service. After you have the service code and
180
180
  * attribute names, you can use <code>GetAttributeValues</code> to see what values are
181
181
  * available for an attribute. With the service code and an attribute name and value, you can
@@ -92,6 +92,37 @@ declare const DescribeServicesCommand_base: {
92
92
  * <p>Base exception class for all service exceptions from Pricing service.</p>
93
93
  *
94
94
  * @public
95
+ * @example To retrieve a list of services and service codes
96
+ * ```javascript
97
+ * // Retrieves the service for the given Service Code.
98
+ * const input = {
99
+ * "FormatVersion": "aws_v1",
100
+ * "MaxResults": 1,
101
+ * "ServiceCode": "AmazonEC2"
102
+ * };
103
+ * const command = new DescribeServicesCommand(input);
104
+ * const response = await client.send(command);
105
+ * /* response ==
106
+ * {
107
+ * "FormatVersion": "aws_v1",
108
+ * "NextToken": "abcdefg123",
109
+ * "Services": [
110
+ * {
111
+ * "AttributeNames": [
112
+ * "volumeType",
113
+ * "maxIopsvolume",
114
+ * "instanceCapacity10xlarge",
115
+ * "locationType",
116
+ * "operation"
117
+ * ],
118
+ * "ServiceCode": "AmazonEC2"
119
+ * }
120
+ * ]
121
+ * }
122
+ * *\/
123
+ * // example id: example-1
124
+ * ```
125
+ *
95
126
  */
96
127
  export declare class DescribeServicesCommand extends DescribeServicesCommand_base {
97
128
  /** @internal type navigation helper, not in runtime. */
@@ -85,6 +85,32 @@ declare const GetAttributeValuesCommand_base: {
85
85
  * <p>Base exception class for all service exceptions from Pricing service.</p>
86
86
  *
87
87
  * @public
88
+ * @example To retrieve a list of attribute values
89
+ * ```javascript
90
+ * // This operation returns a list of values available for the given attribute.
91
+ * const input = {
92
+ * "AttributeName": "volumeType",
93
+ * "MaxResults": 2,
94
+ * "ServiceCode": "AmazonEC2"
95
+ * };
96
+ * const command = new GetAttributeValuesCommand(input);
97
+ * const response = await client.send(command);
98
+ * /* response ==
99
+ * {
100
+ * "AttributeValues": [
101
+ * {
102
+ * "Value": "Throughput Optimized HDD"
103
+ * },
104
+ * {
105
+ * "Value": "Provisioned IOPS"
106
+ * }
107
+ * ],
108
+ * "NextToken": "GpgauEXAMPLEezucl5LV0w==:7GzYJ0nw0DBTJ2J66EoTIIynE6O1uXwQtTRqioJzQadBnDVgHPzI1en4BUQnPCLpzeBk9RQQAWaFieA4+DapFAGLgk+Z/9/cTw9GldnPOHN98+FdmJP7wKU3QQpQ8MQr5KOeBkIsAqvAQYdL0DkL7tHwPtE5iCEByAmg9gcC/yBU1vAOsf7R3VaNN4M5jMDv3woSWqASSIlBVB6tgW78YL22KhssoItM/jWW+aP6Jqtq4mldxp/ct6DWAl+xLFwHU/CbketimPPXyqHF3/UXDw=="
109
+ * }
110
+ * *\/
111
+ * // example id: example-1
112
+ * ```
113
+ *
88
114
  */
89
115
  export declare class GetAttributeValuesCommand extends GetAttributeValuesCommand_base {
90
116
  /** @internal type navigation helper, not in runtime. */
@@ -18,7 +18,7 @@
18
18
  * </li>
19
19
  * </ul>
20
20
  * <p>Use <code>GetServices</code> without a service code to retrieve the service codes for
21
- * all Amazon Web Services, then <code>GetServices</code> with a service code to
21
+ * all Amazon Web Services services, then <code>GetServices</code> with a service code to
22
22
  * retrieve the attribute names for that service. After you have the service code and
23
23
  * attribute names, you can use <code>GetAttributeValues</code> to see what values are
24
24
  * available for an attribute. With the service code and an attribute name and value, you can
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.658.1",
4
+ "version": "3.662.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,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.658.1",
24
- "@aws-sdk/client-sts": "3.658.1",
25
- "@aws-sdk/core": "3.658.1",
26
- "@aws-sdk/credential-provider-node": "3.658.1",
27
- "@aws-sdk/middleware-host-header": "3.654.0",
28
- "@aws-sdk/middleware-logger": "3.654.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.654.0",
30
- "@aws-sdk/middleware-user-agent": "3.654.0",
31
- "@aws-sdk/region-config-resolver": "3.654.0",
32
- "@aws-sdk/types": "3.654.0",
33
- "@aws-sdk/util-endpoints": "3.654.0",
34
- "@aws-sdk/util-user-agent-browser": "3.654.0",
35
- "@aws-sdk/util-user-agent-node": "3.654.0",
36
- "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.6",
38
- "@smithy/fetch-http-handler": "^3.2.8",
39
- "@smithy/hash-node": "^3.0.6",
40
- "@smithy/invalid-dependency": "^3.0.6",
41
- "@smithy/middleware-content-length": "^3.0.8",
42
- "@smithy/middleware-endpoint": "^3.1.3",
43
- "@smithy/middleware-retry": "^3.0.21",
44
- "@smithy/middleware-serde": "^3.0.6",
45
- "@smithy/middleware-stack": "^3.0.6",
46
- "@smithy/node-config-provider": "^3.1.7",
47
- "@smithy/node-http-handler": "^3.2.3",
48
- "@smithy/protocol-http": "^4.1.3",
49
- "@smithy/smithy-client": "^3.3.5",
50
- "@smithy/types": "^3.4.2",
51
- "@smithy/url-parser": "^3.0.6",
23
+ "@aws-sdk/client-sso-oidc": "3.662.0",
24
+ "@aws-sdk/client-sts": "3.662.0",
25
+ "@aws-sdk/core": "3.662.0",
26
+ "@aws-sdk/credential-provider-node": "3.662.0",
27
+ "@aws-sdk/middleware-host-header": "3.662.0",
28
+ "@aws-sdk/middleware-logger": "3.662.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.662.0",
30
+ "@aws-sdk/middleware-user-agent": "3.662.0",
31
+ "@aws-sdk/region-config-resolver": "3.662.0",
32
+ "@aws-sdk/types": "3.662.0",
33
+ "@aws-sdk/util-endpoints": "3.662.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.662.0",
35
+ "@aws-sdk/util-user-agent-node": "3.662.0",
36
+ "@smithy/config-resolver": "^3.0.9",
37
+ "@smithy/core": "^2.4.7",
38
+ "@smithy/fetch-http-handler": "^3.2.9",
39
+ "@smithy/hash-node": "^3.0.7",
40
+ "@smithy/invalid-dependency": "^3.0.7",
41
+ "@smithy/middleware-content-length": "^3.0.9",
42
+ "@smithy/middleware-endpoint": "^3.1.4",
43
+ "@smithy/middleware-retry": "^3.0.22",
44
+ "@smithy/middleware-serde": "^3.0.7",
45
+ "@smithy/middleware-stack": "^3.0.7",
46
+ "@smithy/node-config-provider": "^3.1.8",
47
+ "@smithy/node-http-handler": "^3.2.4",
48
+ "@smithy/protocol-http": "^4.1.4",
49
+ "@smithy/smithy-client": "^3.3.6",
50
+ "@smithy/types": "^3.5.0",
51
+ "@smithy/url-parser": "^3.0.7",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.21",
56
- "@smithy/util-defaults-mode-node": "^3.0.21",
57
- "@smithy/util-endpoints": "^2.1.2",
58
- "@smithy/util-middleware": "^3.0.6",
59
- "@smithy/util-retry": "^3.0.6",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.22",
56
+ "@smithy/util-defaults-mode-node": "^3.0.22",
57
+ "@smithy/util-endpoints": "^2.1.3",
58
+ "@smithy/util-middleware": "^3.0.7",
59
+ "@smithy/util-retry": "^3.0.7",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },