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 |
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.
DetachObject' | |
|
Instances
:: 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:
$sel:directoryArn:DetachObject'
, detachObject_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory
where objects reside. For more information, see arns.
$sel:parentReference:DetachObject'
, detachObject_parentReference
- The parent reference from which the object with the specified link name
is detached.
$sel:linkName: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.
DetachObjectResponse' | |
|
Instances
newDetachObjectResponse Source #
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:
$sel:detachedObjectIdentifier: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.