| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudDirectory.DetachObject
Description
Detaches a given object from the parent object. The object that is to be detached from the parent is specified by the link name.
Synopsis
- data DetachObject = DetachObject' {}
- newDetachObject :: Text -> ObjectReference -> Text -> DetachObject
- detachObject_directoryArn :: Lens' DetachObject Text
- detachObject_parentReference :: Lens' DetachObject ObjectReference
- detachObject_linkName :: Lens' DetachObject Text
- data DetachObjectResponse = DetachObjectResponse' {}
- newDetachObjectResponse :: Int -> DetachObjectResponse
- detachObjectResponse_detachedObjectIdentifier :: Lens' DetachObjectResponse (Maybe Text)
- detachObjectResponse_httpStatus :: Lens' DetachObjectResponse Int
Creating a Request
data DetachObject Source #
See: newDetachObject smart constructor.
Constructors
| DetachObject' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ObjectReference | |
| -> Text | |
| -> DetachObject |
Create a value of DetachObject 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:
DetachObject, detachObject_directoryArn - The Amazon Resource Name (ARN) that is associated with the Directory
where objects reside. For more information, see arns.
DetachObject, detachObject_parentReference - The parent reference from which the object with the specified link name
is detached.
DetachObject, detachObject_linkName - The link name associated with the object that needs to be detached.
Request Lenses
detachObject_directoryArn :: Lens' DetachObject Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory where objects reside. For more information, see arns.
detachObject_parentReference :: Lens' DetachObject ObjectReference Source #
The parent reference from which the object with the specified link name is detached.
detachObject_linkName :: Lens' DetachObject Text Source #
The link name associated with the object that needs to be detached.
Destructuring the Response
data DetachObjectResponse Source #
See: newDetachObjectResponse smart constructor.
Constructors
| DetachObjectResponse' | |
Fields
| |
Instances
newDetachObjectResponse Source #
Arguments
| :: Int | |
| -> DetachObjectResponse |
Create a value of DetachObjectResponse 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:
DetachObjectResponse, detachObjectResponse_detachedObjectIdentifier - The ObjectIdentifier that was detached from the object.
$sel:httpStatus:DetachObjectResponse', detachObjectResponse_httpStatus - The response's http status code.
Response Lenses
detachObjectResponse_detachedObjectIdentifier :: Lens' DetachObjectResponse (Maybe Text) Source #
The ObjectIdentifier that was detached from the object.
detachObjectResponse_httpStatus :: Lens' DetachObjectResponse Int Source #
The response's http status code.