| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.CodeArtifact.ListPackageVersions
Description
Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters.
This operation returns paginated results.
Synopsis
- data ListPackageVersions = ListPackageVersions' {}
- newListPackageVersions :: Text -> Text -> PackageFormat -> Text -> ListPackageVersions
- listPackageVersions_status :: Lens' ListPackageVersions (Maybe PackageVersionStatus)
- listPackageVersions_namespace :: Lens' ListPackageVersions (Maybe Text)
- listPackageVersions_domainOwner :: Lens' ListPackageVersions (Maybe Text)
- listPackageVersions_nextToken :: Lens' ListPackageVersions (Maybe Text)
- listPackageVersions_maxResults :: Lens' ListPackageVersions (Maybe Natural)
- listPackageVersions_sortBy :: Lens' ListPackageVersions (Maybe PackageVersionSortType)
- listPackageVersions_domain :: Lens' ListPackageVersions Text
- listPackageVersions_repository :: Lens' ListPackageVersions Text
- listPackageVersions_format :: Lens' ListPackageVersions PackageFormat
- listPackageVersions_package :: Lens' ListPackageVersions Text
- data ListPackageVersionsResponse = ListPackageVersionsResponse' {}
- newListPackageVersionsResponse :: Int -> ListPackageVersionsResponse
- listPackageVersionsResponse_format :: Lens' ListPackageVersionsResponse (Maybe PackageFormat)
- listPackageVersionsResponse_namespace :: Lens' ListPackageVersionsResponse (Maybe Text)
- listPackageVersionsResponse_versions :: Lens' ListPackageVersionsResponse (Maybe [PackageVersionSummary])
- listPackageVersionsResponse_nextToken :: Lens' ListPackageVersionsResponse (Maybe Text)
- listPackageVersionsResponse_package :: Lens' ListPackageVersionsResponse (Maybe Text)
- listPackageVersionsResponse_defaultDisplayVersion :: Lens' ListPackageVersionsResponse (Maybe Text)
- listPackageVersionsResponse_httpStatus :: Lens' ListPackageVersionsResponse Int
Creating a Request
data ListPackageVersions Source #
See: newListPackageVersions smart constructor.
Constructors
| ListPackageVersions' | |
Fields
| |
Instances
newListPackageVersions Source #
Arguments
| :: Text | |
| -> Text | |
| -> PackageFormat | |
| -> Text | |
| -> ListPackageVersions |
Create a value of ListPackageVersions with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:status:ListPackageVersions', listPackageVersions_status - 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
$sel:namespace:ListPackageVersions', listPackageVersions_namespace - 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.
$sel:domainOwner:ListPackageVersions', listPackageVersions_domainOwner - The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$sel:nextToken:ListPackageVersions', listPackageVersions_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.
$sel:maxResults:ListPackageVersions', listPackageVersions_maxResults - The maximum number of results to return per page.
$sel:sortBy:ListPackageVersions', listPackageVersions_sortBy - How to sort the returned list of package versions.
$sel:domain:ListPackageVersions', listPackageVersions_domain - The name of the domain that contains the repository that contains the
returned package versions.
$sel:repository:ListPackageVersions', listPackageVersions_repository - The name of the repository that contains the package.
$sel:format:ListPackageVersions', listPackageVersions_format - 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.
$sel:package:ListPackageVersions', listPackageVersions_package - The name of the package for which you want to return a list of package
versions.
Request Lenses
listPackageVersions_status :: Lens' ListPackageVersions (Maybe PackageVersionStatus) Source #
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
listPackageVersions_namespace :: Lens' ListPackageVersions (Maybe Text) Source #
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.
listPackageVersions_domainOwner :: Lens' ListPackageVersions (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
listPackageVersions_nextToken :: Lens' ListPackageVersions (Maybe Text) Source #
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.
listPackageVersions_maxResults :: Lens' ListPackageVersions (Maybe Natural) Source #
The maximum number of results to return per page.
listPackageVersions_sortBy :: Lens' ListPackageVersions (Maybe PackageVersionSortType) Source #
How to sort the returned list of package versions.
listPackageVersions_domain :: Lens' ListPackageVersions Text Source #
The name of the domain that contains the repository that contains the returned package versions.
listPackageVersions_repository :: Lens' ListPackageVersions Text Source #
The name of the repository that contains the package.
listPackageVersions_format :: Lens' ListPackageVersions PackageFormat Source #
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.
listPackageVersions_package :: Lens' ListPackageVersions Text Source #
The name of the package for which you want to return a list of package versions.
Destructuring the Response
data ListPackageVersionsResponse Source #
See: newListPackageVersionsResponse smart constructor.
Constructors
| ListPackageVersionsResponse' | |
Fields
| |
Instances
newListPackageVersionsResponse Source #
Create a value of ListPackageVersionsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:format:ListPackageVersions', listPackageVersionsResponse_format - A format of the package. Valid package format values are:
npm
pypi
maven
$sel:namespace:ListPackageVersions', listPackageVersionsResponse_namespace - 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.
$sel:versions:ListPackageVersionsResponse', listPackageVersionsResponse_versions - The returned list of
PackageVersionSummary
objects.
$sel:nextToken:ListPackageVersions', listPackageVersionsResponse_nextToken - If there are additional results, this is the token for the next set of
results.
$sel:package:ListPackageVersions', listPackageVersionsResponse_package - The name of the package.
$sel:defaultDisplayVersion:ListPackageVersionsResponse', listPackageVersionsResponse_defaultDisplayVersion - The default package version to display. This depends on the package
format:
- For Maven and PyPI packages, it's the most recently published package version.
- For npm packages, it's the version referenced by the
latesttag. If thelatesttag is not set, it's the most recently published package version.
$sel:httpStatus:ListPackageVersionsResponse', listPackageVersionsResponse_httpStatus - The response's http status code.
Response Lenses
listPackageVersionsResponse_format :: Lens' ListPackageVersionsResponse (Maybe PackageFormat) Source #
A format of the package. Valid package format values are:
npm
pypi
maven
listPackageVersionsResponse_namespace :: Lens' ListPackageVersionsResponse (Maybe Text) Source #
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.
listPackageVersionsResponse_versions :: Lens' ListPackageVersionsResponse (Maybe [PackageVersionSummary]) Source #
The returned list of PackageVersionSummary objects.
listPackageVersionsResponse_nextToken :: Lens' ListPackageVersionsResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listPackageVersionsResponse_package :: Lens' ListPackageVersionsResponse (Maybe Text) Source #
The name of the package.
listPackageVersionsResponse_defaultDisplayVersion :: Lens' ListPackageVersionsResponse (Maybe Text) Source #
The default package version to display. This depends on the package format:
- For Maven and PyPI packages, it's the most recently published package version.
- For npm packages, it's the version referenced by the
latesttag. If thelatesttag is not set, it's the most recently published package version.
listPackageVersionsResponse_httpStatus :: Lens' ListPackageVersionsResponse Int Source #
The response's http status code.