aws-sdk-codeartifact 1.24.0 → 1.26.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: 7d71a9136678bbb561bb56dd14922d0252b1bc0941b88f7051ebd451ab9acb58
4
- data.tar.gz: e5df6d888421447cdb5bba403aefab8f6488ea6c630090261fe0f4026596f9d1
3
+ metadata.gz: 1887a093b00f0e31c4a69940b4055000e1722d13b70fef8fcb68fe327ed9500a
4
+ data.tar.gz: 1da2f39656d8b920214bcadd4f3d7b353649fbb6f92c51678508576e305290eb
5
5
  SHA512:
6
- metadata.gz: 7f6d38d0aeb9367f5239bb91fcabd65a13cdcf2af49c766072395ac26e8a9b81367b95596c4a3362bd6fd917eb4a8aa50e34052a2c4ef87539522606555fe56d
7
- data.tar.gz: 3bf06b33683ede7c44ec71d3d8a3fc3980b2779a30abbc32b8b1b9e05ecf11908fb999d13caa986082bf8e0a06e4a1ccf15c1eddc6ba092e434b8a9765c7eb88
6
+ metadata.gz: 6aa7fb685b84ba0e6ae5f5771bfd829d0dc83cd552deab68db9ac5a96693791ca7bd88d13cafdf26a817514c2e5bb924bfd03a213259bb7c2d877f35452f520e
7
+ data.tar.gz: 692313a434d8bfadae4183d159a5da188f1cca35aeff9a67a07207c96cf69c89406bd8d6a8e64d09c9b6ed0c875a5c658247b9a243295bc9996f0154718ca0bc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.26.0 (2023-03-09)
5
+ ------------------
6
+
7
+ * 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.
8
+
9
+ 1.25.0 (2023-01-31)
10
+ ------------------
11
+
12
+ * Feature - This release introduces a new DeletePackage API, which enables deletion of a package and all of its versions from a repository.
13
+
4
14
  1.24.0 (2023-01-19)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.24.0
1
+ 1.26.0
@@ -429,7 +429,7 @@ module Aws::CodeArtifact
429
429
  # resp.repository.upstreams[0].repository_name #=> String
430
430
  # resp.repository.external_connections #=> Array
431
431
  # resp.repository.external_connections[0].external_connection_name #=> String
432
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
432
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
433
433
  # resp.repository.external_connections[0].status #=> String, one of "Available"
434
434
  #
435
435
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssociateExternalConnection AWS API Documentation
@@ -481,6 +481,8 @@ module Aws::CodeArtifact
481
481
  # component, package versions of those formats do not have a
482
482
  # namespace.
483
483
  #
484
+ # * The namespace of a generic package is it’s `namespace`.
485
+ #
484
486
  # @option params [required, String] :package
485
487
  # The name of the package that contains the versions to be copied.
486
488
  #
@@ -532,7 +534,7 @@ module Aws::CodeArtifact
532
534
  # domain_owner: "AccountId",
533
535
  # source_repository: "RepositoryName", # required
534
536
  # destination_repository: "RepositoryName", # required
535
- # format: "npm", # required, accepts npm, pypi, maven, nuget
537
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
536
538
  # namespace: "PackageNamespace",
537
539
  # package: "PackageName", # required
538
540
  # versions: ["PackageVersion"],
@@ -707,7 +709,7 @@ module Aws::CodeArtifact
707
709
  # resp.repository.upstreams[0].repository_name #=> String
708
710
  # resp.repository.external_connections #=> Array
709
711
  # resp.repository.external_connections[0].external_connection_name #=> String
710
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
712
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
711
713
  # resp.repository.external_connections[0].status #=> String, one of "Available"
712
714
  #
713
715
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/CreateRepository AWS API Documentation
@@ -804,6 +806,74 @@ module Aws::CodeArtifact
804
806
  req.send_request(options)
805
807
  end
806
808
 
809
+ # Deletes a package and all associated package versions. A deleted
810
+ # package cannot be restored. To delete one or more package versions,
811
+ # use the [DeletePackageVersions][1] API.
812
+ #
813
+ #
814
+ #
815
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DeletePackageVersions.html
816
+ #
817
+ # @option params [required, String] :domain
818
+ # The name of the domain that contains the package to delete.
819
+ #
820
+ # @option params [String] :domain_owner
821
+ # The 12-digit account number of the Amazon Web Services account that
822
+ # owns the domain. It does not include dashes or spaces.
823
+ #
824
+ # @option params [required, String] :repository
825
+ # The name of the repository that contains the package to delete.
826
+ #
827
+ # @option params [required, String] :format
828
+ # The format of the requested package to delete.
829
+ #
830
+ # @option params [String] :namespace
831
+ # The namespace of the package to delete. The package component that
832
+ # specifies its namespace depends on its type. For example:
833
+ #
834
+ # * The namespace of a Maven package is its `groupId`. The namespace is
835
+ # required when deleting Maven package versions.
836
+ #
837
+ # * The namespace of an npm package is its `scope`.
838
+ #
839
+ # * Python and NuGet packages do not contain corresponding components,
840
+ # packages of those formats do not have a namespace.
841
+ #
842
+ # @option params [required, String] :package
843
+ # The name of the package to delete.
844
+ #
845
+ # @return [Types::DeletePackageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
846
+ #
847
+ # * {Types::DeletePackageResult#deleted_package #deleted_package} => Types::PackageSummary
848
+ #
849
+ # @example Request syntax with placeholder values
850
+ #
851
+ # resp = client.delete_package({
852
+ # domain: "DomainName", # required
853
+ # domain_owner: "AccountId",
854
+ # repository: "RepositoryName", # required
855
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
856
+ # namespace: "PackageNamespace",
857
+ # package: "PackageName", # required
858
+ # })
859
+ #
860
+ # @example Response structure
861
+ #
862
+ # resp.deleted_package.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
863
+ # resp.deleted_package.namespace #=> String
864
+ # resp.deleted_package.package #=> String
865
+ # resp.deleted_package.origin_configuration.restrictions.publish #=> String, one of "ALLOW", "BLOCK"
866
+ # resp.deleted_package.origin_configuration.restrictions.upstream #=> String, one of "ALLOW", "BLOCK"
867
+ #
868
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackage AWS API Documentation
869
+ #
870
+ # @overload delete_package(params = {})
871
+ # @param [Hash] params ({})
872
+ def delete_package(params = {}, options = {})
873
+ req = build_request(:delete_package, params)
874
+ req.send_request(options)
875
+ end
876
+
807
877
  # Deletes one or more versions of a package. A deleted package version
