AWS SDK Version 3 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 ListPackages operation. Returns a list of PackageSummary objects for packages in a repository that match the request parameters.

Inheritance Hierarchy

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

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

Syntax

C#
public class ListPackagesRequest : AmazonCodeArtifactRequest
         IAmazonWebServiceRequest

The ListPackagesRequest type exposes the following members

Constructors

NameDescription
Public Method ListPackagesRequest()

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 packages.

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 used to filter requested packages. Only packages from the provided format will be returned.

Public Property MaxResults 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 prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called --namespace and not --namespace-prefix, it has prefix-matching behavior.

Each package format uses namespace as follows:

  • 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 and NuGet 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 PackagePrefix System.String

Gets and sets the property PackagePrefix.

A prefix used to filter requested packages. Only packages with names that start with packagePrefix are returned.

Public Property Publish Amazon.CodeArtifact.AllowPublish

Gets and sets the property Publish.

The value of the Publish package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.

Public Property Repository System.String

Gets and sets the property Repository.

The name of the repository that contains the requested packages.

Public Property Upstream Amazon.CodeArtifact.AllowUpstream

Gets and sets the property Upstream.

The value of the Upstream package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5