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 a package.
Synopsis
- data DeletePackage = DeletePackage' {
- forceDelete :: Maybe Bool
- packageId :: Text
- newDeletePackage :: Text -> DeletePackage
- deletePackage_forceDelete :: Lens' DeletePackage (Maybe Bool)
- deletePackage_packageId :: Lens' DeletePackage Text
- data DeletePackageResponse = DeletePackageResponse' {
- httpStatus :: Int
- newDeletePackageResponse :: Int -> DeletePackageResponse
- deletePackageResponse_httpStatus :: Lens' DeletePackageResponse Int
Creating a Request
data DeletePackage Source #
See: newDeletePackage
smart constructor.
DeletePackage' | |
|
Instances
Create a value of DeletePackage
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:forceDelete:DeletePackage'
, deletePackage_forceDelete
- Delete the package even if it has artifacts stored in its access point.
Deletes the package's artifacts from Amazon S3.
$sel:packageId:DeletePackage'
, deletePackage_packageId
- The package's ID.
Request Lenses
deletePackage_forceDelete :: Lens' DeletePackage (Maybe Bool) Source #
Delete the package even if it has artifacts stored in its access point. Deletes the package's artifacts from Amazon S3.
deletePackage_packageId :: Lens' DeletePackage Text Source #
The package's ID.
Destructuring the Response
data DeletePackageResponse Source #
See: newDeletePackageResponse
smart constructor.
DeletePackageResponse' | |
|
Instances
newDeletePackageResponse Source #
Create a value of DeletePackageResponse
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:DeletePackageResponse'
, deletePackageResponse_httpStatus
- The response's http status code.
Response Lenses
deletePackageResponse_httpStatus :: Lens' DeletePackageResponse Int Source #
The response's http status code.