1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class Pricing extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: Pricing.Types.ClientConfiguration)
|
13 | config: Config & Pricing.Types.ClientConfiguration;
|
14 | /**
|
15 | * 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.
|
16 | */
|
17 | describeServices(params: Pricing.Types.DescribeServicesRequest, callback?: (err: AWSError, data: Pricing.Types.DescribeServicesResponse) => void): Request<Pricing.Types.DescribeServicesResponse, AWSError>;
|
18 | /**
|
19 | * 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.
|
20 | */
|
21 | describeServices(callback?: (err: AWSError, data: Pricing.Types.DescribeServicesResponse) => void): Request<Pricing.Types.DescribeServicesResponse, AWSError>;
|
22 | /**
|
23 | * 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.
|
24 | */
|
25 | getAttributeValues(params: Pricing.Types.GetAttributeValuesRequest, callback?: (err: AWSError, data: Pricing.Types.GetAttributeValuesResponse) => void): Request<Pricing.Types.GetAttributeValuesResponse, AWSError>;
|
26 | /**
|
27 | * 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.
|
28 | */
|
29 | getAttributeValues(callback?: (err: AWSError, data: Pricing.Types.GetAttributeValuesResponse) => void): Request<Pricing.Types.GetAttributeValuesResponse, AWSError>;
|
30 | /**
|
31 | * Returns a list of all products that match the filter criteria.
|
32 | */
|
33 | getProducts(params: Pricing.Types.GetProductsRequest, callback?: (err: AWSError, data: Pricing.Types.GetProductsResponse) => void): Request<Pricing.Types.GetProductsResponse, AWSError>;
|
34 | /**
|
35 | * Returns a list of all products that match the filter criteria.
|
36 | */
|
37 | getProducts(callback?: (err: AWSError, data: Pricing.Types.GetProductsResponse) => void): Request<Pricing.Types.GetProductsResponse, AWSError>;
|
38 | }
|
39 | declare namespace Pricing {
|
40 | export type AttributeNameList = String[];
|
41 | export interface AttributeValue {
|
42 | |
43 |
|
44 |
|
45 | Value?: String;
|
46 | }
|
47 | export type AttributeValueList = AttributeValue[];
|
48 | export type BoxedInteger = number;
|
49 | export interface DescribeServicesRequest {
|
50 | |
51 |
|
52 |
|
53 | ServiceCode?: String;
|
54 | |
55 |
|
56 |
|
57 | FormatVersion?: String;
|
58 | |
59 |
|
60 |
|
61 | NextToken?: String;
|
62 | |
63 |
|
64 |
|
65 | MaxResults?: BoxedInteger;
|
66 | }
|
67 | export interface DescribeServicesResponse {
|
68 | |
69 |
|
70 |
|
71 | Services?: ServiceList;
|
72 | |
73 |
|
74 |
|
75 | FormatVersion?: String;
|
76 | |
77 |
|
78 |
|
79 | NextToken?: String;
|
80 | }
|
81 | export interface Filter {
|
82 | |
83 |
|
84 |
|
85 | Type: FilterType;
|
86 | |
87 |
|
88 |
|
89 | Field: String;
|
90 | |
91 |
|
92 |
|
93 | Value: String;
|
94 | }
|
95 | export type FilterType = "TERM_MATCH"|string;
|
96 | export type Filters = Filter[];
|
97 | export interface GetAttributeValuesRequest {
|
98 | |
99 |
|
100 |
|
101 | ServiceCode: String;
|
102 | |
103 |
|
104 |
|
105 | AttributeName: String;
|
106 | |
107 |
|
108 |
|
109 | NextToken?: String;
|
110 | |
111 |
|
112 |
|
113 | MaxResults?: BoxedInteger;
|
114 | }
|
115 | export interface GetAttributeValuesResponse {
|
116 | |
117 |
|
118 |
|
119 | AttributeValues?: AttributeValueList;
|
120 | |
121 |
|
122 |
|
123 | NextToken?: String;
|
124 | }
|
125 | export interface GetProductsRequest {
|
126 | |
127 |
|
128 |
|
129 | ServiceCode?: String;
|
130 | |
131 |
|
132 |
|
133 | Filters?: Filters;
|
134 | |
135 |
|
136 |
|
137 | FormatVersion?: String;
|
138 | |
139 |
|
140 |
|
141 | NextToken?: String;
|
142 | |
143 |
|
144 |
|
145 | MaxResults?: BoxedInteger;
|
146 | }
|
147 | export interface GetProductsResponse {
|
148 | |
149 |
|
150 |
|
151 | FormatVersion?: String;
|
152 | |
153 |
|
154 |
|
155 | PriceList?: PriceList;
|
156 | |
157 |
|
158 |
|
159 | NextToken?: String;
|
160 | }
|
161 | export type PriceList = PriceListItemJSON[];
|
162 | export type PriceListItemJSON = string;
|
163 | export interface Service {
|
164 | |
165 |
|
166 |
|
167 | ServiceCode?: String;
|
168 | |
169 |
|
170 |
|
171 | AttributeNames?: AttributeNameList;
|
172 | }
|
173 | export type ServiceList = Service[];
|
174 | export type String = string;
|
175 | |
176 |
|
177 |
|
178 | export type apiVersion = "2017-10-15"|"latest"|string;
|
179 | export interface ClientApiVersions {
|
180 | |
181 |
|
182 |
|
183 | apiVersion?: apiVersion;
|
184 | }
|
185 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
186 | |
187 |
|
188 |
|
189 | export import Types = Pricing;
|
190 | }
|
191 | export = Pricing;
|