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 |
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.
AttachObject' | |
|
Instances
:: 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:
$sel:directoryArn:AttachObject'
, attachObject_directoryArn
- Amazon Resource Name (ARN) that is associated with the Directory where
both objects reside. For more information, see arns.
$sel:parentReference:AttachObject'
, attachObject_parentReference
- The parent object reference.
$sel:childReference:AttachObject'
, attachObject_childReference
- The child object reference to be attached to the object.
$sel:linkName: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.
AttachObjectResponse' | |
|
Instances
newAttachObjectResponse Source #
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:
$sel:attachedObjectIdentifier: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.