AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the ListPackageVersions operation. Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters. Package versions of all statuses will be returned by default when calling list-package-versions with no --status parameter.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CodeArtifact.AmazonCodeArtifactRequest
      Amazon.CodeArtifact.Model.ListPackageVersionsRequest

Namespace: Amazon.CodeArtifact.Model
Assembly: AWSSDK.CodeArtifact.dll
Version: 3.x.y.z

Syntax

C#
public class ListPackageVersionsRequest : AmazonCodeArtifactRequest
         IAmazonWebServiceRequest

The ListPackageVersionsRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Domain System.String

Gets and sets the property Domain.

The name of the domain that contains the repository that contains the requested package versions.

Public Property DomainOwner System.String

Gets and sets the property DomainOwner.

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

Public Property Format Amazon.CodeArtifact.PackageFormat

Gets and sets the property Format.

The format of the package versions you want to list.

Public Property MaxResults System.Nullable<System.Int32>

Gets and sets the property MaxResults.

The maximum number of results to return per page.

Public Property Namespace System.String

Gets and sets the property Namespace.

The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example:

The namespace is required when deleting package versions of the following formats:

  • Maven

  • Swift

  • generic

  • The namespace of a Maven package version is its groupId.

  • The namespace of an npm or Swift package version is its scope.

  • The namespace of a generic package is its namespace.

  • Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.

Public Property NextToken System.String

Gets and sets the property NextToken.

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

Public Property OriginType Amazon.CodeArtifact.PackageVersionOriginType

Gets and sets the property OriginType.

The originType used to filter package versions. Only package versions with the provided originType will be returned.

Public Property Package System.String

Gets and sets the property Package.

The name of the package for which you want to request package versions.

Public Property Repository System.String

Gets and sets the property Repository.

The name of the repository that contains the requested package versions.

Public Property SortBy Amazon.CodeArtifact.PackageVersionSortType

Gets and sets the property SortBy.

How to sort the requested list of package versions.

Public Property Status Amazon.CodeArtifact.PackageVersionStatus

Gets and sets the property Status.

A string that filters the requested package versions by status.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer