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 an object and its associated attributes. Only objects with no children and no parents can be deleted. The maximum number of attributes that can be deleted during an object deletion is 30. For more information, see Amazon Cloud Directory Limits.
Synopsis
- data DeleteObject = DeleteObject' {}
- newDeleteObject :: Text -> ObjectReference -> DeleteObject
- deleteObject_directoryArn :: Lens' DeleteObject Text
- deleteObject_objectReference :: Lens' DeleteObject ObjectReference
- data DeleteObjectResponse = DeleteObjectResponse' {
- httpStatus :: Int
- newDeleteObjectResponse :: Int -> DeleteObjectResponse
- deleteObjectResponse_httpStatus :: Lens' DeleteObjectResponse Int
Creating a Request
data DeleteObject Source #
See: newDeleteObject
smart constructor.
DeleteObject' | |
|
Instances
:: Text | |
-> ObjectReference | |
-> DeleteObject |
Create a value of DeleteObject
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:directoryArn:DeleteObject'
, deleteObject_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory
where the object resides. For more information, see arns.
$sel:objectReference:DeleteObject'
, deleteObject_objectReference
- A reference that identifies the object.
Request Lenses
deleteObject_directoryArn :: Lens' DeleteObject Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory where the object resides. For more information, see arns.
deleteObject_objectReference :: Lens' DeleteObject ObjectReference Source #
A reference that identifies the object.
Destructuring the Response
data DeleteObjectResponse Source #
See: newDeleteObjectResponse
smart constructor.
DeleteObjectResponse' | |
|
Instances
newDeleteObjectResponse Source #
Create a value of DeleteObjectResponse
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:DeleteObjectResponse'
, deleteObjectResponse_httpStatus
- The response's http status code.
Response Lenses
deleteObjectResponse_httpStatus :: Lens' DeleteObjectResponse Int Source #
The response's http status code.