pricing.d.ts
8.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class Pricing extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: Pricing.Types.ClientConfiguration)
config: Config & Pricing.Types.ClientConfiguration;
/**
* Returns the metadata for one service or a list of the metadata for all services. Use this without a service code to get the service codes for all services. Use it with a service code, such as AmazonEC2, to get information specific to that service, such as the attribute names available for that service. For example, some of the attribute names available for EC2 are volumeType, maxIopsVolume, operation, locationType, and instanceCapacity10xlarge.
*/
describeServices(params: Pricing.Types.DescribeServicesRequest, callback?: (err: AWSError, data: Pricing.Types.DescribeServicesResponse) => void): Request<Pricing.Types.DescribeServicesResponse, AWSError>;
/**
* Returns the metadata for one service or a list of the metadata for all services. Use this without a service code to get the service codes for all services. Use it with a service code, such as AmazonEC2, to get information specific to that service, such as the attribute names available for that service. For example, some of the attribute names available for EC2 are volumeType, maxIopsVolume, operation, locationType, and instanceCapacity10xlarge.
*/
describeServices(callback?: (err: AWSError, data: Pricing.Types.DescribeServicesResponse) => void): Request<Pricing.Types.DescribeServicesResponse, AWSError>;
/**
* Returns a list of attribute values. Attibutes are similar to the details in a Price List API offer file. For a list of available attributes, see Offer File Definitions in the AWS Billing and Cost Management User Guide.
*/
getAttributeValues(params: Pricing.Types.GetAttributeValuesRequest, callback?: (err: AWSError, data: Pricing.Types.GetAttributeValuesResponse) => void): Request<Pricing.Types.GetAttributeValuesResponse, AWSError>;
/**
* Returns a list of attribute values. Attibutes are similar to the details in a Price List API offer file. For a list of available attributes, see Offer File Definitions in the AWS Billing and Cost Management User Guide.
*/
getAttributeValues(callback?: (err: AWSError, data: Pricing.Types.GetAttributeValuesResponse) => void): Request<Pricing.Types.GetAttributeValuesResponse, AWSError>;
/**
* Returns a list of all products that match the filter criteria.
*/
getProducts(params: Pricing.Types.GetProductsRequest, callback?: (err: AWSError, data: Pricing.Types.GetProductsResponse) => void): Request<Pricing.Types.GetProductsResponse, AWSError>;
/**
* Returns a list of all products that match the filter criteria.
*/
getProducts(callback?: (err: AWSError, data: Pricing.Types.GetProductsResponse) => void): Request<Pricing.Types.GetProductsResponse, AWSError>;
}
declare namespace Pricing {
export type AttributeNameList = String[];
export interface AttributeValue {
/**
* The specific value of an attributeName.
*/
Value?: String;
}
export type AttributeValueList = AttributeValue[];
export type BoxedInteger = number;
export interface DescribeServicesRequest {
/**
* The code for the service whose information you want to retrieve, such as AmazonEC2. You can use the ServiceCode to filter the results in a GetProducts call. To retrieve a list of all services, leave this blank.
*/
ServiceCode?: String;
/**
* The format version that you want the response to be in. Valid values are: aws_v1
*/
FormatVersion?: String;
/**
* The pagination token that indicates the next set of results that you want to retrieve.
*/
NextToken?: String;
/**
* The maximum number of results that you want returned in the response.
*/
MaxResults?: BoxedInteger;
}
export interface DescribeServicesResponse {
/**
* The service metadata for the service or services in the response.
*/
Services?: ServiceList;
/**
* The format version of the response. For example, aws_v1.
*/
FormatVersion?: String;
/**
* The pagination token for the next set of retreivable results.
*/
NextToken?: String;
}
export interface Filter {
/**
* The type of filter that you want to use. Valid values are: TERM_MATCH. TERM_MATCH returns only products that match both the given filter field and the given value.
*/
Type: FilterType;
/**
* The product metadata field that you want to filter on. You can filter by just the service code to see all products for a specific service, filter by just the attribute name to see a specific attribute for multiple services, or use both a service code and an attribute name to retrieve only products that match both fields. Valid values include: ServiceCode, and all attribute names For example, you can filter by the AmazonEC2 service code and the volumeType attribute name to get the prices for only Amazon EC2 volumes.
*/
Field: String;
/**
* The service code or attribute value that you want to filter by. If you are filtering by service code this is the actual service code, such as AmazonEC2. If you are filtering by attribute name, this is the attribute value that you want the returned products to match, such as a Provisioned IOPS volume.
*/
Value: String;
}
export type FilterType = "TERM_MATCH"|string;
export type Filters = Filter[];
export interface GetAttributeValuesRequest {
/**
* The service code for the service whose attributes you want to retrieve. For example, if you want the retrieve an EC2 attribute, use AmazonEC2.
*/
ServiceCode: String;
/**
* The name of the attribute that you want to retrieve the values for, such as volumeType.
*/
AttributeName: String;
/**
* The pagination token that indicates the next set of results that you want to retrieve.
*/
NextToken?: String;
/**
* The maximum number of results to return in response.
*/
MaxResults?: BoxedInteger;
}
export interface GetAttributeValuesResponse {
/**
* The list of values for an attribute. For example, Throughput Optimized HDD and Provisioned IOPS are two available values for the AmazonEC2 volumeType.
*/
AttributeValues?: AttributeValueList;
/**
* The pagination token that indicates the next set of results to retrieve.
*/
NextToken?: String;
}
export interface GetProductsRequest {
/**
* The code for the service whose products you want to retrieve.
*/
ServiceCode?: String;
/**
* The list of filters that limit the returned products. only products that match all filters are returned.
*/
Filters?: Filters;
/**
* The format version that you want the response to be in. Valid values are: aws_v1
*/
FormatVersion?: String;
/**
* The pagination token that indicates the next set of results that you want to retrieve.
*/
NextToken?: String;
/**
* The maximum number of results to return in the response.
*/
MaxResults?: BoxedInteger;
}
export interface GetProductsResponse {
/**
* The format version of the response. For example, aws_v1.
*/
FormatVersion?: String;
/**
* The list of products that match your filters. The list contains both the product metadata and the price information.
*/
PriceList?: PriceList;
/**
* The pagination token that indicates the next set of results to retrieve.
*/
NextToken?: String;
}
export type PriceList = PriceListItemJSON[];
export type PriceListItemJSON = string;
export interface Service {
/**
* The code for the AWS service.
*/
ServiceCode?: String;
/**
* The attributes that are available for this service.
*/
AttributeNames?: AttributeNameList;
}
export type ServiceList = Service[];
export type String = string;
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2017-10-15"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the Pricing client.
*/
export import Types = Pricing;
}
export = Pricing;