808
878
  # cannot be restored in your repository. If you want to remove a package
809
879
  # version from your repository and be able to restore it later, set its
@@ -845,6 +915,8 @@ module Aws::CodeArtifact
845
915
  # component, package versions of those formats do not have a
846
916
  # namespace.
847
917
  #
918
+ # * The namespace of a generic package is it’s `namespace`.
919
+ #
848
920
  # @option params [required, String] :package
849
921
  # The name of the package with the versions to delete.
850
922
  #
@@ -866,7 +938,7 @@ module Aws::CodeArtifact
866
938
  # domain: "DomainName", # required
867
939
  # domain_owner: "AccountId",
868
940
  # repository: "RepositoryName", # required
869
- # format: "npm", # required, accepts npm, pypi, maven, nuget
941
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
870
942
  # namespace: "PackageNamespace",
871
943
  # package: "PackageName", # required
872
944
  # versions: ["PackageVersion"], # required
@@ -927,7 +999,7 @@ module Aws::CodeArtifact
927
999
  # resp.repository.upstreams[0].repository_name #=> String
928
1000
  # resp.repository.external_connections #=> Array
929
1001
  # resp.repository.external_connections[0].external_connection_name #=> String
930
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
1002
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
931
1003
  # resp.repository.external_connections[0].status #=> String, one of "Available"
932
1004
  #
933
1005
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeleteRepository AWS API Documentation
@@ -1074,6 +1146,8 @@ module Aws::CodeArtifact
1074
1146
  # * Python and NuGet packages do not contain a corresponding component,
1075
1147
  # packages of those formats do not have a namespace.
1076
1148
  #
1149
+ # * The namespace of a generic package is it’s `namespace`.
1150
+ #
1077
1151
  # @option params [required, String] :package
1078
1152
  # The name of the requested package.
1079
1153
  #
@@ -1087,14 +1161,14 @@ module Aws::CodeArtifact
1087
1161
  # domain: "DomainName", # required
1088
1162
  # domain_owner: "AccountId",
1089
1163
  # repository: "RepositoryName", # required
1090
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1164
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1091
1165
  # namespace: "PackageNamespace",
1092
1166
  # package: "PackageName", # required
1093
1167
  # })
1094
1168
  #
1095
1169
  # @example Response structure
1096
1170
  #
1097
- # resp.package.format #=> String, one of "npm", "pypi", "maven", "nuget"
1171
+ # resp.package.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1098
1172
  # resp.package.namespace #=> String
1099
1173
  # resp.package.name #=> String
1100
1174
  # resp.package.origin_configuration.restrictions.publish #=> String, one of "ALLOW", "BLOCK"
@@ -1143,6 +1217,8 @@ module Aws::CodeArtifact
1143
1217
  # component, package versions of those formats do not have a
1144
1218
  # namespace.
1145
1219
  #
1220
+ # * The namespace of a generic package is it’s `namespace`.
1221
+ #
1146
1222
  # @option params [required, String] :package
1147
1223
  # The name of the requested package version.
1148
1224
  #
@@ -1159,7 +1235,7 @@ module Aws::CodeArtifact
1159
1235
  # domain: "DomainName", # required
1160
1236
  # domain_owner: "AccountId",
1161
1237
  # repository: "RepositoryName", # required
1162
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1238
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1163
1239
  # namespace: "PackageNamespace",
1164
1240
  # package: "PackageName", # required
1165
1241
  # package_version: "PackageVersion", # required
@@ -1167,7 +1243,7 @@ module Aws::CodeArtifact
1167
1243
  #
1168
1244
  # @example Response structure
1169
1245
  #
1170
- # resp.package_version.format #=> String, one of "npm", "pypi", "maven", "nuget"
1246
+ # resp.package_version.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1171
1247
  # resp.package_version.namespace #=> String
1172
1248
  # resp.package_version.package_name #=> String
1173
1249
  # resp.package_version.display_name #=> String
@@ -1231,7 +1307,7 @@ module Aws::CodeArtifact
1231
1307
  # resp.repository.upstreams[0].repository_name #=> String
1232
1308
  # resp.repository.external_connections #=> Array
1233
1309
  # resp.repository.external_connections[0].external_connection_name #=> String
1234
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
1310
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1235
1311
  # resp.repository.external_connections[0].status #=> String, one of "Available"
1236
1312
  #
1237
1313
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DescribeRepository AWS API Documentation
@@ -1285,7 +1361,7 @@ module Aws::CodeArtifact
1285
1361
  # resp.repository.upstreams[0].repository_name #=> String
1286
1362
  # resp.repository.external_connections #=> Array
1287
1363
  # resp.repository.external_connections[0].external_connection_name #=> String
1288
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
1364
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1289
1365
  # resp.repository.external_connections[0].status #=> String, one of "Available"
1290
1366
  #
1291
1367
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DisassociateExternalConnection AWS API Documentation
@@ -1343,6 +1419,8 @@ module Aws::CodeArtifact
1343
1419
  # component, package versions of those formats do not have a
1344
1420
  # namespace.
1345
1421
  #
1422
+ # * The namespace of a generic package is it’s `namespace`.
1423
+ #
1346
1424
  # @option params [required, String] :package
1347
1425
  # The name of the package with the versions you want to dispose.
1348
1426
  #
@@ -1366,7 +1444,7 @@ module Aws::CodeArtifact
1366
1444
  # domain: "DomainName", # required
1367
1445
  # domain_owner: "AccountId",
1368
1446
  # repository: "RepositoryName", # required
1369
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1447
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1370
1448
  # namespace: "PackageNamespace",
1371
1449
  # package: "PackageName", # required
1372
1450
  # versions: ["PackageVersion"], # required
@@ -1546,6 +1624,8 @@ module Aws::CodeArtifact
1546
1624
  # component, package versions of those formats do not have a
1547
1625
  # namespace.
1548
1626
  #
1627
+ # * The namespace of a generic package is it’s `namespace`.
1628
+ #
1549
1629
  # @option params [required, String] :package
1550
1630
  # The name of the package that contains the requested asset.
1551
1631
  #
@@ -1572,7 +1652,7 @@ module Aws::CodeArtifact
1572
1652
  # domain: "DomainName", # required
1573
1653
  # domain_owner: "AccountId",
1574
1654
  # repository: "RepositoryName", # required
1575
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1655
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1576
1656
  # namespace: "PackageNamespace",
1577
1657
  # package: "PackageName", # required
1578
1658
  # package_version: "PackageVersion", # required
@@ -1617,11 +1697,6 @@ module Aws::CodeArtifact
1617
1697
  # A format that specifies the type of the package version with the
