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 PackageVersionDescription object that contains information about the requested package version.
Synopsis
- data DescribePackageVersion = DescribePackageVersion' {
- namespace :: Maybe Text
- domainOwner :: Maybe Text
- domain :: Text
- repository :: Text
- format :: PackageFormat
- package :: Text
- packageVersion :: Text
- newDescribePackageVersion :: Text -> Text -> PackageFormat -> Text -> Text -> DescribePackageVersion
- describePackageVersion_namespace :: Lens' DescribePackageVersion (Maybe Text)
- describePackageVersion_domainOwner :: Lens' DescribePackageVersion (Maybe Text)
- describePackageVersion_domain :: Lens' DescribePackageVersion Text
- describePackageVersion_repository :: Lens' DescribePackageVersion Text
- describePackageVersion_format :: Lens' DescribePackageVersion PackageFormat
- describePackageVersion_package :: Lens' DescribePackageVersion Text
- describePackageVersion_packageVersion :: Lens' DescribePackageVersion Text
- data DescribePackageVersionResponse = DescribePackageVersionResponse' {}
- newDescribePackageVersionResponse :: Int -> PackageVersionDescription -> DescribePackageVersionResponse
- describePackageVersionResponse_httpStatus :: Lens' DescribePackageVersionResponse Int
- describePackageVersionResponse_packageVersion :: Lens' DescribePackageVersionResponse PackageVersionDescription
Creating a Request
data DescribePackageVersion Source #
See: newDescribePackageVersion
smart constructor.
DescribePackageVersion' | |
|
Instances
newDescribePackageVersion Source #
:: Text | |
-> Text | |
-> PackageFormat | |
-> Text | |
-> Text | |
-> DescribePackageVersion |
Create a value of DescribePackageVersion
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:DescribePackageVersion'
, describePackageVersion_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:DescribePackageVersion'
, describePackageVersion_domainOwner
- The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$sel:domain:DescribePackageVersion'
, describePackageVersion_domain
- The name of the domain that contains the repository that contains the
package version.
$sel:repository:DescribePackageVersion'
, describePackageVersion_repository
- The name of the repository that contains the package version.
$sel:format:DescribePackageVersion'
, describePackageVersion_format
- A format that specifies the type of the requested package version. The
valid values are:
npm
pypi
maven
$sel:package:DescribePackageVersion'
, describePackageVersion_package
- The name of the requested package version.
$sel:packageVersion:DescribePackageVersion'
, describePackageVersion_packageVersion
- A string that contains the package version (for example, 3.5.2
).
Request Lenses
describePackageVersion_namespace :: Lens' DescribePackageVersion (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.
describePackageVersion_domainOwner :: Lens' DescribePackageVersion (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
describePackageVersion_domain :: Lens' DescribePackageVersion Text Source #
The name of the domain that contains the repository that contains the package version.
describePackageVersion_repository :: Lens' DescribePackageVersion Text Source #
The name of the repository that contains the package version.
describePackageVersion_format :: Lens' DescribePackageVersion PackageFormat Source #
A format that specifies the type of the requested package version. The valid values are:
npm
pypi
maven
describePackageVersion_package :: Lens' DescribePackageVersion Text Source #
The name of the requested package version.
describePackageVersion_packageVersion :: Lens' DescribePackageVersion Text Source #
A string that contains the package version (for example, 3.5.2
).
Destructuring the Response
data DescribePackageVersionResponse Source #
See: newDescribePackageVersionResponse
smart constructor.
DescribePackageVersionResponse' | |
|
Instances
newDescribePackageVersionResponse Source #
Create a value of DescribePackageVersionResponse
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:httpStatus:DescribePackageVersionResponse'
, describePackageVersionResponse_httpStatus
- The response's http status code.
$sel:packageVersion:DescribePackageVersion'
, describePackageVersionResponse_packageVersion
- A
PackageVersionDescription
object that contains information about the requested package version.
Response Lenses
describePackageVersionResponse_httpStatus :: Lens' DescribePackageVersionResponse Int Source #
The response's http status code.
describePackageVersionResponse_packageVersion :: Lens' DescribePackageVersionResponse PackageVersionDescription Source #
A PackageVersionDescription object that contains information about the requested package version.