aws-sdk-codeartifact 1.25.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04e4dc94c04a4a043e984f85a62de2b2d67c2e6e0ddfb39f9aaa49fa69e47534
4
- data.tar.gz: a66c4173b0bc5995761ddffddb50d955b3aff65a827f7d33b5b2d9eaee411e5b
3
+ metadata.gz: a2d9a44854dc471d0906f5f183fadc85e4f2d5828f9a3d78da8e4079d10b5a5f
4
+ data.tar.gz: f0658ca0b27254592f3519ed62ec617598dae4825faec9e5f8eec9046939a09a
5
5
  SHA512:
6
- metadata.gz: 96b11f28bef8a42bc5b7309afee06267a214cb527e0ca7885c5190113175c5edc088e443112e85cc15c290882d737b50a197c1e827896bf0a7ece24a8bb62373
7
- data.tar.gz: 2da71734ebb24b998e59e9fe47f61308417468f8a55cf2cb6c29015eefe60a115db2567360fbc62cbb53d37b91645db9a50a2cb695f66783978887466deb9599
6
+ metadata.gz: 40e4bd6ca111e04e2b84251687f8dabede64b195cd4c80795c0a3e9495960b3ee0017df2a5511833635a71ddf5572c274d322ecfa4824ff242f7b64c1f5a6e63
7
+ data.tar.gz: 562a82fe5dd76ab7b8bb43a0025a6bf7756b26f49bf85cbf1cb4593be9dbfc5a9d79dce76185e1947b5b1d334ff212781004236b98528e6f2b39a7be04bc3258
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.27.0 (2023-03-23)
5
+ ------------------
6
+
7
+ * Feature - Repository CreationTime is added to the CreateRepository and ListRepositories API responses.
8
+
9
+ 1.26.0 (2023-03-09)
10
+ ------------------
11
+
12
+ * Feature - This release introduces the generic package format, a mechanism for storing arbitrary binary assets. It also adds a new API, PublishPackageVersion, to allow for publishing generic packages.
13
+
4
14
  1.25.0 (2023-01-31)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.25.0
1
+ 1.27.0
@@ -404,6 +404,8 @@ module Aws::CodeArtifact
404
404
  #
405
405
  # * `public:maven-commonsware` - for the CommonsWare Android repository.
406
406
  #
407
+ # * `public:maven-clojars` - for the Clojars repository.
408
+ #
407
409
  # @return [Types::AssociateExternalConnectionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
408
410
  #
409
411
  # * {Types::AssociateExternalConnectionResult#repository #repository} => Types::RepositoryDescription
@@ -429,8 +431,9 @@ module Aws::CodeArtifact
429
431
  # resp.repository.upstreams[0].repository_name #=> String
430
432
  # resp.repository.external_connections #=> Array
431
433
  # resp.repository.external_connections[0].external_connection_name #=> String
432
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
434
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
433
435
  # resp.repository.external_connections[0].status #=> String, one of "Available"
436
+ # resp.repository.created_time #=> Time
434
437
  #
435
438
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociateExternalConnection AWS API Documentation
436
439
  #
@@ -481,6 +484,8 @@ module Aws::CodeArtifact
481
484
  # component, package versions of those formats do not have a
482
485
  # namespace.
483
486
  #
487
+ # * The namespace of a generic package is its `namespace`.
488
+ #
484
489
  # @option params [required, String] :package
485
490
  # The name of the package that contains the versions to be copied.
486
491
  #
@@ -532,7 +537,7 @@ module Aws::CodeArtifact
532
537
  # domain_owner: "AccountId",
533
538
  # source_repository: "RepositoryName", # required
534
539
  # destination_repository: "RepositoryName", # required
535
- # format: "npm", # required, accepts npm, pypi, maven, nuget
540
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
536
541
  # namespace: "PackageNamespace",
537
542
  # package: "PackageName", # required
538
543
  # versions: ["PackageVersion"],
@@ -707,8 +712,9 @@ module Aws::CodeArtifact
707
712
  # resp.repository.upstreams[0].repository_name #=> String
708
713
  # resp.repository.external_connections #=> Array
709
714
  # resp.repository.external_connections[0].external_connection_name #=> String
710
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
715
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
711
716
  # resp.repository.external_connections[0].status #=> String, one of "Available"
717
+ # resp.repository.created_time #=> Time
712
718
  #
713
719
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateRepository AWS API Documentation
714
720
  #
@@ -837,6 +843,8 @@ module Aws::CodeArtifact
837
843
  # * Python and NuGet packages do not contain corresponding components,
838
844
  # packages of those formats do not have a namespace.
839
845
  #
846
+ # * The namespace of a generic package is its `namespace`.
847
+ #
840
848
  # @option params [required, String] :package
841
849
  # The name of the package to delete.
842
850
  #
@@ -850,14 +858,14 @@ module Aws::CodeArtifact
850
858
  # domain: "DomainName", # required
851
859
  # domain_owner: "AccountId",
852
860
  # repository: "RepositoryName", # required
853
- # format: "npm", # required, accepts npm, pypi, maven, nuget
861
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
854
862
  # namespace: "PackageNamespace",
855
863
  # package: "PackageName", # required
856
864
  # })
857
865
  #
858
866
  # @example Response structure
859
867
  #
860
- # resp.deleted_package.format #=> String, one of "npm", "pypi", "maven", "nuget"
868
+ # resp.deleted_package.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
861
869
  # resp.deleted_package.namespace #=> String
862
870
  # resp.deleted_package.package #=> String
863
871
  # resp.deleted_package.origin_configuration.restrictions.publish #=> String, one of "ALLOW", "BLOCK"
@@ -877,7 +885,7 @@ module Aws::CodeArtifact
877
885
  # version from your repository and be able to restore it later, set its
878
886
  # status to `Archived`. Archived packages cannot be downloaded from a
879
887
  # repository and don't show up with list package APIs (for example,
880
- # [ListackageVersions][1]), but you can restore them using
888
+ # [ListPackageVersions][1]), but you can restore them using
881
889
  # [UpdatePackageVersionsStatus][2].
882
890
  #
883
891
  #
@@ -913,6 +921,8 @@ module Aws::CodeArtifact
913
921
  # component, package versions of those formats do not have a
914
922
  # namespace.
915
923
  #
924
+ # * The namespace of a generic package is its `namespace`.
925
+ #
916
926
  # @option params [required, String] :package
917
927
  # The name of the package with the versions to delete.
918
928
  #
@@ -934,7 +944,7 @@ module Aws::CodeArtifact
934
944
  # domain: "DomainName", # required
935
945
  # domain_owner: "AccountId",
936
946
  # repository: "RepositoryName", # required
937
- # format: "npm", # required, accepts npm, pypi, maven, nuget
947
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
938
948
  # namespace: "PackageNamespace",
939
949
  # package: "PackageName", # required
940
950
  # versions: ["PackageVersion"], # required
@@ -995,8 +1005,9 @@ module Aws::CodeArtifact
995
1005
  # resp.repository.upstreams[0].repository_name #=> String
996
1006
  # resp.repository.external_connections #=> Array
997
1007
  # resp.repository.external_connections[0].external_connection_name #=> String
