@aws-sdk/client-cost-and-usage-report-service 3.32.0 → 3.36.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 (127) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/{dist/cjs → dist-cjs}/CostAndUsageReportService.js +1 -2
  3. package/{dist/cjs → dist-cjs}/CostAndUsageReportServiceClient.js +8 -9
  4. package/{dist/cjs → dist-cjs}/commands/DeleteReportDefinitionCommand.js +2 -3
  5. package/{dist/cjs → dist-cjs}/commands/DescribeReportDefinitionsCommand.js +2 -3
  6. package/{dist/cjs → dist-cjs}/commands/ModifyReportDefinitionCommand.js +2 -3
  7. package/{dist/cjs → dist-cjs}/commands/PutReportDefinitionCommand.js +2 -3
  8. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  9. package/{dist/cjs → dist-cjs}/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  11. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
  12. package/{dist/cjs → dist-cjs}/pagination/DescribeReportDefinitionsPaginator.js +1 -2
  13. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  14. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
  15. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
  19. package/{dist/es → dist-es}/CostAndUsageReportService.js +2 -23
  20. package/{dist/es → dist-es}/CostAndUsageReportServiceClient.js +2 -28
  21. package/{dist/es → dist-es}/commands/DeleteReportDefinitionCommand.js +4 -30
  22. package/{dist/es → dist-es}/commands/DescribeReportDefinitionsCommand.js +4 -30
  23. package/{dist/es → dist-es}/commands/ModifyReportDefinitionCommand.js +4 -30
  24. package/{dist/es → dist-es}/commands/PutReportDefinitionCommand.js +4 -30
  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 -40
  29. package/{dist/es → dist-es}/pagination/DescribeReportDefinitionsPaginator.js +17 -30
  30. package/dist-es/pagination/Interfaces.js +1 -0
  31. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +70 -76
  32. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  33. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  34. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  35. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  36. package/{dist/types → dist-types}/CostAndUsageReportService.d.ts +2 -2
  37. package/{dist/types → dist-types}/CostAndUsageReportServiceClient.d.ts +5 -5
  38. package/{dist/types → dist-types}/commands/DeleteReportDefinitionCommand.d.ts +2 -2
  39. package/{dist/types → dist-types}/commands/DescribeReportDefinitionsCommand.d.ts +2 -2
  40. package/{dist/types → dist-types}/commands/ModifyReportDefinitionCommand.d.ts +2 -2
  41. package/{dist/types → dist-types}/commands/PutReportDefinitionCommand.d.ts +2 -2
  42. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  43. package/{index.ts → dist-types/index.d.ts} +0 -0
  44. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  45. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  46. package/{dist/types → dist-types}/pagination/DescribeReportDefinitionsPaginator.d.ts +1 -1
  47. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  48. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  49. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
  50. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  51. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  52. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  53. package/{dist/types → dist-types}/ts3.4/CostAndUsageReportService.d.ts +2 -2
  54. package/{dist/types → dist-types}/ts3.4/CostAndUsageReportServiceClient.d.ts +5 -5
  55. package/{dist/types → dist-types}/ts3.4/commands/DeleteReportDefinitionCommand.d.ts +2 -2
  56. package/{dist/types → dist-types}/ts3.4/commands/DescribeReportDefinitionsCommand.d.ts +2 -2
  57. package/{dist/types → dist-types}/ts3.4/commands/ModifyReportDefinitionCommand.d.ts +2 -2
  58. package/{dist/types → dist-types}/ts3.4/commands/PutReportDefinitionCommand.d.ts +2 -2
  59. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  60. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  61. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  62. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  63. package/{dist/types → dist-types}/ts3.4/pagination/DescribeReportDefinitionsPaginator.d.ts +1 -1
  64. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  65. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  66. package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
  67. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  68. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  69. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  70. package/package.json +52 -49
  71. package/CostAndUsageReportService.ts +0 -172
  72. package/CostAndUsageReportServiceClient.ts +0 -277
  73. package/commands/DeleteReportDefinitionCommand.ts +0 -98
  74. package/commands/DescribeReportDefinitionsCommand.ts +0 -101
  75. package/commands/ModifyReportDefinitionCommand.ts +0 -98
  76. package/commands/PutReportDefinitionCommand.ts +0 -98
  77. package/dist/cjs/CostAndUsageReportService.js.map +0 -1
  78. package/dist/cjs/CostAndUsageReportServiceClient.js.map +0 -1
  79. package/dist/cjs/commands/DeleteReportDefinitionCommand.js.map +0 -1
  80. package/dist/cjs/commands/DescribeReportDefinitionsCommand.js.map +0 -1
  81. package/dist/cjs/commands/ModifyReportDefinitionCommand.js.map +0 -1
  82. package/dist/cjs/commands/PutReportDefinitionCommand.js.map +0 -1
  83. package/dist/cjs/endpoints.js.map +0 -1
  84. package/dist/cjs/index.js.map +0 -1
  85. package/dist/cjs/models/index.js.map +0 -1
  86. package/dist/cjs/models/models_0.js.map +0 -1
  87. package/dist/cjs/package.json +0 -91
  88. package/dist/cjs/pagination/DescribeReportDefinitionsPaginator.js.map +0 -1
  89. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  90. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  91. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  92. package/dist/cjs/runtimeConfig.js.map +0 -1
  93. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  94. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  95. package/dist/es/CostAndUsageReportService.js.map +0 -1
  96. package/dist/es/CostAndUsageReportServiceClient.js.map +0 -1
  97. package/dist/es/commands/DeleteReportDefinitionCommand.js.map +0 -1
  98. package/dist/es/commands/DescribeReportDefinitionsCommand.js.map +0 -1
  99. package/dist/es/commands/ModifyReportDefinitionCommand.js.map +0 -1
  100. package/dist/es/commands/PutReportDefinitionCommand.js.map +0 -1
  101. package/dist/es/endpoints.js.map +0 -1
  102. package/dist/es/index.js +0 -10
  103. package/dist/es/index.js.map +0 -1
  104. package/dist/es/models/index.js +0 -2
  105. package/dist/es/models/index.js.map +0 -1
  106. package/dist/es/models/models_0.js.map +0 -1
  107. package/dist/es/package.json +0 -91
  108. package/dist/es/pagination/DescribeReportDefinitionsPaginator.js.map +0 -1
  109. package/dist/es/pagination/Interfaces.js +0 -2
  110. package/dist/es/pagination/Interfaces.js.map +0 -1
  111. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  112. package/dist/es/runtimeConfig.browser.js.map +0 -1
  113. package/dist/es/runtimeConfig.js.map +0 -1
  114. package/dist/es/runtimeConfig.native.js.map +0 -1
  115. package/dist/es/runtimeConfig.shared.js.map +0 -1
  116. package/endpoints.ts +0 -57
  117. package/jest.config.js +0 -4
  118. package/models/models_0.ts +0 -382
  119. package/pagination/DescribeReportDefinitionsPaginator.ts +0 -58
  120. package/pagination/Interfaces.ts +0 -7
  121. package/protocols/Aws_json1_1.ts +0 -716
  122. package/runtimeConfig.browser.ts +0 -40
  123. package/runtimeConfig.native.ts +0 -16
  124. package/runtimeConfig.shared.ts +0 -16
  125. package/runtimeConfig.ts +0 -45
  126. package/tsconfig.es.json +0 -12
  127. package/tsconfig.json +0 -32
