You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::CodeArtifact::Types::ListPackageVersionsRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing ListPackageVersionsRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  domain: "DomainName", # required
  domain_owner: "AccountId",
  repository: "RepositoryName", # required
  format: "npm", # required, accepts npm, pypi, maven
  namespace: "PackageNamespace",
  package: "PackageName", # required
  status: "Published", # accepts Published, Unfinished, Unlisted, Archived, Disposed, Deleted
  sort_by: "PUBLISHED_TIME", # accepts PUBLISHED_TIME
  max_results: 1,
  next_token: "PaginationToken",
}

Instance Attribute Summary collapse

Instance Attribute Details

#domainString

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

Returns:

  • (String)

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

#domain_ownerString

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

Returns:

  • (String)

    The 12-digit account number of the AWS account that owns the domain.

#formatString

The format of the returned packages. The valid package types are:

  • npm: A Node Package Manager (npm) package.

  • pypi: A Python Package Index (PyPI) package.

  • maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.

    Possible values:

    • npm
    • pypi
    • maven

Returns:

  • (String)

    The format of the returned packages.

#max_resultsInteger

The maximum number of results to return per page.

Returns:

  • (Integer)

    The maximum number of results to return per page.

#namespaceString

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

  • The namespace of a Maven package is its groupId.

  • The namespace of an npm package is its scope.

  • A Python package does not contain a corresponding component, so Python packages do not have a namespace.

Returns:

  • (String)

    The namespace of the package.

#next_tokenString

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.

Returns:

  • (String)

    The token for the next set of results.

#packageString

The name of the package for which you want to return a list of package versions.

Returns:

  • (String)

    The name of the package for which you want to return a list of package versions.

#repositoryString

The name of the repository that contains the package.

Returns:

  • (String)

    The name of the repository that contains the package.

#sort_byString

How to sort the returned list of package versions.

Possible values:

  • PUBLISHED_TIME

Returns:

  • (String)

    How to sort the returned list of package versions.

#statusString

A string that specifies the status of the package versions to include in the returned list. It can be one of the following:

  • Published

  • Unfinished

  • Unlisted

  • Archived

  • Disposed

    Possible values:

    • Published
    • Unfinished
    • Unlisted
    • Archived
    • Disposed
    • Deleted

Returns:

  • (String)

    A string that specifies the status of the package versions to include in the returned list.