codeartifact.d.ts
83.5 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
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
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
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-base';
import {Readable} from 'stream';
interface Blob {}
declare class CodeArtifact extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: CodeArtifact.Types.ClientConfiguration)
config: Config & CodeArtifact.Types.ClientConfiguration;
/**
* Adds an existing external connection to a repository. One external connection is allowed per repository. A repository can have one or more upstream repositories, or an external connection.
*/
associateExternalConnection(params: CodeArtifact.Types.AssociateExternalConnectionRequest, callback?: (err: AWSError, data: CodeArtifact.Types.AssociateExternalConnectionResult) => void): Request<CodeArtifact.Types.AssociateExternalConnectionResult, AWSError>;
/**
* Adds an existing external connection to a repository. One external connection is allowed per repository. A repository can have one or more upstream repositories, or an external connection.
*/
associateExternalConnection(callback?: (err: AWSError, data: CodeArtifact.Types.AssociateExternalConnectionResult) => void): Request<CodeArtifact.Types.AssociateExternalConnectionResult, AWSError>;
/**
* Copies package versions from one repository to another repository in the same domain. You must specify versions or versionRevisions. You cannot specify both.
*/
copyPackageVersions(params: CodeArtifact.Types.CopyPackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.CopyPackageVersionsResult) => void): Request<CodeArtifact.Types.CopyPackageVersionsResult, AWSError>;
/**
* Copies package versions from one repository to another repository in the same domain. You must specify versions or versionRevisions. You cannot specify both.
*/
copyPackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.CopyPackageVersionsResult) => void): Request<CodeArtifact.Types.CopyPackageVersionsResult, AWSError>;
/**
* Creates a domain. CodeArtifact domains make it easier to manage multiple repositories across an organization. You can use a domain to apply permissions across many repositories owned by different AWS accounts. An asset is stored only once in a domain, even if it's in multiple repositories. Although you can have multiple domains, we recommend a single production domain that contains all published artifacts so that your development teams can find and share packages. You can use a second pre-production domain to test changes to the production domain configuration.
*/
createDomain(params: CodeArtifact.Types.CreateDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.CreateDomainResult) => void): Request<CodeArtifact.Types.CreateDomainResult, AWSError>;
/**
* Creates a domain. CodeArtifact domains make it easier to manage multiple repositories across an organization. You can use a domain to apply permissions across many repositories owned by different AWS accounts. An asset is stored only once in a domain, even if it's in multiple repositories. Although you can have multiple domains, we recommend a single production domain that contains all published artifacts so that your development teams can find and share packages. You can use a second pre-production domain to test changes to the production domain configuration.
*/
createDomain(callback?: (err: AWSError, data: CodeArtifact.Types.CreateDomainResult) => void): Request<CodeArtifact.Types.CreateDomainResult, AWSError>;
/**
* Creates a repository.
*/
createRepository(params: CodeArtifact.Types.CreateRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.CreateRepositoryResult) => void): Request<CodeArtifact.Types.CreateRepositoryResult, AWSError>;
/**
* Creates a repository.
*/
createRepository(callback?: (err: AWSError, data: CodeArtifact.Types.CreateRepositoryResult) => void): Request<CodeArtifact.Types.CreateRepositoryResult, AWSError>;
/**
* Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories.
*/
deleteDomain(params: CodeArtifact.Types.DeleteDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainResult) => void): Request<CodeArtifact.Types.DeleteDomainResult, AWSError>;
/**
* Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories.
*/
deleteDomain(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainResult) => void): Request<CodeArtifact.Types.DeleteDomainResult, AWSError>;
/**
* Deletes the resource policy set on a domain.
*/
deleteDomainPermissionsPolicy(params: CodeArtifact.Types.DeleteDomainPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteDomainPermissionsPolicyResult, AWSError>;
/**
* Deletes the resource policy set on a domain.
*/
deleteDomainPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteDomainPermissionsPolicyResult, AWSError>;
/**
* Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If you want to remove a package version from your repository and be able to restore it later, set its status to Archived. Archived packages cannot be downloaded from a repository and don't show up with list package APIs (for example, ListackageVersions ), but you can restore them using UpdatePackageVersionsStatus .
*/
deletePackageVersions(params: CodeArtifact.Types.DeletePackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeletePackageVersionsResult) => void): Request<CodeArtifact.Types.DeletePackageVersionsResult, AWSError>;
/**
* Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If you want to remove a package version from your repository and be able to restore it later, set its status to Archived. Archived packages cannot be downloaded from a repository and don't show up with list package APIs (for example, ListackageVersions ), but you can restore them using UpdatePackageVersionsStatus .
*/
deletePackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.DeletePackageVersionsResult) => void): Request<CodeArtifact.Types.DeletePackageVersionsResult, AWSError>;
/**
* Deletes a repository.
*/
deleteRepository(params: CodeArtifact.Types.DeleteRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryResult) => void): Request<CodeArtifact.Types.DeleteRepositoryResult, AWSError>;
/**
* Deletes a repository.
*/
deleteRepository(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryResult) => void): Request<CodeArtifact.Types.DeleteRepositoryResult, AWSError>;
/**
* Deletes the resource policy that is set on a repository. After a resource policy is deleted, the permissions allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be immediate. Use DeleteRepositoryPermissionsPolicy with caution. After a policy is deleted, AWS users, roles, and accounts lose permissions to perform the repository actions granted by the deleted policy.
*/
deleteRepositoryPermissionsPolicy(params: CodeArtifact.Types.DeleteRepositoryPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult, AWSError>;
/**
* Deletes the resource policy that is set on a repository. After a resource policy is deleted, the permissions allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be immediate. Use DeleteRepositoryPermissionsPolicy with caution. After a policy is deleted, AWS users, roles, and accounts lose permissions to perform the repository actions granted by the deleted policy.
*/
deleteRepositoryPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult, AWSError>;
/**
* Returns a DomainDescription object that contains information about the requested domain.
*/
describeDomain(params: CodeArtifact.Types.DescribeDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DescribeDomainResult) => void): Request<CodeArtifact.Types.DescribeDomainResult, AWSError>;
/**
* Returns a DomainDescription object that contains information about the requested domain.
*/
describeDomain(callback?: (err: AWSError, data: CodeArtifact.Types.DescribeDomainResult) => void): Request<CodeArtifact.Types.DescribeDomainResult, AWSError>;
/**
* Returns a PackageVersionDescription object that contains information about the requested package version.
*/
describePackageVersion(params: CodeArtifact.Types.DescribePackageVersionRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DescribePackageVersionResult) => void): Request<CodeArtifact.Types.DescribePackageVersionResult, AWSError>;
/**
* Returns a PackageVersionDescription object that contains information about the requested package version.
*/
describePackageVersion(callback?: (err: AWSError, data: CodeArtifact.Types.DescribePackageVersionResult) => void): Request<CodeArtifact.Types.DescribePackageVersionResult, AWSError>;
/**
* Returns a RepositoryDescription object that contains detailed information about the requested repository.
*/
describeRepository(params: CodeArtifact.Types.DescribeRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DescribeRepositoryResult) => void): Request<CodeArtifact.Types.DescribeRepositoryResult, AWSError>;
/**
* Returns a RepositoryDescription object that contains detailed information about the requested repository.
*/
describeRepository(callback?: (err: AWSError, data: CodeArtifact.Types.DescribeRepositoryResult) => void): Request<CodeArtifact.Types.DescribeRepositoryResult, AWSError>;
/**
* Removes an existing external connection from a repository.
*/
disassociateExternalConnection(params: CodeArtifact.Types.DisassociateExternalConnectionRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DisassociateExternalConnectionResult) => void): Request<CodeArtifact.Types.DisassociateExternalConnectionResult, AWSError>;
/**
* Removes an existing external connection from a repository.
*/
disassociateExternalConnection(callback?: (err: AWSError, data: CodeArtifact.Types.DisassociateExternalConnectionResult) => void): Request<CodeArtifact.Types.DisassociateExternalConnectionResult, AWSError>;
/**
* Deletes the assets in package versions and sets the package versions' status to Disposed. A disposed package version cannot be restored in your repository because its assets are deleted. To view all disposed package versions in a repository, use ListackageVersions and set the status parameter to Disposed. To view information about a disposed package version, use ListPackageVersions and set the status parameter to Disposed.
*/
disposePackageVersions(params: CodeArtifact.Types.DisposePackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DisposePackageVersionsResult) => void): Request<CodeArtifact.Types.DisposePackageVersionsResult, AWSError>;
/**
* Deletes the assets in package versions and sets the package versions' status to Disposed. A disposed package version cannot be restored in your repository because its assets are deleted. To view all disposed package versions in a repository, use ListackageVersions and set the status parameter to Disposed. To view information about a disposed package version, use ListPackageVersions and set the status parameter to Disposed.
*/
disposePackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.DisposePackageVersionsResult) => void): Request<CodeArtifact.Types.DisposePackageVersionsResult, AWSError>;
/**
* Generates a temporary authentication token for accessing repositories in the domain. This API requires the codeartifact:GetAuthorizationToken and sts:GetServiceBearerToken permissions. CodeArtifact authorization tokens are valid for a period of 12 hours when created with the login command. You can call login periodically to refresh the token. When you create an authorization token with the GetAuthorizationToken API, you can set a custom authorization period, up to a maximum of 12 hours, with the durationSeconds parameter. The authorization period begins after login or GetAuthorizationToken is called. If login or GetAuthorizationToken is called while assuming a role, the token lifetime is independent of the maximum session duration of the role. For example, if you call sts assume-role and specify a session duration of 15 minutes, then generate a CodeArtifact authorization token, the token will be valid for the full authorization period even though this is longer than the 15-minute session duration. See Using IAM Roles for more information on controlling session duration.
*/
getAuthorizationToken(params: CodeArtifact.Types.GetAuthorizationTokenRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetAuthorizationTokenResult) => void): Request<CodeArtifact.Types.GetAuthorizationTokenResult, AWSError>;
/**
* Generates a temporary authentication token for accessing repositories in the domain. This API requires the codeartifact:GetAuthorizationToken and sts:GetServiceBearerToken permissions. CodeArtifact authorization tokens are valid for a period of 12 hours when created with the login command. You can call login periodically to refresh the token. When you create an authorization token with the GetAuthorizationToken API, you can set a custom authorization period, up to a maximum of 12 hours, with the durationSeconds parameter. The authorization period begins after login or GetAuthorizationToken is called. If login or GetAuthorizationToken is called while assuming a role, the token lifetime is independent of the maximum session duration of the role. For example, if you call sts assume-role and specify a session duration of 15 minutes, then generate a CodeArtifact authorization token, the token will be valid for the full authorization period even though this is longer than the 15-minute session duration. See Using IAM Roles for more information on controlling session duration.
*/
getAuthorizationToken(callback?: (err: AWSError, data: CodeArtifact.Types.GetAuthorizationTokenResult) => void): Request<CodeArtifact.Types.GetAuthorizationTokenResult, AWSError>;
/**
* Returns the resource policy attached to the specified domain. The policy is a resource-based policy, not an identity-based policy. For more information, see Identity-based policies and resource-based policies in the AWS Identity and Access Management User Guide.
*/
getDomainPermissionsPolicy(params: CodeArtifact.Types.GetDomainPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetDomainPermissionsPolicyResult, AWSError>;
/**
* Returns the resource policy attached to the specified domain. The policy is a resource-based policy, not an identity-based policy. For more information, see Identity-based policies and resource-based policies in the AWS Identity and Access Management User Guide.
*/
getDomainPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.GetDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetDomainPermissionsPolicyResult, AWSError>;
/**
* Returns an asset (or file) that is in a package. For example, for a Maven package version, use GetPackageVersionAsset to download a JAR file, a POM file, or any other assets in the package version.
*/
getPackageVersionAsset(params: CodeArtifact.Types.GetPackageVersionAssetRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionAssetResult) => void): Request<CodeArtifact.Types.GetPackageVersionAssetResult, AWSError>;
/**
* Returns an asset (or file) that is in a package. For example, for a Maven package version, use GetPackageVersionAsset to download a JAR file, a POM file, or any other assets in the package version.
*/
getPackageVersionAsset(callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionAssetResult) => void): Request<CodeArtifact.Types.GetPackageVersionAssetResult, AWSError>;
/**
* Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact extracts a description from a metadata file. For example, from the <description> element in the pom.xml file of a Maven package. The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.
*/
getPackageVersionReadme(params: CodeArtifact.Types.GetPackageVersionReadmeRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionReadmeResult) => void): Request<CodeArtifact.Types.GetPackageVersionReadmeResult, AWSError>;
/**
* Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact extracts a description from a metadata file. For example, from the <description> element in the pom.xml file of a Maven package. The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.
*/
getPackageVersionReadme(callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionReadmeResult) => void): Request<CodeArtifact.Types.GetPackageVersionReadmeResult, AWSError>;
/**
* Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format: npm pypi maven
*/
getRepositoryEndpoint(params: CodeArtifact.Types.GetRepositoryEndpointRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryEndpointResult) => void): Request<CodeArtifact.Types.GetRepositoryEndpointResult, AWSError>;
/**
* Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format: npm pypi maven
*/
getRepositoryEndpoint(callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryEndpointResult) => void): Request<CodeArtifact.Types.GetRepositoryEndpointResult, AWSError>;
/**
* Returns the resource policy that is set on a repository.
*/
getRepositoryPermissionsPolicy(params: CodeArtifact.Types.GetRepositoryPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetRepositoryPermissionsPolicyResult, AWSError>;
/**
* Returns the resource policy that is set on a repository.
*/
getRepositoryPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetRepositoryPermissionsPolicyResult, AWSError>;
/**
* Returns a list of DomainSummary objects for all domains owned by the AWS account that makes this call. Each returned DomainSummary object contains information about a domain.
*/
listDomains(params: CodeArtifact.Types.ListDomainsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListDomainsResult) => void): Request<CodeArtifact.Types.ListDomainsResult, AWSError>;
/**
* Returns a list of DomainSummary objects for all domains owned by the AWS account that makes this call. Each returned DomainSummary object contains information about a domain.
*/
listDomains(callback?: (err: AWSError, data: CodeArtifact.Types.ListDomainsResult) => void): Request<CodeArtifact.Types.ListDomainsResult, AWSError>;
/**
* Returns a list of AssetSummary objects for assets in a package version.
*/
listPackageVersionAssets(params: CodeArtifact.Types.ListPackageVersionAssetsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionAssetsResult) => void): Request<CodeArtifact.Types.ListPackageVersionAssetsResult, AWSError>;
/**
* Returns a list of AssetSummary objects for assets in a package version.
*/
listPackageVersionAssets(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionAssetsResult) => void): Request<CodeArtifact.Types.ListPackageVersionAssetsResult, AWSError>;
/**
* Returns the direct dependencies for a package version. The dependencies are returned as PackageDependency objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package format (for example, the package.json file for npm packages and the pom.xml file for Maven). Any package version dependencies that are not listed in the configuration file are not returned.
*/
listPackageVersionDependencies(params: CodeArtifact.Types.ListPackageVersionDependenciesRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionDependenciesResult) => void): Request<CodeArtifact.Types.ListPackageVersionDependenciesResult, AWSError>;
/**
* Returns the direct dependencies for a package version. The dependencies are returned as PackageDependency objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package format (for example, the package.json file for npm packages and the pom.xml file for Maven). Any package version dependencies that are not listed in the configuration file are not returned.
*/
listPackageVersionDependencies(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionDependenciesResult) => void): Request<CodeArtifact.Types.ListPackageVersionDependenciesResult, AWSError>;
/**
* Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters.
*/
listPackageVersions(params: CodeArtifact.Types.ListPackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionsResult) => void): Request<CodeArtifact.Types.ListPackageVersionsResult, AWSError>;
/**
* Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters.
*/
listPackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionsResult) => void): Request<CodeArtifact.Types.ListPackageVersionsResult, AWSError>;
/**
* Returns a list of PackageSummary objects for packages in a repository that match the request parameters.
*/
listPackages(params: CodeArtifact.Types.ListPackagesRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackagesResult) => void): Request<CodeArtifact.Types.ListPackagesResult, AWSError>;
/**
* Returns a list of PackageSummary objects for packages in a repository that match the request parameters.
*/
listPackages(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackagesResult) => void): Request<CodeArtifact.Types.ListPackagesResult, AWSError>;
/**
* Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified AWS account and that matches the input parameters.
*/
listRepositories(params: CodeArtifact.Types.ListRepositoriesRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesResult) => void): Request<CodeArtifact.Types.ListRepositoriesResult, AWSError>;
/**
* Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified AWS account and that matches the input parameters.
*/
listRepositories(callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesResult) => void): Request<CodeArtifact.Types.ListRepositoriesResult, AWSError>;
/**
* Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified domain and that matches the input parameters.
*/
listRepositoriesInDomain(params: CodeArtifact.Types.ListRepositoriesInDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesInDomainResult) => void): Request<CodeArtifact.Types.ListRepositoriesInDomainResult, AWSError>;
/**
* Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified domain and that matches the input parameters.
*/
listRepositoriesInDomain(callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesInDomainResult) => void): Request<CodeArtifact.Types.ListRepositoriesInDomainResult, AWSError>;
/**
* Sets a resource policy on a domain that specifies permissions to access it.
*/
putDomainPermissionsPolicy(params: CodeArtifact.Types.PutDomainPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.PutDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutDomainPermissionsPolicyResult, AWSError>;
/**
* Sets a resource policy on a domain that specifies permissions to access it.
*/
putDomainPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.PutDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutDomainPermissionsPolicyResult, AWSError>;
/**
* Sets the resource policy on a repository that specifies permissions to access it.
*/
putRepositoryPermissionsPolicy(params: CodeArtifact.Types.PutRepositoryPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.PutRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutRepositoryPermissionsPolicyResult, AWSError>;
/**
* Sets the resource policy on a repository that specifies permissions to access it.
*/
putRepositoryPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.PutRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutRepositoryPermissionsPolicyResult, AWSError>;
/**
* Updates the status of one or more versions of a package.
*/
updatePackageVersionsStatus(params: CodeArtifact.Types.UpdatePackageVersionsStatusRequest, callback?: (err: AWSError, data: CodeArtifact.Types.UpdatePackageVersionsStatusResult) => void): Request<CodeArtifact.Types.UpdatePackageVersionsStatusResult, AWSError>;
/**
* Updates the status of one or more versions of a package.
*/
updatePackageVersionsStatus(callback?: (err: AWSError, data: CodeArtifact.Types.UpdatePackageVersionsStatusResult) => void): Request<CodeArtifact.Types.UpdatePackageVersionsStatusResult, AWSError>;
/**
* Update the properties of a repository.
*/
updateRepository(params: CodeArtifact.Types.UpdateRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.UpdateRepositoryResult) => void): Request<CodeArtifact.Types.UpdateRepositoryResult, AWSError>;
/**
* Update the properties of a repository.
*/
updateRepository(callback?: (err: AWSError, data: CodeArtifact.Types.UpdateRepositoryResult) => void): Request<CodeArtifact.Types.UpdateRepositoryResult, AWSError>;
}
declare namespace CodeArtifact {
export type AccountId = string;
export type Arn = string;
export type Asset = Buffer|Uint8Array|Blob|string|Readable;
export type AssetHashes = {[key: string]: HashValue};
export type AssetName = string;
export interface AssetSummary {
/**
* The name of the asset.
*/
name: AssetName;
/**
* The size of the asset.
*/
size?: LongOptional;
/**
* The hashes of the asset.
*/
hashes?: AssetHashes;
}
export type AssetSummaryList = AssetSummary[];
export interface AssociateExternalConnectionRequest {
/**
* The name of the domain that contains the repository.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository to which the external connection is added.
*/
repository: RepositoryName;
/**
* The name of the external connection to add to the repository. The following values are supported: public:npmjs - for the npm public repository. public:pypi - for the Python Package Index. public:maven-central - for Maven Central. public:maven-googleandroid - for the Google Android repository. public:maven-gradleplugins - for the Gradle plugins repository. public:maven-commonsware - for the CommonsWare Android repository.
*/
externalConnection: ExternalConnectionName;
}
export interface AssociateExternalConnectionResult {
/**
* Information about the connected repository after processing the request.
*/
repository?: RepositoryDescription;
}
export type AuthorizationTokenDurationSeconds = number;
export type BooleanOptional = boolean;
export interface CopyPackageVersionsRequest {
/**
* The name of the domain that contains the source and destination repositories.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository that contains the package versions to copy.
*/
sourceRepository: RepositoryName;
/**
* The name of the repository into which package versions are copied.
*/
destinationRepository: RepositoryName;
/**
* The format of the package that is copied. The valid package types are: npm: A Node Package Manager (npm) package. pypi: A Python Package Index (PyPI) package. maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.
*/
format: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package that is copied.
*/
package: PackageName;
/**
* The versions of the package to copy. You must specify versions or versionRevisions. You cannot specify both.
*/
versions?: PackageVersionList;
/**
* A list of key-value pairs. The keys are package versions and the values are package version revisions. A CopyPackageVersion operation succeeds if the specified versions in the source repository match the specified package version revision. You must specify versions or versionRevisions. You cannot specify both.
*/
versionRevisions?: PackageVersionRevisionMap;
/**
* Set to true to overwrite a package version that already exists in the destination repository. If set to false and the package version already exists in the destination repository, the package version is returned in the failedVersions field of the response with an ALREADY_EXISTS error code.
*/
allowOverwrite?: BooleanOptional;
/**
* Set to true to copy packages from repositories that are upstream from the source repository to the destination repository. The default setting is false. For more information, see Working with upstream repositories.
*/
includeFromUpstream?: BooleanOptional;
}
export interface CopyPackageVersionsResult {
/**
* A list of the package versions that were successfully copied to your repository.
*/
successfulVersions?: SuccessfulPackageVersionInfoMap;
/**
* A map of package versions that failed to copy and their error codes. The possible error codes are in the PackageVersionError data type. They are: ALREADY_EXISTS MISMATCHED_REVISION MISMATCHED_STATUS NOT_ALLOWED NOT_FOUND SKIPPED
*/
failedVersions?: PackageVersionErrorMap;
}
export interface CreateDomainRequest {
/**
* The name of the domain to create. All domain names in an AWS Region that are in the same AWS account must be unique. The domain name is used as the prefix in DNS hostnames. Do not use sensitive information in a domain name because it is publicly discoverable.
*/
domain: DomainName;
/**
* The encryption key for the domain. This is used to encrypt content stored in a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a key alias, or a key alias ARN. To specify an encryptionKey, your IAM role must have kms:DescribeKey and kms:CreateGrant permissions on the encryption key that is used. For more information, see DescribeKey in the AWS Key Management Service API Reference and AWS KMS API Permissions Reference in the AWS Key Management Service Developer Guide. CodeArtifact supports only symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more information, see Using symmetric and asymmetric keys in the AWS Key Management Service Developer Guide.
*/
encryptionKey?: Arn;
}
export interface CreateDomainResult {
/**
* Contains information about the created domain after processing the request.
*/
domain?: DomainDescription;
}
export interface CreateRepositoryRequest {
/**
* The domain that contains the created repository.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository to create.
*/
repository: RepositoryName;
/**
* A description of the created repository.
*/
description?: Description;
/**
* A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
*/
upstreams?: UpstreamRepositoryList;
}
export interface CreateRepositoryResult {
/**
* Information about the created repository after processing the request.
*/
repository?: RepositoryDescription;
}
export interface DeleteDomainPermissionsPolicyRequest {
/**
* The name of the domain associated with the resource policy to be deleted.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The current revision of the resource policy to be deleted. This revision is used for optimistic locking, which prevents others from overwriting your changes to the domain's resource policy.
*/
policyRevision?: PolicyRevision;
}
export interface DeleteDomainPermissionsPolicyResult {
/**
* Information about the deleted resource policy after processing the request.
*/
policy?: ResourcePolicy;
}
export interface DeleteDomainRequest {
/**
* The name of the domain to delete.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
}
export interface DeleteDomainResult {
/**
* Contains information about the deleted domain after processing the request.
*/
domain?: DomainDescription;
}
export interface DeletePackageVersionsRequest {
/**
* The name of the domain that contains the package to delete.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository that contains the package versions to delete.
*/
repository: RepositoryName;
/**
* The format of the package versions to delete. The valid values are: npm pypi maven
*/
format: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package with the versions to delete.
*/
package: PackageName;
/**
* An array of strings that specify the versions of the package to delete.
*/
versions: PackageVersionList;
/**
* The expected status of the package version to delete. Valid values are: Published Unfinished Unlisted Archived Disposed
*/
expectedStatus?: PackageVersionStatus;
}
export interface DeletePackageVersionsResult {
/**
* A list of the package versions that were successfully deleted.
*/
successfulVersions?: SuccessfulPackageVersionInfoMap;
/**
* A PackageVersionError object that contains a map of errors codes for the deleted package that failed. The possible error codes are: ALREADY_EXISTS MISMATCHED_REVISION MISMATCHED_STATUS NOT_ALLOWED NOT_FOUND SKIPPED
*/
failedVersions?: PackageVersionErrorMap;
}
export interface DeleteRepositoryPermissionsPolicyRequest {
/**
* The name of the domain that contains the repository associated with the resource policy to be deleted.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository that is associated with the resource policy to be deleted
*/
repository: RepositoryName;
/**
* The revision of the repository's resource policy to be deleted. This revision is used for optimistic locking, which prevents others from accidentally overwriting your changes to the repository's resource policy.
*/
policyRevision?: PolicyRevision;
}
export interface DeleteRepositoryPermissionsPolicyResult {
/**
* Information about the deleted policy after processing the request.
*/
policy?: ResourcePolicy;
}
export interface DeleteRepositoryRequest {
/**
* The name of the domain that contains the repository to delete.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository to delete.
*/
repository: RepositoryName;
}
export interface DeleteRepositoryResult {
/**
* Information about the deleted repository after processing the request.
*/
repository?: RepositoryDescription;
}
export interface DescribeDomainRequest {
/**
* A string that specifies the name of the requested domain.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
}
export interface DescribeDomainResult {
domain?: DomainDescription;
}
export interface DescribePackageVersionRequest {
/**
* The name of the domain that contains the repository that contains the package version.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository that contains the package version.
*/
repository: RepositoryName;
/**
* A format that specifies the type of the requested package version. The valid values are: npm pypi maven
*/
format: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the requested package version.
*/
package: PackageName;
/**
* A string that contains the package version (for example, 3.5.2).
*/
packageVersion: PackageVersion;
}
export interface DescribePackageVersionResult {
/**
* A PackageVersionDescription object that contains information about the requested package version.
*/
packageVersion: PackageVersionDescription;
}
export interface DescribeRepositoryRequest {
/**
* The name of the domain that contains the repository to describe.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* A string that specifies the name of the requested repository.
*/
repository: RepositoryName;
}
export interface DescribeRepositoryResult {
/**
* A RepositoryDescription object that contains the requested repository information.
*/
repository?: RepositoryDescription;
}
export type Description = string;
export interface DisassociateExternalConnectionRequest {
/**
* The name of the domain that contains the repository from which to remove the external repository.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository from which the external connection will be removed.
*/
repository: RepositoryName;
/**
* The name of the external connection to be removed from the repository.
*/
externalConnection: ExternalConnectionName;
}
export interface DisassociateExternalConnectionResult {
/**
* The repository associated with the removed external connection.
*/
repository?: RepositoryDescription;
}
export interface DisposePackageVersionsRequest {
/**
* The name of the domain that contains the repository you want to dispose.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository that contains the package versions you want to dispose.
*/
repository: RepositoryName;
/**
* A format that specifies the type of package versions you want to dispose. The valid values are: npm pypi maven
*/
format: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package with the versions you want to dispose.
*/
package: PackageName;
/**
* The versions of the package you want to dispose.
*/
versions: PackageVersionList;
/**
* The revisions of the package versions you want to dispose.
*/
versionRevisions?: PackageVersionRevisionMap;
/**
* The expected status of the package version to dispose. Valid values are: Published Unfinished Unlisted Archived Disposed
*/
expectedStatus?: PackageVersionStatus;
}
export interface DisposePackageVersionsResult {
/**
* A list of the package versions that were successfully disposed.
*/
successfulVersions?: SuccessfulPackageVersionInfoMap;
/**
* A PackageVersionError object that contains a map of errors codes for the disposed package versions that failed. The possible error codes are: ALREADY_EXISTS MISMATCHED_REVISION MISMATCHED_STATUS NOT_ALLOWED NOT_FOUND SKIPPED
*/
failedVersions?: PackageVersionErrorMap;
}
export interface DomainDescription {
/**
* The name of the domain.
*/
name?: DomainName;
/**
* The AWS account ID that owns the domain.
*/
owner?: AccountId;
/**
* The Amazon Resource Name (ARN) of the domain.
*/
arn?: Arn;
/**
* The current status of a domain. The valid values are Active Deleted
*/
status?: DomainStatus;
/**
* A timestamp that represents the date and time the domain was created.
*/
createdTime?: Timestamp;
/**
* The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain.
*/
encryptionKey?: Arn;
/**
* The number of repositories in the domain.
*/
repositoryCount?: Integer;
/**
* The total size of all assets in the domain.
*/
assetSizeBytes?: Long;
}
export type DomainName = string;
export type DomainStatus = "Active"|"Deleted"|string;
export interface DomainSummary {
/**
* The name of the domain.
*/
name?: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
owner?: AccountId;
/**
* The ARN of the domain.
*/
arn?: Arn;
/**
* A string that contains the status of the domain. The valid values are: Active Deleted
*/
status?: DomainStatus;
/**
* A timestamp that contains the date and time the domain was created.
*/
createdTime?: Timestamp;
/**
* The key used to encrypt the domain.
*/
encryptionKey?: Arn;
}
export type DomainSummaryList = DomainSummary[];
export type ErrorMessage = string;
export type ExternalConnectionName = string;
export type ExternalConnectionStatus = "Available"|string;
export interface GetAuthorizationTokenRequest {
/**
* The name of the domain that is in scope for the generated authorization token.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The time, in seconds, that the generated authorization token is valid.
*/
durationSeconds?: AuthorizationTokenDurationSeconds;
}
export interface GetAuthorizationTokenResult {
/**
* The returned authentication token.
*/
authorizationToken?: String;
/**
* A timestamp that specifies the date and time the authorization token expires.
*/
expiration?: Timestamp;
}
export interface GetDomainPermissionsPolicyRequest {
/**
* The name of the domain to which the resource policy is attached.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
}
export interface GetDomainPermissionsPolicyResult {
/**
* The returned resource policy.
*/
policy?: ResourcePolicy;
}
export interface GetPackageVersionAssetRequest {
/**
* The domain that contains the repository that contains the package version with the requested asset.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The repository that contains the package version with the requested asset.
*/
repository: RepositoryName;
/**
* A format that specifies the type of the package version with the requested asset file. The valid values are: npm pypi maven
*/
format: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package that contains the requested asset.
*/
package: PackageName;
/**
* A string that contains the package version (for example, 3.5.2).
*/
packageVersion: PackageVersion;
/**
* The name of the requested asset.
*/
asset: AssetName;
/**
* The name of the package version revision that contains the requested asset.
*/
packageVersionRevision?: PackageVersionRevision;
}
export interface GetPackageVersionAssetResult {
/**
* The binary file, or asset, that is downloaded.
*/
asset?: Asset;
/**
* The name of the asset that is downloaded.
*/
assetName?: AssetName;
/**
* A string that contains the package version (for example, 3.5.2).
*/
packageVersion?: PackageVersion;
/**
* The name of the package version revision that contains the downloaded asset.
*/
packageVersionRevision?: PackageVersionRevision;
}
export interface GetPackageVersionReadmeRequest {
/**
* The name of the domain that contains the repository that contains the package version with the requested readme file.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The repository that contains the package with the requested readme file.
*/
repository: RepositoryName;
/**
* A format that specifies the type of the package version with the requested readme file. The valid values are: npm pypi maven
*/
format: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package version that contains the requested readme file.
*/
package: PackageName;
/**
* A string that contains the package version (for example, 3.5.2).
*/
packageVersion: PackageVersion;
}
export interface GetPackageVersionReadmeResult {
/**
* The format of the package with the requested readme file. Valid format types are: npm pypi maven
*/
format?: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package that contains the returned readme file.
*/
package?: PackageName;
/**
* The version of the package with the requested readme file.
*/
version?: PackageVersion;
/**
* The current revision associated with the package version.
*/
versionRevision?: PackageVersionRevision;
/**
* The text of the returned readme file.
*/
readme?: String;
}
export interface GetRepositoryEndpointRequest {
/**
* The name of the domain that contains the repository.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository.
*/
repository: RepositoryName;
/**
* Returns which endpoint of a repository to return. A repository has one endpoint for each package format: npm pypi maven
*/
format: PackageFormat;
}
export interface GetRepositoryEndpointResult {
/**
* A string that specifies the URL of the returned endpoint.
*/
repositoryEndpoint?: String;
}
export interface GetRepositoryPermissionsPolicyRequest {
/**
* The name of the domain containing the repository whose associated resource policy is to be retrieved.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository whose associated resource policy is to be retrieved.
*/
repository: RepositoryName;
}
export interface GetRepositoryPermissionsPolicyResult {
/**
* The returned resource policy.
*/
policy?: ResourcePolicy;
}
export type HashAlgorithm = "MD5"|"SHA-1"|"SHA-256"|"SHA-512"|string;
export type HashValue = string;
export type Integer = number;
export interface LicenseInfo {
/**
* Name of the license.
*/
name?: String;
/**
* The URL for license data.
*/
url?: String;
}
export type LicenseInfoList = LicenseInfo[];
export type ListDomainsMaxResults = number;
export interface ListDomainsRequest {
/**
* The maximum number of results to return per page.
*/
maxResults?: ListDomainsMaxResults;
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
nextToken?: PaginationToken;
}
export interface ListDomainsResult {
/**
* The returned list of DomainSummary objects.
*/
domains?: DomainSummaryList;
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
nextToken?: PaginationToken;
}
export type ListPackageVersionAssetsMaxResults = number;
export interface ListPackageVersionAssetsRequest {
/**
* The name of the domain that contains the repository associated with the package version assets.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository that contains the package that contains the returned package version assets.
*/
repository: RepositoryName;
/**
* The format of the package that contains the returned package version assets. The valid package types are: npm: A Node Package Manager (npm) package. pypi: A Python Package Index (PyPI) package. maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.
*/
format: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package that contains the returned package version assets.
*/
package: PackageName;
/**
* A string that contains the package version (for example, 3.5.2).
*/
packageVersion: PackageVersion;
/**
* The maximum number of results to return per page.
*/
maxResults?: ListPackageVersionAssetsMaxResults;
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
nextToken?: PaginationToken;
}
export interface ListPackageVersionAssetsResult {
/**
* The format of the package that contains the returned package version assets.
*/
format?: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package that contains the returned package version assets.
*/
package?: PackageName;
/**
* The version of the package associated with the returned assets.
*/
version?: PackageVersion;
/**
* The current revision associated with the package version.
*/
versionRevision?: PackageVersionRevision;
/**
* If there are additional results, this is the token for the next set of results.
*/
nextToken?: PaginationToken;
/**
* The returned list of AssetSummary objects.
*/
assets?: AssetSummaryList;
}
export interface ListPackageVersionDependenciesRequest {
/**
* The domain that contains the repository that contains the requested package version dependencies.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository that contains the requested package version.
*/
repository: RepositoryName;
/**
* The format of the package with the requested dependencies. The valid package types are: npm: A Node Package Manager (npm) package. pypi: A Python Package Index (PyPI) package. maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.
*/
format: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package versions' package.
*/
package: PackageName;
/**
* A string that contains the package version (for example, 3.5.2).
*/
packageVersion: PackageVersion;
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
nextToken?: PaginationToken;
}
export interface ListPackageVersionDependenciesResult {
/**
* A format that specifies the type of the package that contains the returned dependencies. The valid values are: npm pypi maven
*/
format?: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package that contains the returned package versions dependencies.
*/
package?: PackageName;
/**
* The version of the package that is specified in the request.
*/
version?: PackageVersion;
/**
* The current revision associated with the package version.
*/
versionRevision?: PackageVersionRevision;
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
nextToken?: PaginationToken;
/**
* The returned list of PackageDependency objects.
*/
dependencies?: PackageDependencyList;
}
export type ListPackageVersionsMaxResults = number;
export interface ListPackageVersionsRequest {
/**
* The name of the domain that contains the repository that contains the returned package versions.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository that contains the package.
*/
repository: RepositoryName;
/**
* The format of the returned packages. The valid package types are: npm: A Node Package Manager (npm) package. pypi: A Python Package Index (PyPI) package. maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.
*/
format: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package for which you want to return a list of package versions.
*/
package: PackageName;
/**
* A string that specifies the status of the package versions to include in the returned list. It can be one of the following: Published Unfinished Unlisted Archived Disposed
*/
status?: PackageVersionStatus;
/**
* How to sort the returned list of package versions.
*/
sortBy?: PackageVersionSortType;
/**
* The maximum number of results to return per page.
*/
maxResults?: ListPackageVersionsMaxResults;
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
nextToken?: PaginationToken;
}
export interface ListPackageVersionsResult {
/**
* The default package version to display. This depends on the package format: For Maven and PyPI packages, it's the most recently published package version. For npm packages, it's the version referenced by the latest tag. If the latest tag is not set, it's the most recently published package version.
*/
defaultDisplayVersion?: PackageVersion;
/**
* A format of the package. Valid package format values are: npm pypi maven
*/
format?: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package.
*/
package?: PackageName;
/**
* The returned list of PackageVersionSummary objects.
*/
versions?: PackageVersionSummaryList;
/**
* If there are additional results, this is the token for the next set of results.
*/
nextToken?: PaginationToken;
}
export type ListPackagesMaxResults = number;
export interface ListPackagesRequest {
/**
* The domain that contains the repository that contains the requested list of packages.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository from which packages are to be listed.
*/
repository: RepositoryName;
/**
* The format of the packages. The valid package types are: npm: A Node Package Manager (npm) package. pypi: A Python Package Index (PyPI) package. maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.
*/
format?: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix are returned.
*/
packagePrefix?: PackageName;
/**
* The maximum number of results to return per page.
*/
maxResults?: ListPackagesMaxResults;
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
nextToken?: PaginationToken;
}
export interface ListPackagesResult {
/**
* The list of returned PackageSummary objects.
*/
packages?: PackageSummaryList;
/**
* If there are additional results, this is the token for the next set of results.
*/
nextToken?: PaginationToken;
}
export type ListRepositoriesInDomainMaxResults = number;
export interface ListRepositoriesInDomainRequest {
/**
* The name of the domain that contains the returned list of repositories.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* Filter the list of repositories to only include those that are managed by the AWS account ID.
*/
administratorAccount?: AccountId;
/**
* A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix are returned.
*/
repositoryPrefix?: RepositoryName;
/**
* The maximum number of results to return per page.
*/
maxResults?: ListRepositoriesInDomainMaxResults;
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
nextToken?: PaginationToken;
}
export interface ListRepositoriesInDomainResult {
/**
* The returned list of repositories.
*/
repositories?: RepositorySummaryList;
/**
* If there are additional results, this is the token for the next set of results.
*/
nextToken?: PaginationToken;
}
export type ListRepositoriesMaxResults = number;
export interface ListRepositoriesRequest {
/**
* A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix are returned.
*/
repositoryPrefix?: RepositoryName;
/**
* The maximum number of results to return per page.
*/
maxResults?: ListRepositoriesMaxResults;
/**
* The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
*/
nextToken?: PaginationToken;
}
export interface ListRepositoriesResult {
/**
* The returned list of RepositorySummary objects.
*/
repositories?: RepositorySummaryList;
/**
* If there are additional results, this is the token for the next set of results.
*/
nextToken?: PaginationToken;
}
export type Long = number;
export type LongOptional = number;
export interface PackageDependency {
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package that this package depends on.
*/
package?: PackageName;
/**
* The type of a package dependency. The possible values depend on the package type. Example types are compile, runtime, and test for Maven packages, and dev, prod, and optional for npm packages.
*/
dependencyType?: String;
/**
* The required version, or version range, of the package that this package depends on. The version format is specific to the package type. For example, the following are possible valid required versions: 1.2.3, ^2.3.4, or 4.x.
*/
versionRequirement?: String;
}
export type PackageDependencyList = PackageDependency[];
export type PackageFormat = "npm"|"pypi"|"maven"|string;
export type PackageName = string;
export type PackageNamespace = string;
export interface PackageSummary {
/**
* The format of the package. Valid values are: npm pypi maven
*/
format?: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package.
*/
package?: PackageName;
}
export type PackageSummaryList = PackageSummary[];
export type PackageVersion = string;
export interface PackageVersionDescription {
/**
* The format of the package version. The valid package formats are: npm: A Node Package Manager (npm) package. pypi: A Python Package Index (PyPI) package. maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.
*/
format?: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the requested package.
*/
packageName?: PackageName;
/**
* The name of the package that is displayed. The displayName varies depending on the package version's format. For example, if an npm package is named ui, is in the namespace vue, and has the format npm, then the displayName is @vue/ui.
*/
displayName?: String255;
/**
* The version of the package.
*/
version?: PackageVersion;
/**
* A summary of the package version. The summary is extracted from the package. The information in and detail level of the summary depends on the package version's format.
*/
summary?: String;
/**
* The homepage associated with the package.
*/
homePage?: String;
/**
* The repository for the source code in the package version, or the source code used to build it.
*/
sourceCodeRepository?: String;
/**
* A timestamp that contains the date and time the package version was published.
*/
publishedTime?: Timestamp;
/**
* Information about licenses associated with the package version.
*/
licenses?: LicenseInfoList;
/**
* The revision of the package version.
*/
revision?: PackageVersionRevision;
/**
* A string that contains the status of the package version. It can be one of the following: Published Unfinished Unlisted Archived Disposed
*/
status?: PackageVersionStatus;
}
export interface PackageVersionError {
/**
* The error code associated with the error. Valid error codes are: ALREADY_EXISTS MISMATCHED_REVISION MISMATCHED_STATUS NOT_ALLOWED NOT_FOUND SKIPPED
*/
errorCode?: PackageVersionErrorCode;
/**
* The error message associated with the error.
*/
errorMessage?: ErrorMessage;
}
export type PackageVersionErrorCode = "ALREADY_EXISTS"|"MISMATCHED_REVISION"|"MISMATCHED_STATUS"|"NOT_ALLOWED"|"NOT_FOUND"|"SKIPPED"|string;
export type PackageVersionErrorMap = {[key: string]: PackageVersionError};
export type PackageVersionList = PackageVersion[];
export type PackageVersionRevision = string;
export type PackageVersionRevisionMap = {[key: string]: PackageVersionRevision};
export type PackageVersionSortType = "PUBLISHED_TIME"|string;
export type PackageVersionStatus = "Published"|"Unfinished"|"Unlisted"|"Archived"|"Disposed"|"Deleted"|string;
export interface PackageVersionSummary {
/**
* Information about a package version.
*/
version: PackageVersion;
/**
* The revision associated with a package version.
*/
revision?: PackageVersionRevision;
/**
* A string that contains the status of the package version. It can be one of the following: Published Unfinished Unlisted Archived Disposed
*/
status: PackageVersionStatus;
}
export type PackageVersionSummaryList = PackageVersionSummary[];
export type PaginationToken = string;
export type PolicyDocument = string;
export type PolicyRevision = string;
export interface PutDomainPermissionsPolicyRequest {
/**
* The name of the domain on which to set the resource policy.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The current revision of the resource policy to be set. This revision is used for optimistic locking, which prevents others from overwriting your changes to the domain's resource policy.
*/
policyRevision?: PolicyRevision;
/**
* A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided domain.
*/
policyDocument: PolicyDocument;
}
export interface PutDomainPermissionsPolicyResult {
/**
* The resource policy that was set after processing the request.
*/
policy?: ResourcePolicy;
}
export interface PutRepositoryPermissionsPolicyRequest {
/**
* The name of the domain containing the repository to set the resource policy on.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository to set the resource policy on.
*/
repository: RepositoryName;
/**
* Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy.
*/
policyRevision?: PolicyRevision;
/**
* A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository.
*/
policyDocument: PolicyDocument;
}
export interface PutRepositoryPermissionsPolicyResult {
/**
* The resource policy that was set after processing the request.
*/
policy?: ResourcePolicy;
}
export interface RepositoryDescription {
/**
* The name of the repository.
*/
name?: RepositoryName;
/**
* The 12-digit account number of the AWS account that manages the repository.
*/
administratorAccount?: AccountId;
/**
* The name of the domain that contains the repository.
*/
domainName?: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The Amazon Resource Name (ARN) of the repository.
*/
arn?: Arn;
/**
* A text description of the repository.
*/
description?: Description;
/**
* A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
*/
upstreams?: UpstreamRepositoryInfoList;
/**
* An array of external connections associated with the repository.
*/
externalConnections?: RepositoryExternalConnectionInfoList;
}
export interface RepositoryExternalConnectionInfo {
/**
* The name of the external connection associated with a repository.
*/
externalConnectionName?: ExternalConnectionName;
/**
* The package format associated with a repository's external connection. The valid package formats are: npm: A Node Package Manager (npm) package. pypi: A Python Package Index (PyPI) package. maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.
*/
packageFormat?: PackageFormat;
/**
* The status of the external connection of a repository. There is one valid value, Available.
*/
status?: ExternalConnectionStatus;
}
export type RepositoryExternalConnectionInfoList = RepositoryExternalConnectionInfo[];
export type RepositoryName = string;
export interface RepositorySummary {
/**
* The name of the repository.
*/
name?: RepositoryName;
/**
* The AWS account ID that manages the repository.
*/
administratorAccount?: AccountId;
/**
* The name of the domain that contains the repository.
*/
domainName?: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The ARN of the repository.
*/
arn?: Arn;
/**
* The description of the repository.
*/
description?: Description;
}
export type RepositorySummaryList = RepositorySummary[];
export interface ResourcePolicy {
/**
* The ARN of the resource associated with the resource policy
*/
resourceArn?: Arn;
/**
* The current revision of the resource policy.
*/
revision?: PolicyRevision;
/**
* The resource policy formatted in JSON.
*/
document?: PolicyDocument;
}
export type String = string;
export type String255 = string;
export interface SuccessfulPackageVersionInfo {
/**
* The revision of a package version.
*/
revision?: String;
/**
* The status of a package version. Valid statuses are: Published Unfinished Unlisted Archived Disposed
*/
status?: PackageVersionStatus;
}
export type SuccessfulPackageVersionInfoMap = {[key: string]: SuccessfulPackageVersionInfo};
export type Timestamp = Date;
export interface UpdatePackageVersionsStatusRequest {
/**
* The domain that contains the repository that contains the package versions with a status to be updated.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The repository that contains the package versions with the status you want to update.
*/
repository: RepositoryName;
/**
* A format that specifies the type of the package with the statuses to update. The valid values are: npm pypi maven
*/
format: PackageFormat;
/**
* The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace.
*/
namespace?: PackageNamespace;
/**
* The name of the package with the version statuses to update.
*/
package: PackageName;
/**
* An array of strings that specify the versions of the package with the statuses to update.
*/
versions: PackageVersionList;
/**
* A map of package versions and package version revisions. The map key is the package version (for example, 3.5.2), and the map value is the package version revision.
*/
versionRevisions?: PackageVersionRevisionMap;
/**
* The package version’s expected status before it is updated. If expectedStatus is provided, the package version's status is updated only if its status at the time UpdatePackageVersionsStatus is called matches expectedStatus.
*/
expectedStatus?: PackageVersionStatus;
/**
* The status you want to change the package version status to.
*/
targetStatus: PackageVersionStatus;
}
export interface UpdatePackageVersionsStatusResult {
/**
* A list of PackageVersionError objects, one for each package version with a status that failed to update.
*/
successfulVersions?: SuccessfulPackageVersionInfoMap;
/**
* A list of SuccessfulPackageVersionInfo objects, one for each package version with a status that successfully updated.
*/
failedVersions?: PackageVersionErrorMap;
}
export interface UpdateRepositoryRequest {
/**
* The name of the domain associated with the repository to update.
*/
domain: DomainName;
/**
* The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
*/
domainOwner?: AccountId;
/**
* The name of the repository to update.
*/
repository: RepositoryName;
/**
* An updated repository description.
*/
description?: Description;
/**
* A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories.
*/
upstreams?: UpstreamRepositoryList;
}
export interface UpdateRepositoryResult {
/**
* The updated repository.
*/
repository?: RepositoryDescription;
}
export interface UpstreamRepository {
/**
* The name of an upstream repository.
*/
repositoryName: RepositoryName;
}
export interface UpstreamRepositoryInfo {
/**
* The name of an upstream repository.
*/
repositoryName?: RepositoryName;
}
export type UpstreamRepositoryInfoList = UpstreamRepositoryInfo[];
export type UpstreamRepositoryList = UpstreamRepository[];
/**
* 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 = "2018-09-22"|"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 CodeArtifact client.
*/
export import Types = CodeArtifact;
}
export = CodeArtifact;