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

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
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.

See: AWS API Reference for DeleteObject.

Synopsis

Creating a Request

deleteObject Source

Creates a value of DeleteObject with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

doVersionId :: Lens' DeleteObject (Maybe ObjectVersionId) Source

VersionId used to reference a specific version of the object.

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.

doKey :: Lens' DeleteObject ObjectKey Source

Undocumented member.

Destructuring the Response

deleteObjectResponse Source

Creates a value of DeleteObjectResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

dorsVersionId :: Lens' DeleteObjectResponse (Maybe ObjectVersionId) Source

Returns the version ID of the delete marker created as a result of the DELETE operation.

dorsDeleteMarker :: Lens' DeleteObjectResponse (Maybe Bool) Source

Specifies whether the versioned object that was permanently deleted was (true) or was not (false) a delete marker.