@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.
Files changed (142) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/Pricing.js +1 -28
  3. package/dist-cjs/PricingClient.js +35 -0
  4. package/{dist/cjs → dist-cjs}/commands/DescribeServicesCommand.js +2 -33
  5. package/{dist/cjs → dist-cjs}/commands/GetAttributeValuesCommand.js +2 -30
  6. package/{dist/cjs → dist-cjs}/commands/GetProductsCommand.js +2 -27
  7. package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
  8. package/{dist/cjs → dist-cjs}/index.js +0 -1
  9. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -43
  11. package/{dist/cjs → dist-cjs}/pagination/DescribeServicesPaginator.js +1 -12
  12. package/{dist/cjs → dist-cjs}/pagination/GetAttributeValuesPaginator.js +1 -12
  13. package/{dist/cjs → dist-cjs}/pagination/GetProductsPaginator.js +1 -12
  14. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  15. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  20. package/{dist/es → dist-es}/Pricing.js +1 -2
  21. package/{dist/es → dist-es}/PricingClient.js +1 -2
  22. package/{dist/es → dist-es}/commands/DescribeServicesCommand.js +2 -3
  23. package/{dist/es → dist-es}/commands/GetAttributeValuesCommand.js +2 -3
  24. package/{dist/es → dist-es}/commands/GetProductsCommand.js +2 -3
  25. package/{dist/es → dist-es}/endpoints.js +1 -2
  26. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  27. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  28. package/{dist/es → dist-es}/models/models_0.js +0 -1
  29. package/{dist/es → dist-es}/pagination/DescribeServicesPaginator.js +1 -2
  30. package/{dist/es → dist-es}/pagination/GetAttributeValuesPaginator.js +1 -2
  31. package/{dist/es → dist-es}/pagination/GetProductsPaginator.js +1 -2
  32. package/dist-es/pagination/Interfaces.js +1 -0
  33. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +1 -2
  34. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
  35. package/{dist/es → dist-es}/runtimeConfig.js +1 -2
  36. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
  37. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
  38. package/{dist/types → dist-types}/Pricing.d.ts +2 -2
  39. package/{dist/types → dist-types}/PricingClient.d.ts +4 -4
  40. package/{dist/types → dist-types}/commands/DescribeServicesCommand.d.ts +3 -3
  41. package/{dist/types → dist-types}/commands/GetAttributeValuesCommand.d.ts +3 -3
  42. package/{dist/types → dist-types}/commands/GetProductsCommand.d.ts +3 -3
  43. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  44. package/{index.ts → dist-types/index.d.ts} +0 -0
  45. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  46. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  47. package/{dist/types → dist-types}/pagination/DescribeServicesPaginator.d.ts +1 -1
  48. package/{dist/types → dist-types}/pagination/GetAttributeValuesPaginator.d.ts +1 -1
  49. package/{dist/types → dist-types}/pagination/GetProductsPaginator.d.ts +1 -1
  50. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  51. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  52. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  53. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  54. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  55. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  56. package/dist-types/ts3.4/Pricing.d.ts +20 -0
  57. package/dist-types/ts3.4/PricingClient.d.ts +70 -0
  58. package/dist-types/ts3.4/commands/DescribeServicesCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/GetAttributeValuesCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/GetProductsCommand.d.ts +17 -0
  61. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  62. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  63. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +166 -0
  65. package/{dist/types → dist-types}/ts3.4/pagination/DescribeServicesPaginator.d.ts +1 -1
  66. package/{dist/types → dist-types}/ts3.4/pagination/GetAttributeValuesPaginator.d.ts +1 -1
  67. package/{dist/types → dist-types}/ts3.4/pagination/GetProductsPaginator.d.ts +1 -1
  68. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  69. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  70. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  71. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  72. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  73. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  74. package/package.json +45 -42
  75. package/Pricing.ts +0 -140
  76. package/PricingClient.ts +0 -264
  77. package/commands/DescribeServicesCommand.ts +0 -100
  78. package/commands/GetAttributeValuesCommand.ts +0 -97
  79. package/commands/GetProductsCommand.ts +0 -94
  80. package/dist/cjs/Pricing.js.map +0 -1
  81. package/dist/cjs/PricingClient.js +0 -67
  82. package/dist/cjs/PricingClient.js.map +0 -1
  83. package/dist/cjs/commands/DescribeServicesCommand.js.map +0 -1
  84. package/dist/cjs/commands/GetAttributeValuesCommand.js.map +0 -1
  85. package/dist/cjs/commands/GetProductsCommand.js.map +0 -1
  86. package/dist/cjs/endpoints.js.map +0 -1
  87. package/dist/cjs/index.js.map +0 -1
  88. package/dist/cjs/models/index.js.map +0 -1
  89. package/dist/cjs/models/models_0.js.map +0 -1
  90. package/dist/cjs/package.json +0 -91
  91. package/dist/cjs/pagination/DescribeServicesPaginator.js.map +0 -1
  92. package/dist/cjs/pagination/GetAttributeValuesPaginator.js.map +0 -1
  93. package/dist/cjs/pagination/GetProductsPaginator.js.map +0 -1
  94. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  95. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  96. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  97. package/dist/cjs/runtimeConfig.js.map +0 -1
  98. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  99. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  100. package/dist/es/Pricing.js.map +0 -1
  101. package/dist/es/PricingClient.js.map +0 -1
  102. package/dist/es/commands/DescribeServicesCommand.js.map +0 -1
  103. package/dist/es/commands/GetAttributeValuesCommand.js.map +0 -1
  104. package/dist/es/commands/GetProductsCommand.js.map +0 -1
  105. package/dist/es/endpoints.js.map +0 -1
  106. package/dist/es/index.js +0 -11
  107. package/dist/es/index.js.map +0 -1
  108. package/dist/es/models/index.js +0 -2
  109. package/dist/es/models/index.js.map +0 -1
  110. package/dist/es/models/models_0.js.map +0 -1
  111. package/dist/es/package.json +0 -91
  112. package/dist/es/pagination/DescribeServicesPaginator.js.map +0 -1
  113. package/dist/es/pagination/GetAttributeValuesPaginator.js.map +0 -1
  114. package/dist/es/pagination/GetProductsPaginator.js.map +0 -1
  115. package/dist/es/pagination/Interfaces.js +0 -2
  116. package/dist/es/pagination/Interfaces.js.map +0 -1
  117. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  118. package/dist/es/runtimeConfig.browser.js.map +0 -1
  119. package/dist/es/runtimeConfig.js.map +0 -1
  120. package/dist/es/runtimeConfig.native.js.map +0 -1
  121. package/dist/es/runtimeConfig.shared.js.map +0 -1
  122. package/dist/types/ts3.4/Pricing.d.ts +0 -60
  123. package/dist/types/ts3.4/PricingClient.d.ts +0 -158
  124. package/dist/types/ts3.4/commands/DescribeServicesCommand.d.ts +0 -41
  125. package/dist/types/ts3.4/commands/GetAttributeValuesCommand.d.ts +0 -38
  126. package/dist/types/ts3.4/commands/GetProductsCommand.d.ts +0 -35
  127. package/dist/types/ts3.4/models/models_0.d.ts +0 -290
  128. package/endpoints.ts +0 -57
  129. package/jest.config.js +0 -4
  130. package/models/models_0.ts +0 -365
  131. package/pagination/DescribeServicesPaginator.ts +0 -58
  132. package/pagination/GetAttributeValuesPaginator.ts +0 -58
  133. package/pagination/GetProductsPaginator.ts +0 -54
  134. package/pagination/Interfaces.ts +0 -7
  135. package/protocols/Aws_json1_1.ts +0 -674
  136. package/runtimeConfig.browser.ts +0 -40
  137. package/runtimeConfig.native.ts +0 -16
  138. package/runtimeConfig.shared.ts +0 -16
  139. package/runtimeConfig.ts +0 -45
  140. package/tsconfig.es.json +0 -10
  141. package/tsconfig.json +0 -31
  142. package/tsconfig.types.json +0 -8
