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 AssetSummary objects for assets in a package version.
This operation returns paginated results.
Synopsis
- data ListPackageVersionAssets = ListPackageVersionAssets' {
- namespace :: Maybe Text
- domainOwner :: Maybe Text
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- domain :: Text
- repository :: Text
- format :: PackageFormat
- package :: Text
- packageVersion :: Text
- newListPackageVersionAssets :: Text -> Text -> PackageFormat -> Text -> Text -> ListPackageVersionAssets
- listPackageVersionAssets_namespace :: Lens' ListPackageVersionAssets (Maybe Text)
- listPackageVersionAssets_domainOwner :: Lens' ListPackageVersionAssets (Maybe Text)
- listPackageVersionAssets_nextToken :: Lens' ListPackageVersionAssets (Maybe Text)
- listPackageVersionAssets_maxResults :: Lens' ListPackageVersionAssets (Maybe Natural)
- listPackageVersionAssets_domain :: Lens' ListPackageVersionAssets Text
- listPackageVersionAssets_repository :: Lens' ListPackageVersionAssets Text
- listPackageVersionAssets_format :: Lens' ListPackageVersionAssets PackageFormat
- listPackageVersionAssets_package :: Lens' ListPackageVersionAssets Text
- listPackageVersionAssets_packageVersion :: Lens' ListPackageVersionAssets Text
- data ListPackageVersionAssetsResponse = ListPackageVersionAssetsResponse' {}
- newListPackageVersionAssetsResponse :: Int -> ListPackageVersionAssetsResponse
- listPackageVersionAssetsResponse_format :: Lens' ListPackageVersionAssetsResponse (Maybe PackageFormat)
- listPackageVersionAssetsResponse_namespace :: Lens' ListPackageVersionAssetsResponse (Maybe Text)
- listPackageVersionAssetsResponse_versionRevision :: Lens' ListPackageVersionAssetsResponse (Maybe Text)
- listPackageVersionAssetsResponse_nextToken :: Lens' ListPackageVersionAssetsResponse (Maybe Text)
- listPackageVersionAssetsResponse_version :: Lens' ListPackageVersionAssetsResponse (Maybe Text)
- listPackageVersionAssetsResponse_package :: Lens' ListPackageVersionAssetsResponse (Maybe Text)
- listPackageVersionAssetsResponse_assets :: Lens' ListPackageVersionAssetsResponse (Maybe [AssetSummary])
- listPackageVersionAssetsResponse_httpStatus :: Lens' ListPackageVersionAssetsResponse Int
Creating a Request
data ListPackageVersionAssets Source #
See: newListPackageVersionAssets
smart constructor.
ListPackageVersionAssets' | |
|
Instances
newListPackageVersionAssets Source #
:: Text | |
-> Text | |
-> PackageFormat | |
-> Text | |
-> Text | |
-> ListPackageVersionAssets |
Create a value of ListPackageVersionAssets
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:namespace:ListPackageVersionAssets'
, listPackageVersionAssets_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:ListPackageVersionAssets'
, listPackageVersionAssets_domainOwner
- The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$sel:nextToken:ListPackageVersionAssets'
, listPackageVersionAssets_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:ListPackageVersionAssets'
, listPackageVersionAssets_maxResults
- The maximum number of results to return per page.
$sel:domain:ListPackageVersionAssets'
, listPackageVersionAssets_domain
- The name of the domain that contains the repository associated with the
package version assets.
$sel:repository:ListPackageVersionAssets'
, listPackageVersionAssets_repository
- The name of the repository that contains the package that contains the
returned package version assets.
$sel:format:ListPackageVersionAssets'
, listPackageVersionAssets_format
- The format of the package that contains the returned package version
assets. 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:ListPackageVersionAssets'
, listPackageVersionAssets_package
- The name of the package that contains the returned package version
assets.
$sel:packageVersion:ListPackageVersionAssets'
, listPackageVersionAssets_packageVersion
- A string that contains the package version (for example, 3.5.2
).
Request Lenses
listPackageVersionAssets_namespace :: Lens' ListPackageVersionAssets (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.
listPackageVersionAssets_domainOwner :: Lens' ListPackageVersionAssets (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
listPackageVersionAssets_nextToken :: Lens' ListPackageVersionAssets (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.
listPackageVersionAssets_maxResults :: Lens' ListPackageVersionAssets (Maybe Natural) Source #
The maximum number of results to return per page.
listPackageVersionAssets_domain :: Lens' ListPackageVersionAssets Text Source #
The name of the domain that contains the repository associated with the package version assets.
listPackageVersionAssets_repository :: Lens' ListPackageVersionAssets Text Source #
The name of the repository that contains the package that contains the returned package version assets.
listPackageVersionAssets_format :: Lens' ListPackageVersionAssets PackageFormat Source #
The format of the package that contains the returned package version assets. 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.
listPackageVersionAssets_package :: Lens' ListPackageVersionAssets Text Source #
The name of the package that contains the returned package version assets.
listPackageVersionAssets_packageVersion :: Lens' ListPackageVersionAssets Text Source #
A string that contains the package version (for example, 3.5.2
).
Destructuring the Response
data ListPackageVersionAssetsResponse Source #
See: newListPackageVersionAssetsResponse
smart constructor.
ListPackageVersionAssetsResponse' | |
|
Instances
newListPackageVersionAssetsResponse Source #
Create a value of ListPackageVersionAssetsResponse
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:ListPackageVersionAssets'
, listPackageVersionAssetsResponse_format
- The format of the package that contains the returned package version
assets.
$sel:namespace:ListPackageVersionAssets'
, listPackageVersionAssetsResponse_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:versionRevision:ListPackageVersionAssetsResponse'
, listPackageVersionAssetsResponse_versionRevision
- The current revision associated with the package version.
$sel:nextToken:ListPackageVersionAssets'
, listPackageVersionAssetsResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:version:ListPackageVersionAssetsResponse'
, listPackageVersionAssetsResponse_version
- The version of the package associated with the returned assets.
$sel:package:ListPackageVersionAssets'
, listPackageVersionAssetsResponse_package
- The name of the package that contains the returned package version
assets.
$sel:assets:ListPackageVersionAssetsResponse'
, listPackageVersionAssetsResponse_assets
- The returned list of
AssetSummary
objects.
$sel:httpStatus:ListPackageVersionAssetsResponse'
, listPackageVersionAssetsResponse_httpStatus
- The response's http status code.
Response Lenses
listPackageVersionAssetsResponse_format :: Lens' ListPackageVersionAssetsResponse (Maybe PackageFormat) Source #
The format of the package that contains the returned package version assets.
listPackageVersionAssetsResponse_namespace :: Lens' ListPackageVersionAssetsResponse (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.
listPackageVersionAssetsResponse_versionRevision :: Lens' ListPackageVersionAssetsResponse (Maybe Text) Source #
The current revision associated with the package version.
listPackageVersionAssetsResponse_nextToken :: Lens' ListPackageVersionAssetsResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listPackageVersionAssetsResponse_version :: Lens' ListPackageVersionAssetsResponse (Maybe Text) Source #
The version of the package associated with the returned assets.
listPackageVersionAssetsResponse_package :: Lens' ListPackageVersionAssetsResponse (Maybe Text) Source #
The name of the package that contains the returned package version assets.
listPackageVersionAssetsResponse_assets :: Lens' ListPackageVersionAssetsResponse (Maybe [AssetSummary]) Source #
The returned list of AssetSummary objects.
listPackageVersionAssetsResponse_httpStatus :: Lens' ListPackageVersionAssetsResponse Int Source #
The response's http status code.