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 |
Updates the status of one or more versions of a package. Using
UpdatePackageVersionsStatus
, you can update the status of package
versions to Archived
, Published
, or Unlisted
. To set the status of
a package version to Disposed
, use
DisposePackageVersions.
Synopsis
- data UpdatePackageVersionsStatus = UpdatePackageVersionsStatus' {}
- newUpdatePackageVersionsStatus :: Text -> Text -> PackageFormat -> Text -> PackageVersionStatus -> UpdatePackageVersionsStatus
- updatePackageVersionsStatus_domainOwner :: Lens' UpdatePackageVersionsStatus (Maybe Text)
- updatePackageVersionsStatus_expectedStatus :: Lens' UpdatePackageVersionsStatus (Maybe PackageVersionStatus)
- updatePackageVersionsStatus_namespace :: Lens' UpdatePackageVersionsStatus (Maybe Text)
- updatePackageVersionsStatus_versionRevisions :: Lens' UpdatePackageVersionsStatus (Maybe (HashMap Text Text))
- updatePackageVersionsStatus_domain :: Lens' UpdatePackageVersionsStatus Text
- updatePackageVersionsStatus_repository :: Lens' UpdatePackageVersionsStatus Text
- updatePackageVersionsStatus_format :: Lens' UpdatePackageVersionsStatus PackageFormat
- updatePackageVersionsStatus_package :: Lens' UpdatePackageVersionsStatus Text
- updatePackageVersionsStatus_versions :: Lens' UpdatePackageVersionsStatus [Text]
- updatePackageVersionsStatus_targetStatus :: Lens' UpdatePackageVersionsStatus PackageVersionStatus
- data UpdatePackageVersionsStatusResponse = UpdatePackageVersionsStatusResponse' {}
- newUpdatePackageVersionsStatusResponse :: Int -> UpdatePackageVersionsStatusResponse
- updatePackageVersionsStatusResponse_failedVersions :: Lens' UpdatePackageVersionsStatusResponse (Maybe (HashMap Text PackageVersionError))
- updatePackageVersionsStatusResponse_successfulVersions :: Lens' UpdatePackageVersionsStatusResponse (Maybe (HashMap Text SuccessfulPackageVersionInfo))
- updatePackageVersionsStatusResponse_httpStatus :: Lens' UpdatePackageVersionsStatusResponse Int
Creating a Request
data UpdatePackageVersionsStatus Source #
See: newUpdatePackageVersionsStatus
smart constructor.
UpdatePackageVersionsStatus' | |
|
Instances
newUpdatePackageVersionsStatus Source #
:: Text | |
-> Text | |
-> PackageFormat | |
-> Text | |
-> PackageVersionStatus | |
-> UpdatePackageVersionsStatus |
Create a value of UpdatePackageVersionsStatus
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:
UpdatePackageVersionsStatus
, updatePackageVersionsStatus_domainOwner
- The 12-digit account number of the Amazon Web Services account that owns
the domain. It does not include dashes or spaces.
$sel:expectedStatus:UpdatePackageVersionsStatus'
, updatePackageVersionsStatus_expectedStatus
- The package version’s expected status before it is updated. If
expectedStatus
is provided, the package version's status is updated
only if its status at the time UpdatePackageVersionsStatus
is called
matches expectedStatus
.
UpdatePackageVersionsStatus
, updatePackageVersionsStatus_namespace
- The namespace of the package version to be updated. 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:versionRevisions:UpdatePackageVersionsStatus'
, updatePackageVersionsStatus_versionRevisions
- A map of package versions and package version revisions. The map key
is the package version (for example, 3.5.2
), and the map value
is
the package version revision.
$sel:domain:UpdatePackageVersionsStatus'
, updatePackageVersionsStatus_domain
- The name of the domain that contains the repository that contains the
package versions with a status to be updated.
$sel:repository:UpdatePackageVersionsStatus'
, updatePackageVersionsStatus_repository
- The repository that contains the package versions with the status you
want to update.
UpdatePackageVersionsStatus
, updatePackageVersionsStatus_format
- A format that specifies the type of the package with the statuses to
update.
UpdatePackageVersionsStatus
, updatePackageVersionsStatus_package
- The name of the package with the version statuses to update.
$sel:versions:UpdatePackageVersionsStatus'
, updatePackageVersionsStatus_versions
- An array of strings that specify the versions of the package with the
statuses to update.
$sel:targetStatus:UpdatePackageVersionsStatus'
, updatePackageVersionsStatus_targetStatus
- The status you want to change the package version status to.
Request Lenses
updatePackageVersionsStatus_domainOwner :: Lens' UpdatePackageVersionsStatus (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.
updatePackageVersionsStatus_expectedStatus :: Lens' UpdatePackageVersionsStatus (Maybe PackageVersionStatus) Source #
The package version’s expected status before it is updated. If
expectedStatus
is provided, the package version's status is updated
only if its status at the time UpdatePackageVersionsStatus
is called
matches expectedStatus
.
updatePackageVersionsStatus_namespace :: Lens' UpdatePackageVersionsStatus (Maybe Text) Source #
The namespace of the package version to be updated. 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.
updatePackageVersionsStatus_versionRevisions :: Lens' UpdatePackageVersionsStatus (Maybe (HashMap Text Text)) Source #
A map of package versions and package version revisions. The map key
is the package version (for example, 3.5.2
), and the map value
is
the package version revision.
updatePackageVersionsStatus_domain :: Lens' UpdatePackageVersionsStatus Text Source #
The name of the domain that contains the repository that contains the package versions with a status to be updated.
updatePackageVersionsStatus_repository :: Lens' UpdatePackageVersionsStatus Text Source #
The repository that contains the package versions with the status you want to update.
updatePackageVersionsStatus_format :: Lens' UpdatePackageVersionsStatus PackageFormat Source #
A format that specifies the type of the package with the statuses to update.
updatePackageVersionsStatus_package :: Lens' UpdatePackageVersionsStatus Text Source #
The name of the package with the version statuses to update.
updatePackageVersionsStatus_versions :: Lens' UpdatePackageVersionsStatus [Text] Source #
An array of strings that specify the versions of the package with the statuses to update.
updatePackageVersionsStatus_targetStatus :: Lens' UpdatePackageVersionsStatus PackageVersionStatus Source #
The status you want to change the package version status to.
Destructuring the Response
data UpdatePackageVersionsStatusResponse Source #
See: newUpdatePackageVersionsStatusResponse
smart constructor.
UpdatePackageVersionsStatusResponse' | |
|
Instances
newUpdatePackageVersionsStatusResponse Source #
Create a value of UpdatePackageVersionsStatusResponse
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:failedVersions:UpdatePackageVersionsStatusResponse'
, updatePackageVersionsStatusResponse_failedVersions
- A list of SuccessfulPackageVersionInfo
objects, one for each package
version with a status that successfully updated.
$sel:successfulVersions:UpdatePackageVersionsStatusResponse'
, updatePackageVersionsStatusResponse_successfulVersions
- A list of PackageVersionError
objects, one for each package version
with a status that failed to update.
$sel:httpStatus:UpdatePackageVersionsStatusResponse'
, updatePackageVersionsStatusResponse_httpStatus
- The response's http status code.
Response Lenses
updatePackageVersionsStatusResponse_failedVersions :: Lens' UpdatePackageVersionsStatusResponse (Maybe (HashMap Text PackageVersionError)) Source #
A list of SuccessfulPackageVersionInfo
objects, one for each package
version with a status that successfully updated.
updatePackageVersionsStatusResponse_successfulVersions :: Lens' UpdatePackageVersionsStatusResponse (Maybe (HashMap Text SuccessfulPackageVersionInfo)) Source #
A list of PackageVersionError
objects, one for each package version
with a status that failed to update.
updatePackageVersionsStatusResponse_httpStatus :: Lens' UpdatePackageVersionsStatusResponse Int Source #
The response's http status code.