1618
1698
  # requested readme file.
1619
1699
  #
1620
- # <note markdown="1"> Although `maven` is listed as a valid value, CodeArtifact does not
1621
- # support displaying readme files for Maven packages.
1622
- #
1623
- # </note>
1624
- #
1625
1700
  # @option params [String] :namespace
1626
1701
  # The namespace of the package version with the requested readme file.
1627
1702
  # The package version component that specifies its namespace depends on
@@ -1657,7 +1732,7 @@ module Aws::CodeArtifact
1657
1732
  # domain: "DomainName", # required
1658
1733
  # domain_owner: "AccountId",
1659
1734
  # repository: "RepositoryName", # required
1660
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1735
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1661
1736
  # namespace: "PackageNamespace",
1662
1737
  # package: "PackageName", # required
1663
1738
  # package_version: "PackageVersion", # required
@@ -1665,7 +1740,7 @@ module Aws::CodeArtifact
1665
1740
  #
1666
1741
  # @example Response structure
1667
1742
  #
1668
- # resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
1743
+ # resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1669
1744
  # resp.namespace #=> String
1670
1745
  # resp.package #=> String
1671
1746
  # resp.version #=> String
@@ -1717,7 +1792,7 @@ module Aws::CodeArtifact
1717
1792
  # domain: "DomainName", # required
1718
1793
  # domain_owner: "AccountId",
1719
1794
  # repository: "RepositoryName", # required
1720
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1795
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1721
1796
  # })
1722
1797
  #
1723
1798
  # @example Response structure
@@ -1860,6 +1935,8 @@ module Aws::CodeArtifact
1860
1935
  # component, package versions of those formats do not have a
1861
1936
  # namespace.
1862
1937
  #
1938
+ # * The namespace of a generic package is it’s `namespace`.
1939
+ #
1863
1940
  # @option params [required, String] :package
1864
1941
  # The name of the package that contains the requested package version
1865
1942
  # assets.
@@ -1893,7 +1970,7 @@ module Aws::CodeArtifact
1893
1970
  # domain: "DomainName", # required
1894
1971
  # domain_owner: "AccountId",
1895
1972
  # repository: "RepositoryName", # required
1896
- # format: "npm", # required, accepts npm, pypi, maven, nuget
1973
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1897
1974
  # namespace: "PackageNamespace",
1898
1975
  # package: "PackageName", # required
1899
1976
  # package_version: "PackageVersion", # required
@@ -1903,7 +1980,7 @@ module Aws::CodeArtifact
1903
1980
  #
1904
1981
  # @example Response structure
1905
1982
  #
1906
- # resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
1983
+ # resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
1907
1984
  # resp.namespace #=> String
1908
1985
  # resp.package #=> String
1909
1986
  # resp.version #=> String
@@ -1964,6 +2041,8 @@ module Aws::CodeArtifact
1964
2041
  # component, package versions of those formats do not have a
1965
2042
  # namespace.
1966
2043
  #
2044
+ # * The namespace of a generic package is it’s `namespace`.
2045
+ #
1967
2046
  # @option params [required, String] :package
1968
2047
  # The name of the package versions' package.
1969
2048
  #
@@ -1991,7 +2070,7 @@ module Aws::CodeArtifact
1991
2070
  # domain: "DomainName", # required
1992
2071
  # domain_owner: "AccountId",
1993
2072
  # repository: "RepositoryName", # required
1994
- # format: "npm", # required, accepts npm, pypi, maven, nuget
2073
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
1995
2074
  # namespace: "PackageNamespace",
1996
2075
  # package: "PackageName", # required
1997
2076
  # package_version: "PackageVersion", # required
@@ -2000,7 +2079,7 @@ module Aws::CodeArtifact
2000
2079
  #
2001
2080
  # @example Response structure
2002
2081
  #
2003
- # resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
2082
+ # resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
2004
2083
  # resp.namespace #=> String
2005
2084
  # resp.package #=> String
2006
2085
  # resp.version #=> String
@@ -2022,7 +2101,9 @@ module Aws::CodeArtifact
2022
2101
  end
2023
2102
 
2024
2103
  # Returns a list of [PackageVersionSummary][1] objects for package
2025
- # versions in a repository that match the request parameters.
2104
+ # versions in a repository that match the request parameters. Package
2105
+ # versions of all statuses will be returned by default when calling
2106
+ # `list-package-versions` with no `--status` parameter.
2026
2107
  #
2027
2108
  #
2028
2109
  #
@@ -2041,7 +2122,7 @@ module Aws::CodeArtifact
2041
2122
  # versions.
2042
2123
  #
2043
2124
  # @option params [required, String] :format
2044
- # The format of the returned package versions.
2125
+ # The format of the package versions you want to list.
2045
2126
  #
2046
2127
  # @option params [String] :namespace
2047
2128
  # The namespace of the package that contains the requested package
@@ -2055,6 +2136,8 @@ module Aws::CodeArtifact
2055
2136
  # * Python and NuGet packages do not contain a corresponding component,
2056
2137
  # packages of those formats do not have a namespace.
2057
2138
  #
2139
+ # * The namespace of a generic package is it’s `namespace`.
2140
+ #
2058
2141
  # @option params [required, String] :package
2059
2142
  # The name of the package for which you want to request package
2060
2143
  # versions.
@@ -2094,7 +2177,7 @@ module Aws::CodeArtifact
2094
2177
  # domain: "DomainName", # required
2095
2178
  # domain_owner: "AccountId",
2096
2179
  # repository: "RepositoryName", # required
2097
- # format: "npm", # required, accepts npm, pypi, maven, nuget
2180
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
2098
2181
  # namespace: "PackageNamespace",
2099
2182
  # package: "PackageName", # required
2100
2183
  # status: "Published", # accepts Published, Unfinished, Unlisted, Archived, Disposed, Deleted
@@ -2107,7 +2190,7 @@ module Aws::CodeArtifact
2107
2190
  # @example Response structure
2108
2191
  #
2109
2192
  # resp.default_display_version #=> String
2110
- # resp.format #=> String, one of "npm", "pypi", "maven", "nuget"
2193
+ # resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
2111
2194
  # resp.namespace #=> String
2112
2195
  # resp.package #=> String
2113
2196
  # resp.versions #=> Array
@@ -2165,6 +2248,8 @@ module Aws::CodeArtifact
2165
2248
  # * Python and NuGet packages do not contain a corresponding component,
2166
2249
  # packages of those formats do not have a namespace.
2167
2250
  #
2251
+ # * The namespace of a generic package is it’s `namespace`.
2252
+ #
2168
2253
  # @option params [String] :package_prefix
