Skip to content

List Package Version Assets

codeartifact_list_package_version_assets R Documentation

Returns a list of AssetSummary objects for assets in a package version

Description

Returns a list of AssetSummary objects for assets in a package version.

Usage

codeartifact_list_package_version_assets(domain, domainOwner,
  repository, format, namespace, package, packageVersion, maxResults,
  nextToken)

Arguments

domain

[required] The name of the domain that contains the repository associated with the package version assets.

domainOwner

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

repository

[required] The name of the repository that contains the package that contains the requested package version assets.

format

[required] The format of the package that contains the requested package version assets.

namespace

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

The namespace is required requesting assets from 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.

package

[required] The name of the package that contains the requested package version assets.

packageVersion

[required] A string that contains the package version (for example, ⁠3.5.2⁠).

maxResults

The maximum number of results to return per page.

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.

Value

A list with the following syntax:

list(
  format = "npm"|"pypi"|"maven"|"nuget"|"generic"|"ruby"|"swift"|"cargo",
  namespace = "string",
  package = "string",
  version = "string",
  versionRevision = "string",
  nextToken = "string",
  assets = list(
    list(
      name = "string",
      size = 123,
      hashes = list(
        "string"
      )
    )
  )
)

Request syntax

svc$list_package_version_assets(
  domain = "string",
  domainOwner = "string",
  repository = "string",
  format = "npm"|"pypi"|"maven"|"nuget"|"generic"|"ruby"|"swift"|"cargo",
  namespace = "string",
  package = "string",
  packageVersion = "string",
  maxResults = 123,
  nextToken = "string"
)