Copyright | (c) 2013-2018 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 |
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.
Synopsis
- deleteObject :: BucketName -> ObjectKey -> DeleteObject
- data DeleteObject
- doVersionId :: Lens' DeleteObject (Maybe ObjectVersionId)
- doMFA :: Lens' DeleteObject (Maybe Text)
- doRequestPayer :: Lens' DeleteObject (Maybe RequestPayer)
- doBucket :: Lens' DeleteObject BucketName
- doKey :: Lens' DeleteObject ObjectKey
- deleteObjectResponse :: Int -> DeleteObjectResponse
- data DeleteObjectResponse
- dorsRequestCharged :: Lens' DeleteObjectResponse (Maybe RequestCharged)
- dorsVersionId :: Lens' DeleteObjectResponse (Maybe ObjectVersionId)
- dorsDeleteMarker :: Lens' DeleteObjectResponse (Maybe Bool)
- dorsResponseStatus :: Lens' DeleteObjectResponse Int
Creating a Request
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:
doVersionId
- VersionId used to reference a specific version of the object.doMFA
- The concatenation of the authentication device's serial number, a space, and the value that is displayed on your authentication device.doRequestPayer
- Undocumented member.doBucket
- Undocumented member.doKey
- Undocumented member.
data DeleteObject Source #
See: deleteObject
smart constructor.
Instances
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.
doRequestPayer :: Lens' DeleteObject (Maybe RequestPayer) Source #
Undocumented member.
doBucket :: Lens' DeleteObject BucketName Source #
Undocumented member.
Destructuring the Response
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:
dorsRequestCharged
- Undocumented member.dorsVersionId
- Returns the version ID of the delete marker created as a result of the DELETE operation.dorsDeleteMarker
- Specifies whether the versioned object that was permanently deleted was (true) or was not (false) a delete marker.dorsResponseStatus
- -- | The response status code.
data DeleteObjectResponse Source #
See: deleteObjectResponse
smart constructor.
Instances
Response Lenses
dorsRequestCharged :: Lens' DeleteObjectResponse (Maybe RequestCharged) Source #
Undocumented member.
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.
dorsResponseStatus :: Lens' DeleteObjectResponse Int Source #
- - | The response status code.