Skip to content

Commit

Permalink
feat(client-codeartifact): Add support for the Cargo package format.
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Jun 20, 2024
1 parent 1cf227f commit 6d048ab
Show file tree
Hide file tree
Showing 30 changed files with 138 additions and 102 deletions.
7 changes: 6 additions & 1 deletion clients/client-codeartifact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ across their organization.</p>
<li>
<p>
<b>Package</b>: A <i>package</i> is a bundle of software and the metadata required to
resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, and generic package formats.
resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, Cargo, and generic package formats.
For more information about the supported package formats and how to use CodeArtifact with them, see the
<a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html">CodeArtifact User Guide</a>.</p>
<p>In CodeArtifact, a package consists of:</p>
Expand Down Expand Up @@ -223,6 +223,11 @@ package format:
<ul>
<li>
<p>
<code>cargo</code>
</p>
</li>
<li>
<p>
<code>generic</code>
</p>
</li>
Expand Down
7 changes: 6 additions & 1 deletion clients/client-codeartifact/src/Codeartifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ export interface Codeartifact {
* <li>
* <p>
* <b>Package</b>: A <i>package</i> is a bundle of software and the metadata required to
* resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, and generic package formats.
* resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, Cargo, and generic package formats.
* For more information about the supported package formats and how to use CodeArtifact with them, see the
* <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html">CodeArtifact User Guide</a>.</p>
* <p>In CodeArtifact, a package consists of:</p>
Expand Down Expand Up @@ -1277,6 +1277,11 @@ export interface Codeartifact {
* <ul>
* <li>
* <p>
* <code>cargo</code>
* </p>
* </li>
* <li>
* <p>
* <code>generic</code>
* </p>
* </li>
Expand Down
7 changes: 6 additions & 1 deletion clients/client-codeartifact/src/CodeartifactClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ export interface CodeartifactClientResolvedConfig extends CodeartifactClientReso
* <li>
* <p>
* <b>Package</b>: A <i>package</i> is a bundle of software and the metadata required to
* resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, and generic package formats.
* resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, Cargo, and generic package formats.
* For more information about the supported package formats and how to use CodeArtifact with them, see the
* <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html">CodeArtifact User Guide</a>.</p>
* <p>In CodeArtifact, a package consists of:</p>
Expand Down Expand Up @@ -704,6 +704,11 @@ export interface CodeartifactClientResolvedConfig extends CodeartifactClientReso
* <ul>
* <li>
* <p>
* <code>cargo</code>
* </p>
* </li>
* <li>
* <p>
* <code>generic</code>
* </p>
* </li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface AssociateExternalConnectionCommandOutput extends AssociateExter
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // status: "Available",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface CopyPackageVersionsCommandOutput extends CopyPackageVersionsRes
* domainOwner: "STRING_VALUE",
* sourceRepository: "STRING_VALUE", // required
* destinationRepository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* versions: [ // PackageVersionList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryResult, _
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // status: "Available",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ export interface DeletePackageCommandOutput extends DeletePackageResult, __Metad
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* };
* const command = new DeletePackageCommand(input);
* const response = await client.send(command);
* // { // DeletePackageResult
* // deletedPackage: { // PackageSummary
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // originConfiguration: { // PackageOriginConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface DeletePackageVersionsCommandOutput extends DeletePackageVersion
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* versions: [ // PackageVersionList // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface DeleteRepositoryCommandOutput extends DeleteRepositoryResult, _
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // status: "Available",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ export interface DescribePackageCommandOutput extends DescribePackageResult, __M
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* };
* const command = new DescribePackageCommand(input);
* const response = await client.send(command);
* // { // DescribePackageResult
* // package: { // PackageDescription
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // namespace: "STRING_VALUE",
* // name: "STRING_VALUE",
* // originConfiguration: { // PackageOriginConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface DescribePackageVersionCommandOutput extends DescribePackageVers
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
Expand All @@ -52,7 +52,7 @@ export interface DescribePackageVersionCommandOutput extends DescribePackageVers
* const response = await client.send(command);
* // { // DescribePackageVersionResult
* // packageVersion: { // PackageVersionDescription
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // namespace: "STRING_VALUE",
* // packageName: "STRING_VALUE",
* // displayName: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface DescribeRepositoryCommandOutput extends DescribeRepositoryResul
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // status: "Available",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface DisassociateExternalConnectionCommandOutput
* // externalConnections: [ // RepositoryExternalConnectionInfoList
* // { // RepositoryExternalConnectionInfo
* // externalConnectionName: "STRING_VALUE",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // packageFormat: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // status: "Available",
* // },
* // ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface DisposePackageVersionsCommandOutput extends DisposePackageVersi
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* versions: [ // PackageVersionList // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface GetAssociatedPackageGroupCommandOutput extends GetAssociatedPac
* const input = { // GetAssociatedPackageGroupRequest
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export interface GetPackageVersionAssetCommandOutput
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ export interface GetPackageVersionReadmeCommandOutput extends GetPackageVersionR
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
* };
* const command = new GetPackageVersionReadmeCommand(input);
* const response = await client.send(command);
* // { // GetPackageVersionReadmeResult
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // version: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export interface GetRepositoryEndpointCommandOutput extends GetRepositoryEndpoin
* <ul>
* <li>
* <p>
* <code>cargo</code>
* </p>
* </li>
* <li>
* <p>
* <code>generic</code>
* </p>
* </li>
Expand Down Expand Up @@ -79,7 +84,7 @@ export interface GetRepositoryEndpointCommandOutput extends GetRepositoryEndpoin
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* };
* const command = new GetRepositoryEndpointCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface ListAssociatedPackagesCommandOutput extends ListAssociatedPacka
* // { // ListAssociatedPackagesResult
* // packages: [ // AssociatedPackageList
* // { // AssociatedPackage
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // associationType: "STRONG" || "WEAK",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface ListPackageVersionAssetsCommandOutput extends ListPackageVersio
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
Expand All @@ -53,7 +53,7 @@ export interface ListPackageVersionAssetsCommandOutput extends ListPackageVersio
* const command = new ListPackageVersionAssetsCommand(input);
* const response = await client.send(command);
* // { // ListPackageVersionAssetsResult
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // version: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface ListPackageVersionDependenciesCommandOutput
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
Expand All @@ -59,7 +59,7 @@ export interface ListPackageVersionDependenciesCommandOutput
* const command = new ListPackageVersionDependenciesCommand(input);
* const response = await client.send(command);
* // { // ListPackageVersionDependenciesResult
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // version: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface ListPackageVersionsCommandOutput extends ListPackageVersionsRes
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* status: "Published" || "Unfinished" || "Unlisted" || "Archived" || "Disposed" || "Deleted",
Expand All @@ -56,7 +56,7 @@ export interface ListPackageVersionsCommandOutput extends ListPackageVersionsRes
* const response = await client.send(command);
* // { // ListPackageVersionsResult
* // defaultDisplayVersion: "STRING_VALUE",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // versions: [ // PackageVersionSummaryList
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface ListPackagesCommandOutput extends ListPackagesResult, __Metadat
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* namespace: "STRING_VALUE",
* packagePrefix: "STRING_VALUE",
* maxResults: Number("int"),
Expand All @@ -56,7 +56,7 @@ export interface ListPackagesCommandOutput extends ListPackagesResult, __Metadat
* // { // ListPackagesResult
* // packages: [ // PackageSummaryList
* // { // PackageSummary
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // originConfiguration: { // PackageOriginConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export interface PublishPackageVersionCommandOutput extends PublishPackageVersio
* domain: "STRING_VALUE", // required
* domainOwner: "STRING_VALUE",
* repository: "STRING_VALUE", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift", // required
* format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo", // required
* namespace: "STRING_VALUE",
* package: "STRING_VALUE", // required
* packageVersion: "STRING_VALUE", // required
Expand All @@ -67,7 +67,7 @@ export interface PublishPackageVersionCommandOutput extends PublishPackageVersio
* const command = new PublishPackageVersionCommand(input);
* const response = await client.send(command);
* // { // PublishPackageVersionResult
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift",
* // format: "npm" || "pypi" || "maven" || "nuget" || "generic" || "ruby" || "swift" || "cargo",
* // namespace: "STRING_VALUE",
* // package: "STRING_VALUE",
* // version: "STRING_VALUE",
Expand Down
Loading

0 comments on commit 6d048ab

Please sign in to comment.