@aws-sdk/client-pricing 3.34.0 → 3.37.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 +47 -0
- package/{dist/cjs → dist-cjs}/Pricing.js +1 -28
- package/dist-cjs/PricingClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/DescribeServicesCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/GetAttributeValuesCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/GetProductsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -43
- package/{dist/cjs → dist-cjs}/pagination/DescribeServicesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetAttributeValuesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/GetProductsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/Pricing.js +1 -2
- package/{dist/es → dist-es}/PricingClient.js +1 -2
- package/{dist/es → dist-es}/commands/DescribeServicesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetAttributeValuesCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetProductsCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/{dist/es → dist-es}/pagination/DescribeServicesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/GetAttributeValuesPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/GetProductsPaginator.js +1 -2
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- 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/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → 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 +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/Pricing.d.ts +20 -0
- package/dist-types/ts3.4/PricingClient.d.ts +70 -0
- package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetAttributeValuesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetProductsCommand.d.ts +17 -0
- 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/ts3.4/models/models_0.d.ts +166 -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 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/Pricing.ts +0 -140
- package/PricingClient.ts +0 -264
- package/commands/DescribeServicesCommand.ts +0 -100
- package/commands/GetAttributeValuesCommand.ts +0 -97
- package/commands/GetProductsCommand.ts +0 -94
- package/dist/cjs/Pricing.js.map +0 -1
- package/dist/cjs/PricingClient.js +0 -67
- 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.map +0 -1
- package/dist/cjs/models/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/pagination/Interfaces.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.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 +0 -11
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- 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/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.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
- package/dist/types/ts3.4/Pricing.d.ts +0 -60
- package/dist/types/ts3.4/PricingClient.d.ts +0 -158
- package/dist/types/ts3.4/commands/DescribeServicesCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/GetAttributeValuesCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/GetProductsCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -290
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -365
- package/pagination/DescribeServicesPaginator.ts +0 -58
- package/pagination/GetAttributeValuesPaginator.ts +0 -58
- package/pagination/GetProductsPaginator.ts +0 -54
- package/pagination/Interfaces.ts +0 -7
- package/protocols/Aws_json1_1.ts +0 -674
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
package/PricingClient.ts
DELETED
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "./commands/DescribeServicesCommand";
|
|
2
|
-
import { GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput } from "./commands/GetAttributeValuesCommand";
|
|
3
|
-
import { GetProductsCommandInput, GetProductsCommandOutput } from "./commands/GetProductsCommand";
|
|
4
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
5
|
-
import {
|
|
6
|
-
EndpointsInputConfig,
|
|
7
|
-
EndpointsResolvedConfig,
|
|
8
|
-
RegionInputConfig,
|
|
9
|
-
RegionResolvedConfig,
|
|
10
|
-
resolveEndpointsConfig,
|
|
11
|
-
resolveRegionConfig,
|
|
12
|
-
} from "@aws-sdk/config-resolver";
|
|
13
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
14
|
-
import {
|
|
15
|
-
HostHeaderInputConfig,
|
|
16
|
-
HostHeaderResolvedConfig,
|
|
17
|
-
getHostHeaderPlugin,
|
|
18
|
-
resolveHostHeaderConfig,
|
|
19
|
-
} from "@aws-sdk/middleware-host-header";
|
|
20
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
21
|
-
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
22
|
-
import {
|
|
23
|
-
AwsAuthInputConfig,
|
|
24
|
-
AwsAuthResolvedConfig,
|
|
25
|
-
getAwsAuthPlugin,
|
|
26
|
-
resolveAwsAuthConfig,
|
|
27
|
-
} from "@aws-sdk/middleware-signing";
|
|
28
|
-
import {
|
|
29
|
-
UserAgentInputConfig,
|
|
30
|
-
UserAgentResolvedConfig,
|
|
31
|
-
getUserAgentPlugin,
|
|
32
|
-
resolveUserAgentConfig,
|
|
33
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
34
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
35
|
-
import {
|
|
36
|
-
Client as __Client,
|
|
37
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
38
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
39
|
-
} from "@aws-sdk/smithy-client";
|
|
40
|
-
import {
|
|
41
|
-
Provider,
|
|
42
|
-
RegionInfoProvider,
|
|
43
|
-
Credentials as __Credentials,
|
|
44
|
-
Decoder as __Decoder,
|
|
45
|
-
Encoder as __Encoder,
|
|
46
|
-
Hash as __Hash,
|
|
47
|
-
HashConstructor as __HashConstructor,
|
|
48
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
49
|
-
Logger as __Logger,
|
|
50
|
-
Provider as __Provider,
|
|
51
|
-
StreamCollector as __StreamCollector,
|
|
52
|
-
UrlParser as __UrlParser,
|
|
53
|
-
UserAgent as __UserAgent,
|
|
54
|
-
} from "@aws-sdk/types";
|
|
55
|
-
|
|
56
|
-
export type ServiceInputTypes = DescribeServicesCommandInput | GetAttributeValuesCommandInput | GetProductsCommandInput;
|
|
57
|
-
|
|
58
|
-
export type ServiceOutputTypes =
|
|
59
|
-
| DescribeServicesCommandOutput
|
|
60
|
-
| GetAttributeValuesCommandOutput
|
|
61
|
-
| GetProductsCommandOutput;
|
|
62
|
-
|
|
63
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
64
|
-
/**
|
|
65
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
66
|
-
*/
|
|
67
|
-
requestHandler?: __HttpHandler;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
71
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
sha256?: __HashConstructor;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
urlParser?: __UrlParser;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* A function that can calculate the length of a request body.
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* A function that converts a stream into an array of bytes.
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
streamCollector?: __StreamCollector;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
96
|
-
* @internal
|
|
97
|
-
*/
|
|
98
|
-
base64Decoder?: __Decoder;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
102
|
-
* @internal
|
|
103
|
-
*/
|
|
104
|
-
base64Encoder?: __Encoder;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
108
|
-
* @internal
|
|
109
|
-
*/
|
|
110
|
-
utf8Decoder?: __Decoder;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
114
|
-
* @internal
|
|
115
|
-
*/
|
|
116
|
-
utf8Encoder?: __Encoder;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* The runtime environment.
|
|
120
|
-
* @internal
|
|
121
|
-
*/
|
|
122
|
-
runtime?: string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
126
|
-
* trait of an operation.
|
|
127
|
-
*/
|
|
128
|
-
disableHostPrefix?: boolean;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
132
|
-
*/
|
|
133
|
-
maxAttempts?: number | __Provider<number>;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Specifies which retry algorithm to use.
|
|
137
|
-
*/
|
|
138
|
-
retryMode?: string | __Provider<string>;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Optional logger for logging debug/info/warn/error.
|
|
142
|
-
*/
|
|
143
|
-
logger?: __Logger;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Unique service identifier.
|
|
147
|
-
* @internal
|
|
148
|
-
*/
|
|
149
|
-
serviceId?: string;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* The AWS region to which this client will send requests
|
|
153
|
-
*/
|
|
154
|
-
region?: string | __Provider<string>;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Default credentials provider; Not available in browser runtime.
|
|
158
|
-
* @internal
|
|
159
|
-
*/
|
|
160
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
164
|
-
* @internal
|
|
165
|
-
*/
|
|
166
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
170
|
-
* @internal
|
|
171
|
-
*/
|
|
172
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
type PricingClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
176
|
-
ClientDefaults &
|
|
177
|
-
RegionInputConfig &
|
|
178
|
-
EndpointsInputConfig &
|
|
179
|
-
RetryInputConfig &
|
|
180
|
-
HostHeaderInputConfig &
|
|
181
|
-
AwsAuthInputConfig &
|
|
182
|
-
UserAgentInputConfig;
|
|
183
|
-
/**
|
|
184
|
-
* The configuration interface of PricingClient class constructor that set the region, credentials and other options.
|
|
185
|
-
*/
|
|
186
|
-
export interface PricingClientConfig extends PricingClientConfigType {}
|
|
187
|
-
|
|
188
|
-
type PricingClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
189
|
-
Required<ClientDefaults> &
|
|
190
|
-
RegionResolvedConfig &
|
|
191
|
-
EndpointsResolvedConfig &
|
|
192
|
-
RetryResolvedConfig &
|
|
193
|
-
HostHeaderResolvedConfig &
|
|
194
|
-
AwsAuthResolvedConfig &
|
|
195
|
-
UserAgentResolvedConfig;
|
|
196
|
-
/**
|
|
197
|
-
* The resolved configuration interface of PricingClient class. This is resolved and normalized from the {@link PricingClientConfig | constructor configuration interface}.
|
|
198
|
-
*/
|
|
199
|
-
export interface PricingClientResolvedConfig extends PricingClientResolvedConfigType {}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* <p>Amazon Web Services Price List Service API (Amazon Web Services Price List Service) is a centralized and convenient way to
|
|
203
|
-
* programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List Service
|
|
204
|
-
* uses standardized product attributes such as <code>Location</code>, <code>Storage
|
|
205
|
-
* Class</code>, and <code>Operating System</code>, and provides prices at the SKU
|
|
206
|
-
* level. You can use the Amazon Web Services Price List Service to build cost control and scenario planning tools, reconcile
|
|
207
|
-
* billing data, forecast future spend for budgeting purposes, and provide cost benefit
|
|
208
|
-
* analysis that compare your internal workloads with Amazon Web Services.</p>
|
|
209
|
-
* <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
|
|
210
|
-
* <code>GetServices</code> with a service code to retreive the attribute names for
|
|
211
|
-
* that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>
|
|
212
|
-
* to see what values are available for an attribute. With the service code and an attribute name and value,
|
|
213
|
-
* you can use <code>GetProducts</code> to find specific products that you're interested in, such as
|
|
214
|
-
* an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
|
|
215
|
-
* <code>volumeType</code>.</p>
|
|
216
|
-
* <p>Service Endpoint</p>
|
|
217
|
-
* <p>Amazon Web Services Price List Service API provides the following two endpoints:</p>
|
|
218
|
-
* <ul>
|
|
219
|
-
* <li>
|
|
220
|
-
* <p>https://api.pricing.us-east-1.amazonaws.com</p>
|
|
221
|
-
* </li>
|
|
222
|
-
* <li>
|
|
223
|
-
* <p>https://api.pricing.ap-south-1.amazonaws.com</p>
|
|
224
|
-
* </li>
|
|
225
|
-
* </ul>
|
|
226
|
-
*/
|
|
227
|
-
export class PricingClient extends __Client<
|
|
228
|
-
__HttpHandlerOptions,
|
|
229
|
-
ServiceInputTypes,
|
|
230
|
-
ServiceOutputTypes,
|
|
231
|
-
PricingClientResolvedConfig
|
|
232
|
-
> {
|
|
233
|
-
/**
|
|
234
|
-
* The resolved configuration of PricingClient class. This is resolved and normalized from the {@link PricingClientConfig | constructor configuration interface}.
|
|
235
|
-
*/
|
|
236
|
-
readonly config: PricingClientResolvedConfig;
|
|
237
|
-
|
|
238
|
-
constructor(configuration: PricingClientConfig) {
|
|
239
|
-
let _config_0 = __getRuntimeConfig(configuration);
|
|
240
|
-
let _config_1 = resolveRegionConfig(_config_0);
|
|
241
|
-
let _config_2 = resolveEndpointsConfig(_config_1);
|
|
242
|
-
let _config_3 = resolveRetryConfig(_config_2);
|
|
243
|
-
let _config_4 = resolveHostHeaderConfig(_config_3);
|
|
244
|
-
let _config_5 = resolveAwsAuthConfig(_config_4);
|
|
245
|
-
let _config_6 = resolveUserAgentConfig(_config_5);
|
|
246
|
-
super(_config_6);
|
|
247
|
-
this.config = _config_6;
|
|
248
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
249
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
250
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
251
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
252
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
253
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
258
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
259
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
260
|
-
*/
|
|
261
|
-
destroy(): void {
|
|
262
|
-
super.destroy();
|
|
263
|
-
}
|
|
264
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PricingClient";
|
|
2
|
-
import { DescribeServicesRequest, DescribeServicesResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1DescribeServicesCommand,
|
|
5
|
-
serializeAws_json1_1DescribeServicesCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface DescribeServicesCommandInput extends DescribeServicesRequest {}
|
|
21
|
-
export interface DescribeServicesCommandOutput extends DescribeServicesResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Returns the metadata for one service or a list of the metadata for all services. Use
|
|
25
|
-
* this without a service code to get the service codes for all services.
|
|
26
|
-
* Use it with a service code, such as <code>AmazonEC2</code>, to get information specific to
|
|
27
|
-
* that service, such as the attribute
|
|
28
|
-
* names available for that service. For example, some of the attribute names available for EC2 are
|
|
29
|
-
* <code>volumeType</code>, <code>maxIopsVolume</code>, <code>operation</code>,
|
|
30
|
-
* <code>locationType</code>, and <code>instanceCapacity10xlarge</code>.</p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { PricingClient, DescribeServicesCommand } from "@aws-sdk/client-pricing"; // ES Modules import
|
|
35
|
-
* // const { PricingClient, DescribeServicesCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
|
|
36
|
-
* const client = new PricingClient(config);
|
|
37
|
-
* const command = new DescribeServicesCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link DescribeServicesCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link DescribeServicesCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class DescribeServicesCommand extends $Command<
|
|
47
|
-
DescribeServicesCommandInput,
|
|
48
|
-
DescribeServicesCommandOutput,
|
|
49
|
-
PricingClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: DescribeServicesCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: PricingClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<DescribeServicesCommandInput, DescribeServicesCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "PricingClient";
|
|
74
|
-
const commandName = "DescribeServicesCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: DescribeServicesRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: DescribeServicesResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: DescribeServicesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_json1_1DescribeServicesCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeServicesCommandOutput> {
|
|
95
|
-
return deserializeAws_json1_1DescribeServicesCommand(output, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Start section: command_body_extra
|
|
99
|
-
// End section: command_body_extra
|
|
100
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PricingClient";
|
|
2
|
-
import { GetAttributeValuesRequest, GetAttributeValuesResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1GetAttributeValuesCommand,
|
|
5
|
-
serializeAws_json1_1GetAttributeValuesCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetAttributeValuesCommandInput extends GetAttributeValuesRequest {}
|
|
21
|
-
export interface GetAttributeValuesCommandOutput extends GetAttributeValuesResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Returns a list of attribute values. Attibutes are similar to the details
|
|
25
|
-
* in a Price List API offer file. For a list of available attributes, see
|
|
26
|
-
* <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
|
|
27
|
-
* 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>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { PricingClient, GetAttributeValuesCommand } from "@aws-sdk/client-pricing"; // ES Modules import
|
|
32
|
-
* // const { PricingClient, GetAttributeValuesCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
|
|
33
|
-
* const client = new PricingClient(config);
|
|
34
|
-
* const command = new GetAttributeValuesCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link GetAttributeValuesCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link GetAttributeValuesCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
|
-
export class GetAttributeValuesCommand extends $Command<
|
|
44
|
-
GetAttributeValuesCommandInput,
|
|
45
|
-
GetAttributeValuesCommandOutput,
|
|
46
|
-
PricingClientResolvedConfig
|
|
47
|
-
> {
|
|
48
|
-
// Start section: command_properties
|
|
49
|
-
// End section: command_properties
|
|
50
|
-
|
|
51
|
-
constructor(readonly input: GetAttributeValuesCommandInput) {
|
|
52
|
-
// Start section: command_constructor
|
|
53
|
-
super();
|
|
54
|
-
// End section: command_constructor
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
resolveMiddleware(
|
|
61
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
62
|
-
configuration: PricingClientResolvedConfig,
|
|
63
|
-
options?: __HttpHandlerOptions
|
|
64
|
-
): Handler<GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput> {
|
|
65
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "PricingClient";
|
|
71
|
-
const commandName = "GetAttributeValuesCommand";
|
|
72
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: GetAttributeValuesRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: GetAttributeValuesResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve(
|
|
81
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
82
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
83
|
-
handlerExecutionContext
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
private serialize(input: GetAttributeValuesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
88
|
-
return serializeAws_json1_1GetAttributeValuesCommand(input, context);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetAttributeValuesCommandOutput> {
|
|
92
|
-
return deserializeAws_json1_1GetAttributeValuesCommand(output, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Start section: command_body_extra
|
|
96
|
-
// End section: command_body_extra
|
|
97
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PricingClient";
|
|
2
|
-
import { GetProductsRequest, GetProductsResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1GetProductsCommand,
|
|
5
|
-
serializeAws_json1_1GetProductsCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface GetProductsCommandInput extends GetProductsRequest {}
|
|
21
|
-
export interface GetProductsCommandOutput extends GetProductsResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Returns a list of all products that match the filter criteria.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { PricingClient, GetProductsCommand } from "@aws-sdk/client-pricing"; // ES Modules import
|
|
29
|
-
* // const { PricingClient, GetProductsCommand } = require("@aws-sdk/client-pricing"); // CommonJS import
|
|
30
|
-
* const client = new PricingClient(config);
|
|
31
|
-
* const command = new GetProductsCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link GetProductsCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link GetProductsCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link PricingClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class GetProductsCommand extends $Command<
|
|
41
|
-
GetProductsCommandInput,
|
|
42
|
-
GetProductsCommandOutput,
|
|
43
|
-
PricingClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: GetProductsCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: PricingClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<GetProductsCommandInput, GetProductsCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "PricingClient";
|
|
68
|
-
const commandName = "GetProductsCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: GetProductsRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: GetProductsResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: GetProductsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_json1_1GetProductsCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetProductsCommandOutput> {
|
|
89
|
-
return deserializeAws_json1_1GetProductsCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
package/dist/cjs/Pricing.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pricing.js","sourceRoot":"","sources":["../../Pricing.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAChD,gFAI4C;AAC5C,oFAI8C;AAC9C,sEAAsH;AAGtH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,OAAQ,SAAQ,6BAAa;IAuBjC,gBAAgB,CACrB,IAAkC,EAClC,WAA+F,EAC/F,EAA6D;QAE7D,MAAM,OAAO,GAAG,IAAI,iDAAuB,CAAC,IAAI,CAAC,CAAC;QAClD,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,+BAA+B,OAAO,WAAW,EAAE,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;IAqBM,kBAAkB,CACvB,IAAoC,EACpC,WAAiG,EACjG,EAA+D;QAE/D,MAAM,OAAO,GAAG,IAAI,qDAAyB,CAAC,IAAI,CAAC,CAAC;QACpD,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,+BAA+B,OAAO,WAAW,EAAE,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;IAYM,WAAW,CAChB,IAA6B,EAC7B,WAA0F,EAC1F,EAAwD;QAExD,MAAM,OAAO,GAAG,IAAI,uCAAkB,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,+BAA+B,OAAO,WAAW,EAAE,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;CACF;AAnGD,0BAmGC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PricingClient = void 0;
|
|
4
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
|
-
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
6
|
-
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
7
|
-
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
8
|
-
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
9
|
-
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
10
|
-
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
11
|
-
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
12
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
|
-
/**
|
|
14
|
-
* <p>Amazon Web Services Price List Service API (Amazon Web Services Price List Service) is a centralized and convenient way to
|
|
15
|
-
* programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List Service
|
|
16
|
-
* uses standardized product attributes such as <code>Location</code>, <code>Storage
|
|
17
|
-
* Class</code>, and <code>Operating System</code>, and provides prices at the SKU
|
|
18
|
-
* level. You can use the Amazon Web Services Price List Service to build cost control and scenario planning tools, reconcile
|
|
19
|
-
* billing data, forecast future spend for budgeting purposes, and provide cost benefit
|
|
20
|
-
* analysis that compare your internal workloads with Amazon Web Services.</p>
|
|
21
|
-
* <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
|
|
22
|
-
* <code>GetServices</code> with a service code to retreive the attribute names for
|
|
23
|
-
* that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>
|
|
24
|
-
* to see what values are available for an attribute. With the service code and an attribute name and value,
|
|
25
|
-
* you can use <code>GetProducts</code> to find specific products that you're interested in, such as
|
|
26
|
-
* an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
|
|
27
|
-
* <code>volumeType</code>.</p>
|
|
28
|
-
* <p>Service Endpoint</p>
|
|
29
|
-
* <p>Amazon Web Services Price List Service API provides the following two endpoints:</p>
|
|
30
|
-
* <ul>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>https://api.pricing.us-east-1.amazonaws.com</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>https://api.pricing.ap-south-1.amazonaws.com</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* </ul>
|
|
38
|
-
*/
|
|
39
|
-
class PricingClient extends smithy_client_1.Client {
|
|
40
|
-
constructor(configuration) {
|
|
41
|
-
let _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
42
|
-
let _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
43
|
-
let _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
44
|
-
let _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
45
|
-
let _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
46
|
-
let _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
47
|
-
let _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
48
|
-
super(_config_6);
|
|
49
|
-
this.config = _config_6;
|
|
50
|
-
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
51
|
-
this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
|
|
52
|
-
this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
|
|
53
|
-
this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
|
|
54
|
-
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
55
|
-
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
59
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
60
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
61
|
-
*/
|
|
62
|
-
destroy() {
|
|
63
|
-
super.destroy();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exports.PricingClient = PricingClient;
|
|
67
|
-
//# sourceMappingURL=PricingClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PricingClient.js","sourceRoot":"","sources":["../../PricingClient.ts"],"names":[],"mappings":";;;AAGA,mDAAyE;AACzE,8DAOkC;AAClC,kFAA4E;AAC5E,4EAKyC;AACzC,kEAA6D;AAC7D,gEAAsH;AACtH,oEAKqC;AACrC,0EAKwC;AAExC,0DAIgC;AAk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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DescribeServicesCommand.js","sourceRoot":"","sources":["../../../commands/DescribeServicesCommand.ts"],"names":[],"mappings":";;;AACA,iDAAuF;AACvF,0DAGkC;AAClC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,uBAAwB,SAAQ,uBAI5C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAmC;QACtD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA8B;QAGtD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAA0C,EAC1C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,eAAe,CAAC;QACnC,MAAM,WAAW,GAAG,yBAAyB,CAAC;QAC9C,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,kCAAuB,CAAC,kBAAkB;YACnE,wBAAwB,EAAE,mCAAwB,CAAC,kBAAkB;SACtE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAmC,EAAE,OAAuB;QAC5E,OAAO,yDAA2C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,2DAA6C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CAIF;AAtDD,0DAsDC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetAttributeValuesCommand.js","sourceRoot":"","sources":["../../../commands/GetAttributeValuesCommand.ts"],"names":[],"mappings":";;;AACA,iDAA2F;AAC3F,0DAGkC;AAClC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,yBAA0B,SAAQ,uBAI9C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAqC;QACxD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAgC;QAGxD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAA0C,EAC1C,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,eAAe,CAAC;QACnC,MAAM,WAAW,GAAG,2BAA2B,CAAC;QAChD,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,oCAAyB,CAAC,kBAAkB;YACrE,wBAAwB,EAAE,qCAA0B,CAAC,kBAAkB;SACxE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CA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AE,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;AAEK,MAAM,yBAAyB,GAAuB,KAAK,EAAE,MAAc,EAAE,OAAa,EAAE,EAAE,CACnG,+BAAa,CAAC,MAAM,EAAE;IACpB,GAAG,OAAO;IACV,cAAc,EAAE,SAAS;IACzB,UAAU;IACV,aAAa;CACd,CAAC,CAAC;AANQ,QAAA,yBAAyB,6BAMjC"}
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,oDAA0B;AAC1B,6EAAmD;AACnD,iFAAuD;AACvD,+EAAqD;AACrD,mFAAyD;AACzD,wEAA8C;AAC9C,4EAAkD;AAClD,kEAAwC;AACxC,yDAA+B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B"}
|