998
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
1008
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
999
1009
  # resp.repository.external_connections[0].status #=> String, one of "Available"
1010
+ # resp.repository.created_time #=> Time
1000
1011
  #
1001
1012
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepository AWS API Documentation
1002
1013
  #
@@ -1142,6 +1153,8 @@ module Aws::CodeArtifact
1142
1153
  # * Python and NuGet packages do not contain a corresponding component,
1143
1154
  # packages of those formats do not have a namespace.
1144
1155
  #
1156
+ # * The namespace of a generic package is its `namespace`.
1157
+ #
1145
1158
  # @option params [required, String] :package
1146
1159
  # The name of the requested package.
1147
1160
  #
@@ -1155,14 +1168,14 @@ module Aws::CodeArtifact
1155
1168
  # domain: "DomainName", # required
1156
1169
  # domain_owner: "AccountId",
1157
1170
  # repository: "RepositoryName", # required
1158
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1171
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1159
1172
  # namespace: "PackageNamespace",
1160
1173
  # package: "PackageName", # required
1161
1174
  # })
1162
1175
  #
1163
1176
  # @example Response structure
1164
1177
  #
1165
- # resp.package.format #=> String, one of "npm", "pypi", "maven", "nuget"
1178
+ # resp.package.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1166
1179
  # resp.package.namespace #=> String
1167
1180
  # resp.package.name #=> String
1168
1181
  # resp.package.origin_configuration.restrictions.publish #=> String, one of "ALLOW", "BLOCK"
@@ -1211,6 +1224,8 @@ module Aws::CodeArtifact
1211
1224
  # component, package versions of those formats do not have a
1212
1225
  # namespace.
1213
1226
  #
1227
+ # * The namespace of a generic package is its `namespace`.
1228
+ #
1214
1229
  # @option params [required, String] :package
1215
1230
  # The name of the requested package version.
1216
1231
  #
@@ -1227,7 +1242,7 @@ module Aws::CodeArtifact
1227
1242
  # domain: "DomainName", # required
1228
1243
  # domain_owner: "AccountId",
1229
1244
  # repository: "RepositoryName", # required
1230
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1245
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1231
1246
  # namespace: "PackageNamespace",
1232
1247
  # package: "PackageName", # required
1233
1248
  # package_version: "PackageVersion", # required
@@ -1235,7 +1250,7 @@ module Aws::CodeArtifact
1235
1250
  #
1236
1251
  # @example Response structure
1237
1252
  #
1238
- # resp.package_version.format #=> String, one of "npm", "pypi", "maven", "nuget"
1253
+ # resp.package_version.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1239
1254
  # resp.package_version.namespace #=> String
1240
1255
  # resp.package_version.package_name #=> String
1241
1256
  # resp.package_version.display_name #=> String
@@ -1299,8 +1314,9 @@ module Aws::CodeArtifact
1299
1314
  # resp.repository.upstreams[0].repository_name #=> String
1300
1315
  # resp.repository.external_connections #=> Array
1301
1316
  # resp.repository.external_connections[0].external_connection_name #=> String
1302
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
1317
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1303
1318
  # resp.repository.external_connections[0].status #=> String, one of "Available"
1319
+ # resp.repository.created_time #=> Time
1304
1320
  #
1305
1321
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeRepository AWS API Documentation
1306
1322
  #
@@ -1353,8 +1369,9 @@ module Aws::CodeArtifact
1353
1369
  # resp.repository.upstreams[0].repository_name #=> String
1354
1370
  # resp.repository.external_connections #=> Array
1355
1371
  # resp.repository.external_connections[0].external_connection_name #=> String
1356
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
1372
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1357
1373
  # resp.repository.external_connections[0].status #=> String, one of "Available"
1374
+ # resp.repository.created_time #=> Time
1358
1375
  #
1359
1376
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisassociateExternalConnection AWS API Documentation
1360
1377
  #
@@ -1411,6 +1428,8 @@ module Aws::CodeArtifact
1411
1428
  # component, package versions of those formats do not have a
1412
1429
  # namespace.
1413
1430
  #
1431
+ # * The namespace of a generic package is its `namespace`.
1432
+ #
1414
1433
  # @option params [required, String] :package
1415
1434
  # The name of the package with the versions you want to dispose.
1416
1435
  #
@@ -1434,7 +1453,7 @@ module Aws::CodeArtifact
1434
1453
  # domain: "DomainName", # required
1435
1454
  # domain_owner: "AccountId",
1436
1455
  # repository: "RepositoryName", # required
1437
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1456
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1438
1457
  # namespace: "PackageNamespace",
1439
1458
  # package: "PackageName", # required
1440
1459
  # versions: ["PackageVersion"], # required
@@ -1614,6 +1633,8 @@ module Aws::CodeArtifact
1614
1633
  # component, package versions of those formats do not have a
1615
1634
  # namespace.
1616
1635
  #
1636
+ # * The namespace of a generic package is its `namespace`.
1637
+ #
1617
1638
  # @option params [required, String] :package
1618
1639
  # The name of the package that contains the requested asset.
1619
1640
  #
@@ -1640,7 +1661,7 @@ module Aws::CodeArtifact
1640
1661
  # domain: "DomainName", # required
1641
1662
  # domain_owner: "AccountId",
1642
1663
  # repository: "RepositoryName", # required
1643
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1664
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1644
1665
  # namespace: "PackageNamespace",
1645
1666
  # package: "PackageName", # required
1646
1667
  # package_version: "PackageVersion", # required
@@ -1685,18 +1706,11 @@ module Aws::CodeArtifact
1685
1706
  # A format that specifies the type of the package version with the
1686
1707
  # requested readme file.
1687
1708
  #
1688
- # <note markdown="1"> Although `maven` is listed as a valid value, CodeArtifact does not
1689
- # support displaying readme files for Maven packages.
1690
- #
1691
- # </note>
1692
- #
1693
1709
  # @option params [String] :namespace
1694
1710
  # The namespace of the package version with the requested readme file.
1695
1711
  # The package version component that specifies its namespace depends on
1696
1712
  # its type. For example:
1697
1713
  #
1698
- # * The namespace of a Maven package version is its `groupId`.
1699
- #
1700
1714
  # * The namespace of an npm package version is its `scope`.
1701
1715
  #
1702
1716
  # * Python and NuGet package versions do not contain a corresponding
@@ -1725,7 +1739,7 @@ module Aws::CodeArtifact
1725
1739
  # domain: "DomainName", # required
1726
1740
  # domain_owner: "AccountId",
1727
1741
  # repository: "RepositoryName", # required
1728
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1742
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1729
1743
  # namespace: "PackageNamespace",
1730
1744
  # package: "PackageName", # required
1731
1745
  # package_version: "PackageVersion", # required
@@ -1733,7 +1747,7 @@ module Aws::CodeArtifact
1733
1747
  #
1734
1748
  # @example Response structure
1735
1749
  #
1736
- # resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
1750
+ # resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1737
1751
  # resp.namespace #=> String
1738
1752
  # resp.package #=> String
1739
1753
  # resp.version #=> String
@@ -1785,7 +1799,7 @@ module Aws::CodeArtifact
1785
1799
  # domain: "DomainName", # required
1786
1800
  # domain_owner: "AccountId",
1787
1801
  # repository: "RepositoryName", # required
1788
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1802
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1789
1803
  # })
1790
1804
  #
1791
1805
  # @example Response structure
@@ -1928,6 +1942,8 @@ module Aws::CodeArtifact
1928
1942
  # component, package versions of those formats do not have a
1929
1943
  # namespace.
1930
1944
  #
1945
+ # * The namespace of a generic package is its `namespace`.
1946
+ #
1931
1947
  # @option params [required, String] :package
1932
1948
  # The name of the package that contains the requested package version
1933
1949
  # assets.
@@ -1961,7 +1977,7 @@ module Aws::CodeArtifact
1961
1977
  # domain: "DomainName", # required
1962
1978
  # domain_owner: "AccountId",
1963
1979
  # repository: "RepositoryName", # required
1964
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1980
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1965
1981
  # namespace: "PackageNamespace",
1966
1982
  # package: "PackageName", # required
1967
1983
  # package_version: "PackageVersion", # required
@@ -1971,7 +1987,7 @@ module Aws::CodeArtifact
1971
1987
  #
1972
1988
  # @example Response structure
1973
1989
  #
1974
- # resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
1990
+ # resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1975
1991
  # resp.namespace #=> String
1976
1992
  # resp.package #=> String
1977
1993
  # resp.version #=> String
@@ -2032,6 +2048,8 @@ module Aws::CodeArtifact
2032
2048
  # component, package versions of those formats do not have a
2033
2049
  # namespace.
2034
2050
  #
2051
+ # * The namespace of a generic package is its `namespace`.
2052
+ #
2035
2053
  # @option params [required, String] :package
2036
2054
  # The name of the package versions' package.
2037
2055
  #
@@ -2059,7 +2077,7 @@ module Aws::CodeArtifact
2059
2077
  # domain: "DomainName", # required
2060
2078
  # domain_owner: "AccountId",
2061
2079
  # repository: "RepositoryName", # required
2062
- # format: "npm", # required, accepts npm, pypi, maven, nuget
2080
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
2063
2081
  # namespace: "PackageNamespace",
2064
2082
  # package: "PackageName", # required
2065
2083
  # package_version: "PackageVersion", # required
@@ -2068,7 +2086,7 @@ module Aws::CodeArtifact
2068
2086
  #
2069
2087
  # @example Response structure
2070
2088
  #
2071
- # resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
2089
+ # resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
2072
2090
  # resp.namespace #=> String
2073
2091
  # resp.package #=> String
2074
2092
  # resp.version #=> String
@@ -2111,7 +2129,7 @@ module Aws::CodeArtifact
2111
2129
  # versions.
2112
2130
  #
2113
2131
  # @option params [required, String] :format
2114
- # The format of the returned package versions.
2132
+ # The format of the package versions you want to list.
2115
2133
  #
2116
2134
  # @option params [String] :namespace
2117
2135
  # The namespace of the package that contains the requested package
@@ -2125,6 +2143,8 @@ module Aws::CodeArtifact
2125
2143
  # * Python and NuGet packages do not contain a corresponding component,
2126
2144
  # packages of those formats do not have a namespace.
2127
2145
  #
2146
+ # * The namespace of a generic package is its `namespace`.
2147
+ #
2128
2148
  # @option params [required, String] :package
2129
2149
  # The name of the package for which you want to request package
2130
2150
  # versions.
@@ -2164,7 +2184,7 @@ module Aws::CodeArtifact
2164
2184
  # domain: "DomainName", # required
2165
2185
  # domain_owner: "AccountId",
2166
2186
  # repository: "RepositoryName", # required
2167
- # format: "npm", # required, accepts npm, pypi, maven, nuget
2187
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
2168
2188
  # namespace: "PackageNamespace",
2169
2189
  # package: "PackageName", # required
2170
2190
  # status: "Published", # accepts Published, Unfinished, Unlisted, Archived, Disposed, Deleted
@@ -2177,7 +2197,7 @@ module Aws::CodeArtifact
2177
2197
  # @example Response structure
2178
2198
  #
2179
2199
  # resp.default_display_version #=> String
2180
- # resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
2200
+ # resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
2181
2201
  # resp.namespace #=> String
2182
2202
  # resp.package #=> String
2183
2203
  # resp.versions #=> Array
@@ -2221,9 +2241,12 @@ module Aws::CodeArtifact
2221
2241
  # provided format will be returned.
2222
2242
  #
2223
2243
  # @option params [String] :namespace
2224
- # The namespace used to filter requested packages. Only packages with
2225
- # the provided namespace will be returned. The package component that
2226
- # specifies its namespace depends on its type. For example:
2244
+ # The namespace prefix used to filter requested packages. Only packages
2245
+ # with a namespace that starts with the provided string value are
2246
+ # returned. Note that although this option is called `--namespace` and
2247
+ # not `--namespace-prefix`, it has prefix-matching behavior.
2248
+ #
2249
+ # Each package format uses namespace as follows:
2227
2250
  #
2228
2251
  # * The namespace of a Maven package is its `groupId`.
2229
2252
  #
@@ -2232,6 +2255,8 @@ module Aws::CodeArtifact
2232
2255
  # * Python and NuGet packages do not contain a corresponding component,
2233
2256
  # packages of those formats do not have a namespace.
2234
2257
  #
2258
+ # * The namespace of a generic package is its `namespace`.
2259
+ #
2235
2260
  # @option params [String] :package_prefix
2236
2261
  # A prefix used to filter requested packages. Only packages with names
2237
2262
  # that start with `packagePrefix` are returned.
@@ -2277,7 +2302,7 @@ module Aws::CodeArtifact
2277
2302
  # domain: "DomainName", # required
2278
2303
  # domain_owner: "AccountId",
2279
2304
  # repository: "RepositoryName", # required
2280
- # format: "npm", # accepts npm, pypi, maven, nuget
2305
+ # format: "npm", # accepts npm, pypi, maven, nuget, generic
2281
2306
  # namespace: "PackageNamespace",
2282
2307
  # package_prefix: "PackageName",
2283
2308
  # max_results: 1,
@@ -2289,7 +2314,7 @@ module Aws::CodeArtifact
2289
2314
  # @example Response structure
2290
2315
  #
2291
2316
  # resp.packages #=> Array
2292
- # resp.packages[0].format #=> String, one of "npm", "pypi", "maven", "nuget"
2317
+ # resp.packages[0].format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
2293
2318
  # resp.packages[0].namespace #=> String
2294
2319
  # resp.packages[0].package #=> String
2295
2320
  # resp.packages[0].origin_configuration.restrictions.publish #=> String, one of "ALLOW", "BLOCK"
@@ -2350,6 +2375,7 @@ module Aws::CodeArtifact
2350
2375
  # resp.repositories[0].domain_owner #=> String
2351
2376
  # resp.repositories[0].arn #=> String
2352
2377
  # resp.repositories[0].description #=> String
2378
+ # resp.repositories[0].created_time #=> Time
2353
2379
  # resp.next_token #=> String