2169
2254
  # A prefix used to filter requested packages. Only packages with names
2170
2255
  # that start with `packagePrefix` are returned.
@@ -2210,7 +2295,7 @@ module Aws::CodeArtifact
2210
2295
  # domain: "DomainName", # required
2211
2296
  # domain_owner: "AccountId",
2212
2297
  # repository: "RepositoryName", # required
2213
- # format: "npm", # accepts npm, pypi, maven, nuget
2298
+ # format: "npm", # accepts npm, pypi, maven, nuget, generic
2214
2299
  # namespace: "PackageNamespace",
2215
2300
  # package_prefix: "PackageName",
2216
2301
  # max_results: 1,
@@ -2222,7 +2307,7 @@ module Aws::CodeArtifact
2222
2307
  # @example Response structure
2223
2308
  #
2224
2309
  # resp.packages #=> Array
2225
- # resp.packages[0].format #=> String, one of "npm", "pypi", "maven", "nuget"
2310
+ # resp.packages[0].format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
2226
2311
  # resp.packages[0].namespace #=> String
2227
2312
  # resp.packages[0].package #=> String
2228
2313
  # resp.packages[0].origin_configuration.restrictions.publish #=> String, one of "ALLOW", "BLOCK"
@@ -2395,6 +2480,126 @@ module Aws::CodeArtifact
2395
2480
  req.send_request(options)
2396
2481
  end
2397
2482
 
2483
+ # Creates a new package version containing one or more assets (or
2484
+ # files).
2485
+ #
2486
+ # The `unfinished` flag can be used to keep the package version in the
2487
+ # `Unfinished` state until all of it’s assets have been uploaded (see
2488
+ # [Package version status][1] in the *CodeArtifact user guide*). To set
2489
+ # the package version’s status to `Published`, omit the `unfinished`
2490
+ # flag when uploading the final asset, or set the status using
2491
+ # [UpdatePackageVersionStatus][2]. Once a package version’s status is
2492
+ # set to `Published`, it cannot change back to `Unfinished`.
2493
+ #
2494
+ # <note markdown="1"> Only generic packages can be published using this API.
2495
+ #
2496
+ # </note>
2497
+ #
2498
+ #
2499
+ #
2500
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status
2501
+ # [2]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html
2502
+ #
2503
+ # @option params [required, String] :domain
2504
+ # The name of the domain that contains the repository that contains the
2505
+ # package version to publish.
2506
+ #
2507
+ # @option params [String] :domain_owner
2508
+ # The 12-digit account number of the AWS account that owns the domain.
2509
+ # It does not include dashes or spaces.
2510
+ #
2511
+ # @option params [required, String] :repository
2512
+ # The name of the repository that the package version will be published
2513
+ # to.
2514
+ #
2515
+ # @option params [required, String] :format
2516
+ # A format that specifies the type of the package version with the
2517
+ # requested asset file.
2518
+ #
2519
+ # @option params [String] :namespace
2520
+ # The namespace of the package version to publish.
2521
+ #
2522
+ # @option params [required, String] :package
2523
+ # The name of the package version to publish.
2524
+ #
2525
+ # @option params [required, String] :package_version
2526
+ # The package version to publish (for example, `3.5.2`).
2527
+ #
2528
+ # @option params [required, String, StringIO, File] :asset_content
2529
+ # The content of the asset to publish.
2530
+ #
2531
+ # @option params [required, String] :asset_name
2532
+ # The name of the asset to publish. Asset names can include Unicode
2533
+ # letters and numbers, and the following special characters: `` ~ ! @ ^
2534
+ # & ( ) - ` _ + [ ] \{ \} ; , . ` ``
2535
+ #
2536
+ # @option params [required, String] :asset_sha256
2537
+ # The SHA256 hash of the `assetContent` to publish. This value must be
2538
+ # calculated by the caller and provided with the request.
2539
+ #
2540
+ # This value is used as an integrity check to verify that the
2541
+ # `assetContent` has not changed after it was originally sent.
2542
+ #
2543
+ # @option params [Boolean] :unfinished
2544
+ # Specifies whether the package version should remain in the
2545
+ # `unfinished` state. If omitted, the package version status will be set
2546
+ # to `Published` (see [Package version status][1] in the *CodeArtifact
2547
+ # User Guide*).
2548
+ #
2549
+ # Valid values: `unfinished`
2550
+ #
2551
+ #
2552
+ #
2553
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status
2554
+ #
2555
+ # @return [Types::PublishPackageVersionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2556
+ #
2557
+ # * {Types::PublishPackageVersionResult#format #format} => String
2558
+ # * {Types::PublishPackageVersionResult#namespace #namespace} => String
2559
+ # * {Types::PublishPackageVersionResult#package #package} => String
2560
+ # * {Types::PublishPackageVersionResult#version #version} => String
2561
+ # * {Types::PublishPackageVersionResult#version_revision #version_revision} => String
2562
+ # * {Types::PublishPackageVersionResult#status #status} => String
2563
+ # * {Types::PublishPackageVersionResult#asset #asset} => Types::AssetSummary
2564
+ #
2565
+ # @example Request syntax with placeholder values
2566
+ #
2567
+ # resp = client.publish_package_version({
2568
+ # domain: "DomainName", # required
2569
+ # domain_owner: "AccountId",
2570
+ # repository: "RepositoryName", # required
2571
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
2572
+ # namespace: "PackageNamespace",
2573
+ # package: "PackageName", # required
2574
+ # package_version: "PackageVersion", # required
2575
+ # asset_content: "data", # required
2576
+ # asset_name: "AssetName", # required
2577
+ # asset_sha256: "SHA256", # required
2578
+ # unfinished: false,
2579
+ # })
2580
+ #
2581
+ # @example Response structure
2582
+ #
2583
+ # resp.format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
2584
+ # resp.namespace #=> String
2585
+ # resp.package #=> String
2586
+ # resp.version #=> String
2587
+ # resp.version_revision #=> String
2588
+ # resp.status #=> String, one of "Published", "Unfinished", "Unlisted", "Archived", "Disposed", "Deleted"
2589
+ # resp.asset.name #=> String
2590
+ # resp.asset.size #=> Integer
2591
+ # resp.asset.hashes #=> Hash
2592
+ # resp.asset.hashes["HashAlgorithm"] #=> String
2593
+ #
2594
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PublishPackageVersion AWS API Documentation
2595
+ #
2596
+ # @overload publish_package_version(params = {})
2597
+ # @param [Hash] params ({})
2598
+ def publish_package_version(params = {}, options = {})
2599
+ req = build_request(:publish_package_version, params)
2600
+ req.send_request(options)
2601
+ end
2602
+
2398
2603
  # Sets a resource policy on a domain that specifies permissions to
