You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(client-codeartifact): This release introduces Package Origin Controls, a mechanism used to counteract Dependency Confusion attacks. Adds two new APIs, PutPackageOriginConfiguration and DescribePackage, and updates the ListPackage, DescribePackageVersion and ListPackageVersion APIs in support of the feature.
Copy file name to clipboardExpand all lines: clients/client-codeartifact/README.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -149,6 +149,11 @@ contains information about the requested domain.</p>
149
149
</li>
150
150
<li>
151
151
<p>
152
+
<code>DescribePackage</code>: Returns a <ahref="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDescription.html">PackageDescription</a>
153
+
object that contains details about a package. </p>
154
+
</li>
155
+
<li>
156
+
<p>
152
157
<code>DescribePackageVersion</code>: Returns a <ahref="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html">PackageVersionDescription</a>
153
158
object that contains details about a package version. </p>
154
159
</li>
@@ -256,6 +261,11 @@ package in a repository.</p>
256
261
</li>
257
262
<li>
258
263
<p>
264
+
<code>PutPackageOriginConfiguration</code>: Sets the package origin configuration for a package, which determine
265
+
how new versions of the package can be added to a specific repository.</p>
266
+
</li>
267
+
<li>
268
+
<p>
259
269
<code>PutRepositoryPermissionsPolicy</code>: Sets the resource policy on a repository
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
839
+
this.send(command,optionsOrCb||{},cb);
840
+
}else{
841
+
returnthis.send(command,optionsOrCb);
842
+
}
843
+
}
844
+
791
845
/**
792
846
* <p>
793
847
* Returns a
@@ -1069,7 +1123,9 @@ export class Codeartifact extends CodeartifactClient {
1069
1123
1070
1124
/**
1071
1125
* <p>
1072
-
* Gets the readme file or descriptive text for a package version.
1126
+
* Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact
1127
+
* extracts a description from a metadata file. For example, from the <code><description></code> element in the
1128
+
* <code>pom.xml</code> file of a Maven package.
1073
1129
* </p>
1074
1130
* <p>
1075
1131
* The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.
@@ -1511,6 +1567,46 @@ export class Codeartifact extends CodeartifactClient {
1511
1567
}
1512
1568
}
1513
1569
1570
+
/**
1571
+
* <p>Sets the package origin configuration for a package.</p>
1572
+
* <p>The package origin configuration determines how new versions of a package can be added to a repository. You can allow or block direct
1573
+
* publishing of new package versions, or ingestion and retaining of new package versions from an external connection or upstream source.
1574
+
* For more information about package origin controls and configuration, see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/package-origin-controls.html">Editing package origin controls</a> in the <i>CodeArtifact User Guide</i>.</p>
1575
+
* <p>
1576
+
* <code>PutPackageOriginConfiguration</code> can be called on a package that doesn't yet exist in the repository. When called
1577
+
* on a package that does not exist, a package is created in the repository with no versions and the requested restrictions are set on the package.
1578
+
* This can be used to preemptively block ingesting or retaining any versions from external connections or upstream repositories, or to block
1579
+
* publishing any versions of the package into the repository before connecting any package managers or publishers to the repository.</p>
0 commit comments