amazonka-codeartifact-2.0: Amazon CodeArtifact SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeArtifact.ListPackageVersions

Description

Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters.

This operation returns paginated results.

Synopsis

Creating a Request

data ListPackageVersions Source #

See: newListPackageVersions smart constructor.

Constructors

ListPackageVersions' 

Fields

  • domainOwner :: Maybe Text

    The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

  • maxResults :: Maybe Natural

    The maximum number of results to return per page.

  • namespace :: Maybe Text

    The namespace of the package that contains the requested package versions. 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.
    • Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
  • nextToken :: Maybe Text

    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.

  • originType :: Maybe PackageVersionOriginType

    The originType used to filter package versions. Only package versions with the provided originType will be returned.

  • sortBy :: Maybe PackageVersionSortType

    How to sort the requested list of package versions.

  • status :: Maybe PackageVersionStatus

    A string that filters the requested package versions by status.

  • domain :: Text

    The name of the domain that contains the repository that contains the requested package versions.

  • repository :: Text

    The name of the repository that contains the requested package versions.

  • format :: PackageFormat

    The format of the returned package versions.

  • package :: Text

    The name of the package for which you want to request package versions.

Instances

Instances details
ToJSON ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

ToHeaders ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

ToPath ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

ToQuery ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

AWSPager ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

AWSRequest ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

Associated Types

type AWSResponse ListPackageVersions #

Generic ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

Associated Types

type Rep ListPackageVersions :: Type -> Type #

Read ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

Show ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

NFData ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

Methods

rnf :: ListPackageVersions -> () #

Eq ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

Hashable ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

type AWSResponse ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

type Rep ListPackageVersions Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