2399
2604
  # access it.
2400
2605
  #
@@ -2494,6 +2699,8 @@ module Aws::CodeArtifact
2494
2699
  # * Python and NuGet packages do not contain a corresponding component,
2495
2700
  # packages of those formats do not have a namespace.
2496
2701
  #
2702
+ # * The namespace of a generic package is it’s `namespace`.
2703
+ #
2497
2704
  # @option params [required, String] :package
2498
2705
  # The name of the package to be updated.
2499
2706
  #
@@ -2522,7 +2729,7 @@ module Aws::CodeArtifact
2522
2729
  # domain: "DomainName", # required
2523
2730
  # domain_owner: "AccountId",
2524
2731
  # repository: "RepositoryName", # required
2525
- # format: "npm", # required, accepts npm, pypi, maven, nuget
2732
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
2526
2733
  # namespace: "PackageNamespace",
2527
2734
  # package: "PackageName", # required
2528
2735
  # restrictions: { # required
@@ -2701,6 +2908,8 @@ module Aws::CodeArtifact
2701
2908
  # component, package versions of those formats do not have a
2702
2909
  # namespace.
2703
2910
  #
2911
+ # * The namespace of a generic package is it’s `namespace`.
2912
+ #
2704
2913
  # @option params [required, String] :package
2705
2914
  # The name of the package with the version statuses to update.
2706
2915
  #
@@ -2733,7 +2942,7 @@ module Aws::CodeArtifact
2733
2942
  # domain: "DomainName", # required
2734
2943
  # domain_owner: "AccountId",
2735
2944
  # repository: "RepositoryName", # required
2736
- # format: "npm", # required, accepts npm, pypi, maven, nuget
2945
+ # format: "npm", # required, accepts npm, pypi, maven, nuget, generic
2737
2946
  # namespace: "PackageNamespace",
2738
2947
  # package: "PackageName", # required
2739
2948
  # versions: ["PackageVersion"], # required
@@ -2818,7 +3027,7 @@ module Aws::CodeArtifact
2818
3027
  # resp.repository.upstreams[0].repository_name #=> String
2819
3028
  # resp.repository.external_connections #=> Array
2820
3029
  # resp.repository.external_connections[0].external_connection_name #=> String
2821
- # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget"
3030
+ # resp.repository.external_connections[0].package_format #=> String, one of "npm", "pypi", "maven", "nuget", "generic"
2822
3031
  # resp.repository.external_connections[0].status #=> String, one of "Available"
2823
3032
  #
2824
3033
  # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/UpdateRepository AWS API Documentation
@@ -2843,7 +3052,7 @@ module Aws::CodeArtifact
2843
3052
  params: params,
2844
3053
  config: config)
2845
3054
  context[:gem_name] = 'aws-sdk-codeartifact'
2846
- context[:gem_version] = '1.24.0'
3055
+ context[:gem_version] = '1.26.0'
2847
3056
  Seahorse::Client::Request.new(handlers, context)
2848
3057
  end
2849
3058
 
@@ -38,6 +38,8 @@ module Aws::CodeArtifact
38
38
  DeleteDomainPermissionsPolicyResult = Shapes::StructureShape.new(name: 'DeleteDomainPermissionsPolicyResult')
39
39
  DeleteDomainRequest = Shapes::StructureShape.new(name: 'DeleteDomainRequest')
40
40
  DeleteDomainResult = Shapes::StructureShape.new(name: 'DeleteDomainResult')
41
+ DeletePackageRequest = Shapes::StructureShape.new(name: 'DeletePackageRequest')
42
+ DeletePackageResult = Shapes::StructureShape.new(name: 'DeletePackageResult')
41
43
  DeletePackageVersionsRequest = Shapes::StructureShape.new(name: 'DeletePackageVersionsRequest')
42
44
  DeletePackageVersionsResult = Shapes::StructureShape.new(name: 'DeletePackageVersionsResult')
43
45
  DeleteRepositoryPermissionsPolicyRequest = Shapes::StructureShape.new(name: 'DeleteRepositoryPermissionsPolicyRequest')
@@ -135,6 +137,8 @@ module Aws::CodeArtifact
135
137
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
136
138
  PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
137
139
  PolicyRevision = Shapes::StringShape.new(name: 'PolicyRevision')
140
+ PublishPackageVersionRequest = Shapes::StructureShape.new(name: 'PublishPackageVersionRequest')
141
+ PublishPackageVersionResult = Shapes::StructureShape.new(name: 'PublishPackageVersionResult')
138
142
  PutDomainPermissionsPolicyRequest = Shapes::StructureShape.new(name: 'PutDomainPermissionsPolicyRequest')
139
143
  PutDomainPermissionsPolicyResult = Shapes::StructureShape.new(name: 'PutDomainPermissionsPolicyResult')
140
144
  PutPackageOriginConfigurationRequest = Shapes::StructureShape.new(name: 'PutPackageOriginConfigurationRequest')
@@ -151,6 +155,7 @@ module Aws::CodeArtifact
151
155
  ResourcePolicy = Shapes::StructureShape.new(name: 'ResourcePolicy')
152
156
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
153
157
  RetryAfterSeconds = Shapes::IntegerShape.new(name: 'RetryAfterSeconds')
158
+ SHA256 = Shapes::StringShape.new(name: 'SHA256')
154
159
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
155
160
  String = Shapes::StringShape.new(name: 'String')
156
161
  String255 = Shapes::StringShape.new(name: 'String255')
@@ -256,6 +261,17 @@ module Aws::CodeArtifact
256
261
  DeleteDomainResult.add_member(:domain, Shapes::ShapeRef.new(shape: DomainDescription, location_name: "domain"))
257
262
  DeleteDomainResult.struct_class = Types::DeleteDomainResult
258
263
 
264
+ DeletePackageRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
265
+ DeletePackageRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
266
+ DeletePackageRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
267
+ DeletePackageRequest.add_member(:format, Shapes::ShapeRef.new(shape: PackageFormat, required: true, location: "querystring", location_name: "format"))
268
+ DeletePackageRequest.add_member(:namespace, Shapes::ShapeRef.new(shape: PackageNamespace, location: "querystring", location_name: "namespace"))
269
+ DeletePackageRequest.add_member(:package, Shapes::ShapeRef.new(shape: PackageName, required: true, location: "querystring", location_name: "package"))
270
+ DeletePackageRequest.struct_class = Types::DeletePackageRequest
271
+
272
+ DeletePackageResult.add_member(:deleted_package, Shapes::ShapeRef.new(shape: PackageSummary, location_name: "deletedPackage"))
273
+ DeletePackageResult.struct_class = Types::DeletePackageResult
274
+
259
275
  DeletePackageVersionsRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "querystring", location_name: "domain"))