@@ -1,158 +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 { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
5
- import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
6
- import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
7
- import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
8
- import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
9
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
11
- import { Provider, RegionInfoProvider, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
12
- export declare type ServiceInputTypes = DescribeServicesCommandInput | GetAttributeValuesCommandInput | GetProductsCommandInput;
13
- export declare type ServiceOutputTypes = DescribeServicesCommandOutput | GetAttributeValuesCommandOutput | GetProductsCommandOutput;
14
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
15
- /**
16
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
17
- */
18
- 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
- */
24
- sha256?: __HashConstructor;
25
- /**
26
- * The function that will be used to convert strings into HTTP endpoints.
27
- * @internal
28
- */
29
- urlParser?: __UrlParser;
30
- /**
31
- * A function that can calculate the length of a request body.
32
- * @internal
33
- */
34
- bodyLengthChecker?: (body: any) => number | undefined;
35
- /**
36
- * A function that converts a stream into an array of bytes.
37
- * @internal
38
- */
39
- streamCollector?: __StreamCollector;
40
- /**
41
- * The function that will be used to convert a base64-encoded string to a byte array.
42
- * @internal
43
- */
44
- base64Decoder?: __Decoder;
45
- /**
46
- * The function that will be used to convert binary data to a base64-encoded string.
47
- * @internal
48
- */
49
- base64Encoder?: __Encoder;
50
- /**
51
- * The function that will be used to convert a UTF8-encoded string to a byte array.
52
- * @internal
53
- */
54
- utf8Decoder?: __Decoder;
55
- /**
56
- * The function that will be used to convert binary data to a UTF-8 encoded string.
57
- * @internal
58
- */
59
- utf8Encoder?: __Encoder;
60
- /**
61
- * The runtime environment.
62
- * @internal
63
- */
64
- runtime?: string;
65
- /**
66
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
67
- * trait of an operation.
68
- */
69
- disableHostPrefix?: boolean;
70
- /**
71
- * Value for how many times a request will be made at most in case of retry.
72
- */
73
- maxAttempts?: number | __Provider<number>;
74
- /**
75
- * Specifies which retry algorithm to use.
76
- */
77
- retryMode?: string | __Provider<string>;
78
- /**
79
- * Optional logger for logging debug/info/warn/error.
80
- */
81
- logger?: __Logger;
82
- /**
83
- * Unique service identifier.
84
- * @internal
85
- */
86
- serviceId?: string;
87
- /**
88
- * The AWS region to which this client will send requests
89
- */
90
- region?: string | __Provider<string>;
91
- /**
92
- * Default credentials provider; Not available in browser runtime.
93
- * @internal
94
- */
95
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
96
- /**
97
- * Fetch related hostname, signing name or signing region with given region.
98
- * @internal
99
- */
100
- regionInfoProvider?: RegionInfoProvider;
101
- /**
102
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
103
- * @internal
104
- */
105
- defaultUserAgentProvider?: Provider<__UserAgent>;
106
- }
107
- 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
- */
111
- export interface PricingClientConfig extends PricingClientConfigType {
112
- }
113
- 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
- */
117
- export interface PricingClientResolvedConfig extends PricingClientResolvedConfigType {
118
- }
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
- */
145
- 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
- */
149
- readonly config: PricingClientResolvedConfig;
150
- 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
- */
156
- destroy(): void;
157
- }
158
- export {};
@@ -1,41 +0,0 @@
1
- import { PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PricingClient";
2
- import { DescribeServicesRequest, DescribeServicesResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface DescribeServicesCommandInput extends DescribeServicesRequest {
6
- }
7
- export interface DescribeServicesCommandOutput extends DescribeServicesResponse, __MetadataBearer {
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
- */
32
- export declare class DescribeServicesCommand extends $Command<DescribeServicesCommandInput, DescribeServicesCommandOutput, PricingClientResolvedConfig> {
33
- readonly input: DescribeServicesCommandInput;
34
- constructor(input: DescribeServicesCommandInput);
35
- /**
36
- * @internal
37
- */
38
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PricingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeServicesCommandInput, DescribeServicesCommandOutput>;
39
- private serialize;
40
- private deserialize;
41
- }
@@ -1,38 +0,0 @@
1
- import { PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PricingClient";
2
- import { GetAttributeValuesRequest, GetAttributeValuesResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface GetAttributeValuesCommandInput extends GetAttributeValuesRequest {
6
- }
7
- export interface GetAttributeValuesCommandOutput extends GetAttributeValuesResponse, __MetadataBearer {
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
- */
29
- export declare class GetAttributeValuesCommand extends $Command<GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput, PricingClientResolvedConfig> {
30
- readonly input: GetAttributeValuesCommandInput;
31
- constructor(input: GetAttributeValuesCommandInput);
32
- /**
33
- * @internal
34
- */
35
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PricingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput>;
36
- private serialize;
37
- private deserialize;
38
- }
@@ -1,35 +0,0 @@
1
- import { PricingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PricingClient";
2
- import { GetProductsRequest, GetProductsResponse } from "../models/models_0";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
5
- export interface GetProductsCommandInput extends GetProductsRequest {
6
- }
7
- export interface GetProductsCommandOutput extends GetProductsResponse, __MetadataBearer {
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
- */
26
- export declare class GetProductsCommand extends $Command<GetProductsCommandInput, GetProductsCommandOutput, PricingClientResolvedConfig> {
27
- readonly input: GetProductsCommandInput;
28
- constructor(input: GetProductsCommandInput);
29
- /**
30
- * @internal
31
- */
32
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PricingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetProductsCommandInput, GetProductsCommandOutput>;
33
- private serialize;
34
- private deserialize;
35
- }
@@ -1,290 +0,0 @@
1
- import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
- /**
4
- * <p>The values of a given attribute, such as <code>Throughput Optimized HDD</code> or <code>Provisioned
5
- * IOPS</code> for the <code>Amazon EC2</code>
6
- * <code>volumeType</code> attribute.</p>
7
- */
8
- export interface AttributeValue {
9
- /**
10
- * <p>The specific value of an <code>attributeName</code>.</p>
11
- */
12
- Value?: string;
13
- }
14
- export declare namespace AttributeValue {
15
- /**
16
- * @internal
17
- */
18
- const filterSensitiveLog: (obj: AttributeValue) => any;
19
- }
20
- export interface DescribeServicesRequest {
21
- /**
22
- * <p>The code for the service whose information you want to retrieve, such as <code>AmazonEC2</code>.
23
- * You can use
24
- * the <code>ServiceCode</code> to filter the results in a <code>GetProducts</code> call.
25
- * To retrieve a list of all services, leave this blank.</p>
26
- */
27
- ServiceCode?: string;
28
- /**
29
- * <p>The format version that you want the response to be in.</p>
30
- * <p>Valid values are: <code>aws_v1</code>
31
- * </p>
32
- */
33
- FormatVersion?: string;
34
- /**
35
- * <p>The pagination token that indicates the next set of results that you want to retrieve.</p>
36
- */
37
- NextToken?: string;
38
- /**
39
- * <p>The maximum number of results that you want returned in the response.</p>
40
- */
41
- MaxResults?: number;
42
- }
43
- export declare namespace DescribeServicesRequest {
44
- /**
45
- * @internal
46
- */
47
- const filterSensitiveLog: (obj: DescribeServicesRequest) => any;
48
- }
49
- /**
50
- * <p>The metadata for a service, such as the service code and available attribute names.</p>
51
- */
52
- export interface Service {
53
- /**
54
- * <p>The code for the Amazon Web Services service.</p>
55
- */
56
- ServiceCode?: string;
57
- /**
58
- * <p>The attributes that are available for this service.</p>
59
- */
60
- AttributeNames?: string[];
61
- }
62
- export declare namespace Service {
63
- /**
64
- * @internal
65
- */
66
- const filterSensitiveLog: (obj: Service) => any;
67
- }
68
- export interface DescribeServicesResponse {
69
- /**
70
- * <p>The service metadata for the service or services in the response.</p>
71
- */
72
- Services?: Service[];
73
- /**
74
- * <p>The format version of the response. For example, <code>aws_v1</code>.</p>
75
- */
76
- FormatVersion?: string;
77
- /**
78
- * <p>The pagination token for the next set of retreivable results.</p>
79
- */
80
- NextToken?: string;
81
- }
82
- export declare namespace DescribeServicesResponse {
83
- /**
84
- * @internal
85
- */
86
- const filterSensitiveLog: (obj: DescribeServicesResponse) => any;
87
- }
88
- /**
89
- * <p>The pagination token expired. Try again without a pagination token.</p>
90
- */
91
- export interface ExpiredNextTokenException extends __SmithyException, $MetadataBearer {
92
- name: "ExpiredNextTokenException";
93
- $fault: "client";
94
- Message?: string;
95
- }
96
- export declare namespace ExpiredNextTokenException {
97
- /**
98
- * @internal
99
- */
100
- const filterSensitiveLog: (obj: ExpiredNextTokenException) => any;
101
- }
102
- /**
103
- * <p>An error on the server occurred during the processing of your request. Try again later.</p>
104
- */
105
- export interface InternalErrorException extends __SmithyException, $MetadataBearer {
106
- name: "InternalErrorException";
107
- $fault: "server";
108
- Message?: string;
109
- }
110
- export declare namespace InternalErrorException {
111
- /**
112
- * @internal
113
- */
114
- const filterSensitiveLog: (obj: InternalErrorException) => any;
115
- }
116
- /**
117
- * <p>The pagination token is invalid. Try again without a pagination token.</p>
118
- */
119
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
120
- name: "InvalidNextTokenException";
121
- $fault: "client";
122
- Message?: string;
123
- }
124
- export declare namespace InvalidNextTokenException {
125
- /**
126
- * @internal
127
- */
128
- const filterSensitiveLog: (obj: InvalidNextTokenException) => any;
129
- }
130
- /**
131
- * <p>One or more parameters had an invalid value.</p>
132
- */
133
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
134
- name: "InvalidParameterException";
135
- $fault: "client";
136
- Message?: string;
137
- }
138
- export declare namespace InvalidParameterException {
139
- /**
140
- * @internal
141
- */
142
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
143
- }
144
- /**
145
- * <p>The requested resource can't be found.</p>
146
- */
147
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
148
- name: "NotFoundException";
149
- $fault: "client";
150
- Message?: string;
151
- }
152
- export declare namespace NotFoundException {
153
- /**
154
- * @internal
155
- */
156
- const filterSensitiveLog: (obj: NotFoundException) => any;
157
- }
158
- export interface GetAttributeValuesRequest {
159
- /**
160
- * <p>The service code for the service whose attributes you want to retrieve. For example, if you want
161
- * the retrieve an EC2 attribute, use <code>AmazonEC2</code>.</p>
162
- */
163
- ServiceCode: string | undefined;
164
- /**
165
- * <p>The name of the attribute that you want to retrieve the values for, such as <code>volumeType</code>.</p>
166
- */
167
- AttributeName: string | undefined;
168
- /**
169
- * <p>The pagination token that indicates the next set of results that you want to retrieve.</p>
170
- */
171
- NextToken?: string;
172
- /**
173
- * <p>The maximum number of results to return in response.</p>
174
- */
175
- MaxResults?: number;
176
- }
177
- export declare namespace GetAttributeValuesRequest {
178
- /**
179
- * @internal
180
- */
181
- const filterSensitiveLog: (obj: GetAttributeValuesRequest) => any;
182
- }
183
- export interface GetAttributeValuesResponse {
184
- /**
185
- * <p>The list of values for an attribute. For example, <code>Throughput Optimized HDD</code> and
186
- * <code>Provisioned IOPS</code> are two available values for the <code>AmazonEC2</code>
187
- * <code>volumeType</code>.</p>
188
- */
189
- AttributeValues?: AttributeValue[];
190
- /**
191
- * <p>The pagination token that indicates the next set of results to retrieve.</p>
192
- */
193
- NextToken?: string;
194
- }
195
- export declare namespace GetAttributeValuesResponse {
196
- /**
197
- * @internal
198
- */
199
- const filterSensitiveLog: (obj: GetAttributeValuesResponse) => any;
200
- }
201
- export declare enum FilterType {
202
- TERM_MATCH = "TERM_MATCH"
203
- }
204
- /**
205
- * <p>The constraints that you want all returned products to match.</p>
206
- */
207
- export interface Filter {
208
- /**
209
- * <p>The type of filter that you want to use.</p>
210
- * <p>Valid values are: <code>TERM_MATCH</code>. <code>TERM_MATCH</code> returns only
211
- * products that match both the given filter field and the given value.</p>
212
- */
213
- Type: FilterType | string | undefined;
214
- /**
215
- * <p>The product metadata field that you want to filter on. You can filter by just the
216
- * service code to see all products for a specific service, filter
217
- * by just the attribute name to see a specific attribute for multiple services, or use both a service code
218
- * and an attribute name to retrieve only products that match both fields.</p>
219
- * <p>Valid values include: <code>ServiceCode</code>, and all attribute names</p>
220
- *
221
- * <p>For example, you can filter by the <code>AmazonEC2</code> service code and the
222
- * <code>volumeType</code> attribute name to get the prices for only Amazon EC2 volumes.</p>
223
- */
224
- Field: string | undefined;
225
- /**
226
- * <p>The service code or attribute value that you want to filter by. If you are filtering by
227
- * service code this is the actual service code, such as <code>AmazonEC2</code>. If you are
228
- * filtering by attribute name, this is the attribute value that you want the returned products
229
- * to match, such as a <code>Provisioned IOPS</code> volume.</p>
230
- */
231
- Value: string | undefined;
232
- }
233
- export declare namespace Filter {
234
- /**
235
- * @internal
236
- */
237
- const filterSensitiveLog: (obj: Filter) => any;
238
- }
239
- export interface GetProductsRequest {
240
- /**
241
- * <p>The code for the service whose products you want to retrieve. </p>
242
- */
243
- ServiceCode?: string;
244
- /**
245
- * <p>The list of filters that limit the returned products. only products that match all filters
246
- * are returned.</p>
247
- */
248
- Filters?: Filter[];
249
- /**
250
- * <p>The format version that you want the response to be in.</p>
251
- * <p>Valid values are: <code>aws_v1</code>
252
- * </p>
253
- */
254
- FormatVersion?: string;
255
- /**
256
- * <p>The pagination token that indicates the next set of results that you want to retrieve.</p>
257
- */
258
- NextToken?: string;
259
- /**
260
- * <p>The maximum number of results to return in the response.</p>
261
- */
262
- MaxResults?: number;
263
- }
264
- export declare namespace GetProductsRequest {
265
- /**
266
- * @internal
267
- */
268
- const filterSensitiveLog: (obj: GetProductsRequest) => any;
269
- }
270
- export interface GetProductsResponse {
271
- /**
272
- * <p>The format version of the response. For example, aws_v1.</p>
273
- */
274
- FormatVersion?: string;
275
- /**
276
- * <p>The list of products that match your filters. The list contains both the product metadata and
277
- * the price information.</p>
278
- */
279
- PriceList?: (__LazyJsonString | string)[];
280
- /**
281
- * <p>The pagination token that indicates the next set of results to retrieve.</p>
282
- */
283
- NextToken?: string;
284
- }
285
- export declare namespace GetProductsResponse {
286
- /**
287
- * @internal
288
- */
289
- const filterSensitiveLog: (obj: GetProductsResponse) => any;
290
- }
package/endpoints.ts DELETED
@@ -1,57 +0,0 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {};
5
-
6
- const partitionHash: PartitionHash = {
7
- aws: {
8
- regions: [
9
- "af-south-1",
10
- "ap-east-1",
11
- "ap-northeast-1",
12
- "ap-northeast-2",
13
- "ap-northeast-3",
14
- "ap-south-1",
15
- "ap-southeast-1",
16
- "ap-southeast-2",
17
- "ca-central-1",
18
- "eu-central-1",
19
- "eu-north-1",
20
- "eu-south-1",
21
- "eu-west-1",
22
- "eu-west-2",
23
- "eu-west-3",
24
- "me-south-1",
25
- "sa-east-1",
26
- "us-east-1",
27
- "us-east-2",
28
- "us-west-1",
29
- "us-west-2",
30
- ],
31
- hostname: "api.pricing.{region}.amazonaws.com",
32
- },
33
- "aws-cn": {
34
- regions: ["cn-north-1", "cn-northwest-1"],
35
- hostname: "api.pricing.{region}.amazonaws.com.cn",
36
- },
37
- "aws-iso": {
38
- regions: ["us-iso-east-1"],
39
- hostname: "api.pricing.{region}.c2s.ic.gov",
40
- },
41
- "aws-iso-b": {
42
- regions: ["us-isob-east-1"],
43
- hostname: "api.pricing.{region}.sc2s.sgov.gov",
44
- },
45
- "aws-us-gov": {
46
- regions: ["us-gov-east-1", "us-gov-west-1"],
47
- hostname: "api.pricing.{region}.amazonaws.com",
48
- },
49
- };
50
-
51
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
52
- getRegionInfo(region, {
53
- ...options,
54
- signingService: "pricing",
55
- regionHash,
56
- partitionHash,
57
- });
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: "ts-jest",
3
- testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
4
- };