2354
2380
  #
2355
2381
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositories AWS API Documentation
@@ -2420,6 +2446,7 @@ module Aws::CodeArtifact
2420
2446
  # resp.repositories[0].domain_owner #=> String
2421
2447
  # resp.repositories[0].arn #=> String
2422
2448
  # resp.repositories[0].description #=> String
2449
+ # resp.repositories[0].created_time #=> Time
2423
2450
  # resp.next_token #=> String
2424
2451
  #
2425
2452
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ListRepositoriesInDomain AWS API Documentation
@@ -2462,6 +2489,134 @@ module Aws::CodeArtifact
2462
2489
  req.send_request(options)
2463
2490
  end
2464
2491
 
2492
+ # Creates a new package version containing one or more assets (or
2493
+ # files).
2494
+ #
2495
+ # The `unfinished` flag can be used to keep the package version in the
2496
+ # `Unfinished` state until all of its assets have been uploaded (see
2497
+ # [Package version status][1] in the *CodeArtifact user guide*). To set
2498
+ # the package version’s status to `Published`, omit the `unfinished`
2499
+ # flag when uploading the final asset, or set the status using
2500
+ # [UpdatePackageVersionStatus][2]. Once a package version’s status is
2501
+ # set to `Published`, it cannot change back to `Unfinished`.
2502
+ #
2503
+ # <note markdown="1"> Only generic packages can be published using this API. For more
2504
+ # information, see [Using generic packages][3] in the *CodeArtifact User
2505
+ # Guide*.
2506
+ #
2507
+ # </note>
2508
+ #
2509
+ #
2510
+ #
2511
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status
2512
+ # [2]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html
2513
+ # [3]: https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html
2514
+ #
2515
+ # @option params [required, String] :domain
2516
+ # The name of the domain that contains the repository that contains the
2517
+ # package version to publish.
2518
+ #
2519
+ # @option params [String] :domain_owner
2520
+ # The 12-digit account number of the AWS account that owns the domain.
2521
+ # It does not include dashes or spaces.
2522
+ #
2523
+ # @option params [required, String] :repository
2524
+ # The name of the repository that the package version will be published
2525
+ # to.
2526
+ #
2527
+ # @option params [required, String] :format
2528
+ # A format that specifies the type of the package version with the
2529
+ # requested asset file.
2530
+ #
2531
+ # @option params [String] :namespace
2532
+ # The namespace of the package version to publish.
2533
+ #
2534
+ # @option params [required, String] :package
2535
+ # The name of the package version to publish.
2536
+ #
2537
+ # @option params [required, String] :package_version
2538
+ # The package version to publish (for example, `3.5.2`).
2539
+ #
2540
+ # @option params [required, String, StringIO, File] :asset_content
2541
+ # The content of the asset to publish.
2542
+ #
2543
+ # @option params [required, String] :asset_name
2544
+ # The name of the asset to publish. Asset names can include Unicode
2545
+ # letters and numbers, and the following special characters: `` ~ ! @ ^
2546
+ # & ( ) - ` _ + [ ] \{ \} ; , . ` ``
2547
+ #
2548
+ # @option params [required, String] :asset_sha256
2549
+ # The SHA256 hash of the `assetContent` to publish. This value must be
2550
+ # calculated by the caller and provided with the request (see
2551
+ # [Publishing a generic package][1] in the *CodeArtifact User Guide*).
2552
+ #
2553
+ # This value is used as an integrity check to verify that the
2554
+ # `assetContent` has not changed after it was originally sent.
2555
+ #
2556
+ #
2557
+ #
2558
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html#publishing-generic-packages
2559
+ #
2560
+ # @option params [Boolean] :unfinished
2561
+ # Specifies whether the package version should remain in the
2562
+ # `unfinished` state. If omitted, the package version status will be set
2563
+ # to `Published` (see [Package version status][1] in the *CodeArtifact
2564
+ # User Guide*).
2565
+ #
2566
+ # Valid values: `unfinished`
2567
+ #
2568
+ #
2569
+ #
2570
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status
2571
+ #
2572
+ # @return [Types::PublishPackageVersionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2573
+ #
2574
+ # * {Types::PublishPackageVersionResult#format #format} => String
2575
+ # * {Types::PublishPackageVersionResult#namespace #namespace} => String
2576
+ # * {Types::PublishPackageVersionResult#package #package} => String
2577
+ # * {Types::PublishPackageVersionResult#version #version} => String
2578
+ # * {Types::PublishPackageVersionResult#version_revision #version_revision} => String
2579
+ # * {Types::PublishPackageVersionResult#status #status} => String
2580
+ # * {Types::PublishPackageVersionResult#asset #asset} => Types::AssetSummary
2581
+ #
2582
+ # @example Request syntax with placeholder values
2583
+ #
2584
+ # resp = client.publish_package_version({
2585
+ # domain: "DomainName", # required
2586
+ # domain_owner: "AccountId",
2587
+ # repository: "RepositoryName", # required
2588
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
2589
+ # namespace: "PackageNamespace",
2590
+ # package: "PackageName", # required
2591
+ # package_version: "PackageVersion", # required
2592
+ # asset_content: "data", # required
2593
+ # asset_name: "AssetName", # required
2594
+ # asset_sha256: "SHA256", # required
2595
+ # unfinished: false,
2596
+ # })
2597
+ #
2598
+ # @example Response structure
2599
+ #
2600
+ # resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
2601
+ # resp.namespace #=> String
2602
+ # resp.package #=> String
2603
+ # resp.version #=> String
2604
+ # resp.version_revision #=> String
2605
+ # resp.status #=> String, one of "Published", "Unfinished", "Unlisted", "Archived", "Disposed", "Deleted"
2606
+ # resp.asset.name #=> String
2607
+ # resp.asset.size #=> Integer
2608
+ # resp.asset.hashes #=> Hash
2609
+ # resp.asset.hashes["HashAlgorithm"] #=> String
2610
+ #
2611
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PublishPackageVersion AWS API Documentation
2612
+ #
2613
+ # @overload publish_package_version(params = {})
2614
+ # @param [Hash] params ({})
2615
+ def publish_package_version(params = {}, options = {})
2616
+ req = build_request(:publish_package_version, params)
2617
+ req.send_request(options)
2618
+ end
2619
+
2465
2620
  # Sets a resource policy on a domain that specifies permissions to
2466
2621
  # access it.
2467
2622
  #
@@ -2561,6 +2716,8 @@ module Aws::CodeArtifact
2561
2716
  # * Python and NuGet packages do not contain a corresponding component,
2562
2717
  # packages of those formats do not have a namespace.
2563
2718
  #
2719
+ # * The namespace of a generic package is its `namespace`.
2720
+ #
2564
2721
  # @option params [required, String] :package
2565
2722
  # The name of the package to be updated.
2566
2723
  #
@@ -2589,7 +2746,7 @@ module Aws::CodeArtifact
2589
2746
  # domain: "DomainName", # required
2590
2747
  # domain_owner: "AccountId",
2591
2748
  # repository: "RepositoryName", # required
