@aws-sdk/client-artifact 3.954.0 → 3.955.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/README.md CHANGED
@@ -250,6 +250,14 @@ ListReports
250
250
 
251
251
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/artifact/command/ListReportsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-artifact/Interface/ListReportsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-artifact/Interface/ListReportsCommandOutput/)
252
252
 
253
+ </details>
254
+ <details>
255
+ <summary>
256
+ ListReportVersions
257
+ </summary>
258
+
259
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/artifact/command/ListReportVersionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-artifact/Interface/ListReportVersionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-artifact/Interface/ListReportVersionsCommandOutput/)
260
+
253
261
  </details>
254
262
  <details>
255
263
  <summary>
package/dist-cjs/index.js CHANGED
@@ -258,6 +258,9 @@ const _LCARi = "ListCustomerAgreementsResponse";
258
258
  const _LR = "ListReports";
259
259
  const _LRR = "ListReportsRequest";
260
260
  const _LRRi = "ListReportsResponse";
261
+ const _LRV = "ListReportVersions";
262
+ const _LRVR = "ListReportVersionsRequest";
263
+ const _LRVRi = "ListReportVersionsResponse";
261
264
  const _PAS = "PutAccountSettings";
262
265
  const _PASR = "PutAccountSettingsRequest";
263
266
  const _PASRu = "PutAccountSettingsResponse";
@@ -419,6 +422,19 @@ var ListReportsRequest$ = [
419
422
  ],
420
423
  ];
421
424
  var ListReportsResponse$ = [3, n0, _LRRi, 0, [_r, _nT], [() => ReportsList, 0]];
425
+ var ListReportVersionsRequest$ = [
426
+ 3,
427
+ n0,
428
+ _LRVR,
429
+ 0,
430
+ [_rIe, _mR, _nT],
431
+ [
432
+ [0, { [_hQ]: _rIe }],
433
+ [1, { [_hQ]: _mR }],
434
+ [0, { [_hQ]: _nT }],
435
+ ],
436
+ ];
437
+ var ListReportVersionsResponse$ = [3, n0, _LRVRi, 0, [_r, _nT], [() => ReportsList, 0]];
422
438
  var PutAccountSettingsRequest$ = [3, n0, _PASR, 0, [_nSS], [0]];
423
439
  var PutAccountSettingsResponse$ = [3, n0, _PASRu, 0, [_aS], [() => AccountSettings$]];
