Skip to content

List Package Version Dependencies

codeartifact_list_package_version_dependencies R Documentation

Returns the direct dependencies for a package version

Description

Returns the direct dependencies for a package version. The dependencies are returned as PackageDependency objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package format (for example, the package.json file for npm packages and the pom.xml file for Maven). Any package version dependencies that are not listed in the configuration file are not returned.

Usage

codeartifact_list_package_version_dependencies(domain, domainOwner,
  repository, format, namespace, package, packageVersion, nextToken)

Arguments

domain

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

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 requested package version.

format

[required] The format of the package with the requested dependencies.

namespace

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

The namespace is required when listing dependencies from package versions of the following formats:

  • Maven

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

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

  • Python and NuGet 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 versions' package.

packageVersion

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

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",
  dependencies = list(
    list(
      namespace = "string",
      package = "string",
      dependencyType = "string",
      versionRequirement = "string"
    )
  )
)

Request syntax

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