2592
- # format: "npm", # required, accepts npm, pypi, maven, nuget
2749
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
2593
2750
  # namespace: "PackageNamespace",
2594
2751
  # package: "PackageName", # required
2595
2752
  # restrictions: { # required
@@ -2768,6 +2925,8 @@ module Aws::CodeArtifact
2768
2925
  # component, package versions of those formats do not have a
2769
2926
  # namespace.
2770
2927
  #
2928
+ # * The namespace of a generic package is its `namespace`.
2929
+ #
2771
2930
  # @option params [required, String] :package
2772
2931
  # The name of the package with the version statuses to update.
2773
2932
  #
@@ -2800,7 +2959,7 @@ module Aws::CodeArtifact
2800
2959
  # domain: "DomainName", # required
2801
2960
  # domain_owner: "AccountId",
2802
2961
  # repository: "RepositoryName", # required
2803
- # format: "npm", # required, accepts npm, pypi, maven, nuget
2962
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
2804
2963
  # namespace: "PackageNamespace",
2805
2964
  # package: "PackageName", # required
2806
2965
  # versions: ["PackageVersion"], # required
@@ -2885,8 +3044,9 @@ module Aws::CodeArtifact
2885
3044
  # resp.repository.upstreams[0].repository_name #=> String
2886
3045
  # resp.repository.external_connections #=> Array
2887
3046
  # resp.repository.external_connections[0].external_connection_name #=> String
2888
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
3047
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
2889
3048
  # resp.repository.external_connections[0].status #=> String, one of "Available"
3049
+ # resp.repository.created_time #=> Time
2890
3050
  #
2891
3051
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdateRepository AWS API Documentation
2892
3052
  #
@@ -2910,7 +3070,7 @@ module Aws::CodeArtifact
2910
3070
  params: params,
2911
3071
  config: config)
2912
3072
  context[:gem_name] = 'aws-sdk-codeartifact'
2913
- context[:gem_version] = '1.25.0'
3073
+ context[:gem_version] = '1.27.0'
2914
3074
  Seahorse::Client::Request.new(handlers, context)
2915
3075
  end
2916
3076
 
@@ -137,6 +137,8 @@ module Aws::CodeArtifact
137
137
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
138
138
  PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
139
139
  PolicyRevision = Shapes::StringShape.new(name: 'PolicyRevision')
140
+ PublishPackageVersionRequest = Shapes::StructureShape.new(name: 'PublishPackageVersionRequest')
141
+ PublishPackageVersionResult = Shapes::StructureShape.new(name: 'PublishPackageVersionResult')
140
142
  PutDomainPermissionsPolicyRequest = Shapes::StructureShape.new(name: 'PutDomainPermissionsPolicyRequest')
141
143
  PutDomainPermissionsPolicyResult = Shapes::StructureShape.new(name: 'PutDomainPermissionsPolicyResult')
142
144
  PutPackageOriginConfigurationRequest = Shapes::StructureShape.new(name: 'PutPackageOriginConfigurationRequest')
@@ -153,6 +155,7 @@ module Aws::CodeArtifact
153
155
  ResourcePolicy = Shapes::StructureShape.new(name: 'ResourcePolicy')
154
156
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
155
157
  RetryAfterSeconds = Shapes::IntegerShape.new(name: 'RetryAfterSeconds')
158
+ SHA256 = Shapes::StringShape.new(name: 'SHA256')
156
159
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
157
160
  String = Shapes::StringShape.new(name: 'String')
158
161
  String255 = Shapes::StringShape.new(name: 'String255')
@@ -644,6 +647,30 @@ module Aws::CodeArtifact
644
647
 
645
648
  PackageVersionSummaryList.member = Shapes::ShapeRef.new(shape: PackageVersionSummary)
646
649
 
650
+ PublishPackageVersionRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
651
+ PublishPackageVersionRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
652
+ PublishPackageVersionRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
653
+ PublishPackageVersionRequest.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, required: true, location: "querystring", location_name: "format"))
654
+ PublishPackageVersionRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location: "querystring", location_name: "namespace"))
655
+ PublishPackageVersionRequest.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, required: true, location: "querystring", location_name: "package"))
656
+ PublishPackageVersionRequest.add_member(:package_version, Shapes::ShapeRef.new(shape: PackageVersion, required: true, location: "querystring", location_name: "version"))
657
+ PublishPackageVersionRequest.add_member(:asset_content, Shapes::ShapeRef.new(shape: Asset, required: true, location_name: "assetContent"))
658
+ PublishPackageVersionRequest.add_member(:asset_name, Shapes::ShapeRef.new(shape: AssetName, required: true, location: "querystring", location_name: "asset"))
659
+ PublishPackageVersionRequest.add_member(:asset_sha256, Shapes::ShapeRef.new(shape: SHA256, required: true, location: "header", location_name: "x-amz-content-sha256"))
660
+ PublishPackageVersionRequest.add_member(:unfinished, Shapes::ShapeRef.new(shape: BooleanOptional, location: "querystring", location_name: "unfinished"))
661
+ PublishPackageVersionRequest.struct_class = Types::PublishPackageVersionRequest
662
+ PublishPackageVersionRequest[:payload] = :asset_content
663
+ PublishPackageVersionRequest[:payload_member] = PublishPackageVersionRequest.member(:asset_content)
664
+
665
+ PublishPackageVersionResult.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, location_name: "format"))
666
+ PublishPackageVersionResult.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location_name: "namespace"))
667
+ PublishPackageVersionResult.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, location_name: "package"))
668
+ PublishPackageVersionResult.add_member(:version, Shapes::ShapeRef.new(shape: PackageVersion, location_name: "version"))
669
+ PublishPackageVersionResult.add_member(:version_revision, Shapes::ShapeRef.new(shape: PackageVersionRevision, location_name: "versionRevision"))
670
+ PublishPackageVersionResult.add_member(:status, Shapes::ShapeRef.new(shape: PackageVersionStatus, location_name: "status"))
671
+ PublishPackageVersionResult.add_member(:asset, Shapes::ShapeRef.new(shape: AssetSummary, location_name: "asset"))
672
+ PublishPackageVersionResult.struct_class = Types::PublishPackageVersionResult
673
+
647
674
  PutDomainPermissionsPolicyRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location_name: "domain"))
648
675
  PutDomainPermissionsPolicyRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "domainOwner"))
649
676
  PutDomainPermissionsPolicyRequest.add_member(:policy_revision, Shapes::ShapeRef.new(shape: PolicyRevision, location_name: "policyRevision"))
@@ -683,6 +710,7 @@ module Aws::CodeArtifact
683
710
  RepositoryDescription.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
684
711
  RepositoryDescription.add_member(:upstreams, Shapes::ShapeRef.new(shape: UpstreamRepositoryInfoList, location_name: "upstreams"))
685
712
  RepositoryDescription.add_member(:external_connections, Shapes::ShapeRef.new(shape: RepositoryExternalConnectionInfoList, location_name: "externalConnections"))
713
+ RepositoryDescription.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdTime"))
686
714
  RepositoryDescription.struct_class = Types::RepositoryDescription
687
715
 
