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 |
Returns a list of PackageSummary objects for packages in a repository that match the request parameters.
This operation returns paginated results.
Synopsis
- data ListPackages = ListPackages' {
- format :: Maybe PackageFormat
- namespace :: Maybe Text
- domainOwner :: Maybe Text
- nextToken :: Maybe Text
- packagePrefix :: Maybe Text
- maxResults :: Maybe Natural
- domain :: Text
- repository :: Text
- newListPackages :: Text -> Text -> ListPackages
- listPackages_format :: Lens' ListPackages (Maybe PackageFormat)
- listPackages_namespace :: Lens' ListPackages (Maybe Text)
- listPackages_domainOwner :: Lens' ListPackages (Maybe Text)
- listPackages_nextToken :: Lens' ListPackages (Maybe Text)
- listPackages_packagePrefix :: Lens' ListPackages (Maybe Text)
- listPackages_maxResults :: Lens' ListPackages (Maybe Natural)
- listPackages_domain :: Lens' ListPackages Text
- listPackages_repository :: Lens' ListPackages Text
- data ListPackagesResponse = ListPackagesResponse' {
- packages :: Maybe [PackageSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListPackagesResponse :: Int -> ListPackagesResponse
- listPackagesResponse_packages :: Lens' ListPackagesResponse (Maybe [PackageSummary])
- listPackagesResponse_nextToken :: Lens' ListPackagesResponse (Maybe Text)
- listPackagesResponse_httpStatus :: Lens' ListPackagesResponse Int
Creating a Request
data ListPackages Source #
See: newListPackages
smart constructor.
ListPackages' | |
|
Instances
Create a value of ListPackages
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:ListPackages'
, listPackages_format
- The format of the 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:namespace:ListPackages'
, listPackages_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:ListPackages'
, listPackages_domainOwner
- The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$sel:nextToken:ListPackages'
, listPackages_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:packagePrefix:ListPackages'
, listPackages_packagePrefix
- A prefix used to filter returned packages. Only packages with names that
start with packagePrefix
are returned.
$sel:maxResults:ListPackages'
, listPackages_maxResults
- The maximum number of results to return per page.
$sel:domain:ListPackages'
, listPackages_domain
- The name of the domain that contains the repository that contains the
requested list of packages.
$sel:repository:ListPackages'
, listPackages_repository
- The name of the repository from which packages are to be listed.
Request Lenses
listPackages_format :: Lens' ListPackages (Maybe PackageFormat) Source #
The format of the 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.
listPackages_namespace :: Lens' ListPackages (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.
listPackages_domainOwner :: Lens' ListPackages (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
listPackages_nextToken :: Lens' ListPackages (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.
listPackages_packagePrefix :: Lens' ListPackages (Maybe Text) Source #
A prefix used to filter returned packages. Only packages with names that
start with packagePrefix
are returned.
listPackages_maxResults :: Lens' ListPackages (Maybe Natural) Source #
The maximum number of results to return per page.
listPackages_domain :: Lens' ListPackages Text Source #
The name of the domain that contains the repository that contains the requested list of packages.
listPackages_repository :: Lens' ListPackages Text Source #
The name of the repository from which packages are to be listed.
Destructuring the Response
data ListPackagesResponse Source #
See: newListPackagesResponse
smart constructor.
ListPackagesResponse' | |
|
Instances
newListPackagesResponse Source #
Create a value of ListPackagesResponse
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:packages:ListPackagesResponse'
, listPackagesResponse_packages
- The list of returned
PackageSummary
objects.
$sel:nextToken:ListPackages'
, listPackagesResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:httpStatus:ListPackagesResponse'
, listPackagesResponse_httpStatus
- The response's http status code.
Response Lenses
listPackagesResponse_packages :: Lens' ListPackagesResponse (Maybe [PackageSummary]) Source #
The list of returned PackageSummary objects.
listPackagesResponse_nextToken :: Lens' ListPackagesResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listPackagesResponse_httpStatus :: Lens' ListPackagesResponse Int Source #
The response's http status code.