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 an asset (or file) that is in a package. For example, for a
Maven package version, use GetPackageVersionAsset
to download a JAR
file, a POM
file, or any other assets in the package version.
Synopsis
- data GetPackageVersionAsset = GetPackageVersionAsset' {
- namespace :: Maybe Text
- domainOwner :: Maybe Text
- packageVersionRevision :: Maybe Text
- domain :: Text
- repository :: Text
- format :: PackageFormat
- package :: Text
- packageVersion :: Text
- asset :: Text
- newGetPackageVersionAsset :: Text -> Text -> PackageFormat -> Text -> Text -> Text -> GetPackageVersionAsset
- getPackageVersionAsset_namespace :: Lens' GetPackageVersionAsset (Maybe Text)
- getPackageVersionAsset_domainOwner :: Lens' GetPackageVersionAsset (Maybe Text)
- getPackageVersionAsset_packageVersionRevision :: Lens' GetPackageVersionAsset (Maybe Text)
- getPackageVersionAsset_domain :: Lens' GetPackageVersionAsset Text
- getPackageVersionAsset_repository :: Lens' GetPackageVersionAsset Text
- getPackageVersionAsset_format :: Lens' GetPackageVersionAsset PackageFormat
- getPackageVersionAsset_package :: Lens' GetPackageVersionAsset Text
- getPackageVersionAsset_packageVersion :: Lens' GetPackageVersionAsset Text
- getPackageVersionAsset_asset :: Lens' GetPackageVersionAsset Text
- data GetPackageVersionAssetResponse = GetPackageVersionAssetResponse' {}
- newGetPackageVersionAssetResponse :: Int -> ResponseBody -> GetPackageVersionAssetResponse
- getPackageVersionAssetResponse_packageVersion :: Lens' GetPackageVersionAssetResponse (Maybe Text)
- getPackageVersionAssetResponse_assetName :: Lens' GetPackageVersionAssetResponse (Maybe Text)
- getPackageVersionAssetResponse_packageVersionRevision :: Lens' GetPackageVersionAssetResponse (Maybe Text)
- getPackageVersionAssetResponse_httpStatus :: Lens' GetPackageVersionAssetResponse Int
- getPackageVersionAssetResponse_asset :: Lens' GetPackageVersionAssetResponse ResponseBody
Creating a Request
data GetPackageVersionAsset Source #
See: newGetPackageVersionAsset
smart constructor.
GetPackageVersionAsset' | |
|
Instances
newGetPackageVersionAsset Source #
:: Text | |
-> Text | |
-> PackageFormat | |
-> Text | |
-> Text | |
-> Text | |
-> GetPackageVersionAsset |
Create a value of GetPackageVersionAsset
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:GetPackageVersionAsset'
, getPackageVersionAsset_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:GetPackageVersionAsset'
, getPackageVersionAsset_domainOwner
- The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$sel:packageVersionRevision:GetPackageVersionAsset'
, getPackageVersionAsset_packageVersionRevision
- The name of the package version revision that contains the requested
asset.
$sel:domain:GetPackageVersionAsset'
, getPackageVersionAsset_domain
- The name of the domain that contains the repository that contains the
package version with the requested asset.
$sel:repository:GetPackageVersionAsset'
, getPackageVersionAsset_repository
- The repository that contains the package version with the requested
asset.
$sel:format:GetPackageVersionAsset'
, getPackageVersionAsset_format
- A format that specifies the type of the package version with the
requested asset file. The valid values are:
npm
pypi
maven
$sel:package:GetPackageVersionAsset'
, getPackageVersionAsset_package
- The name of the package that contains the requested asset.
$sel:packageVersion:GetPackageVersionAsset'
, getPackageVersionAsset_packageVersion
- A string that contains the package version (for example, 3.5.2
).
$sel:asset:GetPackageVersionAsset'
, getPackageVersionAsset_asset
- The name of the requested asset.
Request Lenses
getPackageVersionAsset_namespace :: Lens' GetPackageVersionAsset (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.
getPackageVersionAsset_domainOwner :: Lens' GetPackageVersionAsset (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
getPackageVersionAsset_packageVersionRevision :: Lens' GetPackageVersionAsset (Maybe Text) Source #
The name of the package version revision that contains the requested asset.
getPackageVersionAsset_domain :: Lens' GetPackageVersionAsset Text Source #
The name of the domain that contains the repository that contains the package version with the requested asset.
getPackageVersionAsset_repository :: Lens' GetPackageVersionAsset Text Source #
The repository that contains the package version with the requested asset.
getPackageVersionAsset_format :: Lens' GetPackageVersionAsset PackageFormat Source #
A format that specifies the type of the package version with the requested asset file. The valid values are:
npm
pypi
maven
getPackageVersionAsset_package :: Lens' GetPackageVersionAsset Text Source #
The name of the package that contains the requested asset.
getPackageVersionAsset_packageVersion :: Lens' GetPackageVersionAsset Text Source #
A string that contains the package version (for example, 3.5.2
).
getPackageVersionAsset_asset :: Lens' GetPackageVersionAsset Text Source #
The name of the requested asset.
Destructuring the Response
data GetPackageVersionAssetResponse Source #
See: newGetPackageVersionAssetResponse
smart constructor.
GetPackageVersionAssetResponse' | |
|
Instances
newGetPackageVersionAssetResponse Source #
Create a value of GetPackageVersionAssetResponse
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:packageVersion:GetPackageVersionAsset'
, getPackageVersionAssetResponse_packageVersion
- A string that contains the package version (for example, 3.5.2
).
$sel:assetName:GetPackageVersionAssetResponse'
, getPackageVersionAssetResponse_assetName
- The name of the asset that is downloaded.
$sel:packageVersionRevision:GetPackageVersionAsset'
, getPackageVersionAssetResponse_packageVersionRevision
- The name of the package version revision that contains the downloaded
asset.
$sel:httpStatus:GetPackageVersionAssetResponse'
, getPackageVersionAssetResponse_httpStatus
- The response's http status code.
$sel:asset:GetPackageVersionAsset'
, getPackageVersionAssetResponse_asset
- The binary file, or asset, that is downloaded.
Response Lenses
getPackageVersionAssetResponse_packageVersion :: Lens' GetPackageVersionAssetResponse (Maybe Text) Source #
A string that contains the package version (for example, 3.5.2
).
getPackageVersionAssetResponse_assetName :: Lens' GetPackageVersionAssetResponse (Maybe Text) Source #
The name of the asset that is downloaded.
getPackageVersionAssetResponse_packageVersionRevision :: Lens' GetPackageVersionAssetResponse (Maybe Text) Source #
The name of the package version revision that contains the downloaded asset.
getPackageVersionAssetResponse_httpStatus :: Lens' GetPackageVersionAssetResponse Int Source #
The response's http status code.
getPackageVersionAssetResponse_asset :: Lens' GetPackageVersionAssetResponse ResponseBody Source #
The binary file, or asset, that is downloaded.