688
716
  RepositoryExternalConnectionInfo.add_member(:external_connection_name, Shapes::ShapeRef.new(shape: ExternalConnectionName, location_name: "externalConnectionName"))
@@ -698,6 +726,7 @@ module Aws::CodeArtifact
698
726
  RepositorySummary.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "domainOwner"))
699
727
  RepositorySummary.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "arn"))
700
728
  RepositorySummary.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
729
+ RepositorySummary.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdTime"))
701
730
  RepositorySummary.struct_class = Types::RepositorySummary
702
731
 
703
732
  RepositorySummaryList.member = Shapes::ShapeRef.new(shape: RepositorySummary)
@@ -1247,6 +1276,21 @@ module Aws::CodeArtifact
1247
1276
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1248
1277
  end)
1249
1278
 
1279
+ api.add_operation(:publish_package_version, Seahorse::Model::Operation.new.tap do |o|
1280
+ o.name = "PublishPackageVersion"
1281
+ o.http_method = "POST"
1282
+ o.http_request_uri = "/v1/package/version/publish"
1283
+ o.input = Shapes::ShapeRef.new(shape: PublishPackageVersionRequest)
1284
+ o.output = Shapes::ShapeRef.new(shape: PublishPackageVersionResult)
1285
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1286
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1287
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1288
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1289
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1290
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1291
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1292
+ end)
1293
+
1250
1294
  api.add_operation(:put_domain_permissions_policy, Seahorse::Model::Operation.new.tap do |o|
1251
1295
  o.name = "PutDomainPermissionsPolicy"
1252
1296
  o.http_method = "PUT"
@@ -50,9 +50,6 @@ module Aws::CodeArtifact
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::CodeArtifact
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://codeartifact-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://codeartifact-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://codeartifact.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://codeartifact-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://codeartifact-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://codeartifact.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://codeartifact.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://codeartifact.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -431,6 +431,20 @@ module Aws::CodeArtifact
431
431
  end
432
432
  end
433
433
 
434
+ class PublishPackageVersion
435
+ def self.build(context)
436
+ unless context.config.regional_endpoint
437
+ endpoint = context.config.endpoint.to_s
438
+ end
439
+ Aws::CodeArtifact::EndpointParameters.new(
440
+ region: context.config.region,
441
+ use_dual_stack: context.config.use_dualstack_endpoint,
442
+ use_fips: context.config.use_fips_endpoint,
443
+ endpoint: endpoint,
444
+ )
445
+ end
446
+ end
447
+
434
448
  class PutDomainPermissionsPolicy
435
449
  def self.build(context)
436
450
  unless context.config.regional_endpoint
@@ -116,6 +116,8 @@ module Aws::CodeArtifact
116
116
  Aws::CodeArtifact::Endpoints::ListRepositoriesInDomain.build(context)
117
117
  when :list_tags_for_resource
118
118
  Aws::CodeArtifact::Endpoints::ListTagsForResource.build(context)
119
+ when :publish_package_version
120
+ Aws::CodeArtifact::Endpoints::PublishPackageVersion.build(context)
119
121
  when :put_domain_permissions_policy
120
122
  Aws::CodeArtifact::Endpoints::PutDomainPermissionsPolicy.build(context)
121
123
  when :put_package_origin_configuration
@@ -80,6 +80,8 @@ module Aws::CodeArtifact
80
80
  #
81
81
  # * `public:maven-commonsware` - for the CommonsWare Android
82
82
  # repository.
83
+ #
84
+ # * `public:maven-clojars` - for the Clojars repository.
83
85
  # @return [String]
84
86
  #
85
87
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociateExternalConnectionRequest AWS API Documentation
@@ -165,6 +167,8 @@ module Aws::CodeArtifact
165
167
  # * Python and NuGet package versions do not contain a corresponding
166
168
  # component, package versions of those formats do not have a
167
169
  # namespace.
170
+ #
171
+ # * The namespace of a generic package is its `namespace`.
168
172
  # @return [String]
169
173
  #
170
174
  # @!attribute [rw] package
@@ -475,6 +479,8 @@ module Aws::CodeArtifact
475
479
  #
476
480
  # * Python and NuGet packages do not contain corresponding components,
477
481
  # packages of those formats do not have a namespace.
482
+ #
483
+ # * The namespace of a generic package is its `namespace`.
478
484
  # @return [String]
479
485
  #
480
486
  # @!attribute [rw] package
@@ -537,6 +543,8 @@ module Aws::CodeArtifact
537
543
  # * Python and NuGet package versions do not contain a corresponding
538
544
  # component, package versions of those formats do not have a
539
545
  # namespace.
546
+ #
547
+ # * The namespace of a generic package is its `namespace`.
540
548
  # @return [String]
541
549
  #
542
550
  # @!attribute [rw] package
@@ -740,6 +748,8 @@ module Aws::CodeArtifact
740
748
  #
741
749
  # * Python and NuGet packages do not contain a corresponding
742
750
  # component, packages of those formats do not have a namespace.
751
+ #
752
+ # * The namespace of a generic package is its `namespace`.
743
753
  # @return [String]
744
754
  #
745
755
  # @!attribute [rw] package
@@ -806,6 +816,8 @@ module Aws::CodeArtifact
806
816
  # * Python and NuGet package versions do not contain a corresponding
807
817
  # component, package versions of those formats do not have a
808
818
  # namespace.
819
+ #
820
+ # * The namespace of a generic package is its `namespace`.
809
821
  # @return [String]
810
822
  #
811
823
  # @!attribute [rw] package
@@ -958,6 +970,8 @@ module Aws::CodeArtifact
958
970
  # * Python and NuGet package versions do not contain a corresponding
959
971
  # component, package versions of those formats do not have a
960
972
  # namespace.
973
+ #
974
+ # * The namespace of a generic package is its `namespace`.
961
975
  # @return [String]
962
976
  #
963
977
  # @!attribute [rw] package
@@ -1263,6 +1277,8 @@ module Aws::CodeArtifact
1263
1277
  # * Python and NuGet package versions do not contain a corresponding
1264
1278
  # component, package versions of those formats do not have a
1265
1279
  # namespace.
1280
+ #
1281
+ # * The namespace of a generic package is its `namespace`.
1266
1282
  # @return [String]
1267
1283
  #
1268
1284
  # @!attribute [rw] package
@@ -1344,11 +1360,6 @@ module Aws::CodeArtifact
1344
1360
  # @!attribute [rw] format
1345
1361
  # A format that specifies the type of the package version with the
1346
1362
  # requested readme file.
1347
- #
1348
- # <note markdown="1"> Although `maven` is listed as a valid value, CodeArtifact does not
1349
- # support displaying readme files for Maven packages.
1350
- #
1351
- # </note>
1352
1363
  # @return [String]
1353
1364
  #
1354
1365
  # @!attribute [rw] namespace
@@ -1356,8 +1367,6 @@ module Aws::CodeArtifact
1356
1367
  # The package version component that specifies its namespace depends
1357
1368
  # on its type. For example:
1358
1369
  #
1359
- # * The namespace of a Maven package version is its `groupId`.
1360
- #
1361
1370
  # * The namespace of an npm package version is its `scope`.
1362
1371
  #
1363
1372
  # * Python and NuGet package versions do not contain a corresponding
@@ -1621,6 +1630,8 @@ module Aws::CodeArtifact
1621
1630
  # * Python and NuGet package versions do not contain a corresponding
1622
1631
  # component, package versions of those formats do not have a
1623
1632
  # namespace.
1633
+ #
1634
+ # * The namespace of a generic package is its `namespace`.
1624
1635
  # @return [String]
1625
1636
  #
1626
1637
  # @!attribute [rw] package
@@ -1748,6 +1759,8 @@ module Aws::CodeArtifact
1748
1759
  # * Python and NuGet package versions do not contain a corresponding
1749
1760
  # component, package versions of those formats do not have a
1750
1761
  # namespace.
1762
+ #
1763
+ # * The namespace of a generic package is its `namespace`.
1751
1764
  # @return [String]
1752
1765
  #
1753
1766
  # @!attribute [rw] package
@@ -1855,7 +1868,7 @@ module Aws::CodeArtifact
1855
1868
  # @return [String]
1856
1869
  #
1857
1870
  # @!attribute [rw] format
1858
- # The format of the returned package versions.
1871
+ # The format of the package versions you want to list.
1859
1872
  # @return [String]
1860
1873
  #
1861
1874
  # @!attribute [rw] namespace
@@ -1869,6 +1882,8 @@ module Aws::CodeArtifact
1869
1882
  #
1870
1883
  # * Python and NuGet packages do not contain a corresponding
1871
1884
  # component, packages of those formats do not have a namespace.
1885
+ #
1886
+ # * The namespace of a generic package is its `namespace`.
1872
1887
  # @return [String]
1873
1888
  #
1874
1889
  # @!attribute [rw] package
@@ -1996,9 +2011,12 @@ module Aws::CodeArtifact
1996
2011
  # @return [String]
1997
2012
  #
1998
2013
  # @!attribute [rw] namespace
1999
- # The namespace used to filter requested packages. Only packages with
2000
- # the provided namespace will be returned. The package component that
2001
- # specifies its namespace depends on its type. For example:
2014
+ # The namespace prefix used to filter requested packages. Only
2015
+ # packages with a namespace that starts with the provided string value
2016
+ # are returned. Note that although this option is called `--namespace`
2017
+ # and not `--namespace-prefix`, it has prefix-matching behavior.
2018
+ #
2019
+ # Each package format uses namespace as follows:
2002
2020
  #
2003
2021
  # * The namespace of a Maven package is its `groupId`.
2004
2022
  #
@@ -2006,6 +2024,8 @@ module Aws::CodeArtifact
2006
2024
  #
2007
2025
  # * Python and NuGet packages do not contain a corresponding
2008
2026
  # component, packages of those formats do not have a namespace.
2027
+ #
2028
+ # * The namespace of a generic package is its `namespace`.
2009
2029
  # @return [String]
2010
2030
  #
2011
2031
  # @!attribute [rw] package_prefix
@@ -2238,8 +2258,22 @@ module Aws::CodeArtifact
2238
2258
  #
2239
2259
  # @!attribute [rw] dependency_type
2240
2260
  # The type of a package dependency. The possible values depend on the
2241
- # package type. Example types are `compile`, `runtime`, and `test` for
2242
- # Maven packages, and `dev`, `prod`, and `optional` for npm packages.
2261
+ # package type.
2262
+ #
2263
+ # * npm: `regular`, `dev`, `peer`, `optional`
2264
+ #
2265
+ # * maven: `optional`, `parent`, `compile`, `runtime`, `test`,
2266
+ # `system`, `provided`.
2267
+ #
2268
+ # <note markdown="1"> Note that `parent` is not a regular Maven dependency type; instead
2269
+ # this is extracted from the `<parent>` element if one is defined in
2270
+ # the package version's POM file.
2271
+ #
2272
+ # </note>
2273
+ #
2274
+ # * nuget: The `dependencyType` field is never set for NuGet packages.
2275
+ #
2276
+ # * pypi: `Requires-Dist`
2243
2277
  # @return [String]
2244
2278
  #
2245
2279
  # @!attribute [rw] version_requirement
@@ -2276,6 +2310,8 @@ module Aws::CodeArtifact
2276
2310
  #
2277
2311
  # * Python and NuGet packages do not contain a corresponding
2278
2312
  # component, packages of those formats do not have a namespace.
2313
+ #
2314
+ # * The namespace of a generic package is its `namespace`.
2279
2315
  # @return [String]
2280
2316
  #
2281
2317
  # @!attribute [rw] name
@@ -2353,6 +2389,8 @@ module Aws::CodeArtifact
2353
2389
  #
2354
2390
  # * Python and NuGet packages do not contain a corresponding
2355
2391
  # component, packages of those formats do not have a namespace.
2392
+ #
2393
+ # * The namespace of a generic package is its `namespace`.
2356
2394
  # @return [String]
2357
2395
  #
2358
2396
  # @!attribute [rw] package
@@ -2398,6 +2436,8 @@ module Aws::CodeArtifact
2398
2436
  # * Python and NuGet package versions do not contain a corresponding
2399
2437
  # component, package versions of those formats do not have a
2400
2438
  # namespace.
2439
+ #
2440
+ # * The namespace of a generic package is its `namespace`.
2401
2441
  # @return [String]
2402
2442
  #
2403
2443
  # @!attribute [rw] package_name
@@ -2577,6 +2617,144 @@ module Aws::CodeArtifact
2577
2617
  include Aws::Structure
2578
2618
  end
2579
2619
 
2620
+ # @!attribute [rw] domain
2621
+ # The name of the domain that contains the repository that contains
2622
+ # the package version to publish.
2623
+ # @return [String]
2624
+ #
2625
+ # @!attribute [rw] domain_owner
2626
+ # The 12-digit account number of the AWS account that owns the domain.
2627
+ # It does not include dashes or spaces.
2628
+ # @return [String]
2629
+ #
2630
+ # @!attribute [rw] repository
2631
+ # The name of the repository that the package version will be
2632
+ # published to.
2633
+ # @return [String]
2634
+ #
2635
+ # @!attribute [rw] format
2636
+ # A format that specifies the type of the package version with the
2637
+ # requested asset file.
2638
+ # @return [String]
2639
+ #
2640
+ # @!attribute [rw] namespace
2641
+ # The namespace of the package version to publish.
2642
+ # @return [String]
2643
+ #
2644
+ # @!attribute [rw] package
2645
+ # The name of the package version to publish.
2646
+ # @return [String]
2647
+ #
2648
+ # @!attribute [rw] package_version
2649
+ # The package version to publish (for example, `3.5.2`).
2650
+ # @return [String]
2651
+ #
2652
+ # @!attribute [rw] asset_content
2653
+ # The content of the asset to publish.
2654
+ # @return [IO]
2655
+ #
2656
+ # @!attribute [rw] asset_name
2657
+ # The name of the asset to publish. Asset names can include Unicode
2658
+ # letters and numbers, and the following special characters: `` ~ ! @
2659
+ # ^ & ( ) - ` _ + [ ] \{ \} ; , . ` ``
2660
+ # @return [String]
2661
+ #
2662
+ # @!attribute [rw] asset_sha256
2663
+ # The SHA256 hash of the `assetContent` to publish. This value must be
2664
+ # calculated by the caller and provided with the request (see
2665
+ # [Publishing a generic package][1] in the *CodeArtifact User Guide*).
2666
+ #
2667
+ # This value is used as an integrity check to verify that the
2668
+ # `assetContent` has not changed after it was originally sent.
2669
+ #
2670
+ #
2671
+ #
2672
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/using-generic.html#publishing-generic-packages
2673
+ # @return [String]
2674
+ #
2675
+ # @!attribute [rw] unfinished
2676
+ # Specifies whether the package version should remain in the
2677
+ # `unfinished` state. If omitted, the package version status will be
2678
+ # set to `Published` (see [Package version status][1] in the
2679
+ # *CodeArtifact User Guide*).
2680
+ #
2681
+ # Valid values: `unfinished`
2682
+ #
2683
+ #
2684
+ #
2685
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status
2686
+ # @return [Boolean]
2687
+ #
2688
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PublishPackageVersionRequest AWS API Documentation
2689
+ #
2690
+ class PublishPackageVersionRequest < Struct.new(
2691
+ :domain,
2692
+ :domain_owner,
2693
+ :repository,
2694
+ :format,
2695
+ :namespace,
2696
+ :package,
2697
+ :package_version,
2698
+ :asset_content,
2699
+ :asset_name,
2700
+ :asset_sha256,
2701
+ :unfinished)
2702
+ SENSITIVE = []
2703
+ include Aws::Structure
2704
+ end
2705
+
2706
+ # @!attribute [rw] format
2707
+ # The format of the package version.
2708
+ # @return [String]
2709
+ #
2710
+ # @!attribute [rw] namespace
2711
+ # The namespace of the package version.
2712
+ # @return [String]
2713
+ #
2714
+ # @!attribute [rw] package
2715
+ # The name of the package.
2716
+ # @return [String]
2717
+ #
2718
+ # @!attribute [rw] version
2719
+ # The version of the package.
2720
+ # @return [String]
2721
+ #
2722
+ # @!attribute [rw] version_revision
2723
+ # The revision of the package version.
2724
+ # @return [String]
2725
+ #
2726
+ # @!attribute [rw] status
2727
+ # A string that contains the status of the package version. For more
2728
+ # information, see [Package version status][1] in the *CodeArtifact
2729
+ # User Guide*.
2730
+ #
2731
+ #
2732
+ #
2733
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status
2734
+ # @return [String]
2735
+ #
2736
+ # @!attribute [rw] asset
2737
+ # An [AssetSummary][1] for the published asset.
2738
+ #
2739
+ #
2740
+ #
2741
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html
2742
+ # @return [Types::AssetSummary]
2743
+ #
2744
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PublishPackageVersionResult AWS API Documentation
2745
+ #
2746
+ class PublishPackageVersionResult < Struct.new(
2747
+ :format,
2748
+ :namespace,
2749
+ :package,
2750
+ :version,
2751
+ :version_revision,
2752
+ :status,
2753
+ :asset)
2754
+ SENSITIVE = []
2755
+ include Aws::Structure
2756
+ end
2757
+
2580
2758
  # @!attribute [rw] domain
2581
2759
  # The name of the domain on which to set the resource policy.
2582
2760
  # @return [String]
@@ -2648,6 +2826,8 @@ module Aws::CodeArtifact
2648
2826
  #
2649
2827
  # * Python and NuGet packages do not contain a corresponding
2650
2828
  # component, packages of those formats do not have a namespace.
2829
+ #
2830
+ # * The namespace of a generic package is its `namespace`.
2651
2831
  # @return [String]
2652
2832
  #
2653
2833
  # @!attribute [rw] package
@@ -2805,6 +2985,11 @@ module Aws::CodeArtifact
2805
2985
  # An array of external connections associated with the repository.
2806
2986
  # @return [Array<Types::RepositoryExternalConnectionInfo>]
2807
2987
  #
2988
+ # @!attribute [rw] created_time
2989
+ # A timestamp that represents the date and time the repository was
2990
+ # created.
2991
+ # @return [Time]
2992
+ #
2808
2993
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/RepositoryDescription AWS API Documentation
2809
2994
  #
2810
2995
  class RepositoryDescription < Struct.new(
@@ -2815,7 +3000,8 @@ module Aws::CodeArtifact
2815
3000
  :arn,
2816
3001
  :description,
2817
3002
  :upstreams,
2818
- :external_connections)
3003
+ :external_connections,
3004
+ :created_time)
2819
3005
  SENSITIVE = []
