| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeArtifact.DescribePackageVersion
Description
Returns a PackageVersionDescription object that contains information about the requested package version.
Synopsis
- data DescribePackageVersion = DescribePackageVersion' {
- domainOwner :: Maybe Text
- namespace :: Maybe Text
- domain :: Text
- repository :: Text
- format :: PackageFormat
- package :: Text
- packageVersion :: Text
- newDescribePackageVersion :: Text -> Text -> PackageFormat -> Text -> Text -> DescribePackageVersion
- describePackageVersion_domainOwner :: Lens' DescribePackageVersion (Maybe Text)
- describePackageVersion_namespace :: 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.
Constructors
| DescribePackageVersion' | |
Fields
| |
Instances
newDescribePackageVersion Source #
Arguments
| :: 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:
DescribePackageVersion, describePackageVersion_domainOwner - The 12-digit account number of the Amazon Web Services account that owns
the domain. It does not include dashes or spaces.
DescribePackageVersion, describePackageVersion_namespace - The namespace of the requested package version. The package version
component that specifies its namespace depends on its type. For example:
- The namespace of a Maven package version is its
groupId. - The namespace of an npm package version is its
scope. - Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
$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.
DescribePackageVersion, describePackageVersion_format - A format that specifies the type of the requested package version.
DescribePackageVersion, describePackageVersion_package - The name of the requested package version.
DescribePackageVersion, describePackageVersion_packageVersion - A string that contains the package version (for example, 3.5.2).
Request Lenses
describePackageVersion_domainOwner :: Lens' DescribePackageVersion (Maybe Text) Source #
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
describePackageVersion_namespace :: Lens' DescribePackageVersion (Maybe Text) Source #
The namespace of the requested package version. The package version component that specifies its namespace depends on its type. For example:
- The namespace of a Maven package version is its
groupId. - The namespace of an npm package version is its
scope. - Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
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.
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.
Constructors
| DescribePackageVersionResponse' | |
Fields
| |
Instances
newDescribePackageVersionResponse Source #
Arguments
| :: Int | |
| -> PackageVersionDescription | |
| -> DescribePackageVersionResponse |
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.
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.