list_packages
(**kwargs)¶Returns a list of PackageSummary objects for packages in a repository that match the request parameters.
See also: AWS API Documentation
Request Syntax
response = client.list_packages(
domain='string',
domainOwner='string',
repository='string',
format='npm'|'pypi'|'maven'|'nuget',
namespace='string',
packagePrefix='string',
maxResults=123,
nextToken='string',
publish='ALLOW'|'BLOCK',
upstream='ALLOW'|'BLOCK'
)
[REQUIRED]
The name of the domain that contains the repository that contains the requested packages.
[REQUIRED]
The name of the repository that contains the requested packages.
The namespace used to filter requested packages. Only packages with the provided namespace will be returned. The package component that specifies its namespace depends on its type. For example:
groupId
.scope
.packagePrefix
are returned.Publish
package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.Upstream
package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.dict
Response Syntax
{
'packages': [
{
'format': 'npm'|'pypi'|'maven'|'nuget',
'namespace': 'string',
'package': 'string',
'originConfiguration': {
'restrictions': {
'publish': 'ALLOW'|'BLOCK',
'upstream': 'ALLOW'|'BLOCK'
}
}
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
packages (list) --
The list of returned PackageSummary objects.
(dict) --
Details about a package, including its format, namespace, and name.
format (string) --
The format of the package.
namespace (string) --
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
groupId
.scope
.package (string) --
The name of the package.
originConfiguration (dict) --
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
restrictions (dict) --
A PackageOriginRestrictions
object that contains information about the upstream and publish package origin configuration for the package.
publish (string) --
The package origin configuration that determines if new versions of the package can be published directly to the repository.
upstream (string) --
The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source.
nextToken (string) --
If there are additional results, this is the token for the next set of results.
Exceptions
CodeArtifact.Client.exceptions.AccessDeniedException
CodeArtifact.Client.exceptions.InternalServerException
CodeArtifact.Client.exceptions.ResourceNotFoundException
CodeArtifact.Client.exceptions.ThrottlingException
CodeArtifact.Client.exceptions.ValidationException