amazonka-s3-0.3.6: Amazon Simple Storage Service SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.S3.DeleteObject

Contents

Description

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

Synopsis

Request

Request constructor

deleteObject Source

DeleteObject constructor.

The fields accessible through corresponding lenses are:

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

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.