424
440
  var ReportDetail$ = [
@@ -527,6 +543,14 @@ var ListReports$ = [
527
543
  () => ListReportsRequest$,
528
544
  () => ListReportsResponse$,
529
545
  ];
546
+ var ListReportVersions$ = [
547
+ 9,
548
+ n0,
549
+ _LRV,
550
+ { [_h]: ["GET", "/v1/report/listVersions", 200] },
551
+ () => ListReportVersionsRequest$,
552
+ () => ListReportVersionsResponse$,
553
+ ];
530
554
  var PutAccountSettings$ = [
531
555
  9,
532
556
  n0,
@@ -608,6 +632,18 @@ class ListReportsCommand extends smithyClient.Command
608
632
  .build() {
609
633
  }
610
634
 
635
+ class ListReportVersionsCommand extends smithyClient.Command
636
+ .classBuilder()
637
+ .ep(commonParams)
638
+ .m(function (Command, cs, config, o) {
639
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
640
+ })
641
+ .s("Artifact", "ListReportVersions", {})
642
+ .n("ArtifactClient", "ListReportVersionsCommand")
643
+ .sc(ListReportVersions$)
644
+ .build() {
645
+ }
646
+
611
647
  class PutAccountSettingsCommand extends smithyClient.Command
612
648
  .classBuilder()
613
649
  .ep(commonParams)
@@ -627,6 +663,7 @@ const commands = {
627
663
  GetTermForReportCommand,
628
664
  ListCustomerAgreementsCommand,
629
665
  ListReportsCommand,
666
+ ListReportVersionsCommand,
630
667
  PutAccountSettingsCommand,
631
668
  };
632
669
  class Artifact extends ArtifactClient {
@@ -635,6 +672,8 @@ smithyClient.createAggregatedClient(commands, Artifact);
635
672
 
636
673
  const paginateListCustomerAgreements = core.createPaginator(ArtifactClient, ListCustomerAgreementsCommand, "nextToken", "nextToken", "maxResults");
637
674
 
675
+ const paginateListReportVersions = core.createPaginator(ArtifactClient, ListReportVersionsCommand, "nextToken", "nextToken", "maxResults");
676
+
638
677
  const paginateListReports = core.createPaginator(ArtifactClient, ListReportsCommand, "nextToken", "nextToken", "maxResults");
639
678
 
640
679
  const AcceptanceType = {
@@ -716,6 +755,10 @@ exports.ListCustomerAgreements$ = ListCustomerAgreements$;
716
755
  exports.ListCustomerAgreementsCommand = ListCustomerAgreementsCommand;
717
756
  exports.ListCustomerAgreementsRequest$ = ListCustomerAgreementsRequest$;
718
757
  exports.ListCustomerAgreementsResponse$ = ListCustomerAgreementsResponse$;
758
+ exports.ListReportVersions$ = ListReportVersions$;
759
+ exports.ListReportVersionsCommand = ListReportVersionsCommand;
760
+ exports.ListReportVersionsRequest$ = ListReportVersionsRequest$;
761
+ exports.ListReportVersionsResponse$ = ListReportVersionsResponse$;
719
762
  exports.ListReports$ = ListReports$;
720
763
  exports.ListReportsCommand = ListReportsCommand;
721
764
  exports.ListReportsRequest$ = ListReportsRequest$;
@@ -740,4 +783,5 @@ exports.ValidationException$ = ValidationException$;
740
783
  exports.ValidationExceptionField$ = ValidationExceptionField$;
741
784
  exports.ValidationExceptionReason = ValidationExceptionReason;
742
785
  exports.paginateListCustomerAgreements = paginateListCustomerAgreements;
786
+ exports.paginateListReportVersions = paginateListReportVersions;
743
787
  exports.paginateListReports = paginateListReports;
@@ -6,6 +6,7 @@ import { GetReportMetadataCommand, } from "./commands/GetReportMetadataCommand";
6
6
  import { GetTermForReportCommand, } from "./commands/GetTermForReportCommand";
7
7
  import { ListCustomerAgreementsCommand, } from "./commands/ListCustomerAgreementsCommand";
8
8
  import { ListReportsCommand } from "./commands/ListReportsCommand";
9
+ import { ListReportVersionsCommand, } from "./commands/ListReportVersionsCommand";
9
10
  import { PutAccountSettingsCommand, } from "./commands/PutAccountSettingsCommand";
10
11
  const commands = {
11
12
  GetAccountSettingsCommand,
@@ -14,6 +15,7 @@ const commands = {
14
15
  GetTermForReportCommand,
15
16
  ListCustomerAgreementsCommand,
16
17
  ListReportsCommand,
18
+ ListReportVersionsCommand,
17
19
  PutAccountSettingsCommand,
18
20
  };
19
21
  export class Artifact extends ArtifactClient {
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListReportVersions$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListReportVersionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("Artifact", "ListReportVersions", {})
13
+ .n("ArtifactClient", "ListReportVersionsCommand")
14
+ .sc(ListReportVersions$)
15
+ .build() {
16
+ }
@@ -3,5 +3,6 @@ export * from "./GetReportCommand";
3
3
  export * from "./GetReportMetadataCommand";
4
4
  export * from "./GetTermForReportCommand";
5
5
  export * from "./ListCustomerAgreementsCommand";
6
+ export * from "./ListReportVersionsCommand";
6
7
  export * from "./ListReportsCommand";
7
8
  export * from "./PutAccountSettingsCommand";
package/dist-es/index.js CHANGED
@@ -5,4 +5,5 @@ export * from "./schemas/schemas_0";
5
5
  export * from "./pagination";
6
6
  export * from "./models/enums";
7
7
  export * from "./models/errors";
8
+ export * from "./models/models_0";
8
9
  export { ArtifactServiceException } from "./models/ArtifactServiceException";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ArtifactClient } from "../ArtifactClient";
3
+ import { ListReportVersionsCommand, } from "../commands/ListReportVersionsCommand";
4
+ export const paginateListReportVersions = createPaginator(ArtifactClient, ListReportVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,3 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCustomerAgreementsPaginator";
3
+ export * from "./ListReportVersionsPaginator";
3
4
  export * from "./ListReportsPaginator";
@@ -22,6 +22,9 @@ const _LCARi = "ListCustomerAgreementsResponse";
22
22
  const _LR = "ListReports";
23
23
  const _LRR = "ListReportsRequest";
24
24
  const _LRRi = "ListReportsResponse";
25
+ const _LRV = "ListReportVersions";
26
+ const _LRVR = "ListReportVersionsRequest";
27
+ const _LRVRi = "ListReportVersionsResponse";
25
28
  const _PAS = "PutAccountSettings";
26
29
  const _PASR = "PutAccountSettingsRequest";
27
30
  const _PASRu = "PutAccountSettingsResponse";
@@ -186,6 +189,19 @@ export var ListReportsRequest$ = [
186
189
  ],
187
190
  ];
188
191
  export var ListReportsResponse$ = [3, n0, _LRRi, 0, [_r, _nT], [() => ReportsList, 0]];
192
+ export var ListReportVersionsRequest$ = [
193
+ 3,
194
+ n0,
195
+ _LRVR,
196
+ 0,
197
+ [_rIe, _mR, _nT],
198
+ [
199
+ [0, { [_hQ]: _rIe }],
200
+ [1, { [_hQ]: _mR }],
201
+ [0, { [_hQ]: _nT }],
202
+ ],
203
+ ];
204
+ export var ListReportVersionsResponse$ = [3, n0, _LRVRi, 0, [_r, _nT], [() => ReportsList, 0]];
189
205
  export var PutAccountSettingsRequest$ = [3, n0, _PASR, 0, [_nSS], [0]];
190
206
  export var PutAccountSettingsResponse$ = [3, n0, _PASRu, 0, [_aS], [() => AccountSettings$]];
191
207
  export var ReportDetail$ = [
@@ -295,6 +311,14 @@ export var ListReports$ = [
295
311
  () => ListReportsRequest$,
296
312
  () => ListReportsResponse$,
297
313
  ];
314
+ export var ListReportVersions$ = [
315
+ 9,
316
+ n0,
317
+ _LRV,
318
+ { [_h]: ["GET", "/v1/report/listVersions", 200] },
319
+ () => ListReportVersionsRequest$,
320
+ () => ListReportVersionsResponse$,
321
+ ];
298
322
  export var PutAccountSettings$ = [
299
323
  9,
300
324
  n0,
@@ -6,6 +6,7 @@ import { GetReportMetadataCommandInput, GetReportMetadataCommandOutput } from ".
6
6
  import { GetTermForReportCommandInput, GetTermForReportCommandOutput } from "./commands/GetTermForReportCommand";
7
7
  import { ListCustomerAgreementsCommandInput, ListCustomerAgreementsCommandOutput } from "./commands/ListCustomerAgreementsCommand";
8
8
  import { ListReportsCommandInput, ListReportsCommandOutput } from "./commands/ListReportsCommand";
9
+ import { ListReportVersionsCommandInput, ListReportVersionsCommandOutput } from "./commands/ListReportVersionsCommand";
9
10
  import { PutAccountSettingsCommandInput, PutAccountSettingsCommandOutput } from "./commands/PutAccountSettingsCommand";
10
11
  export interface Artifact {
11
12
  /**
@@ -47,6 +48,12 @@ export interface Artifact {
47
48
  listReports(args: ListReportsCommandInput, options?: __HttpHandlerOptions): Promise<ListReportsCommandOutput>;
48
49
  listReports(args: ListReportsCommandInput, cb: (err: any, data?: ListReportsCommandOutput) => void): void;
49
50
  listReports(args: ListReportsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListReportsCommandOutput) => void): void;
51
+ /**
52
+ * @see {@link ListReportVersionsCommand}
53
+ */
54
+ listReportVersions(args: ListReportVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListReportVersionsCommandOutput>;
55
+ listReportVersions(args: ListReportVersionsCommandInput, cb: (err: any, data?: ListReportVersionsCommandOutput) => void): void;
56
+ listReportVersions(args: ListReportVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListReportVersionsCommandOutput) => void): void;
50
57
  /**
51
58
  * @see {@link PutAccountSettingsCommand}
52
59
  */
@@ -13,6 +13,7 @@ import { GetReportMetadataCommandInput, GetReportMetadataCommandOutput } from ".
13
13
  import { GetTermForReportCommandInput, GetTermForReportCommandOutput } from "./commands/GetTermForReportCommand";
14
14
  import { ListCustomerAgreementsCommandInput, ListCustomerAgreementsCommandOutput } from "./commands/ListCustomerAgreementsCommand";
15
15
  import { ListReportsCommandInput, ListReportsCommandOutput } from "./commands/ListReportsCommand";
16
+ import { ListReportVersionsCommandInput, ListReportVersionsCommandOutput } from "./commands/ListReportVersionsCommand";
16
17
  import { PutAccountSettingsCommandInput, PutAccountSettingsCommandOutput } from "./commands/PutAccountSettingsCommand";
17
18
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
18
19
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -20,11 +21,11 @@ export { __Client };
20
21
  /**
21
22
  * @public
22
23
  */
23
- export type ServiceInputTypes = GetAccountSettingsCommandInput | GetReportCommandInput | GetReportMetadataCommandInput | GetTermForReportCommandInput | ListCustomerAgreementsCommandInput | ListReportsCommandInput | PutAccountSettingsCommandInput;
24
+ export type ServiceInputTypes = GetAccountSettingsCommandInput | GetReportCommandInput | GetReportMetadataCommandInput | GetTermForReportCommandInput | ListCustomerAgreementsCommandInput | ListReportVersionsCommandInput | ListReportsCommandInput | PutAccountSettingsCommandInput;
24
25
  /**
25
26
  * @public
26
27
  */
27
- export type ServiceOutputTypes = GetAccountSettingsCommandOutput | GetReportCommandOutput | GetReportMetadataCommandOutput | GetTermForReportCommandOutput | ListCustomerAgreementsCommandOutput | ListReportsCommandOutput | PutAccountSettingsCommandOutput;
28
+ export type ServiceOutputTypes = GetAccountSettingsCommandOutput | GetReportCommandOutput | GetReportMetadataCommandOutput | GetTermForReportCommandOutput | ListCustomerAgreementsCommandOutput | ListReportVersionsCommandOutput | ListReportsCommandOutput | PutAccountSettingsCommandOutput;
28
29
  /**
29
30
  * @public
30
31
  */
@@ -0,0 +1,145 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ArtifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ArtifactClient";
4
+ import type { ListReportVersionsRequest, ListReportVersionsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListReportVersionsCommand}.
14
+ */
15
+ export interface ListReportVersionsCommandInput extends ListReportVersionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListReportVersionsCommand}.
21
+ */
22
+ export interface ListReportVersionsCommandOutput extends ListReportVersionsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListReportVersionsCommand_base: {
25
+ new (input: ListReportVersionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListReportVersionsCommandInput, ListReportVersionsCommandOutput, ArtifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListReportVersionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListReportVersionsCommandInput, ListReportVersionsCommandOutput, ArtifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>List available report versions for a given report.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ArtifactClient, ListReportVersionsCommand } from "@aws-sdk/client-artifact"; // ES Modules import
35
+ * // const { ArtifactClient, ListReportVersionsCommand } = require("@aws-sdk/client-artifact"); // CommonJS import
36
+ * // import type { ArtifactClientConfig } from "@aws-sdk/client-artifact";
37
+ * const config = {}; // type is ArtifactClientConfig
38
+ * const client = new ArtifactClient(config);
39
+ * const input = { // ListReportVersionsRequest
40
+ * reportId: "STRING_VALUE", // required
41
+ * maxResults: Number("int"),
42
+ * nextToken: "STRING_VALUE",
43
+ * };
44
+ * const command = new ListReportVersionsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // ListReportVersionsResponse
47
+ * // reports: [ // ReportsList // required
48
+ * // { // ReportSummary
49
+ * // id: "STRING_VALUE",
50
+ * // name: "STRING_VALUE",
51
+ * // state: "PUBLISHED" || "UNPUBLISHED",
52
+ * // arn: "STRING_VALUE",
53
+ * // version: Number("long"),
54
+ * // uploadState: "PROCESSING" || "COMPLETE" || "FAILED" || "FAULT",
55
+ * // description: "STRING_VALUE",
56
+ * // periodStart: new Date("TIMESTAMP"),
57
+ * // periodEnd: new Date("TIMESTAMP"),
58
+ * // series: "STRING_VALUE",
59
+ * // category: "STRING_VALUE",
60
+ * // companyName: "STRING_VALUE",
61
+ * // productName: "STRING_VALUE",
62
+ * // statusMessage: "STRING_VALUE",
63
+ * // acceptanceType: "PASSTHROUGH" || "EXPLICIT",
64
+ * // },
65
+ * // ],
66
+ * // nextToken: "STRING_VALUE",
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param ListReportVersionsCommandInput - {@link ListReportVersionsCommandInput}
72
+ * @returns {@link ListReportVersionsCommandOutput}
73
+ * @see {@link ListReportVersionsCommandInput} for command's `input` shape.
74
+ * @see {@link ListReportVersionsCommandOutput} for command's `response` shape.
75
+ * @see {@link ArtifactClientResolvedConfig | config} for ArtifactClient's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>User does not have sufficient access to perform this action.</p>
79
+ *
80
+ * @throws {@link InternalServerException} (server fault)
81
+ * <p>An unknown server exception has occurred.</p>
82
+ *
83
+ * @throws {@link ResourceNotFoundException} (client fault)
84
+ * <p>Request references a resource which does not exist.</p>
85
+ *
86
+ * @throws {@link ServiceQuotaExceededException} (client fault)
87
+ * <p>Request would cause a service quota to be exceeded.</p>
88
+ *
89
+ * @throws {@link ThrottlingException} (client fault)
90
+ * <p>Request was denied due to request throttling.</p>
91
+ *
92
+ * @throws {@link ValidationException} (client fault)
93
+ * <p>Request fails to satisfy the constraints specified by an AWS service.</p>
94
+ *
95
+ * @throws {@link ArtifactServiceException}
96
+ * <p>Base exception class for all service exceptions from Artifact service.</p>
97
+ *
98
+ *
99
+ * @example Invoke ListReportVersions operation
100
+ * ```javascript
101
+ * // The ListReportVersions operation returns a collection of report versions
102
+ * for a given resource.
103
+ * const input = {
104
+ * reportId: "report-abcdef0123456789"
105
+ * };
106
+ * const command = new ListReportVersionsCommand(input);
107
+ * const response = await client.send(command);
108
+ * /* response is
109
+ * {
110
+ * nextToken: "gPFEGk7CF4wS901w7ppYclt7gPFEGk7CF4wS901w7ppYclt7gPFEGk7CF4wS901w7ppYclt7",
111
+ * reports: [
112
+ * {
113
+ * arn: "arn:aws:artifact:us-east-1::report:report-abcdef0123456789:1",
114
+ * category: "category",
115
+ * companyName: "companyName",
116
+ * description: "description",
117
+ * id: "report-abcdef0123456789",
118
+ * name: "name",
119
+ * periodEnd: "2022-04-01T20:32:04Z",
120
+ * periodStart: "2022-04-01T20:32:04Z",
121
+ * productName: "productName",
122
+ * series: "series",
123
+ * state: "PUBLISHED",
124
+ * version: 1
125
+ * }
126
+ * ]
127
+ * }
128
+ * *\/
129
+ * ```
130
+ *
131
+ * @public
132
+ */
133
+ export declare class ListReportVersionsCommand extends ListReportVersionsCommand_base {
134
+ /** @internal type navigation helper, not in runtime. */
135
+ protected static __types: {
136
+ api: {
137
+ input: ListReportVersionsRequest;
138
+ output: ListReportVersionsResponse;
139
+ };
140
+ sdk: {
141
+ input: ListReportVersionsCommandInput;
142
+ output: ListReportVersionsCommandOutput;
143
+ };
144
+ };
145
+ }
@@ -3,5 +3,6 @@ export * from "./GetReportCommand";
3
3
  export * from "./GetReportMetadataCommand";
4
4
  export * from "./GetTermForReportCommand";
5
5
  export * from "./ListCustomerAgreementsCommand";
6
+ export * from "./ListReportVersionsCommand";
6
7
  export * from "./ListReportsCommand";
7
8
  export * from "./PutAccountSettingsCommand";
@@ -13,5 +13,5 @@ export * from "./schemas/schemas_0";
13
13
  export * from "./pagination";
14
14
  export * from "./models/enums";
15
15
  export * from "./models/errors";
16
- export type * from "./models/models_0";
16
+ export * from "./models/models_0";
17
17
  export { ArtifactServiceException } from "./models/ArtifactServiceException";
@@ -464,3 +464,38 @@ export interface ListReportsResponse {
464
464
  */
465
465
  nextToken?: string | undefined;
466
466
  }
467
+ /**
468
+ * @public
469
+ */
470
+ export interface ListReportVersionsRequest {
471
+ /**
472
+ * <p>Unique resource ID for the report resource.</p>
473
+ * @public
474
+ */
475
+ reportId: string | undefined;
476
+ /**
477
+ * <p>Maximum number of resources to return in the paginated response.</p>
478
+ * @public
479
+ */
480
+ maxResults?: number | undefined;
481
+ /**
482
+ * <p>Pagination token to request the next page of resources.</p>
483
+ * @public
484
+ */
485
+ nextToken?: string | undefined;
486
+ }
487
+ /**
488
+ * @public
489
+ */
490
+ export interface ListReportVersionsResponse {
491
+ /**
492
+ * <p>List of report resources.</p>
493
+ * @public
494
+ */
495
+ reports: ReportSummary[] | undefined;
496
+ /**
497
+ * <p>Pagination token to request the next page of resources.</p>
498
+ * @public
499
+ */
500
+ nextToken?: string | undefined;
501
+ }
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListReportVersionsCommandInput, ListReportVersionsCommandOutput } from "../commands/ListReportVersionsCommand";
3
+ import { ArtifactPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListReportVersions: (config: ArtifactPaginationConfiguration, input: ListReportVersionsCommandInput, ...rest: any[]) => Paginator<ListReportVersionsCommandOutput>;
@@ -1,3 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCustomerAgreementsPaginator";
3
+ export * from "./ListReportVersionsPaginator";
3
4
  export * from "./ListReportsPaginator";
@@ -16,6 +16,8 @@ export declare var ListCustomerAgreementsRequest$: StaticStructureSchema;
16
16
  export declare var ListCustomerAgreementsResponse$: StaticStructureSchema;
17
17
  export declare var ListReportsRequest$: StaticStructureSchema;
18
18
  export declare var ListReportsResponse$: StaticStructureSchema;
19
+ export declare var ListReportVersionsRequest$: StaticStructureSchema;
20
+ export declare var ListReportVersionsResponse$: StaticStructureSchema;
19
21
  export declare var PutAccountSettingsRequest$: StaticStructureSchema;
20
22
  export declare var PutAccountSettingsResponse$: StaticStructureSchema;
21
23
  export declare var ReportDetail$: StaticStructureSchema;
@@ -32,4 +34,5 @@ export declare var GetReportMetadata$: StaticOperationSchema;
32
34
  export declare var GetTermForReport$: StaticOperationSchema;
33
35
  export declare var ListCustomerAgreements$: StaticOperationSchema;
34
36
  export declare var ListReports$: StaticOperationSchema;
37
+ export declare var ListReportVersions$: StaticOperationSchema;
35
38
  export declare var PutAccountSettings$: StaticOperationSchema;
@@ -24,6 +24,10 @@ import {
24
24
  ListReportsCommandInput,
25
25
  ListReportsCommandOutput,
26
26
  } from "./commands/ListReportsCommand";
27
+ import {
28
+ ListReportVersionsCommandInput,
29
+ ListReportVersionsCommandOutput,
30
+ } from "./commands/ListReportVersionsCommand";
27
31
  import {
28
32
  PutAccountSettingsCommandInput,
29
33
  PutAccountSettingsCommandOutput,
@@ -110,6 +114,19 @@ export interface Artifact {
110
114
  options: __HttpHandlerOptions,
111
115
  cb: (err: any, data?: ListReportsCommandOutput) => void
112
116
  ): void;
117
+ listReportVersions(
118
+ args: ListReportVersionsCommandInput,
119
+ options?: __HttpHandlerOptions
120
+ ): Promise<ListReportVersionsCommandOutput>;
121
+ listReportVersions(
122
+ args: ListReportVersionsCommandInput,
123
+ cb: (err: any, data?: ListReportVersionsCommandOutput) => void
124
+ ): void;
125
+ listReportVersions(
126
+ args: ListReportVersionsCommandInput,
127
+ options: __HttpHandlerOptions,
128
+ cb: (err: any, data?: ListReportVersionsCommandOutput) => void
129
+ ): void;
113
130
  putAccountSettings(): Promise<PutAccountSettingsCommandOutput>;
114
131
  putAccountSettings(
115
132
  args: PutAccountSettingsCommandInput,
@@ -69,6 +69,10 @@ import {
69
69
  ListReportsCommandInput,
70
70
  ListReportsCommandOutput,
71
71
  } from "./commands/ListReportsCommand";
72
+ import {
73
+ ListReportVersionsCommandInput,
74
+ ListReportVersionsCommandOutput,
75
+ } from "./commands/ListReportVersionsCommand";
72
76
  import {
73
77
  PutAccountSettingsCommandInput,
74
78
  PutAccountSettingsCommandOutput,
@@ -86,6 +90,7 @@ export type ServiceInputTypes =
86
90
  | GetReportMetadataCommandInput
87
91
  | GetTermForReportCommandInput
88
92
  | ListCustomerAgreementsCommandInput
93
+ | ListReportVersionsCommandInput
89
94
  | ListReportsCommandInput
90
95
  | PutAccountSettingsCommandInput;
91
96
  export type ServiceOutputTypes =
@@ -94,6 +99,7 @@ export type ServiceOutputTypes =
94
99
  | GetReportMetadataCommandOutput
95
100
  | GetTermForReportCommandOutput
96
101
  | ListCustomerAgreementsCommandOutput
102
+ | ListReportVersionsCommandOutput
97
103
  | ListReportsCommandOutput
98
104
  | PutAccountSettingsCommandOutput;
99
105
  export interface ClientDefaults
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ ArtifactClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../ArtifactClient";
8
+ import {
9
+ ListReportVersionsRequest,
10
+ ListReportVersionsResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ListReportVersionsCommandInput
15
+ extends ListReportVersionsRequest {}
16
+ export interface ListReportVersionsCommandOutput
17
+ extends ListReportVersionsResponse,
18
+ __MetadataBearer {}
19
+ declare const ListReportVersionsCommand_base: {
20
+ new (
21
+ input: ListReportVersionsCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ ListReportVersionsCommandInput,
24
+ ListReportVersionsCommandOutput,
25
+ ArtifactClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: ListReportVersionsCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ ListReportVersionsCommandInput,
33
+ ListReportVersionsCommandOutput,
34
+ ArtifactClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class ListReportVersionsCommand extends ListReportVersionsCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: ListReportVersionsRequest;
44
+ output: ListReportVersionsResponse;
45
+ };
46
+ sdk: {
47
+ input: ListReportVersionsCommandInput;
48
+ output: ListReportVersionsCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -3,5 +3,6 @@ export * from "./GetReportCommand";
3
3
  export * from "./GetReportMetadataCommand";
4
4
  export * from "./GetTermForReportCommand";
5
5
  export * from "./ListCustomerAgreementsCommand";
6
+ export * from "./ListReportVersionsCommand";
6
7
  export * from "./ListReportsCommand";
7
8
  export * from "./PutAccountSettingsCommand";
@@ -116,3 +116,12 @@ export interface ListReportsResponse {
116
116
  reports?: ReportSummary[] | undefined;
117
117
  nextToken?: string | undefined;
118
118
  }
119
+ export interface ListReportVersionsRequest {
120
+ reportId: string | undefined;
121
+ maxResults?: number | undefined;
122
+ nextToken?: string | undefined;
123
+ }
124
+ export interface ListReportVersionsResponse {
125
+ reports: ReportSummary[] | undefined;
126
+ nextToken?: string | undefined;
127
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListReportVersionsCommandInput,
4
+ ListReportVersionsCommandOutput,
5
+ } from "../commands/ListReportVersionsCommand";
6
+ import { ArtifactPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListReportVersions: (
8
+ config: ArtifactPaginationConfiguration,
9
+ input: ListReportVersionsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListReportVersionsCommandOutput>;
@@ -1,3 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListCustomerAgreementsPaginator";
3
+ export * from "./ListReportVersionsPaginator";
3
4
  export * from "./ListReportsPaginator";
@@ -20,6 +20,8 @@ export declare var ListCustomerAgreementsRequest$: StaticStructureSchema;
20
20
  export declare var ListCustomerAgreementsResponse$: StaticStructureSchema;
21
21
  export declare var ListReportsRequest$: StaticStructureSchema;
22
22
  export declare var ListReportsResponse$: StaticStructureSchema;
23
+ export declare var ListReportVersionsRequest$: StaticStructureSchema;
24
+ export declare var ListReportVersionsResponse$: StaticStructureSchema;
23
25
  export declare var PutAccountSettingsRequest$: StaticStructureSchema;
24
26
  export declare var PutAccountSettingsResponse$: StaticStructureSchema;
25
27
  export declare var ReportDetail$: StaticStructureSchema;
@@ -36,4 +38,5 @@ export declare var GetReportMetadata$: StaticOperationSchema;
36
38
  export declare var GetTermForReport$: StaticOperationSchema;
37
39
  export declare var ListCustomerAgreements$: StaticOperationSchema;
38
40
  export declare var ListReports$: StaticOperationSchema;
41
+ export declare var ListReportVersions$: StaticOperationSchema;
39
42
  export declare var PutAccountSettings$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-artifact",
3
3
  "description": "AWS SDK for JavaScript Artifact Client for Node.js, Browser and React Native",
4
- "version": "3.954.0",
4
+ "version": "3.955.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-artifact",
@@ -22,7 +22,7 @@
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
24
  "@aws-sdk/core": "3.954.0",
25
- "@aws-sdk/credential-provider-node": "3.954.0",
25
+ "@aws-sdk/credential-provider-node": "3.955.0",
26
26
  "@aws-sdk/middleware-host-header": "3.953.0",
27
27
  "@aws-sdk/middleware-logger": "3.953.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.953.0",