| 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 |
Network.AWS.CloudDirectory.AttachToIndex
Description
Attaches the specified object to the specified index.
- attachToIndex :: Text -> ObjectReference -> ObjectReference -> AttachToIndex
- data AttachToIndex
- atiDirectoryARN :: Lens' AttachToIndex Text
- atiIndexReference :: Lens' AttachToIndex ObjectReference
- atiTargetReference :: Lens' AttachToIndex ObjectReference
- attachToIndexResponse :: Int -> AttachToIndexResponse
- data AttachToIndexResponse
- atirsAttachedObjectIdentifier :: Lens' AttachToIndexResponse (Maybe Text)
- atirsResponseStatus :: Lens' AttachToIndexResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ObjectReference | |
| -> ObjectReference | |
| -> AttachToIndex |
Creates a value of AttachToIndex with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atiDirectoryARN- The Amazon Resource Name (ARN) of the directory where the object and index exist.atiIndexReference- A reference to the index that you are attaching the object to.atiTargetReference- A reference to the object that you are attaching to the index.
data AttachToIndex Source #
See: attachToIndex smart constructor.
Instances
Request Lenses
atiDirectoryARN :: Lens' AttachToIndex Text Source #
The Amazon Resource Name (ARN) of the directory where the object and index exist.
atiIndexReference :: Lens' AttachToIndex ObjectReference Source #
A reference to the index that you are attaching the object to.
atiTargetReference :: Lens' AttachToIndex ObjectReference Source #
A reference to the object that you are attaching to the index.
Destructuring the Response
attachToIndexResponse Source #
Arguments
| :: Int | |
| -> AttachToIndexResponse |
Creates a value of AttachToIndexResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
atirsAttachedObjectIdentifier- TheObjectIdentifierof the object that was attached to the index.atirsResponseStatus- -- | The response status code.
data AttachToIndexResponse Source #
See: attachToIndexResponse smart constructor.
Response Lenses
atirsAttachedObjectIdentifier :: Lens' AttachToIndexResponse (Maybe Text) Source #
The ObjectIdentifier of the object that was attached to the index.
atirsResponseStatus :: Lens' AttachToIndexResponse Int Source #
- - | The response status code.