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 |
Deletes the assets in package versions and sets the package versions'
status to Disposed
. A disposed package version cannot be restored in
your repository because its assets are deleted.
To view all disposed package versions in a repository, use
ListPackageVersions
and set the
status
parameter to Disposed
.
To view information about a disposed package version, use DescribePackageVersion.
Synopsis
- data DisposePackageVersions = DisposePackageVersions' {
- expectedStatus :: Maybe PackageVersionStatus
- versionRevisions :: Maybe (HashMap Text Text)
- namespace :: Maybe Text
- domainOwner :: Maybe Text
- domain :: Text
- repository :: Text
- format :: PackageFormat
- package :: Text
- versions :: [Text]
- newDisposePackageVersions :: Text -> Text -> PackageFormat -> Text -> DisposePackageVersions
- disposePackageVersions_expectedStatus :: Lens' DisposePackageVersions (Maybe PackageVersionStatus)
- disposePackageVersions_versionRevisions :: Lens' DisposePackageVersions (Maybe (HashMap Text Text))
- disposePackageVersions_namespace :: Lens' DisposePackageVersions (Maybe Text)
- disposePackageVersions_domainOwner :: Lens' DisposePackageVersions (Maybe Text)
- disposePackageVersions_domain :: Lens' DisposePackageVersions Text
- disposePackageVersions_repository :: Lens' DisposePackageVersions Text
- disposePackageVersions_format :: Lens' DisposePackageVersions PackageFormat
- disposePackageVersions_package :: Lens' DisposePackageVersions Text
- disposePackageVersions_versions :: Lens' DisposePackageVersions [Text]
- data DisposePackageVersionsResponse = DisposePackageVersionsResponse' {}
- newDisposePackageVersionsResponse :: Int -> DisposePackageVersionsResponse
- disposePackageVersionsResponse_failedVersions :: Lens' DisposePackageVersionsResponse (Maybe (HashMap Text PackageVersionError))
- disposePackageVersionsResponse_successfulVersions :: Lens' DisposePackageVersionsResponse (Maybe (HashMap Text SuccessfulPackageVersionInfo))
- disposePackageVersionsResponse_httpStatus :: Lens' DisposePackageVersionsResponse Int
Creating a Request
data DisposePackageVersions Source #
See: newDisposePackageVersions
smart constructor.
DisposePackageVersions' | |
|
Instances
newDisposePackageVersions Source #
:: Text | |
-> Text | |
-> PackageFormat | |
-> Text | |
-> DisposePackageVersions |
Create a value of DisposePackageVersions
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:expectedStatus:DisposePackageVersions'
, disposePackageVersions_expectedStatus
- The expected status of the package version to dispose. Valid values are:
Published
Unfinished
Unlisted
Archived
Disposed
$sel:versionRevisions:DisposePackageVersions'
, disposePackageVersions_versionRevisions
- The revisions of the package versions you want to dispose.
$sel:namespace:DisposePackageVersions'
, disposePackageVersions_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:DisposePackageVersions'
, disposePackageVersions_domainOwner
- The 12-digit account number of the AWS account that owns the domain. It
does not include dashes or spaces.
$sel:domain:DisposePackageVersions'
, disposePackageVersions_domain
- The name of the domain that contains the repository you want to dispose.
$sel:repository:DisposePackageVersions'
, disposePackageVersions_repository
- The name of the repository that contains the package versions you want
to dispose.
$sel:format:DisposePackageVersions'
, disposePackageVersions_format
- A format that specifies the type of package versions you want to
dispose. The valid values are:
npm
pypi
maven
$sel:package:DisposePackageVersions'
, disposePackageVersions_package
- The name of the package with the versions you want to dispose.
$sel:versions:DisposePackageVersions'
, disposePackageVersions_versions
- The versions of the package you want to dispose.
Request Lenses
disposePackageVersions_expectedStatus :: Lens' DisposePackageVersions (Maybe PackageVersionStatus) Source #
The expected status of the package version to dispose. Valid values are:
Published
Unfinished
Unlisted
Archived
Disposed
disposePackageVersions_versionRevisions :: Lens' DisposePackageVersions (Maybe (HashMap Text Text)) Source #
The revisions of the package versions you want to dispose.
disposePackageVersions_namespace :: Lens' DisposePackageVersions (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.
disposePackageVersions_domainOwner :: Lens' DisposePackageVersions (Maybe Text) Source #
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
disposePackageVersions_domain :: Lens' DisposePackageVersions Text Source #
The name of the domain that contains the repository you want to dispose.
disposePackageVersions_repository :: Lens' DisposePackageVersions Text Source #
The name of the repository that contains the package versions you want to dispose.
disposePackageVersions_format :: Lens' DisposePackageVersions PackageFormat Source #
A format that specifies the type of package versions you want to dispose. The valid values are:
npm
pypi
maven
disposePackageVersions_package :: Lens' DisposePackageVersions Text Source #
The name of the package with the versions you want to dispose.
disposePackageVersions_versions :: Lens' DisposePackageVersions [Text] Source #
The versions of the package you want to dispose.
Destructuring the Response
data DisposePackageVersionsResponse Source #
See: newDisposePackageVersionsResponse
smart constructor.
DisposePackageVersionsResponse' | |
|
Instances
newDisposePackageVersionsResponse Source #
Create a value of DisposePackageVersionsResponse
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:DisposePackageVersionsResponse'
, disposePackageVersionsResponse_failedVersions
- A PackageVersionError
object that contains a map of errors codes for
the disposed package versions that failed. The possible error codes are:
ALREADY_EXISTS
MISMATCHED_REVISION
MISMATCHED_STATUS
NOT_ALLOWED
NOT_FOUND
SKIPPED
$sel:successfulVersions:DisposePackageVersionsResponse'
, disposePackageVersionsResponse_successfulVersions
- A list of the package versions that were successfully disposed.
$sel:httpStatus:DisposePackageVersionsResponse'
, disposePackageVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
disposePackageVersionsResponse_failedVersions :: Lens' DisposePackageVersionsResponse (Maybe (HashMap Text PackageVersionError)) Source #
A PackageVersionError
object that contains a map of errors codes for
the disposed package versions that failed. The possible error codes are:
ALREADY_EXISTS
MISMATCHED_REVISION
MISMATCHED_STATUS
NOT_ALLOWED
NOT_FOUND
SKIPPED
disposePackageVersionsResponse_successfulVersions :: Lens' DisposePackageVersionsResponse (Maybe (HashMap Text SuccessfulPackageVersionInfo)) Source #
A list of the package versions that were successfully disposed.
disposePackageVersionsResponse_httpStatus :: Lens' DisposePackageVersionsResponse Int Source #
The response's http status code.