260
276
  DeletePackageVersionsRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location: "querystring", location_name: "domain-owner"))
261
277
  DeletePackageVersionsRequest.add_member(:repository, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location: "querystring", location_name: "repository"))
@@ -631,6 +647,30 @@ module Aws::CodeArtifact
631
647
 
632
648
  PackageVersionSummaryList.member = Shapes::ShapeRef.new(shape: PackageVersionSummary)
633
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
+
634
674
  PutDomainPermissionsPolicyRequest.add_member(:domain, Shapes::ShapeRef.new(shape: DomainName, required: true, location_name: "domain"))
635
675
  PutDomainPermissionsPolicyRequest.add_member(:domain_owner, Shapes::ShapeRef.new(shape: AccountId, location_name: "domainOwner"))
636
676
  PutDomainPermissionsPolicyRequest.add_member(:policy_revision, Shapes::ShapeRef.new(shape: PolicyRevision, location_name: "policyRevision"))
@@ -880,6 +920,20 @@ module Aws::CodeArtifact
880
920
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
881
921
  end)
882
922
 
923
+ api.add_operation(:delete_package, Seahorse::Model::Operation.new.tap do |o|
924
+ o.name = "DeletePackage"
925
+ o.http_method = "DELETE"
926
+ o.http_request_uri = "/v1/package"
927
+ o.input = Shapes::ShapeRef.new(shape: DeletePackageRequest)
928
+ o.output = Shapes::ShapeRef.new(shape: DeletePackageResult)
929
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
930
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
931
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
932
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
933
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
934
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
935
+ end)
936
+
883
937
  api.add_operation(:delete_package_versions, Seahorse::Model::Operation.new.tap do |o|
884
938
  o.name = "DeletePackageVersions"
885
939
  o.http_method = "POST"
@@ -1220,6 +1274,21 @@ module Aws::CodeArtifact
1220
1274
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1221
1275
  end)
1222
1276
 
