Safe Haskell | None |
---|---|
Language | Haskell2010 |
Removes the null version (if there is one) of an object and inserts a delete marker, which becomes the latest version of the object. If there isn't a null version, Amazon S3 does not remove any objects.
http://docs.aws.amazon.com/AmazonS3/latest/API/DeleteObject.html
- data DeleteObject
- deleteObject :: Text -> Text -> DeleteObject
- doBucket :: Lens' DeleteObject Text
- doKey :: Lens' DeleteObject Text
- doMFA :: Lens' DeleteObject (Maybe Text)
- doVersionId :: Lens' DeleteObject (Maybe Text)
- data DeleteObjectResponse
- deleteObjectResponse :: DeleteObjectResponse
- dorDeleteMarker :: Lens' DeleteObjectResponse (Maybe Bool)
- dorVersionId :: Lens' DeleteObjectResponse (Maybe Text)
Request
data DeleteObject Source
Request constructor
:: Text | |
-> Text | |
-> DeleteObject |
Request lenses
doMFA :: Lens' DeleteObject (Maybe Text) Source
The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.
doVersionId :: Lens' DeleteObject (Maybe Text) Source
VersionId used to reference a specific version of the object.
Response
Response constructor
deleteObjectResponse :: DeleteObjectResponse Source
DeleteObjectResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
dorDeleteMarker :: Lens' DeleteObjectResponse (Maybe Bool) Source
Specifies whether the versioned object that was permanently deleted was (true) or was not (false) a delete marker.
dorVersionId :: Lens' DeleteObjectResponse (Maybe Text) Source
Returns the version ID of the delete marker created as a result of the DELETE operation.