Skip to content

Returns a list of packages associated with the requested package group

Description

Returns a list of packages associated with the requested package group. For information package group association and matching, see Package group definition syntax and matching behavior in the CodeArtifact User Guide.

Usage

codeartifact_list_associated_packages(domain, domainOwner, packageGroup,
  maxResults, nextToken, preview)

Arguments

  • domain

    [required] The name of the domain that contains the package group from which to list associated packages.

  • domainOwner

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

  • packageGroup

    [required] The pattern of the package group from which to list associated packages.

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

  • preview

    When this flag is included, list_associated_packages will return a list of packages that would be associated with a package group, even if it does not exist.

Value

A list with the following syntax:

list(
  packages = list(
    list(
      format = "npm"|"pypi"|"maven"|"nuget"|"generic"|"ruby"|"swift"|"cargo",
      namespace = "string",
      package = "string",
      associationType = "STRONG"|"WEAK"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_associated_packages(
  domain = "string",
  domainOwner = "string",
  packageGroup = "string",
  maxResults = 123,
  nextToken = "string",
  preview = TRUE|FALSE
)