1277
+ api.add_operation(:publish_package_version, Seahorse::Model::Operation.new.tap do |o|
1278
+ o.name = "PublishPackageVersion"
1279
+ o.http_method = "POST"
1280
+ o.http_request_uri = "/v1/package/version/publish"
1281
+ o.input = Shapes::ShapeRef.new(shape: PublishPackageVersionRequest)
1282
+ o.output = Shapes::ShapeRef.new(shape: PublishPackageVersionResult)
1283
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1284
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1285
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1286
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1287
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
1288
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1289
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1290
+ end)
1291
+
1223
1292
  api.add_operation(:put_domain_permissions_policy, Seahorse::Model::Operation.new.tap do |o|
1224
1293
  o.name = "PutDomainPermissionsPolicy"
1225
1294
  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
@@ -95,6 +95,20 @@ module Aws::CodeArtifact
95
95
  end
96
96
  end
97
97
 
98
+ class DeletePackage
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::CodeArtifact::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
98
112
  class DeletePackageVersions
99
113
  def self.build(context)
100
114
  unless context.config.regional_endpoint
@@ -417,6 +431,20 @@ module Aws::CodeArtifact
417
431
  end
418
432
  end
419
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
+
420
448
  class PutDomainPermissionsPolicy
421
449
  def self.build(context)
422
450
  unless context.config.regional_endpoint
@@ -68,6 +68,8 @@ module Aws::CodeArtifact
68
68
  Aws::CodeArtifact::Endpoints::DeleteDomain.build(context)
69
69
  when :delete_domain_permissions_policy
70
70
  Aws::CodeArtifact::Endpoints::DeleteDomainPermissionsPolicy.build(context)
71
+ when :delete_package
72
+ Aws::CodeArtifact::Endpoints::DeletePackage.build(context)
71
73
  when :delete_package_versions
72
74
  Aws::CodeArtifact::Endpoints::DeletePackageVersions.build(context)
73
75
  when :delete_repository
@@ -114,6 +116,8 @@ module Aws::CodeArtifact
114
116
  Aws::CodeArtifact::Endpoints::ListRepositoriesInDomain.build(context)
115
117
  when :list_tags_for_resource
116
118
  Aws::CodeArtifact::Endpoints::ListTagsForResource.build(context)
119
+ when :publish_package_version
120
+ Aws::CodeArtifact::Endpoints::PublishPackageVersion.build(context)
117
121
  when :put_domain_permissions_policy
118
122
  Aws::CodeArtifact::Endpoints::PutDomainPermissionsPolicy.build(context)
119
123
  when :put_package_origin_configuration
@@ -165,6 +165,8 @@ module Aws::CodeArtifact
165
165
  # * Python and NuGet package versions do not contain a corresponding
166
166
  # component, package versions of those formats do not have a
167
167
  # namespace.
168
+ #
169
+ # * The namespace of a generic package is it’s `namespace`.
168
170
  # @return [String]
169
171
  #
170
172
  # @!attribute [rw] package
@@ -447,6 +449,65 @@ module Aws::CodeArtifact
447
449
  include Aws::Structure
448
450
  end
449
451
 
452
+ # @!attribute [rw] domain
453
+ # The name of the domain that contains the package to delete.
454
+ # @return [String]
455
+ #
456
+ # @!attribute [rw] domain_owner
457
+ # The 12-digit account number of the Amazon Web Services account that
458
+ # owns the domain. It does not include dashes or spaces.
459
+ # @return [String]
460
+ #
461
+ # @!attribute [rw] repository
462
+ # The name of the repository that contains the package to delete.
463
+ # @return [String]
464
+ #
465
+ # @!attribute [rw] format
466
+ # The format of the requested package to delete.
467
+ # @return [String]
468
+ #
469
+ # @!attribute [rw] namespace
470
+ # The namespace of the package to delete. The package component that
471
+ # specifies its namespace depends on its type. For example:
472
+ #
473
+ # * The namespace of a Maven package is its `groupId`. The namespace
474
+ # is required when deleting Maven package versions.
475
+ #
476
+ # * The namespace of an npm package is its `scope`.
477
+ #
478
+ # * Python and NuGet packages do not contain corresponding components,
479
+ # packages of those formats do not have a namespace.
480
+ # @return [String]
481
+ #
482
+ # @!attribute [rw] package
483
+ # The name of the package to delete.
484
+ # @return [String]
485
+ #
486
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackageRequest AWS API Documentation
487
+ #
488
+ class DeletePackageRequest < Struct.new(
489
+ :domain,
490
+ :domain_owner,
491
+ :repository,
492
+ :format,
493
+ :namespace,
494
+ :package)
495
+ SENSITIVE = []
496
+ include Aws::Structure
497
+ end
498
+
499
+ # @!attribute [rw] deleted_package
500
+ # Details about a package, including its format, namespace, and name.
501
+ # @return [Types::PackageSummary]
502
+ #
503
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/DeletePackageResult AWS API Documentation
504
+ #
505
+ class DeletePackageResult < Struct.new(
506
+ :deleted_package)
507
+ SENSITIVE = []
508
+ include Aws::Structure
509
+ end
510
+
450
511
  # @!attribute [rw] domain
451
512
  # The name of the domain that contains the package to delete.
452
513
  # @return [String]
@@ -478,6 +539,8 @@ module Aws::CodeArtifact
478
539
  # * Python and NuGet package versions do not contain a corresponding
479
540
  # component, package versions of those formats do not have a
480
541
  # namespace.
542
+ #
543
+ # * The namespace of a generic package is it’s `namespace`.
481
544
  # @return [String]
482
545
  #
483
546
  # @!attribute [rw] package
@@ -681,6 +744,8 @@ module Aws::CodeArtifact
681
744
  #
682
745
  # * Python and NuGet packages do not contain a corresponding
683
746
  # component, packages of those formats do not have a namespace.
747
+ #
748
+ # * The namespace of a generic package is it’s `namespace`.
684
749
  # @return [String]
685
750
  #
686
751
  # @!attribute [rw] package
@@ -747,6 +812,8 @@ module Aws::CodeArtifact
747
812
  # * Python and NuGet package versions do not contain a corresponding
748
813
  # component, package versions of those formats do not have a
749
814
  # namespace.
815
+ #
816
+ # * The namespace of a generic package is it’s `namespace`.
750
817
  # @return [String]
751
818
  #
752
819
  # @!attribute [rw] package
@@ -899,6 +966,8 @@ module Aws::CodeArtifact
899
966
  # * Python and NuGet package versions do not contain a corresponding
900
967
  # component, package versions of those formats do not have a
901
968
  # namespace.
969
+ #
970
+ # * The namespace of a generic package is it’s `namespace`.
902
971
  # @return [String]
903
972
  #
904
973
  # @!attribute [rw] package
@@ -1204,6 +1273,8 @@ module Aws::CodeArtifact
1204
1273
  # * Python and NuGet package versions do not contain a corresponding
1205
1274
  # component, package versions of those formats do not have a
1206
1275
  # namespace.
1276
+ #
1277
+ # * The namespace of a generic package is it’s `namespace`.
1207
1278
  # @return [String]
1208
1279
  #
1209
1280
  # @!attribute [rw] package
@@ -1285,11 +1356,6 @@ module Aws::CodeArtifact
1285
1356
  # @!attribute [rw] format
1286
1357
  # A format that specifies the type of the package version with the
1287
1358
  # requested readme file.
1288
- #
1289
- # <note markdown="1"> Although `maven` is listed as a valid value, CodeArtifact does not
1290
- # support displaying readme files for Maven packages.
1291
- #
1292
- # </note>
1293
1359
  # @return [String]
1294
1360
  #
1295
1361
  # @!attribute [rw] namespace
@@ -1562,6 +1628,8 @@ module Aws::CodeArtifact
1562
1628
  # * Python and NuGet package versions do not contain a corresponding
1563
1629
  # component, package versions of those formats do not have a
1564
1630
  # namespace.
1631
+ #
1632
+ # * The namespace of a generic package is it’s `namespace`.
1565
1633
  # @return [String]
1566
1634
  #
1567
1635
  # @!attribute [rw] package
@@ -1689,6 +1757,8 @@ module Aws::CodeArtifact
1689
1757
  # * Python and NuGet package versions do not contain a corresponding
1690
1758
  # component, package versions of those formats do not have a
1691
1759
  # namespace.
1760
+ #
1761
+ # * The namespace of a generic package is it’s `namespace`.
1692
1762
  # @return [String]
1693
1763
  #
1694
1764
  # @!attribute [rw] package
@@ -1796,7 +1866,7 @@ module Aws::CodeArtifact
1796
1866
  # @return [String]
1797
1867
  #
1798
1868
  # @!attribute [rw] format
1799
- # The format of the returned package versions.
1869
+ # The format of the package versions you want to list.
1800
1870
  # @return [String]
1801
1871
  #
1802
1872
  # @!attribute [rw] namespace
@@ -1810,6 +1880,8 @@ module Aws::CodeArtifact
1810
1880
  #
1811
1881
  # * Python and NuGet packages do not contain a corresponding
1812
1882
  # component, packages of those formats do not have a namespace.
1883
+ #
1884
+ # * The namespace of a generic package is it’s `namespace`.
1813
1885
  # @return [String]
1814
1886
  #
1815
1887
  # @!attribute [rw] package
@@ -1950,6 +2022,8 @@ module Aws::CodeArtifact
1950
2022
  #
1951
2023
  # * Python and NuGet packages do not contain a corresponding
1952
2024
  # component, packages of those formats do not have a namespace.
2025
+ #
2026
+ # * The namespace of a generic package is it’s `namespace`.
1953
2027
  # @return [String]
1954
2028
  #
1955
2029
  # @!attribute [rw] package_prefix
@@ -2234,6 +2308,8 @@ module Aws::CodeArtifact
2234
2308
  #
2235
2309
  # * Python and NuGet packages do not contain a corresponding
2236
2310
  # component, packages of those formats do not have a namespace.
2311
+ #
2312
+ # * The namespace of a generic package is it’s `namespace`.
2237
2313
  # @return [String]
2238
2314
  #
2239
2315
  # @!attribute [rw] name
@@ -2296,12 +2372,6 @@ module Aws::CodeArtifact
2296
2372
  end
2297
2373
 
2298
2374
  # Details about a package, including its format, namespace, and name.
2299
- # The [ListPackages][1] operation returns a list of `PackageSummary`
2300
- # objects.
2301
- #
2302
- #
2303
- #
2304
- # [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackages.html
2305
2375
  #
2306
2376
  # @!attribute [rw] format
2307
2377
  # The format of the package.
@@ -2317,6 +2387,8 @@ module Aws::CodeArtifact
2317
2387
  #
2318
2388
  # * Python and NuGet packages do not contain a corresponding
2319
2389
  # component, packages of those formats do not have a namespace.
2390
+ #
2391
+ # * The namespace of a generic package is it’s `namespace`.
2320
2392
  # @return [String]
2321
2393
  #
2322
2394
  # @!attribute [rw] package
@@ -2362,6 +2434,8 @@ module Aws::CodeArtifact
2362
2434
  # * Python and NuGet package versions do not contain a corresponding
2363
2435
  # component, package versions of those formats do not have a
2364
2436
  # namespace.
2437
+ #
2438
+ # * The namespace of a generic package is it’s `namespace`.
2365
2439
  # @return [String]
2366
2440
  #
2367
2441
  # @!attribute [rw] package_name
@@ -2541,6 +2615,139 @@ module Aws::CodeArtifact
2541
2615
  include Aws::Structure
2542
2616
  end
2543
2617
 
2618
+ # @!attribute [rw] domain
2619
+ # The name of the domain that contains the repository that contains
2620
+ # the package version to publish.
2621
+ # @return [String]
2622
+ #
2623
+ # @!attribute [rw] domain_owner
2624
+ # The 12-digit account number of the AWS account that owns the domain.
2625
+ # It does not include dashes or spaces.
2626
+ # @return [String]
2627
+ #
2628
+ # @!attribute [rw] repository
2629
+ # The name of the repository that the package version will be
2630
+ # published to.
2631
+ # @return [String]
2632
+ #
2633
+ # @!attribute [rw] format
2634
+ # A format that specifies the type of the package version with the
2635
+ # requested asset file.
2636
+ # @return [String]
2637
+ #
2638
+ # @!attribute [rw] namespace
2639
+ # The namespace of the package version to publish.
2640
+ # @return [String]
2641
+ #
2642
+ # @!attribute [rw] package
2643
+ # The name of the package version to publish.
2644
+ # @return [String]
2645
+ #
2646
+ # @!attribute [rw] package_version
2647
+ # The package version to publish (for example, `3.5.2`).
2648
+ # @return [String]
2649
+ #
2650
+ # @!attribute [rw] asset_content
2651
+ # The content of the asset to publish.
2652
+ # @return [IO]
2653
+ #
2654
+ # @!attribute [rw] asset_name
2655
+ # The name of the asset to publish. Asset names can include Unicode
2656
+ # letters and numbers, and the following special characters: `` ~ ! @
2657
+ # ^ & ( ) - ` _ + [ ] \{ \} ; , . ` ``
2658
+ # @return [String]
2659
+ #
2660
+ # @!attribute [rw] asset_sha256
2661
+ # The SHA256 hash of the `assetContent` to publish. This value must be
2662
+ # calculated by the caller and provided with the request.
2663
+ #
2664
+ # This value is used as an integrity check to verify that the
2665
+ # `assetContent` has not changed after it was originally sent.
2666
+ # @return [String]
2667
+ #
2668
+ # @!attribute [rw] unfinished
2669
+ # Specifies whether the package version should remain in the
2670
+ # `unfinished` state. If omitted, the package version status will be
2671
+ # set to `Published` (see [Package version status][1] in the
2672
+ # *CodeArtifact User Guide*).
2673
+ #
2674
+ # Valid values: `unfinished`
2675
+ #
2676
+ #
2677
+ #
2678
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status
2679
+ # @return [Boolean]
2680
+ #
2681
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PublishPackageVersionRequest AWS API Documentation
2682
+ #
2683
+ class PublishPackageVersionRequest < Struct.new(
2684
+ :domain,
2685
+ :domain_owner,
2686
+ :repository,
2687
+ :format,
2688
+ :namespace,
2689
+ :package,
2690
+ :package_version,
2691
+ :asset_content,
2692
+ :asset_name,
2693
+ :asset_sha256,
2694
+ :unfinished)
2695
+ SENSITIVE = []
2696
+ include Aws::Structure
2697
+ end
2698
+
2699
+ # @!attribute [rw] format
2700
+ # The format of the package version.
2701
+ # @return [String]
2702
+ #
2703
+ # @!attribute [rw] namespace
2704
+ # The namespace of the package version.
2705
+ # @return [String]
2706
+ #
2707
+ # @!attribute [rw] package
2708
+ # The name of the package.
2709
+ # @return [String]
2710
+ #
2711
+ # @!attribute [rw] version
2712
+ # The version of the package.
2713
+ # @return [String]
2714
+ #
2715
+ # @!attribute [rw] version_revision
2716
+ # The revision of the package version.
2717
+ # @return [String]
2718
+ #
2719
+ # @!attribute [rw] status
2720
+ # A string that contains the status of the package version. For more
2721
+ # information, see [Package version status][1] in the *CodeArtifact
2722
+ # User Guide*.
2723
+ #
2724
+ #
2725
+ #
2726
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status
2727
+ # @return [String]
2728
+ #
2729
+ # @!attribute [rw] asset
2730
+ # An [AssetSummary][1] for the published asset.
2731
+ #
2732
+ #
2733
+ #
2734
+ # [1]: https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html
2735
+ # @return [Types::AssetSummary]
2736
+ #
2737
+ # @see http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/PublishPackageVersionResult AWS API Documentation
2738
+ #
2739
+ class PublishPackageVersionResult < Struct.new(
2740
+ :format,
2741
+ :namespace,
2742
+ :package,
2743
+ :version,
2744
+ :version_revision,
2745
+ :status,
2746
+ :asset)
2747
+ SENSITIVE = []
2748
+ include Aws::Structure
2749
+ end
2750
+
2544
2751
  # @!attribute [rw] domain
2545
2752
  # The name of the domain on which to set the resource policy.
2546
2753
  # @return [String]
@@ -2612,6 +2819,8 @@ module Aws::CodeArtifact
2612
2819
  #
2613
2820
  # * Python and NuGet packages do not contain a corresponding
2614
2821
  # component, packages of those formats do not have a namespace.
2822
+ #
2823
+ # * The namespace of a generic package is it’s `namespace`.
2615
2824
  # @return [String]
2616
2825
  #
2617
2826
  # @!attribute [rw] package
@@ -3072,6 +3281,8 @@ module Aws::CodeArtifact
3072
3281
  # * Python and NuGet package versions do not contain a corresponding
3073
3282
  # component, package versions of those formats do not have a
3074
3283
  # namespace.
3284
+ #
3285
+ # * The namespace of a generic package is it’s `namespace`.
3075
3286
  # @return [String]
3076
3287
  #
3077
3288
  # @!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.24.0'
55
+ GEM_VERSION = '1.26.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.24.0
4
+ version: 1.26.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-19 00:00:00.000000000 Z
11
+ date: 2023-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core