| 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.AttachObject
Description
Attaches an existing object to another object. An object can be accessed in two ways:
- Using the path
- Using
ObjectIdentifier
Synopsis
- data AttachObject = AttachObject' {}
- newAttachObject :: Text -> ObjectReference -> ObjectReference -> Text -> AttachObject
- attachObject_directoryArn :: Lens' AttachObject Text
- attachObject_parentReference :: Lens' AttachObject ObjectReference
- attachObject_childReference :: Lens' AttachObject ObjectReference
- attachObject_linkName :: Lens' AttachObject Text
- data AttachObjectResponse = AttachObjectResponse' {}
- newAttachObjectResponse :: Int -> AttachObjectResponse
- attachObjectResponse_attachedObjectIdentifier :: Lens' AttachObjectResponse (Maybe Text)
- attachObjectResponse_httpStatus :: Lens' AttachObjectResponse Int
Creating a Request
data AttachObject Source #
See: newAttachObject smart constructor.
Constructors
| AttachObject' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ObjectReference | |
| -> ObjectReference | |
| -> Text | |
| -> AttachObject |
Create a value of AttachObject 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:
AttachObject, attachObject_directoryArn - Amazon Resource Name (ARN) that is associated with the Directory where
both objects reside. For more information, see arns.
AttachObject, attachObject_parentReference - The parent object reference.
AttachObject, attachObject_childReference - The child object reference to be attached to the object.
AttachObject, attachObject_linkName - The link name with which the child object is attached to the parent.
Request Lenses
attachObject_directoryArn :: Lens' AttachObject Text Source #
Amazon Resource Name (ARN) that is associated with the Directory where both objects reside. For more information, see arns.
attachObject_parentReference :: Lens' AttachObject ObjectReference Source #
The parent object reference.
attachObject_childReference :: Lens' AttachObject ObjectReference Source #
The child object reference to be attached to the object.
attachObject_linkName :: Lens' AttachObject Text Source #
The link name with which the child object is attached to the parent.
Destructuring the Response
data AttachObjectResponse Source #
See: newAttachObjectResponse smart constructor.
Constructors
| AttachObjectResponse' | |
Fields
| |
Instances
newAttachObjectResponse Source #
Arguments
| :: Int | |
| -> AttachObjectResponse |
Create a value of AttachObjectResponse 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:
AttachObjectResponse, attachObjectResponse_attachedObjectIdentifier - The attached ObjectIdentifier, which is the child ObjectIdentifier.
$sel:httpStatus:AttachObjectResponse', attachObjectResponse_httpStatus - The response's http status code.
Response Lenses
attachObjectResponse_attachedObjectIdentifier :: Lens' AttachObjectResponse (Maybe Text) Source #
The attached ObjectIdentifier, which is the child ObjectIdentifier.
attachObjectResponse_httpStatus :: Lens' AttachObjectResponse Int Source #
The response's http status code.