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 the specified object to the specified index.
Synopsis
- data AttachToIndex = AttachToIndex' {}
- newAttachToIndex :: Text -> ObjectReference -> ObjectReference -> AttachToIndex
- attachToIndex_directoryArn :: Lens' AttachToIndex Text
- attachToIndex_indexReference :: Lens' AttachToIndex ObjectReference
- attachToIndex_targetReference :: Lens' AttachToIndex ObjectReference
- data AttachToIndexResponse = AttachToIndexResponse' {}
- newAttachToIndexResponse :: Int -> AttachToIndexResponse
- attachToIndexResponse_attachedObjectIdentifier :: Lens' AttachToIndexResponse (Maybe Text)
- attachToIndexResponse_httpStatus :: Lens' AttachToIndexResponse Int
Creating a Request
data AttachToIndex Source #
See: newAttachToIndex
smart constructor.
AttachToIndex' | |
|
Instances
:: Text | |
-> ObjectReference | |
-> ObjectReference | |
-> AttachToIndex |
Create a value of AttachToIndex
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:AttachToIndex'
, attachToIndex_directoryArn
- The Amazon Resource Name (ARN) of the directory where the object and
index exist.
$sel:indexReference:AttachToIndex'
, attachToIndex_indexReference
- A reference to the index that you are attaching the object to.
$sel:targetReference:AttachToIndex'
, attachToIndex_targetReference
- A reference to the object that you are attaching to the index.
Request Lenses
attachToIndex_directoryArn :: Lens' AttachToIndex Text Source #
The Amazon Resource Name (ARN) of the directory where the object and index exist.
attachToIndex_indexReference :: Lens' AttachToIndex ObjectReference Source #
A reference to the index that you are attaching the object to.
attachToIndex_targetReference :: Lens' AttachToIndex ObjectReference Source #
A reference to the object that you are attaching to the index.
Destructuring the Response
data AttachToIndexResponse Source #
See: newAttachToIndexResponse
smart constructor.
AttachToIndexResponse' | |
|
Instances
newAttachToIndexResponse Source #
Create a value of AttachToIndexResponse
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:AttachToIndexResponse'
, attachToIndexResponse_attachedObjectIdentifier
- The ObjectIdentifier
of the object that was attached to the index.
$sel:httpStatus:AttachToIndexResponse'
, attachToIndexResponse_httpStatus
- The response's http status code.
Response Lenses
attachToIndexResponse_attachedObjectIdentifier :: Lens' AttachToIndexResponse (Maybe Text) Source #
The ObjectIdentifier
of the object that was attached to the index.
attachToIndexResponse_httpStatus :: Lens' AttachToIndexResponse Int Source #
The response's http status code.