Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Attaches an existing object to another object. An object can be accessed in two ways:
- Using the path
- Using
ObjectIdentifier
- attachObject :: Text -> ObjectReference -> ObjectReference -> Text -> AttachObject
- data AttachObject
- aoDirectoryARN :: Lens' AttachObject Text
- aoParentReference :: Lens' AttachObject ObjectReference
- aoChildReference :: Lens' AttachObject ObjectReference
- aoLinkName :: Lens' AttachObject Text
- attachObjectResponse :: Int -> AttachObjectResponse
- data AttachObjectResponse
- aorsAttachedObjectIdentifier :: Lens' AttachObjectResponse (Maybe Text)
- aorsResponseStatus :: Lens' AttachObjectResponse Int
Creating a Request
:: Text | |
-> ObjectReference | |
-> ObjectReference | |
-> Text | |
-> AttachObject |
Creates a value of AttachObject
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aoDirectoryARN
- Amazon Resource Name (ARN) that is associated with theDirectory
where both objects reside. For more information, seearns
.aoParentReference
- The parent object reference.aoChildReference
- The child object reference to be attached to the object.aoLinkName
- The link name with which the child object is attached to the parent.
data AttachObject Source #
See: attachObject
smart constructor.
Request Lenses
aoDirectoryARN :: Lens' AttachObject Text Source #
Amazon Resource Name (ARN) that is associated with the Directory
where both objects reside. For more information, see arns
.
aoParentReference :: Lens' AttachObject ObjectReference Source #
The parent object reference.
aoChildReference :: Lens' AttachObject ObjectReference Source #
The child object reference to be attached to the object.
aoLinkName :: Lens' AttachObject Text Source #
The link name with which the child object is attached to the parent.
Destructuring the Response
Creates a value of AttachObjectResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
aorsAttachedObjectIdentifier
- The attachedObjectIdentifier
, which is the childObjectIdentifier
.aorsResponseStatus
- -- | The response status code.
data AttachObjectResponse Source #
See: attachObjectResponse
smart constructor.
Response Lenses
aorsAttachedObjectIdentifier :: Lens' AttachObjectResponse (Maybe Text) Source #
The attached ObjectIdentifier
, which is the child ObjectIdentifier
.
aorsResponseStatus :: Lens' AttachObjectResponse Int Source #
- - | The response status code.