@@ -1,382 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
-
3
- export enum AdditionalArtifact {
4
- ATHENA = "ATHENA",
5
- QUICKSIGHT = "QUICKSIGHT",
6
- REDSHIFT = "REDSHIFT",
7
- }
8
-
9
- /**
10
- * <p>Deletes the specified report.</p>
11
- */
12
- export interface DeleteReportDefinitionRequest {
13
- /**
14
- * <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>
15
- */
16
- ReportName?: string;
17
- }
18
-
19
- export namespace DeleteReportDefinitionRequest {
20
- /**
21
- * @internal
22
- */
23
- export const filterSensitiveLog = (obj: DeleteReportDefinitionRequest): any => ({
24
- ...obj,
25
- });
26
- }
27
-
28
- /**
29
- * <p>If the action is successful, the service sends back an HTTP 200 response.</p>
30
- */
31
- export interface DeleteReportDefinitionResponse {
32
- /**
33
- * <p>Whether the deletion was successful or not.</p>
34
- */
35
- ResponseMessage?: string;
36
- }
37
-
38
- export namespace DeleteReportDefinitionResponse {
39
- /**
40
- * @internal
41
- */
42
- export const filterSensitiveLog = (obj: DeleteReportDefinitionResponse): any => ({
43
- ...obj,
44
- });
45
- }
46
-
47
- /**
48
- * <p>An error on the server occurred during the processing of your request. Try again later.</p>
49
- */
50
- export interface InternalErrorException extends __SmithyException, $MetadataBearer {
51
- name: "InternalErrorException";
52
- $fault: "server";
53
- /**
54
- * <p>A message to show the detail of the exception.</p>
55
- */
56
- Message?: string;
57
- }
58
-
59
- export namespace InternalErrorException {
60
- /**
61
- * @internal
62
- */
63
- export const filterSensitiveLog = (obj: InternalErrorException): any => ({
64
- ...obj,
65
- });
66
- }
67
-
68
- /**
69
- * <p>The input fails to satisfy the constraints specified by an AWS service.</p>
70
- */
71
- export interface ValidationException extends __SmithyException, $MetadataBearer {
72
- name: "ValidationException";
73
- $fault: "client";
74
- /**
75
- * <p>A message to show the detail of the exception.</p>
76
- */
77
- Message?: string;
78
- }
79
-
80
- export namespace ValidationException {
81
- /**
82
- * @internal
83
- */
84
- export const filterSensitiveLog = (obj: ValidationException): any => ({
85
- ...obj,
86
- });
87
- }
88
-
89
- /**
90
- * <p>Requests a list of AWS Cost and Usage reports owned by the account.</p>
91
- */
92
- export interface DescribeReportDefinitionsRequest {
93
- /**
94
- * <p>The maximum number of results that AWS returns for the operation.</p>
95
- */
96
- MaxResults?: number;
97
-
98
- /**
99
- * <p>A generic string.</p>
100
- */
101
- NextToken?: string;
102
- }
103
-
104
- export namespace DescribeReportDefinitionsRequest {
105
- /**
106
- * @internal
107
- */
108
- export const filterSensitiveLog = (obj: DescribeReportDefinitionsRequest): any => ({
109
- ...obj,
110
- });
111
- }
112
-
113
- export enum SchemaElement {
114
- RESOURCES = "RESOURCES",
115
- }
116
-
117
- export enum CompressionFormat {
118
- GZIP = "GZIP",
119
- Parquet = "Parquet",
120
- ZIP = "ZIP",
121
- }
122
-
123
- export enum ReportFormat {
124
- CSV = "textORcsv",
125
- Parquet = "Parquet",
126
- }
127
-
128
- export enum ReportVersioning {
129
- CREATE_NEW_REPORT = "CREATE_NEW_REPORT",
130
- OVERWRITE_REPORT = "OVERWRITE_REPORT",
131
- }
132
-
133
- export enum AWSRegion {
134
- BAHRAIN = "me-south-1",
135
- BEIJING = "cn-north-1",
136
- CANADA_CENTRAL = "ca-central-1",
137
- CAPE_TOWN = "af-south-1",
138
- FRANKFURT = "eu-central-1",
139
- HONG_KONG = "ap-east-1",
140
- IRELAND = "eu-west-1",
141
- LONDON = "eu-west-2",
142
- MILANO = "eu-south-1",
143
- MUMBAI = "ap-south-1",
144
- NINGXIA = "cn-northwest-1",
145
- NORTHERN_CALIFORNIA = "us-west-1",
146
- OHIO = "us-east-2",
147
- OREGON = "us-west-2",
148
- OSAKA = "ap-northeast-3",
149
- PARIS = "eu-west-3",
150
- SAO_PAULO = "sa-east-1",
151
- SEOUL = "ap-northeast-2",
152
- SINGAPORE = "ap-southeast-1",
153
- STOCKHOLM = "eu-north-1",
154
- SYDNEY = "ap-southeast-2",
155
- TOKYO = "ap-northeast-1",
156
- US_STANDARD = "us-east-1",
157
- }
158
-
159
- export enum TimeUnit {
160
- DAILY = "DAILY",
161
- HOURLY = "HOURLY",
162
- MONTHLY = "MONTHLY",
163
- }
164
-
165
- /**
166
- * <p>The definition of AWS Cost and Usage Report. You can specify the report name,
167
- * time unit, report format, compression format, S3 bucket, additional artifacts, and schema
168
- * elements in the definition.
169
- * </p>
170
- */
171
- export interface ReportDefinition {
172
- /**
173
- * <p>The name of the report that you want to create. The name must be unique,
174
- * is case sensitive, and can't include spaces. </p>
175
- */
176
- ReportName: string | undefined;
177
-
178
- /**
179
- * <p>The length of time covered by the report. </p>
180
- */
181
- TimeUnit: TimeUnit | string | undefined;
182
-
183
- /**
184
- * <p>The format that AWS saves the report in.</p>
185
- */
186
- Format: ReportFormat | string | undefined;
187
-
188
- /**
189
- * <p>The compression format that AWS uses for the report.</p>
190
- */
191
- Compression: CompressionFormat | string | undefined;
192
-
193
- /**
194
- * <p>A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs. </p>
195
- */
196
- AdditionalSchemaElements: (SchemaElement | string)[] | undefined;
197
-
198
- /**
199
- * <p>The S3 bucket where AWS delivers the report.</p>
200
- */
201
- S3Bucket: string | undefined;
202
-
203
- /**
204
- * <p>The prefix that AWS adds to the report name when AWS delivers the report. Your prefix
205
- * can't include spaces.</p>
206
- */
207
- S3Prefix: string | undefined;
208
-
209
- /**
210
- * <p>The region of the S3 bucket that AWS delivers the report into.</p>
211
- */
212
- S3Region: AWSRegion | string | undefined;
213
-
214
- /**
215
- * <p>A list of manifests that you want Amazon Web Services to create for this report.</p>
216
- */
217
- AdditionalArtifacts?: (AdditionalArtifact | string)[];
218
-
219
- /**
220
- * <p>Whether you want Amazon Web Services to update your reports after they have been finalized if Amazon Web Services detects charges related to
221
- * previous months. These charges can include refunds, credits, or support fees.</p>
222
- */
223
- RefreshClosedReports?: boolean;
224
-
225
- /**
226
- * <p>Whether you want Amazon Web Services to overwrite the previous version of each report or
227
- * to deliver the report in addition to the previous versions.</p>
228
- */
229
- ReportVersioning?: ReportVersioning | string;
230
-
231
- /**
232
- * <p>
233
- * The Amazon resource name of the billing view. You can get this value by using the billing view service public APIs.
234
- * </p>
235
- */
236
- BillingViewArn?: string;
237
- }
238
-
239
- export namespace ReportDefinition {
240
- /**
241
- * @internal
242
- */
243
- export const filterSensitiveLog = (obj: ReportDefinition): any => ({
244
- ...obj,
245
- });
246
- }
247
-
248
- /**
249
- * <p>If the action is successful, the service sends back an HTTP 200 response.</p>
250
- */
251
- export interface DescribeReportDefinitionsResponse {
252
- /**
253
- * <p>A list of AWS Cost and Usage reports owned by the account.</p>
254
- */
255
- ReportDefinitions?: ReportDefinition[];
256
-
257
- /**
258
- * <p>A generic string.</p>
259
- */
260
- NextToken?: string;
261
- }
262
-
263
- export namespace DescribeReportDefinitionsResponse {
264
- /**
265
- * @internal
266
- */
267
- export const filterSensitiveLog = (obj: DescribeReportDefinitionsResponse): any => ({
268
- ...obj,
269
- });
270
- }
271
-
272
- export interface ModifyReportDefinitionRequest {
273
- /**
274
- * <p>The name of the report that you want to create. The name must be unique,
275
- * is case sensitive, and can't include spaces. </p>
276
- */
277
- ReportName: string | undefined;
278
-
279
- /**
280
- * <p>The definition of AWS Cost and Usage Report. You can specify the report name,
281
- * time unit, report format, compression format, S3 bucket, additional artifacts, and schema
282
- * elements in the definition.
283
- * </p>
284
- */
285
- ReportDefinition: ReportDefinition | undefined;
286
- }
287
-
288
- export namespace ModifyReportDefinitionRequest {
289
- /**
290
- * @internal
291
- */
292
- export const filterSensitiveLog = (obj: ModifyReportDefinitionRequest): any => ({
293
- ...obj,
294
- });
295
- }
296
-
297
- export interface ModifyReportDefinitionResponse {}
298
-
299
- export namespace ModifyReportDefinitionResponse {
300
- /**
301
- * @internal
302
- */
303
- export const filterSensitiveLog = (obj: ModifyReportDefinitionResponse): any => ({
304
- ...obj,
305
- });
306
- }
307
-
308
- /**
309
- * <p>A report with the specified name already exists in the account. Specify a different report name.</p>
310
- */
311
- export interface DuplicateReportNameException extends __SmithyException, $MetadataBearer {
312
- name: "DuplicateReportNameException";
313
- $fault: "client";
314
- /**
315
- * <p>A message to show the detail of the exception.</p>
316
- */
317
- Message?: string;
318
- }
319
-
320
- export namespace DuplicateReportNameException {
321
- /**
322
- * @internal
323
- */
324
- export const filterSensitiveLog = (obj: DuplicateReportNameException): any => ({
325
- ...obj,
326
- });
327
- }
328
-
329
- /**
330
- * <p>Creates a Cost and Usage Report.</p>
331
- */
332
- export interface PutReportDefinitionRequest {
333
- /**
334
- * <p>Represents the output of the PutReportDefinition operation. The content consists of the detailed
335
- * metadata and data file information. </p>
336
- */
337
- ReportDefinition: ReportDefinition | undefined;
338
- }
339
-
340
- export namespace PutReportDefinitionRequest {
341
- /**
342
- * @internal
343
- */
344
- export const filterSensitiveLog = (obj: PutReportDefinitionRequest): any => ({
345
- ...obj,
346
- });
347
- }
348
-
349
- /**
350
- * <p>If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.</p>
351
- */
352
- export interface PutReportDefinitionResponse {}
353
-
354
- export namespace PutReportDefinitionResponse {
355
- /**
356
- * @internal
357
- */
358
- export const filterSensitiveLog = (obj: PutReportDefinitionResponse): any => ({
359
- ...obj,
360
- });
361
- }
362
-
363
- /**
364
- * <p>This account already has five reports defined. To define a new report, you must delete an existing report.</p>
365
- */
366
- export interface ReportLimitReachedException extends __SmithyException, $MetadataBearer {
367
- name: "ReportLimitReachedException";
368
- $fault: "client";
369
- /**
370
- * <p>A message to show the detail of the exception.</p>
371
- */
372
- Message?: string;
373
- }
374
-
375
- export namespace ReportLimitReachedException {
376
- /**
377
- * @internal
378
- */
379
- export const filterSensitiveLog = (obj: ReportLimitReachedException): any => ({
380
- ...obj,
381
- });
382
- }
@@ -1,58 +0,0 @@
1
- import { CostAndUsageReportService } from "../CostAndUsageReportService";
2
- import { CostAndUsageReportServiceClient } from "../CostAndUsageReportServiceClient";
3
- import {
4
- DescribeReportDefinitionsCommand,
5
- DescribeReportDefinitionsCommandInput,
6
- DescribeReportDefinitionsCommandOutput,
7
- } from "../commands/DescribeReportDefinitionsCommand";
8
- import { CostAndUsageReportServicePaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
-
11
- /**
12
- * @private
13
- */
14
- const makePagedClientRequest = async (
15
- client: CostAndUsageReportServiceClient,
16
- input: DescribeReportDefinitionsCommandInput,
17
- ...args: any
18
- ): Promise<DescribeReportDefinitionsCommandOutput> => {
19
- // @ts-ignore
20
- return await client.send(new DescribeReportDefinitionsCommand(input), ...args);
21
- };
22
- /**
23
- * @private
24
- */
25
- const makePagedRequest = async (
26
- client: CostAndUsageReportService,
27
- input: DescribeReportDefinitionsCommandInput,
28
- ...args: any
29
- ): Promise<DescribeReportDefinitionsCommandOutput> => {
30
- // @ts-ignore
31
- return await client.describeReportDefinitions(input, ...args);
32
- };
33
- export async function* paginateDescribeReportDefinitions(
34
- config: CostAndUsageReportServicePaginationConfiguration,
35
- input: DescribeReportDefinitionsCommandInput,
36
- ...additionalArguments: any
37
- ): Paginator<DescribeReportDefinitionsCommandOutput> {
38
- // ToDo: replace with actual type instead of typeof input.NextToken
39
- let token: typeof input.NextToken | undefined = config.startingToken || undefined;
40
- let hasNext = true;
41
- let page: DescribeReportDefinitionsCommandOutput;
42
- while (hasNext) {
43
- input.NextToken = token;
44
- input["MaxResults"] = config.pageSize;
45
- if (config.client instanceof CostAndUsageReportService) {
46
- page = await makePagedRequest(config.client, input, ...additionalArguments);
47
- } else if (config.client instanceof CostAndUsageReportServiceClient) {
48
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
49
- } else {
50
- throw new Error("Invalid client, expected CostAndUsageReportService | CostAndUsageReportServiceClient");
51
- }
52
- yield page;
53
- token = page.NextToken;
54
- hasNext = !!token;
55
- }
56
- // @ts-ignore
57
- return undefined;
58
- }
@@ -1,7 +0,0 @@
1
- import { CostAndUsageReportService } from "../CostAndUsageReportService";
2
- import { CostAndUsageReportServiceClient } from "../CostAndUsageReportServiceClient";
3
- import { PaginationConfiguration } from "@aws-sdk/types";
4
-
5
- export interface CostAndUsageReportServicePaginationConfiguration extends PaginationConfiguration {
6
- client: CostAndUsageReportService | CostAndUsageReportServiceClient;
7
- }