type Rep ListPackageVersions = D1 ('MetaData "ListPackageVersions" "Amazonka.CodeArtifact.ListPackageVersions" "amazonka-codeartifact-2.0-CskMABZQLQJDgej73fXQxp" 'False) (C1 ('MetaCons "ListPackageVersions'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "domainOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "originType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PackageVersionOriginType))))) :*: ((S1 ('MetaSel ('Just "sortBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PackageVersionSortType)) :*: (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PackageVersionStatus)) :*: S1 ('MetaSel ('Just "domain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "repository") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PackageFormat) :*: S1 ('MetaSel ('Just "package") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newListPackageVersions Source #

Create a value of ListPackageVersions 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:

ListPackageVersions, listPackageVersions_domainOwner - The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

$sel:maxResults:ListPackageVersions', listPackageVersions_maxResults - The maximum number of results to return per page.

ListPackageVersions, listPackageVersions_namespace - The namespace of the package that contains the requested package versions. 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.
  • Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.

ListPackageVersions, listPackageVersions_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.

ListPackageVersions, listPackageVersions_originType - The originType used to filter package versions. Only package versions with the provided originType will be returned.

$sel:sortBy:ListPackageVersions', listPackageVersions_sortBy - How to sort the requested list of package versions.

ListPackageVersions, listPackageVersions_status - A string that filters the requested package versions by status.

$sel:domain:ListPackageVersions', listPackageVersions_domain - The name of the domain that contains the repository that contains the requested package versions.

$sel:repository:ListPackageVersions', listPackageVersions_repository - The name of the repository that contains the requested package versions.

ListPackageVersions, listPackageVersions_format - The format of the returned package versions.

ListPackageVersions, listPackageVersions_package - The name of the package for which you want to request package versions.

Request Lenses

listPackageVersions_domainOwner :: Lens' ListPackageVersions (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.

listPackageVersions_maxResults :: Lens' ListPackageVersions (Maybe Natural) Source #

The maximum number of results to return per page.

listPackageVersions_namespace :: Lens' ListPackageVersions (Maybe Text) Source #

The namespace of the package that contains the requested package versions. 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.
  • Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.

listPackageVersions_nextToken :: Lens' ListPackageVersions (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.

listPackageVersions_originType :: Lens' ListPackageVersions (Maybe PackageVersionOriginType) Source #

The originType used to filter package versions. Only package versions with the provided originType will be returned.

listPackageVersions_sortBy :: Lens' ListPackageVersions (Maybe PackageVersionSortType) Source #

How to sort the requested list of package versions.

listPackageVersions_status :: Lens' ListPackageVersions (Maybe PackageVersionStatus) Source #

A string that filters the requested package versions by status.

listPackageVersions_domain :: Lens' ListPackageVersions Text Source #

The name of the domain that contains the repository that contains the requested package versions.

listPackageVersions_repository :: Lens' ListPackageVersions Text Source #

The name of the repository that contains the requested package versions.

listPackageVersions_format :: Lens' ListPackageVersions PackageFormat Source #

The format of the returned package versions.

listPackageVersions_package :: Lens' ListPackageVersions Text Source #

The name of the package for which you want to request package versions.

Destructuring the Response

data ListPackageVersionsResponse Source #

See: newListPackageVersionsResponse smart constructor.

Constructors

ListPackageVersionsResponse' 

Fields

  • defaultDisplayVersion :: Maybe Text

    The default package version to display. This depends on the package format:

    • For Maven and PyPI packages, it's the most recently published package version.
    • For npm packages, it's the version referenced by the latest tag. If the latest tag is not set, it's the most recently published package version.
  • format :: Maybe PackageFormat

    A format of the package.

  • namespace :: Maybe Text

    The namespace of the package that contains the requested package versions. 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.
    • Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
  • nextToken :: Maybe Text

    If there are additional results, this is the token for the next set of results.

  • package :: Maybe Text

    The name of the package.

  • versions :: Maybe [PackageVersionSummary]

    The returned list of PackageVersionSummary objects.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListPackageVersionsResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

Associated Types

type Rep ListPackageVersionsResponse :: Type -> Type #

Read ListPackageVersionsResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

Show ListPackageVersionsResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

NFData ListPackageVersionsResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

Eq ListPackageVersionsResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

type Rep ListPackageVersionsResponse Source # 
Instance details

Defined in Amazonka.CodeArtifact.ListPackageVersions

type Rep ListPackageVersionsResponse = D1 ('MetaData "ListPackageVersionsResponse" "Amazonka.CodeArtifact.ListPackageVersions" "amazonka-codeartifact-2.0-CskMABZQLQJDgej73fXQxp" 'False) (C1 ('MetaCons "ListPackageVersionsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "defaultDisplayVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PackageFormat)) :*: S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "package") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "versions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PackageVersionSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newListPackageVersionsResponse Source #

Create a value of ListPackageVersionsResponse 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:defaultDisplayVersion:ListPackageVersionsResponse', listPackageVersionsResponse_defaultDisplayVersion - The default package version to display. This depends on the package format:

  • For Maven and PyPI packages, it's the most recently published package version.
  • For npm packages, it's the version referenced by the latest tag. If the latest tag is not set, it's the most recently published package version.

ListPackageVersions, listPackageVersionsResponse_format - A format of the package.

ListPackageVersions, listPackageVersionsResponse_namespace - The namespace of the package that contains the requested package versions. 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.
  • Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.

ListPackageVersions, listPackageVersionsResponse_nextToken - If there are additional results, this is the token for the next set of results.

ListPackageVersions, listPackageVersionsResponse_package - The name of the package.

$sel:versions:ListPackageVersionsResponse', listPackageVersionsResponse_versions - The returned list of PackageVersionSummary objects.

$sel:httpStatus:ListPackageVersionsResponse', listPackageVersionsResponse_httpStatus - The response's http status code.

Response Lenses

listPackageVersionsResponse_defaultDisplayVersion :: Lens' ListPackageVersionsResponse (Maybe Text) Source #

The default package version to display. This depends on the package format:

  • For Maven and PyPI packages, it's the most recently published package version.
  • For npm packages, it's the version referenced by the latest tag. If the latest tag is not set, it's the most recently published package version.

listPackageVersionsResponse_namespace :: Lens' ListPackageVersionsResponse (Maybe Text) Source #

The namespace of the package that contains the requested package versions. 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.
  • Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.

listPackageVersionsResponse_nextToken :: Lens' ListPackageVersionsResponse (Maybe Text) Source #

If there are additional results, this is the token for the next set of results.