2820
3006
  include Aws::Structure
2821
3007
  end
@@ -2830,14 +3016,14 @@ module Aws::CodeArtifact
2830
3016
  # The package format associated with a repository's external
2831
3017
  # connection. The valid package formats are:
2832
3018
  #
2833
- # * `npm`\: A Node Package Manager (npm) package.
3019
+ # * `npm`: A Node Package Manager (npm) package.
2834
3020
  #
2835
- # * `pypi`\: A Python Package Index (PyPI) package.
3021
+ # * `pypi`: A Python Package Index (PyPI) package.
2836
3022
  #
2837
- # * `maven`\: A Maven package that contains compiled code in a
3023
+ # * `maven`: A Maven package that contains compiled code in a
2838
3024
  # distributable format, such as a JAR file.
2839
3025
  #
2840
- # * `nuget`\: A NuGet package.
3026
+ # * `nuget`: A NuGet package.
2841
3027
  # @return [String]
2842
3028
  #
2843
3029
  # @!attribute [rw] status
@@ -2888,6 +3074,11 @@ module Aws::CodeArtifact
2888
3074
  # The description of the repository.
2889
3075
  # @return [String]
2890
3076
  #
3077
+ # @!attribute [rw] created_time
3078
+ # A timestamp that represents the date and time the repository was
3079
+ # created.
3080
+ # @return [Time]
3081
+ #
2891
3082
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/RepositorySummary AWS API Documentation
2892
3083
  #
2893
3084
  class RepositorySummary < Struct.new(
@@ -2896,7 +3087,8 @@ module Aws::CodeArtifact
2896
3087
  :domain_name,
2897
3088
  :domain_owner,
2898
3089
  :arn,
2899
- :description)
3090
+ :description,
3091
+ :created_time)
2900
3092
  SENSITIVE = []
2901
3093
  include Aws::Structure
2902
3094
  end
@@ -3108,6 +3300,8 @@ module Aws::CodeArtifact
3108
3300
  # * Python and NuGet package versions do not contain a corresponding
3109
3301
  # component, package versions of those formats do not have a
3110
3302
  # namespace.
3303
+ #
3304
+ # * The namespace of a generic package is its `namespace`.
3111
3305
  # @return [String]
3112
3306
  #
3113
3307
  # @!attribute [rw] package
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-codeartifact/customizations'
52
52
  # @!group service
53
53
  module Aws::CodeArtifact
54
54
 
55
- GEM_VERSION = '1.25.0'
55
+ GEM_VERSION = '1.27.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-codeartifact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-31 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core