@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
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { LazyJsonString as __LazyJsonString } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
|
|
3
|
+
|
|
4
|
+
export interface AttributeValue {
|
|
5
|
+
|
|
6
|
+
Value?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace AttributeValue {
|
|
9
|
+
|
|
10
|
+
const filterSensitiveLog: (obj: AttributeValue) => any;
|
|
11
|
+
}
|
|
12
|
+
export interface DescribeServicesRequest {
|
|
13
|
+
|
|
14
|
+
ServiceCode?: string;
|
|
15
|
+
|
|
16
|
+
FormatVersion?: string;
|
|
17
|
+
|
|
18
|
+
NextToken?: string;
|
|
19
|
+
|
|
20
|
+
MaxResults?: number;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace DescribeServicesRequest {
|
|
23
|
+
|
|
24
|
+
const filterSensitiveLog: (obj: DescribeServicesRequest) => any;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Service {
|
|
28
|
+
|
|
29
|
+
ServiceCode?: string;
|
|
30
|
+
|
|
31
|
+
AttributeNames?: string[];
|
|
32
|
+
}
|
|
33
|
+
export declare namespace Service {
|
|
34
|
+
|
|
35
|
+
const filterSensitiveLog: (obj: Service) => any;
|
|
36
|
+
}
|
|
37
|
+
export interface DescribeServicesResponse {
|
|
38
|
+
|
|
39
|
+
Services?: Service[];
|
|
40
|
+
|
|
41
|
+
FormatVersion?: string;
|
|
42
|
+
|
|
43
|
+
NextToken?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace DescribeServicesResponse {
|
|
46
|
+
|
|
47
|
+
const filterSensitiveLog: (obj: DescribeServicesResponse) => any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface ExpiredNextTokenException extends __SmithyException, $MetadataBearer {
|
|
51
|
+
name: "ExpiredNextTokenException";
|
|
52
|
+
$fault: "client";
|
|
53
|
+
Message?: string;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace ExpiredNextTokenException {
|
|
56
|
+
|
|
57
|
+
const filterSensitiveLog: (obj: ExpiredNextTokenException) => any;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface InternalErrorException extends __SmithyException, $MetadataBearer {
|
|
61
|
+
name: "InternalErrorException";
|
|
62
|
+
$fault: "server";
|
|
63
|
+
Message?: string;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace InternalErrorException {
|
|
66
|
+
|
|
67
|
+
const filterSensitiveLog: (obj: InternalErrorException) => any;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
|
|
71
|
+
name: "InvalidNextTokenException";
|
|
72
|
+
$fault: "client";
|
|
73
|
+
Message?: string;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace InvalidNextTokenException {
|
|
76
|
+
|
|
77
|
+
const filterSensitiveLog: (obj: InvalidNextTokenException) => any;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
|
|
81
|
+
name: "InvalidParameterException";
|
|
82
|
+
$fault: "client";
|
|
83
|
+
Message?: string;
|
|
84
|
+
}
|
|
85
|
+
export declare namespace InvalidParameterException {
|
|
86
|
+
|
|
87
|
+
const filterSensitiveLog: (obj: InvalidParameterException) => any;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface NotFoundException extends __SmithyException, $MetadataBearer {
|
|
91
|
+
name: "NotFoundException";
|
|
92
|
+
$fault: "client";
|
|
93
|
+
Message?: string;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace NotFoundException {
|
|
96
|
+
|
|
97
|
+
const filterSensitiveLog: (obj: NotFoundException) => any;
|
|
98
|
+
}
|
|
99
|
+
export interface GetAttributeValuesRequest {
|
|
100
|
+
|
|
101
|
+
ServiceCode: string | undefined;
|
|
102
|
+
|
|
103
|
+
AttributeName: string | undefined;
|
|
104
|
+
|
|
105
|
+
NextToken?: string;
|
|
106
|
+
|
|
107
|
+
MaxResults?: number;
|
|
108
|
+
}
|
|
109
|
+
export declare namespace GetAttributeValuesRequest {
|
|
110
|
+
|
|
111
|
+
const filterSensitiveLog: (obj: GetAttributeValuesRequest) => any;
|
|
112
|
+
}
|
|
113
|
+
export interface GetAttributeValuesResponse {
|
|
114
|
+
|
|
115
|
+
AttributeValues?: AttributeValue[];
|
|
116
|
+
|
|
117
|
+
NextToken?: string;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace GetAttributeValuesResponse {
|
|
120
|
+
|
|
121
|
+
const filterSensitiveLog: (obj: GetAttributeValuesResponse) => any;
|
|
122
|
+
}
|
|
123
|
+
export declare enum FilterType {
|
|
124
|
+
TERM_MATCH = "TERM_MATCH"
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface Filter {
|
|
128
|
+
|
|
129
|
+
Type: FilterType | string | undefined;
|
|
130
|
+
|
|
131
|
+
Field: string | undefined;
|
|
132
|
+
|
|
133
|
+
Value: string | undefined;
|
|
134
|
+
}
|
|
135
|
+
export declare namespace Filter {
|
|
136
|
+
|
|
137
|
+
const filterSensitiveLog: (obj: Filter) => any;
|
|
138
|
+
}
|
|
139
|
+
export interface GetProductsRequest {
|
|
140
|
+
|
|
141
|
+
ServiceCode?: string;
|
|
142
|
+
|
|
143
|
+
Filters?: Filter[];
|
|
144
|
+
|
|
145
|
+
FormatVersion?: string;
|
|
146
|
+
|
|
147
|
+
NextToken?: string;
|
|
148
|
+
|
|
149
|
+
MaxResults?: number;
|
|
150
|
+
}
|
|
151
|
+
export declare namespace GetProductsRequest {
|
|
152
|
+
|
|
153
|
+
const filterSensitiveLog: (obj: GetProductsRequest) => any;
|
|
154
|
+
}
|
|
155
|
+
export interface GetProductsResponse {
|
|
156
|
+
|
|
157
|
+
FormatVersion?: string;
|
|
158
|
+
|
|
159
|
+
PriceList?: (__LazyJsonString | string)[];
|
|
160
|
+
|
|
161
|
+
NextToken?: string;
|
|
162
|
+
}
|
|
163
|
+
export declare namespace GetProductsResponse {
|
|
164
|
+
|
|
165
|
+
const filterSensitiveLog: (obj: GetProductsResponse) => any;
|
|
166
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
1
2
|
import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "../commands/DescribeServicesCommand";
|
|
2
3
|
import { PricingPaginationConfiguration } from "./Interfaces";
|
|
3
|
-
import { Paginator } from "@aws-sdk/types";
|
|
4
4
|
export declare function paginateDescribeServices(config: PricingPaginationConfiguration, input: DescribeServicesCommandInput, ...additionalArguments: any): Paginator<DescribeServicesCommandOutput>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
1
2
|
import { GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput } from "../commands/GetAttributeValuesCommand";
|
|
2
3
|
import { PricingPaginationConfiguration } from "./Interfaces";
|
|
3
|
-
import { Paginator } from "@aws-sdk/types";
|
|
4
4
|
export declare function paginateGetAttributeValues(config: PricingPaginationConfiguration, input: GetAttributeValuesCommandInput, ...additionalArguments: any): Paginator<GetAttributeValuesCommandOutput>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
1
2
|
import { GetProductsCommandInput, GetProductsCommandOutput } from "../commands/GetProductsCommand";
|
|
2
3
|
import { PricingPaginationConfiguration } from "./Interfaces";
|
|
3
|
-
import { Paginator } from "@aws-sdk/types";
|
|
4
4
|
export declare function paginateGetProducts(config: PricingPaginationConfiguration, input: GetProductsCommandInput, ...additionalArguments: any): Paginator<GetProductsCommandOutput>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
1
2
|
import { Pricing } from "../Pricing";
|
|
2
3
|
import { PricingClient } from "../PricingClient";
|
|
3
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
4
4
|
export interface PricingPaginationConfiguration extends PaginationConfiguration {
|
|
5
5
|
client: Pricing | PricingClient;
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
1
3
|
import { DescribeServicesCommandInput, DescribeServicesCommandOutput } from "../commands/DescribeServicesCommand";
|
|
2
4
|
import { GetAttributeValuesCommandInput, GetAttributeValuesCommandOutput } from "../commands/GetAttributeValuesCommand";
|
|
3
5
|
import { GetProductsCommandInput, GetProductsCommandOutput } from "../commands/GetProductsCommand";
|
|
4
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
5
|
-
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
6
6
|
export declare const serializeAws_json1_1DescribeServicesCommand: (input: DescribeServicesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
7
7
|
export declare const serializeAws_json1_1GetAttributeValuesCommand: (input: GetAttributeValuesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
8
8
|
export declare const serializeAws_json1_1GetProductsCommand: (input: GetProductsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { PricingClientConfig } from "./PricingClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: PricingClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { PricingClientConfig } from "./PricingClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: PricingClientConfig) => {
|
|
7
5
|
runtime: string;
|
|
8
6
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
7
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
8
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/client-sts/dist
|
|
9
|
+
credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
|
|
12
10
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
11
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
12
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { Logger as __Logger } from "@aws-sdk/types";
|
|
2
2
|
import { PricingClientConfig } from "./PricingClient";
|
|
3
|
-
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
3
|
+
|
|
6
4
|
export declare const getRuntimeConfig: (config: PricingClientConfig) => {
|
|
7
5
|
apiVersion: string;
|
|
8
6
|
disableHostPrefix: boolean;
|
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.
|
|
4
|
+
"version": "3.37.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -11,54 +11,48 @@
|
|
|
11
11
|
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
12
|
"clean:dist": "rimraf ./dist",
|
|
13
13
|
"clean:docs": "rimraf ./docs",
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist
|
|
14
|
+
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
15
|
"test": "exit 0"
|
|
16
16
|
},
|
|
17
|
-
"main": "./dist
|
|
18
|
-
"types": "./dist
|
|
19
|
-
"module": "./dist
|
|
20
|
-
"browser": {
|
|
21
|
-
"./runtimeConfig": "./runtimeConfig.browser"
|
|
22
|
-
},
|
|
23
|
-
"react-native": {
|
|
24
|
-
"./runtimeConfig": "./runtimeConfig.native"
|
|
25
|
-
},
|
|
17
|
+
"main": "./dist-cjs/index.js",
|
|
18
|
+
"types": "./dist-types/index.d.ts",
|
|
19
|
+
"module": "./dist-es/index.js",
|
|
26
20
|
"sideEffects": false,
|
|
27
21
|
"dependencies": {
|
|
28
22
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
23
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.37.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.37.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.37.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.37.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.37.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.37.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.37.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.37.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.37.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.37.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.37.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.37.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.37.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.37.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.37.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.37.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.37.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.37.0",
|
|
42
|
+
"@aws-sdk/types": "3.37.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.37.0",
|
|
44
|
+
"@aws-sdk/util-base64-browser": "3.37.0",
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.37.0",
|
|
46
|
+
"@aws-sdk/util-body-length-browser": "3.37.0",
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.37.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.37.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.37.0",
|
|
50
|
+
"@aws-sdk/util-utf8-browser": "3.37.0",
|
|
51
|
+
"@aws-sdk/util-utf8-node": "3.37.0",
|
|
58
52
|
"tslib": "^2.3.0"
|
|
59
53
|
},
|
|
60
54
|
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/client-documentation-generator": "3.37.0",
|
|
62
56
|
"@types/node": "^12.7.5",
|
|
63
57
|
"downlevel-dts": "0.7.0",
|
|
64
58
|
"jest": "^26.1.0",
|
|
@@ -72,16 +66,25 @@
|
|
|
72
66
|
},
|
|
73
67
|
"typesVersions": {
|
|
74
68
|
"<4.0": {
|
|
75
|
-
"dist
|
|
76
|
-
"dist
|
|
69
|
+
"dist-types/*": [
|
|
70
|
+
"dist-types/ts3.4/*"
|
|
77
71
|
]
|
|
78
72
|
}
|
|
79
73
|
},
|
|
74
|
+
"files": [
|
|
75
|
+
"dist-*"
|
|
76
|
+
],
|
|
80
77
|
"author": {
|
|
81
78
|
"name": "AWS SDK for JavaScript Team",
|
|
82
79
|
"url": "https://aws.amazon.com/javascript/"
|
|
83
80
|
},
|
|
84
81
|
"license": "Apache-2.0",
|
|
82
|
+
"browser": {
|
|
83
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
84
|
+
},
|
|
85
|
+
"react-native": {
|
|
86
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
87
|
+
},
|
|
85
88
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-pricing",
|
|
86
89
|
"repository": {
|
|
87
90
|
"type": "git",
|
package/Pricing.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { PricingClient } from "./PricingClient";
|
|
2
|
-
import {
|
|
3
|
-
DescribeServicesCommand,
|
|
4
|
-
DescribeServicesCommandInput,
|
|
5
|
-
DescribeServicesCommandOutput,
|
|
6
|
-
} from "./commands/DescribeServicesCommand";
|
|
7
|
-
import {
|
|
8
|
-
GetAttributeValuesCommand,
|
|
9
|
-
GetAttributeValuesCommandInput,
|
|
10
|
-
GetAttributeValuesCommandOutput,
|
|
11
|
-
} from "./commands/GetAttributeValuesCommand";
|
|
12
|
-
import { GetProductsCommand, GetProductsCommandInput, GetProductsCommandOutput } from "./commands/GetProductsCommand";
|
|
13
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* <p>Amazon Web Services Price List Service API (Amazon Web Services Price List Service) is a centralized and convenient way to
|
|
17
|
-
* programmatically query Amazon Web Services for services, products, and pricing information. The Amazon Web Services Price List Service
|
|
18
|
-
* uses standardized product attributes such as <code>Location</code>, <code>Storage
|
|
19
|
-
* Class</code>, and <code>Operating System</code>, and provides prices at the SKU
|
|
20
|
-
* level. You can use the Amazon Web Services Price List Service to build cost control and scenario planning tools, reconcile
|
|
21
|
-
* billing data, forecast future spend for budgeting purposes, and provide cost benefit
|
|
22
|
-
* analysis that compare your internal workloads with Amazon Web Services.</p>
|
|
23
|
-
* <p>Use <code>GetServices</code> without a service code to retrieve the service codes for all AWS services, then
|
|
24
|
-
* <code>GetServices</code> with a service code to retreive the attribute names for
|
|
25
|
-
* that service. After you have the service code and attribute names, you can use <code>GetAttributeValues</code>
|
|
26
|
-
* to see what values are available for an attribute. With the service code and an attribute name and value,
|
|
27
|
-
* you can use <code>GetProducts</code> to find specific products that you're interested in, such as
|
|
28
|
-
* an <code>AmazonEC2</code> instance, with a <code>Provisioned IOPS</code>
|
|
29
|
-
* <code>volumeType</code>.</p>
|
|
30
|
-
* <p>Service Endpoint</p>
|
|
31
|
-
* <p>Amazon Web Services Price List Service API provides the following two endpoints:</p>
|
|
32
|
-
* <ul>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>https://api.pricing.us-east-1.amazonaws.com</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>https://api.pricing.ap-south-1.amazonaws.com</p>
|
|
38
|
-
* </li>
|
|
39
|
-
* </ul>
|
|
40
|
-
*/
|
|
41
|
-
export class Pricing extends PricingClient {
|
|
42
|
-
/**
|
|
43
|
-
* <p>Returns the metadata for one service or a list of the metadata for all services. Use
|
|
44
|
-
* this without a service code to get the service codes for all services.
|
|
45
|
-
* Use it with a service code, such as <code>AmazonEC2</code>, to get information specific to
|
|
46
|
-
* that service, such as the attribute
|
|
47
|
-
* names available for that service. For example, some of the attribute names available for EC2 are
|
|
48
|
-
* <code>volumeType</code>, <code>maxIopsVolume</code>, <code>operation</code>,
|
|
49
|
-
* <code>locationType</code>, and <code>instanceCapacity10xlarge</code>.</p>
|
|
50
|
-
*/
|
|
51
|
-
public describeServices(
|
|
52
|
-
args: DescribeServicesCommandInput,
|
|
53
|
-
options?: __HttpHandlerOptions
|
|
54
|
-
): Promise<DescribeServicesCommandOutput>;
|
|
55
|
-
public describeServices(
|
|
56
|
-
args: DescribeServicesCommandInput,
|
|
57
|
-
cb: (err: any, data?: DescribeServicesCommandOutput) => void
|
|
58
|
-
): void;
|
|
59
|
-
public describeServices(
|
|
60
|
-
args: DescribeServicesCommandInput,
|
|
61
|
-
options: __HttpHandlerOptions,
|
|
62
|
-
cb: (err: any, data?: DescribeServicesCommandOutput) => void
|
|
63
|
-
): void;
|
|
64
|
-
public describeServices(
|
|
65
|
-
args: DescribeServicesCommandInput,
|
|
66
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeServicesCommandOutput) => void),
|
|
67
|
-
cb?: (err: any, data?: DescribeServicesCommandOutput) => void
|
|
68
|
-
): Promise<DescribeServicesCommandOutput> | void {
|
|
69
|
-
const command = new DescribeServicesCommand(args);
|
|
70
|
-
if (typeof optionsOrCb === "function") {
|
|
71
|
-
this.send(command, optionsOrCb);
|
|
72
|
-
} else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
74
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
75
|
-
} else {
|
|
76
|
-
return this.send(command, optionsOrCb);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* <p>Returns a list of attribute values. Attibutes are similar to the details
|
|
82
|
-
* in a Price List API offer file. For a list of available attributes, see
|
|
83
|
-
* <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/reading-an-offer.html#pps-defs">Offer File Definitions</a>
|
|
84
|
-
* 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>
|
|
85
|
-
*/
|
|
86
|
-
public getAttributeValues(
|
|
87
|
-
args: GetAttributeValuesCommandInput,
|
|
88
|
-
options?: __HttpHandlerOptions
|
|
89
|
-
): Promise<GetAttributeValuesCommandOutput>;
|
|
90
|
-
public getAttributeValues(
|
|
91
|
-
args: GetAttributeValuesCommandInput,
|
|
92
|
-
cb: (err: any, data?: GetAttributeValuesCommandOutput) => void
|
|
93
|
-
): void;
|
|
94
|
-
public getAttributeValues(
|
|
95
|
-
args: GetAttributeValuesCommandInput,
|
|
96
|
-
options: __HttpHandlerOptions,
|
|
97
|
-
cb: (err: any, data?: GetAttributeValuesCommandOutput) => void
|
|
98
|
-
): void;
|
|
99
|
-
public getAttributeValues(
|
|
100
|
-
args: GetAttributeValuesCommandInput,
|
|
101
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAttributeValuesCommandOutput) => void),
|
|
102
|
-
cb?: (err: any, data?: GetAttributeValuesCommandOutput) => void
|
|
103
|
-
): Promise<GetAttributeValuesCommandOutput> | void {
|
|
104
|
-
const command = new GetAttributeValuesCommand(args);
|
|
105
|
-
if (typeof optionsOrCb === "function") {
|
|
106
|
-
this.send(command, optionsOrCb);
|
|
107
|
-
} else if (typeof cb === "function") {
|
|
108
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
109
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
110
|
-
} else {
|
|
111
|
-
return this.send(command, optionsOrCb);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* <p>Returns a list of all products that match the filter criteria.</p>
|
|
117
|
-
*/
|
|
118
|
-
public getProducts(args: GetProductsCommandInput, options?: __HttpHandlerOptions): Promise<GetProductsCommandOutput>;
|
|
119
|
-
public getProducts(args: GetProductsCommandInput, cb: (err: any, data?: GetProductsCommandOutput) => void): void;
|
|
120
|
-
public getProducts(
|
|
121
|
-
args: GetProductsCommandInput,
|
|
122
|
-
options: __HttpHandlerOptions,
|
|
123
|
-
cb: (err: any, data?: GetProductsCommandOutput) => void
|
|
124
|
-
): void;
|
|
125
|
-
public getProducts(
|
|
126
|
-
args: GetProductsCommandInput,
|
|
127
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetProductsCommandOutput) => void),
|
|
128
|
-
cb?: (err: any, data?: GetProductsCommandOutput) => void
|
|
129
|
-
): Promise<GetProductsCommandOutput> | void {
|
|
130
|
-
const command = new GetProductsCommand(args);
|
|
131
|
-
if (typeof optionsOrCb === "function") {
|
|
132
|
-
this.send(command, optionsOrCb);
|
|
133
|
-
} else if (typeof cb === "function") {
|
|
134
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
} else {
|
|
137
|
-
return this.send(command, optionsOrCb);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|