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 the direct dependencies for a package version. The dependencies
are returned as
PackageDependency
objects. CodeArtifact extracts the dependencies for a package version
from the metadata file for the package format (for example, the
package.json
file for npm packages and the pom.xml
file for Maven).
Any package version dependencies that are not listed in the
configuration file are not returned.
Synopsis
- data ListPackageVersionDependencies = ListPackageVersionDependencies' {
- namespace :: Maybe Text
- domainOwner :: Maybe Text
- nextToken :: Maybe Text
- domain :: Text
- repository :: Text
- format :: PackageFormat
- package :: Text
- packageVersion :: Text
- newListPackageVersionDependencies :: Text -> Text -> PackageFormat -> Text -> Text -> ListPackageVersionDependencies
- listPackageVersionDependencies_namespace :: Lens' ListPackageVersionDependencies (Maybe Text)
- listPackageVersionDependencies_domainOwner :: Lens' ListPackageVersionDependencies (Maybe Text)
- listPackageVersionDependencies_nextToken :: Lens' ListPackageVersionDependencies (Maybe Text)
- listPackageVersionDependencies_domain :: Lens' ListPackageVersionDependencies Text
- listPackageVersionDependencies_repository :: Lens' ListPackageVersionDependencies Text
- listPackageVersionDependencies_format :: Lens' ListPackageVersionDependencies PackageFormat
- listPackageVersionDependencies_package :: Lens' ListPackageVersionDependencies Text
- listPackageVersionDependencies_packageVersion :: Lens' ListPackageVersionDependencies Text
- data ListPackageVersionDependenciesResponse = ListPackageVersionDependenciesResponse' {
- format :: Maybe PackageFormat
- namespace :: Maybe Text
- versionRevision :: Maybe Text
- dependencies :: Maybe [PackageDependency]
- nextToken :: Maybe Text
- version :: Maybe Text
- package :: Maybe Text
- httpStatus :: Int
- newListPackageVersionDependenciesResponse :: Int -> ListPackageVersionDependenciesResponse
- listPackageVersionDependenciesResponse_format :: Lens' ListPackageVersionDependenciesResponse (Maybe PackageFormat)
- listPackageVersionDependenciesResponse_namespace :: Lens' ListPackageVersionDependenciesResponse (Maybe Text)
- listPackageVersionDependenciesResponse_versionRevision :: Lens' ListPackageVersionDependenciesResponse (Maybe Text)
- listPackageVersionDependenciesResponse_dependencies :: Lens' ListPackageVersionDependenciesResponse (Maybe [PackageDependency])
- listPackageVersionDependenciesResponse_nextToken :: Lens' ListPackageVersionDependenciesResponse (Maybe Text)
- listPackageVersionDependenciesResponse_version :: Lens' ListPackageVersionDependenciesResponse (Maybe Text)
- listPackageVersionDependenciesResponse_package :: Lens' ListPackageVersionDependenciesResponse (Maybe Text)
- listPackageVersionDependenciesResponse_httpStatus :: Lens' ListPackageVersionDependenciesResponse Int
Creating a Request
data ListPackageVersionDependencies Source #
See: newListPackageVersionDependencies
smart constructor.
ListPackageVersionDependencies' | |
|
Instances
newListPackageVersionDependencies Source #
:: Text | |
-> Text | |
-> PackageFormat | |
-> Text | |
-> Text | |
-> ListPackageVersionDependencies |
Create a value of ListPackageVersionDependencies
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:ListPackageVersionDependencies'
, listPackageVersionDependencies_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:ListPackageVersionDependencies'
, listPackageVersionDependencies_domainOwner
- The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$sel:nextToken:ListPackageVersionDependencies'
, listPackageVersionDependencies_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:domain:ListPackageVersionDependencies'
, listPackageVersionDependencies_domain
- The name of the domain that contains the repository that contains the
requested package version dependencies.
$sel:repository:ListPackageVersionDependencies'
, listPackageVersionDependencies_repository
- The name of the repository that contains the requested package version.
$sel:format:ListPackageVersionDependencies'
, listPackageVersionDependencies_format
- The format of the package with the requested dependencies. 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:ListPackageVersionDependencies'
, listPackageVersionDependencies_package
- The name of the package versions' package.
$sel:packageVersion:ListPackageVersionDependencies'
, listPackageVersionDependencies_packageVersion
- A string that contains the package version (for example, 3.5.2
).
Request Lenses
listPackageVersionDependencies_namespace :: Lens' ListPackageVersionDependencies (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.
listPackageVersionDependencies_domainOwner :: Lens' ListPackageVersionDependencies (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
listPackageVersionDependencies_nextToken :: Lens' ListPackageVersionDependencies (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.
listPackageVersionDependencies_domain :: Lens' ListPackageVersionDependencies Text Source #
The name of the domain that contains the repository that contains the requested package version dependencies.
listPackageVersionDependencies_repository :: Lens' ListPackageVersionDependencies Text Source #
The name of the repository that contains the requested package version.
listPackageVersionDependencies_format :: Lens' ListPackageVersionDependencies PackageFormat Source #
The format of the package with the requested dependencies. 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.
listPackageVersionDependencies_package :: Lens' ListPackageVersionDependencies Text Source #
The name of the package versions' package.
listPackageVersionDependencies_packageVersion :: Lens' ListPackageVersionDependencies Text Source #
A string that contains the package version (for example, 3.5.2
).
Destructuring the Response
data ListPackageVersionDependenciesResponse Source #
See: newListPackageVersionDependenciesResponse
smart constructor.
ListPackageVersionDependenciesResponse' | |
|
Instances
newListPackageVersionDependenciesResponse Source #
Create a value of ListPackageVersionDependenciesResponse
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:ListPackageVersionDependencies'
, listPackageVersionDependenciesResponse_format
- A format that specifies the type of the package that contains the
returned dependencies. The valid values are:
npm
pypi
maven
$sel:namespace:ListPackageVersionDependencies'
, listPackageVersionDependenciesResponse_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:ListPackageVersionDependenciesResponse'
, listPackageVersionDependenciesResponse_versionRevision
- The current revision associated with the package version.
$sel:dependencies:ListPackageVersionDependenciesResponse'
, listPackageVersionDependenciesResponse_dependencies
- The returned list of
PackageDependency
objects.
$sel:nextToken:ListPackageVersionDependencies'
, listPackageVersionDependenciesResponse_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:version:ListPackageVersionDependenciesResponse'
, listPackageVersionDependenciesResponse_version
- The version of the package that is specified in the request.
$sel:package:ListPackageVersionDependencies'
, listPackageVersionDependenciesResponse_package
- The name of the package that contains the returned package versions
dependencies.
$sel:httpStatus:ListPackageVersionDependenciesResponse'
, listPackageVersionDependenciesResponse_httpStatus
- The response's http status code.
Response Lenses
listPackageVersionDependenciesResponse_format :: Lens' ListPackageVersionDependenciesResponse (Maybe PackageFormat) Source #
A format that specifies the type of the package that contains the returned dependencies. The valid values are:
npm
pypi
maven
listPackageVersionDependenciesResponse_namespace :: Lens' ListPackageVersionDependenciesResponse (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.
listPackageVersionDependenciesResponse_versionRevision :: Lens' ListPackageVersionDependenciesResponse (Maybe Text) Source #
The current revision associated with the package version.
listPackageVersionDependenciesResponse_dependencies :: Lens' ListPackageVersionDependenciesResponse (Maybe [PackageDependency]) Source #
The returned list of PackageDependency objects.
listPackageVersionDependenciesResponse_nextToken :: Lens' ListPackageVersionDependenciesResponse (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.
listPackageVersionDependenciesResponse_version :: Lens' ListPackageVersionDependenciesResponse (Maybe Text) Source #
The version of the package that is specified in the request.
listPackageVersionDependenciesResponse_package :: Lens' ListPackageVersionDependenciesResponse (Maybe Text) Source #
The name of the package that contains the returned package versions dependencies.
listPackageVersionDependenciesResponse_httpStatus :: Lens' ListPackageVersionDependenciesResponse Int Source #
The response's http status code.