forked from awslabs/aws-sdk-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codeartifact.json
8001 lines (8001 loc) · 427 KB
/
codeartifact.json
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
{
"smithy": "2.0",
"metadata": {
"suppressions": [
{
"id": "HttpMethodSemantics",
"namespace": "*"
},
{
"id": "HttpResponseCodeSemantics",
"namespace": "*"
},
{
"id": "PaginatedTrait",
"namespace": "*"
},
{
"id": "HttpHeaderTrait",
"namespace": "*"
},
{
"id": "HttpUriConflict",
"namespace": "*"
},
{
"id": "Service",
"namespace": "*"
}
]
},
"shapes": {
"com.amazonaws.codeartifact#AccessDeniedException": {
"type": "structure",
"members": {
"message": {
"target": "com.amazonaws.codeartifact#String",
"traits": {
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>\n The operation did not succeed because of an unauthorized access attempt.\n </p>",
"smithy.api#error": "client",
"smithy.api#httpError": 403
}
},
"com.amazonaws.codeartifact#AccountId": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 12,
"max": 12
},
"smithy.api#pattern": "^[0-9]{12}$"
}
},
"com.amazonaws.codeartifact#AllowPublish": {
"type": "enum",
"members": {
"ALLOW": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ALLOW"
}
},
"BLOCK": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "BLOCK"
}
}
}
},
"com.amazonaws.codeartifact#AllowUpstream": {
"type": "enum",
"members": {
"ALLOW": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ALLOW"
}
},
"BLOCK": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "BLOCK"
}
}
}
},
"com.amazonaws.codeartifact#Arn": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 1011
},
"smithy.api#pattern": "^\\S+$"
}
},
"com.amazonaws.codeartifact#Asset": {
"type": "blob",
"traits": {
"smithy.api#streaming": {}
}
},
"com.amazonaws.codeartifact#AssetHashes": {
"type": "map",
"key": {
"target": "com.amazonaws.codeartifact#HashAlgorithm"
},
"value": {
"target": "com.amazonaws.codeartifact#HashValue"
}
},
"com.amazonaws.codeartifact#AssetName": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 1,
"max": 255
},
"smithy.api#pattern": "^\\P{C}+$"
}
},
"com.amazonaws.codeartifact#AssetSummary": {
"type": "structure",
"members": {
"name": {
"target": "com.amazonaws.codeartifact#AssetName",
"traits": {
"smithy.api#documentation": "<p>\n The name of the asset.\n </p>",
"smithy.api#required": {}
}
},
"size": {
"target": "com.amazonaws.codeartifact#LongOptional",
"traits": {
"smithy.api#documentation": "<p>\n The size of the asset.\n </p>"
}
},
"hashes": {
"target": "com.amazonaws.codeartifact#AssetHashes",
"traits": {
"smithy.api#documentation": "<p>\n The hashes of the asset.\n </p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>\n Contains details about a package version asset.\n </p>"
}
},
"com.amazonaws.codeartifact#AssetSummaryList": {
"type": "list",
"member": {
"target": "com.amazonaws.codeartifact#AssetSummary"
}
},
"com.amazonaws.codeartifact#AssociateExternalConnection": {
"type": "operation",
"input": {
"target": "com.amazonaws.codeartifact#AssociateExternalConnectionRequest"
},
"output": {
"target": "com.amazonaws.codeartifact#AssociateExternalConnectionResult"
},
"errors": [
{
"target": "com.amazonaws.codeartifact#AccessDeniedException"
},
{
"target": "com.amazonaws.codeartifact#ConflictException"
},
{
"target": "com.amazonaws.codeartifact#InternalServerException"
},
{
"target": "com.amazonaws.codeartifact#ResourceNotFoundException"
},
{
"target": "com.amazonaws.codeartifact#ServiceQuotaExceededException"
},
{
"target": "com.amazonaws.codeartifact#ThrottlingException"
},
{
"target": "com.amazonaws.codeartifact#ValidationException"
}
],
"traits": {
"smithy.api#documentation": "<p>Adds an existing external connection to a repository. One external connection is allowed\n per repository.</p>\n <note>\n <p>A repository can have one or more upstream repositories, or an external connection.</p>\n </note>",
"smithy.api#http": {
"method": "POST",
"uri": "/v1/repository/external-connection",
"code": 200
}
}
},
"com.amazonaws.codeartifact#AssociateExternalConnectionRequest": {
"type": "structure",
"members": {
"domain": {
"target": "com.amazonaws.codeartifact#DomainName",
"traits": {
"smithy.api#documentation": "<p>The name of the domain that contains the repository.</p>",
"smithy.api#httpQuery": "domain",
"smithy.api#required": {}
}
},
"domainOwner": {
"target": "com.amazonaws.codeartifact#AccountId",
"traits": {
"smithy.api#documentation": "<p>\n The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include \n dashes or spaces.\n </p>",
"smithy.api#httpQuery": "domain-owner"
}
},
"repository": {
"target": "com.amazonaws.codeartifact#RepositoryName",
"traits": {
"smithy.api#documentation": "<p>\n The name of the repository to which the external connection is added.\n </p>",
"smithy.api#httpQuery": "repository",
"smithy.api#required": {}
}
},
"externalConnection": {
"target": "com.amazonaws.codeartifact#ExternalConnectionName",
"traits": {
"smithy.api#documentation": "<p>\n The name of the external connection to add to the repository. The following values are supported:\n </p>\n <ul>\n <li>\n <p>\n <code>public:npmjs</code> - for the npm public repository.\n </p>\n </li>\n <li>\n <p>\n <code>public:nuget-org</code> - for the NuGet Gallery.\n </p>\n </li>\n <li>\n <p>\n <code>public:pypi</code> - for the Python Package Index.\n </p>\n </li>\n <li>\n <p>\n <code>public:maven-central</code> - for Maven Central.\n </p>\n </li>\n <li>\n <p>\n <code>public:maven-googleandroid</code> - for the Google Android repository.\n </p>\n </li>\n <li>\n <p>\n <code>public:maven-gradleplugins</code> - for the Gradle plugins repository.\n </p>\n </li>\n <li>\n <p>\n <code>public:maven-commonsware</code> - for the CommonsWare Android repository.\n </p>\n </li>\n <li>\n <p>\n <code>public:maven-clojars</code> - for the Clojars repository. </p>\n </li>\n </ul>",
"smithy.api#httpQuery": "external-connection",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#input": {}
}
},
"com.amazonaws.codeartifact#AssociateExternalConnectionResult": {
"type": "structure",
"members": {
"repository": {
"target": "com.amazonaws.codeartifact#RepositoryDescription",
"traits": {
"smithy.api#documentation": "<p>\n Information about the connected repository after processing the request.\n </p>"
}
}
},
"traits": {
"smithy.api#output": {}
}
},
"com.amazonaws.codeartifact#AssociatedPackage": {
"type": "structure",
"members": {
"format": {
"target": "com.amazonaws.codeartifact#PackageFormat",
"traits": {
"smithy.api#documentation": "<p>A format that specifies the type of the associated package.</p>"
}
},
"namespace": {
"target": "com.amazonaws.codeartifact#PackageNamespace",
"traits": {
"smithy.api#documentation": "<p>The namespace of the associated package. The package component that specifies its \n namespace depends on its type. For example:</p>\n <ul>\n <li>\n <p>\n The namespace of a Maven package version is its <code>groupId</code>.\n </p>\n </li>\n <li>\n <p>\n The namespace of an npm or Swift package version is its <code>scope</code>.\n </p>\n </li>\n <li>\n <p>The namespace of a generic package is its <code>namespace</code>.</p>\n </li>\n <li>\n <p>\n Python, NuGet, and Ruby package versions do not contain a corresponding component, package versions \n of those formats do not have a namespace.\n </p>\n </li>\n </ul>"
}
},
"package": {
"target": "com.amazonaws.codeartifact#PackageName",
"traits": {
"smithy.api#documentation": "<p>\n The name of the associated package.\n </p>"
}
},
"associationType": {
"target": "com.amazonaws.codeartifact#PackageGroupAssociationType",
"traits": {
"smithy.api#documentation": "<p>Describes the strength of the association between the package and package group. A strong match can be thought of as an \n exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. \n For more information about package group pattern matching, including strong and weak matches, see <a href=\"https://docs.aws.amazon.com/codeartifact/latest/ug/package-group-definition-syntax-matching-behavior.html\">Package group definition syntax and matching behavior</a> \n in the <i>CodeArtifact User Guide</i>.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>\n A package associated with a package group.\n </p>"
}
},
"com.amazonaws.codeartifact#AssociatedPackageList": {
"type": "list",
"member": {
"target": "com.amazonaws.codeartifact#AssociatedPackage"
}
},
"com.amazonaws.codeartifact#AuthorizationTokenDurationSeconds": {
"type": "long",
"traits": {
"smithy.api#range": {
"min": 0,
"max": 43200
}
}
},
"com.amazonaws.codeartifact#BooleanOptional": {
"type": "boolean"
},
"com.amazonaws.codeartifact#CodeArtifactControlPlaneService": {
"type": "service",
"version": "2018-09-22",
"operations": [
{
"target": "com.amazonaws.codeartifact#AssociateExternalConnection"
},
{
"target": "com.amazonaws.codeartifact#CopyPackageVersions"
},
{
"target": "com.amazonaws.codeartifact#CreateDomain"
},
{
"target": "com.amazonaws.codeartifact#CreatePackageGroup"
},
{
"target": "com.amazonaws.codeartifact#CreateRepository"
},
{
"target": "com.amazonaws.codeartifact#DeleteDomain"
},
{
"target": "com.amazonaws.codeartifact#DeleteDomainPermissionsPolicy"
},
{
"target": "com.amazonaws.codeartifact#DeletePackage"
},
{
"target": "com.amazonaws.codeartifact#DeletePackageGroup"
},
{
"target": "com.amazonaws.codeartifact#DeletePackageVersions"
},
{
"target": "com.amazonaws.codeartifact#DeleteRepository"
},
{
"target": "com.amazonaws.codeartifact#DeleteRepositoryPermissionsPolicy"
},
{
"target": "com.amazonaws.codeartifact#DescribeDomain"
},
{
"target": "com.amazonaws.codeartifact#DescribePackage"
},
{
"target": "com.amazonaws.codeartifact#DescribePackageGroup"
},
{
"target": "com.amazonaws.codeartifact#DescribePackageVersion"
},
{
"target": "com.amazonaws.codeartifact#DescribeRepository"
},
{
"target": "com.amazonaws.codeartifact#DisassociateExternalConnection"
},
{
"target": "com.amazonaws.codeartifact#DisposePackageVersions"
},
{
"target": "com.amazonaws.codeartifact#GetAssociatedPackageGroup"
},
{
"target": "com.amazonaws.codeartifact#GetAuthorizationToken"
},
{
"target": "com.amazonaws.codeartifact#GetDomainPermissionsPolicy"
},
{
"target": "com.amazonaws.codeartifact#GetPackageVersionAsset"
},
{
"target": "com.amazonaws.codeartifact#GetPackageVersionReadme"
},
{
"target": "com.amazonaws.codeartifact#GetRepositoryEndpoint"
},
{
"target": "com.amazonaws.codeartifact#GetRepositoryPermissionsPolicy"
},
{
"target": "com.amazonaws.codeartifact#ListAllowedRepositoriesForGroup"
},
{
"target": "com.amazonaws.codeartifact#ListAssociatedPackages"
},
{
"target": "com.amazonaws.codeartifact#ListDomains"
},
{
"target": "com.amazonaws.codeartifact#ListPackageGroups"
},
{
"target": "com.amazonaws.codeartifact#ListPackages"
},
{
"target": "com.amazonaws.codeartifact#ListPackageVersionAssets"
},
{
"target": "com.amazonaws.codeartifact#ListPackageVersionDependencies"
},
{
"target": "com.amazonaws.codeartifact#ListPackageVersions"
},
{
"target": "com.amazonaws.codeartifact#ListRepositories"
},
{
"target": "com.amazonaws.codeartifact#ListRepositoriesInDomain"
},
{
"target": "com.amazonaws.codeartifact#ListSubPackageGroups"
},
{
"target": "com.amazonaws.codeartifact#ListTagsForResource"
},
{
"target": "com.amazonaws.codeartifact#PublishPackageVersion"
},
{
"target": "com.amazonaws.codeartifact#PutDomainPermissionsPolicy"
},
{
"target": "com.amazonaws.codeartifact#PutPackageOriginConfiguration"
},
{
"target": "com.amazonaws.codeartifact#PutRepositoryPermissionsPolicy"
},
{
"target": "com.amazonaws.codeartifact#TagResource"
},
{
"target": "com.amazonaws.codeartifact#UntagResource"
},
{
"target": "com.amazonaws.codeartifact#UpdatePackageGroup"
},
{
"target": "com.amazonaws.codeartifact#UpdatePackageGroupOriginConfiguration"
},
{
"target": "com.amazonaws.codeartifact#UpdatePackageVersionsStatus"
},
{
"target": "com.amazonaws.codeartifact#UpdateRepository"
}
],
"traits": {
"aws.api#service": {
"sdkId": "codeartifact",
"arnNamespace": "codeartifact",
"cloudFormationName": "Codeartifact",
"cloudTrailEventSource": "codeartifact.amazonaws.com",
"endpointPrefix": "codeartifact"
},
"aws.auth#sigv4": {
"name": "codeartifact"
},
"aws.protocols#restJson1": {},
"smithy.api#documentation": "<p> CodeArtifact is a fully managed artifact repository compatible with language-native\n package managers and build tools such as npm, Apache Maven, pip, and dotnet. You can use CodeArtifact to\n share packages with development teams and pull packages. Packages can be pulled from both\n public and CodeArtifact repositories. You can also create an upstream relationship between a CodeArtifact\n repository and another repository, which effectively merges their contents from the point of\n view of a package manager client. </p>\n <p>\n <b>CodeArtifact concepts</b>\n </p>\n <ul>\n <li>\n <p>\n <b>Repository</b>: A CodeArtifact repository contains a set of <a href=\"https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html#welcome-concepts-package-version\">package\n versions</a>, each of which maps to a set of assets, or files. Repositories are\n polyglot, so a single repository can contain packages of any supported type. Each\n repository exposes endpoints for fetching and publishing packages using tools such as the <b>\n <code>npm</code>\n </b> CLI or the Maven CLI (<b>\n <code>mvn</code>\n </b>). For a list of supported package managers, see the \n <a href=\"https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html\">CodeArtifact User Guide</a>.</p>\n </li>\n <li>\n <p>\n <b>Domain</b>: Repositories are aggregated into a higher-level entity known as a\n <i>domain</i>. All package assets and metadata are stored in the domain,\n but are consumed through repositories. A given package asset, such as a Maven JAR file, is\n stored once per domain, no matter how many repositories it's present in. All of the assets\n and metadata in a domain are encrypted with the same customer master key (CMK) stored in\n Key Management Service (KMS).</p>\n <p>Each repository is a member of a single domain and can't be moved to a\n different domain.</p>\n <p>The domain allows organizational policy to be applied across multiple\n repositories, such as which accounts can access repositories in the domain, and\n which public repositories can be used as sources of packages.</p>\n <p>Although an organization can have multiple domains, we recommend a single production\n domain that contains all published artifacts so that teams can find and share packages\n across their organization.</p>\n </li>\n <li>\n <p>\n <b>Package</b>: A <i>package</i> is a bundle of software and the metadata required to\n resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, and generic package formats. \n For more information about the supported package formats and how to use CodeArtifact with them, see the \n <a href=\"https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html\">CodeArtifact User Guide</a>.</p>\n <p>In CodeArtifact, a package consists of:</p>\n <ul>\n <li>\n <p>A <i>name</i> (for example, <code>webpack</code> is the name of a\n popular npm package)</p>\n </li>\n <li>\n <p>An optional namespace (for example, <code>@types</code> in <code>@types/node</code>)</p>\n </li>\n <li>\n <p>A set of versions (for example, <code>1.0.0</code>, <code>1.0.1</code>,\n <code>1.0.2</code>, etc.)</p>\n </li>\n <li>\n <p> Package-level metadata (for example, npm tags)</p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <b>Package group</b>: A group of packages that match a specified definition. Package \n groups can be used to apply configuration to multiple packages that match a defined pattern using \n package format, package namespace, and package name. You can use package groups to more conveniently \n configure package origin controls for multiple packages. Package origin controls are used to block or allow ingestion or publishing \n of new package versions, which protects users from malicious actions known as dependency substitution attacks.</p>\n </li>\n <li>\n <p>\n <b>Package version</b>: A version of a package, such as <code>@types/node 12.6.9</code>. The version number\n format and semantics vary for different package formats. For example, npm package versions\n must conform to the <a href=\"https://semver.org/\">Semantic Versioning\n specification</a>. In CodeArtifact, a package version consists of the version identifier,\n metadata at the package version level, and a set of assets.</p>\n </li>\n <li>\n <p>\n <b>Upstream repository</b>: One repository is <i>upstream</i> of another when the package versions in\n it can be accessed from the repository endpoint of the downstream repository, effectively\n merging the contents of the two repositories from the point of view of a client. CodeArtifact\n allows creating an upstream relationship between two repositories.</p>\n </li>\n <li>\n <p>\n <b>Asset</b>: An individual file stored in CodeArtifact associated with a package version, such as an npm\n <code>.tgz</code> file or Maven POM and JAR files.</p>\n </li>\n </ul>\n <p>\n <b>CodeArtifact supported API operations</b>\n </p>\n <ul>\n <li>\n <p>\n <code>AssociateExternalConnection</code>: Adds an existing external \n connection to a repository.\n </p>\n </li>\n <li>\n <p>\n <code>CopyPackageVersions</code>: Copies package versions from one \n repository to another repository in the same domain.</p>\n </li>\n <li>\n <p>\n <code>CreateDomain</code>: Creates a domain.</p>\n </li>\n <li>\n <p>\n <code>CreatePackageGroup</code>: Creates a package group.</p>\n </li>\n <li>\n <p>\n <code>CreateRepository</code>: Creates a CodeArtifact repository in a domain. </p>\n </li>\n <li>\n <p>\n <code>DeleteDomain</code>: Deletes a domain. You cannot delete a domain that contains\n repositories. </p>\n </li>\n <li>\n <p>\n <code>DeleteDomainPermissionsPolicy</code>: Deletes the resource policy that is set on a domain.</p>\n </li>\n <li>\n <p>\n <code>DeletePackage</code>: Deletes a package and all associated package versions.</p>\n </li>\n <li>\n <p>\n <code>DeletePackageGroup</code>: Deletes a package group. Does not delete packages or package versions that are associated with a package group.</p>\n </li>\n <li>\n <p>\n <code>DeletePackageVersions</code>: Deletes versions of a package. After a package has\n been deleted, it can be republished, but its assets and metadata cannot be restored\n because they have been permanently removed from storage.</p>\n </li>\n <li>\n <p>\n <code>DeleteRepository</code>: Deletes a repository. \n </p>\n </li>\n <li>\n <p>\n <code>DeleteRepositoryPermissionsPolicy</code>: Deletes the resource policy that is set on a repository.</p>\n </li>\n <li>\n <p>\n <code>DescribeDomain</code>: Returns a <code>DomainDescription</code> object that\n contains information about the requested domain.</p>\n </li>\n <li>\n <p>\n <code>DescribePackage</code>: Returns a <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDescription.html\">PackageDescription</a>\n object that contains details about a package. </p>\n </li>\n <li>\n <p>\n <code>DescribePackageGroup</code>: Returns a <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageGroup.html\">PackageGroup</a>\n object that contains details about a package group. </p>\n </li>\n <li>\n <p>\n <code>DescribePackageVersion</code>: Returns a <a href=\"https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html\">PackageVersionDescription</a>\n object that contains details about a package version. </p>\n </li>\n <li>\n <p>\n <code>DescribeRepository</code>: Returns a <code>RepositoryDescription</code> object\n that contains detailed information about the requested repository. </p>\n </li>\n <li>\n <p>\n <code>DisposePackageVersions</code>: Disposes versions of a package. A package version\n with the status <code>Disposed</code> cannot be restored because they have been\n permanently removed from storage.</p>\n </li>\n <li>\n <p>\n <code>DisassociateExternalConnection</code>: Removes an existing external connection from a repository. \n </p>\n </li>\n <li>\n <p>\n <code>GetAssociatedPackageGroup</code>: Returns the most closely associated package group to the specified package.</p>\n </li>\n <li>\n <p>\n <code>GetAuthorizationToken</code>: Generates a temporary authorization token for accessing repositories in the domain. The token expires the authorization period has passed. \n The default authorization period is 12 hours and can be customized to any length with a maximum of 12 hours.</p>\n </li>\n <li>\n <p>\n <code>GetDomainPermissionsPolicy</code>: Returns the policy of a resource\n that is attached to the specified domain. </p>\n </li>\n <li>\n <p>\n <code>GetPackageVersionAsset</code>: Returns the contents of an asset that is in a package version. </p>\n </li>\n <li>\n <p>\n <code>GetPackageVersionReadme</code>: Gets the readme file or descriptive text for a package version.</p>\n </li>\n <li>\n <p>\n <code>GetRepositoryEndpoint</code>: Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each \n package format:\n </p>\n <ul>\n <li>\n <p>\n <code>generic</code>\n </p>\n </li>\n <li>\n <p>\n <code>maven</code>\n </p>\n </li>\n <li>\n <p>\n <code>npm</code>\n </p>\n </li>\n <li>\n <p>\n <code>nuget</code>\n </p>\n </li>\n <li>\n <p>\n <code>pypi</code>\n </p>\n </li>\n <li>\n <p>\n <code>ruby</code>\n </p>\n </li>\n <li>\n <p>\n <code>swift</code>\n </p>\n </li>\n </ul>\n </li>\n <li>\n <p>\n <code>GetRepositoryPermissionsPolicy</code>: Returns the resource policy that is set on a repository. \n </p>\n </li>\n <li>\n <p>\n <code>ListAllowedRepositoriesForGroup</code>: Lists the allowed repositories for a package group that has origin configuration set to <code>ALLOW_SPECIFIC_REPOSITORIES</code>.</p>\n </li>\n <li>\n <p>\n <code>ListAssociatedPackages</code>: Returns a list of packages associated with the requested package group.</p>\n </li>\n <li>\n <p>\n <code>ListDomains</code>: Returns a list of <code>DomainSummary</code> objects. Each\n returned <code>DomainSummary</code> object contains information about a domain.</p>\n </li>\n <li>\n <p>\n <code>ListPackages</code>: Lists the packages in a repository.</p>\n </li>\n <li>\n <p>\n <code>ListPackageGroups</code>: Returns a list of package groups in the requested domain.</p>\n </li>\n <li>\n <p>\n <code>ListPackageVersionAssets</code>: Lists the assets for a given package version.</p>\n </li>\n <li>\n <p>\n <code>ListPackageVersionDependencies</code>: Returns a list of the direct dependencies for a\n package version. </p>\n </li>\n <li>\n <p>\n <code>ListPackageVersions</code>: Returns a list of package versions for a specified\n package in a repository.</p>\n </li>\n <li>\n <p>\n <code>ListRepositories</code>: Returns a list of repositories owned by the Amazon Web Services account that called this method.</p>\n </li>\n <li>\n <p>\n <code>ListRepositoriesInDomain</code>: Returns a list of the repositories in a domain.</p>\n </li>\n <li>\n <p>\n <code>ListSubPackageGroups</code>: Returns a list of direct children of the specified package group.</p>\n </li>\n <li>\n <p>\n <code>PublishPackageVersion</code>: Creates a new package version containing one or more assets.</p>\n </li>\n <li>\n <p>\n <code>PutDomainPermissionsPolicy</code>: Attaches a resource policy to a domain.</p>\n </li>\n <li>\n <p>\n <code>PutPackageOriginConfiguration</code>: Sets the package origin configuration for a package, which determine \n how new versions of the package can be added to a specific repository.</p>\n </li>\n <li>\n <p>\n <code>PutRepositoryPermissionsPolicy</code>: Sets the resource policy on a repository\n that specifies permissions to access it. </p>\n </li>\n <li>\n <p>\n <code>UpdatePackageGroup</code>: Updates a package group. This API cannot be used to update a package group's origin configuration or pattern.</p>\n </li>\n <li>\n <p>\n <code>UpdatePackageGroupOriginConfiguration</code>: Updates the package origin configuration for a package group.</p>\n </li>\n <li>\n <p>\n <code>UpdatePackageVersionsStatus</code>: Updates the status of one or more versions of a package.</p>\n </li>\n <li>\n <p>\n <code>UpdateRepository</code>: Updates the properties of a repository.</p>\n </li>\n </ul>",
"smithy.api#title": "CodeArtifact",
"smithy.rules#endpointRuleSet": {
"version": "1.0",
"parameters": {
"Region": {
"builtIn": "AWS::Region",
"required": false,
"documentation": "The AWS region used to dispatch the request.",
"type": "String"
},
"UseDualStack": {
"builtIn": "AWS::UseDualStack",
"required": true,
"default": false,
"documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
"type": "Boolean"
},
"UseFIPS": {
"builtIn": "AWS::UseFIPS",
"required": true,
"default": false,
"documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
"type": "Boolean"
},
"Endpoint": {
"builtIn": "SDK::Endpoint",
"required": false,
"documentation": "Override the endpoint used to send this request",
"type": "String"
}
},
"rules": [
{
"conditions": [
{
"fn": "isSet",
"argv": [
{
"ref": "Endpoint"
}
]
}
],
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
{
"ref": "UseFIPS"
},
true
]
}
],
"error": "Invalid Configuration: FIPS and custom endpoint are not supported",
"type": "error"
},
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
{
"ref": "UseDualStack"
},
true
]
}
],
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported",
"type": "error"
},
{
"conditions": [],
"endpoint": {
"url": {
"ref": "Endpoint"
},
"properties": {},
"headers": {}
},
"type": "endpoint"
}
],
"type": "tree"
},
{
"conditions": [
{
"fn": "isSet",
"argv": [
{
"ref": "Region"
}
]
}
],
"rules": [
{
"conditions": [
{
"fn": "aws.partition",
"argv": [
{
"ref": "Region"
}
],
"assign": "PartitionResult"
}
],
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
{
"ref": "UseFIPS"
},
true
]
},
{
"fn": "booleanEquals",
"argv": [
{
"ref": "UseDualStack"
},
true
]
}
],
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
true,
{
"fn": "getAttr",
"argv": [
{
"ref": "PartitionResult"
},
"supportsFIPS"
]
}
]
},
{
"fn": "booleanEquals",
"argv": [
true,
{
"fn": "getAttr",
"argv": [
{
"ref": "PartitionResult"
},
"supportsDualStack"
]
}
]
}
],
"rules": [
{
"conditions": [],
"endpoint": {
"url": "https://codeartifact-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
"properties": {},
"headers": {}
},
"type": "endpoint"
}
],
"type": "tree"
},
{
"conditions": [],
"error": "FIPS and DualStack are enabled, but this partition does not support one or both",
"type": "error"
}
],
"type": "tree"
},
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
{
"ref": "UseFIPS"
},
true
]
}
],
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
{
"fn": "getAttr",
"argv": [
{
"ref": "PartitionResult"
},
"supportsFIPS"
]
},
true
]
}
],
"rules": [
{
"conditions": [],
"endpoint": {
"url": "https://codeartifact-fips.{Region}.{PartitionResult#dnsSuffix}",
"properties": {},
"headers": {}
},
"type": "endpoint"
}
],
"type": "tree"
},
{
"conditions": [],
"error": "FIPS is enabled but this partition does not support FIPS",
"type": "error"
}
],
"type": "tree"
},
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
{
"ref": "UseDualStack"
},
true
]
}
],
"rules": [
{
"conditions": [
{
"fn": "booleanEquals",
"argv": [
true,
{
"fn": "getAttr",
"argv": [
{
"ref": "PartitionResult"
},
"supportsDualStack"
]
}
]
}
],
"rules": [
{
"conditions": [],
"endpoint": {
"url": "https://codeartifact.{Region}.{PartitionResult#dualStackDnsSuffix}",
"properties": {},
"headers": {}
},
"type": "endpoint"
}
],
"type": "tree"
},
{
"conditions": [],
"error": "DualStack is enabled but this partition does not support DualStack",
"type": "error"
}
],
"type": "tree"
},
{
"conditions": [],
"endpoint": {
"url": "https://codeartifact.{Region}.{PartitionResult#dnsSuffix}",
"properties": {},
"headers": {}
},
"type": "endpoint"
}
],
"type": "tree"
}
],
"type": "tree"
},
{
"conditions": [],
"error": "Invalid Configuration: Missing Region",
"type": "error"
}
]
},
"smithy.rules#endpointTests": {
"testCases": [
{
"documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.ap-northeast-1.amazonaws.com"
}
},
"params": {
"Region": "ap-northeast-1",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.ap-south-1.amazonaws.com"
}
},
"params": {
"Region": "ap-south-1",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.ap-southeast-1.amazonaws.com"
}
},
"params": {
"Region": "ap-southeast-1",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.ap-southeast-2.amazonaws.com"
}
},
"params": {
"Region": "ap-southeast-2",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.eu-central-1.amazonaws.com"
}
},
"params": {
"Region": "eu-central-1",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region eu-north-1 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.eu-north-1.amazonaws.com"
}
},
"params": {
"Region": "eu-north-1",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region eu-south-1 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.eu-south-1.amazonaws.com"
}
},
"params": {
"Region": "eu-south-1",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.eu-west-1.amazonaws.com"
}
},
"params": {
"Region": "eu-west-1",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.eu-west-2.amazonaws.com"
}
},
"params": {
"Region": "eu-west-2",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.eu-west-3.amazonaws.com"
}
},
"params": {
"Region": "eu-west-3",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region us-east-1 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.us-east-1.amazonaws.com"
}
},
"params": {
"Region": "us-east-1",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region us-east-2 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.us-east-2.amazonaws.com"
}
},
"params": {
"Region": "us-east-2",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region us-west-2 with FIPS disabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.us-west-2.amazonaws.com"
}
},
"params": {
"Region": "us-west-2",
"UseFIPS": false,
"UseDualStack": false
}
},
{
"documentation": "For region us-east-1 with FIPS enabled and DualStack enabled",
"expect": {
"endpoint": {
"url": "https://codeartifact-fips.us-east-1.api.aws"
}
},
"params": {
"Region": "us-east-1",
"UseFIPS": true,
"UseDualStack": true
}
},
{
"documentation": "For region us-east-1 with FIPS enabled and DualStack disabled",
"expect": {
"endpoint": {
"url": "https://codeartifact-fips.us-east-1.amazonaws.com"
}
},
"params": {
"Region": "us-east-1",
"UseFIPS": true,
"UseDualStack": false
}
},
{
"documentation": "For region us-east-1 with FIPS disabled and DualStack enabled",
"expect": {
"endpoint": {
"url": "https://codeartifact.us-east-1.api.aws"
}
},
"params": {
"Region": "us-east-1",
"UseFIPS": false,
"UseDualStack": true
}
},
{
"documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled",
"expect": {
"endpoint": {
"url": "https://codeartifact-fips.cn-north-1.api.amazonwebservices.com.cn"
}
},
"params": {
"Region": "cn-north-1",
"UseFIPS": true,
"UseDualStack": true