-
Notifications
You must be signed in to change notification settings - Fork 544
/
models_0.ts
402 lines (360 loc) · 9.92 KB
/
models_0.ts
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
// smithy-typescript generated code
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
import { CostAndUsageReportServiceServiceException as __BaseException } from "./CostAndUsageReportServiceServiceException";
/**
* @public
* @enum
*/
export const AdditionalArtifact = {
ATHENA: "ATHENA",
QUICKSIGHT: "QUICKSIGHT",
REDSHIFT: "REDSHIFT",
} as const;
/**
* @public
*/
export type AdditionalArtifact = (typeof AdditionalArtifact)[keyof typeof AdditionalArtifact];
/**
* @public
* <p>Deletes the specified report.</p>
*/
export interface DeleteReportDefinitionRequest {
/**
* <p>The name of the report that you want to delete. The name must be unique, is case sensitive, and can't include spaces.</p>
*/
ReportName?: string;
}
/**
* @public
* <p>If the action is successful, the service sends back an HTTP 200 response.</p>
*/
export interface DeleteReportDefinitionResponse {
/**
* <p>Whether the deletion was successful or not.</p>
*/
ResponseMessage?: string;
}
/**
* @public
* <p>An error on the server occurred during the processing of your request. Try again later.</p>
*/
export class InternalErrorException extends __BaseException {
readonly name: "InternalErrorException" = "InternalErrorException";
readonly $fault: "server" = "server";
/**
* <p>A message to show the detail of the exception.</p>
*/
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>) {
super({
name: "InternalErrorException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, InternalErrorException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
*/
export class ValidationException extends __BaseException {
readonly name: "ValidationException" = "ValidationException";
readonly $fault: "client" = "client";
/**
* <p>A message to show the detail of the exception.</p>
*/
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>) {
super({
name: "ValidationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ValidationException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>Requests a list of AWS Cost and Usage reports owned by the account.</p>
*/
export interface DescribeReportDefinitionsRequest {
/**
* <p>The maximum number of results that AWS returns for the operation.</p>
*/
MaxResults?: number;
/**
* <p>A generic string.</p>
*/
NextToken?: string;
}
/**
* @public
* @enum
*/
export const SchemaElement = {
RESOURCES: "RESOURCES",
SPLIT_COST_ALLOCATION_DATA: "SPLIT_COST_ALLOCATION_DATA",
} as const;
/**
* @public
*/
export type SchemaElement = (typeof SchemaElement)[keyof typeof SchemaElement];
/**
* @public
* @enum
*/
export const CompressionFormat = {
GZIP: "GZIP",
Parquet: "Parquet",
ZIP: "ZIP",
} as const;
/**
* @public
*/
export type CompressionFormat = (typeof CompressionFormat)[keyof typeof CompressionFormat];
/**
* @public
* @enum
*/
export const ReportFormat = {
CSV: "textORcsv",
Parquet: "Parquet",
} as const;
/**
* @public
*/
export type ReportFormat = (typeof ReportFormat)[keyof typeof ReportFormat];
/**
* @public
* @enum
*/
export const ReportVersioning = {
CREATE_NEW_REPORT: "CREATE_NEW_REPORT",
OVERWRITE_REPORT: "OVERWRITE_REPORT",
} as const;
/**
* @public
*/
export type ReportVersioning = (typeof ReportVersioning)[keyof typeof ReportVersioning];
/**
* @public
* @enum
*/
export const AWSRegion = {
BAHRAIN: "me-south-1",
BEIJING: "cn-north-1",
CANADA_CENTRAL: "ca-central-1",
CAPE_TOWN: "af-south-1",
FRANKFURT: "eu-central-1",
HONG_KONG: "ap-east-1",
HYDERABAD: "ap-south-2",
IRELAND: "eu-west-1",
JAKARTA: "ap-southeast-3",
LONDON: "eu-west-2",
MILANO: "eu-south-1",
MUMBAI: "ap-south-1",
NINGXIA: "cn-northwest-1",
NORTHERN_CALIFORNIA: "us-west-1",
OHIO: "us-east-2",
OREGON: "us-west-2",
OSAKA: "ap-northeast-3",
PARIS: "eu-west-3",
SAO_PAULO: "sa-east-1",
SEOUL: "ap-northeast-2",
SINGAPORE: "ap-southeast-1",
SPAIN: "eu-south-2",
STOCKHOLM: "eu-north-1",
SYDNEY: "ap-southeast-2",
TOKYO: "ap-northeast-1",
UAE: "me-central-1",
US_STANDARD: "us-east-1",
ZURICH: "eu-central-2",
} as const;
/**
* @public
*/
export type AWSRegion = (typeof AWSRegion)[keyof typeof AWSRegion];
/**
* @public
* @enum
*/
export const TimeUnit = {
DAILY: "DAILY",
HOURLY: "HOURLY",
MONTHLY: "MONTHLY",
} as const;
/**
* @public
*/
export type TimeUnit = (typeof TimeUnit)[keyof typeof TimeUnit];
/**
* @public
* <p>The definition of AWS Cost and Usage Report. You can specify the report name,
* time unit, report format, compression format, S3 bucket, additional artifacts, and schema
* elements in the definition.
* </p>
*/
export interface ReportDefinition {
/**
* <p>The name of the report that you want to create. The name must be unique,
* is case sensitive, and can't include spaces. </p>
*/
ReportName: string | undefined;
/**
* <p>The length of time covered by the report. </p>
*/
TimeUnit: TimeUnit | string | undefined;
/**
* <p>The format that AWS saves the report in.</p>
*/
Format: ReportFormat | string | undefined;
/**
* <p>The compression format that AWS uses for the report.</p>
*/
Compression: CompressionFormat | string | undefined;
/**
* <p>A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs. </p>
*/
AdditionalSchemaElements: (SchemaElement | string)[] | undefined;
/**
* <p>The S3 bucket where AWS delivers the report.</p>
*/
S3Bucket: string | undefined;
/**
* <p>The prefix that AWS adds to the report name when AWS delivers the report. Your prefix
* can't include spaces.</p>
*/
S3Prefix: string | undefined;
/**
* <p>The region of the S3 bucket that AWS delivers the report into.</p>
*/
S3Region: AWSRegion | string | undefined;
/**
* <p>A list of manifests that you want Amazon Web Services to create for this report.</p>
*/
AdditionalArtifacts?: (AdditionalArtifact | string)[];
/**
* <p>Whether you want Amazon Web Services to update your reports after they have been finalized if Amazon Web Services detects charges related to
* previous months. These charges can include refunds, credits, or support fees.</p>
*/
RefreshClosedReports?: boolean;
/**
* <p>Whether you want Amazon Web Services to overwrite the previous version of each report or
* to deliver the report in addition to the previous versions.</p>
*/
ReportVersioning?: ReportVersioning | string;
/**
* <p>
* The Amazon resource name of the billing view. You can get this value by using the billing view service public APIs.
* </p>
*/
BillingViewArn?: string;
}
/**
* @public
* <p>If the action is successful, the service sends back an HTTP 200 response.</p>
*/
export interface DescribeReportDefinitionsResponse {
/**
* <p>A list of AWS Cost and Usage reports owned by the account.</p>
*/
ReportDefinitions?: ReportDefinition[];
/**
* <p>A generic string.</p>
*/
NextToken?: string;
}
/**
* @public
*/
export interface ModifyReportDefinitionRequest {
/**
* <p>The name of the report that you want to create. The name must be unique,
* is case sensitive, and can't include spaces. </p>
*/
ReportName: string | undefined;
/**
* <p>The definition of AWS Cost and Usage Report. You can specify the report name,
* time unit, report format, compression format, S3 bucket, additional artifacts, and schema
* elements in the definition.
* </p>
*/
ReportDefinition: ReportDefinition | undefined;
}
/**
* @public
*/
export interface ModifyReportDefinitionResponse {}
/**
* @public
* <p>A report with the specified name already exists in the account. Specify a different report name.</p>
*/
export class DuplicateReportNameException extends __BaseException {
readonly name: "DuplicateReportNameException" = "DuplicateReportNameException";
readonly $fault: "client" = "client";
/**
* <p>A message to show the detail of the exception.</p>
*/
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<DuplicateReportNameException, __BaseException>) {
super({
name: "DuplicateReportNameException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, DuplicateReportNameException.prototype);
this.Message = opts.Message;
}
}
/**
* @public
* <p>Creates a Cost and Usage Report.</p>
*/
export interface PutReportDefinitionRequest {
/**
* <p>Represents the output of the PutReportDefinition operation. The content consists of the detailed
* metadata and data file information. </p>
*/
ReportDefinition: ReportDefinition | undefined;
}
/**
* @public
* <p>If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.</p>
*/
export interface PutReportDefinitionResponse {}
/**
* @public
* <p>This account already has five reports defined. To define a new report, you must delete an existing report.</p>
*/
export class ReportLimitReachedException extends __BaseException {
readonly name: "ReportLimitReachedException" = "ReportLimitReachedException";
readonly $fault: "client" = "client";
/**
* <p>A message to show the detail of the exception.</p>
*/
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ReportLimitReachedException, __BaseException>) {
super({
name: "ReportLimitReachedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ReportLimitReachedException.prototype);
this.Message = opts.Message;
}
}