| 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.AttachToIndex
Description
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.
Constructors
| AttachToIndex' | |
Fields
| |
Instances
Arguments
| :: 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:
AttachToIndex, attachToIndex_directoryArn - The Amazon Resource Name (ARN) of the directory where the object and
index exist.
AttachToIndex, attachToIndex_indexReference - A reference to the index that you are attaching the object to.
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.
Constructors
| AttachToIndexResponse' | |
Fields
| |
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:
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.