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 |
Starts a synchronization job for a data source connector. If a
synchronization job is already in progress, Amazon Kendra returns a
ResourceInUseException
exception.
Synopsis
- data StartDataSourceSyncJob = StartDataSourceSyncJob' {}
- newStartDataSourceSyncJob :: Text -> Text -> StartDataSourceSyncJob
- startDataSourceSyncJob_id :: Lens' StartDataSourceSyncJob Text
- startDataSourceSyncJob_indexId :: Lens' StartDataSourceSyncJob Text
- data StartDataSourceSyncJobResponse = StartDataSourceSyncJobResponse' {
- executionId :: Maybe Text
- httpStatus :: Int
- newStartDataSourceSyncJobResponse :: Int -> StartDataSourceSyncJobResponse
- startDataSourceSyncJobResponse_executionId :: Lens' StartDataSourceSyncJobResponse (Maybe Text)
- startDataSourceSyncJobResponse_httpStatus :: Lens' StartDataSourceSyncJobResponse Int
Creating a Request
data StartDataSourceSyncJob Source #
See: newStartDataSourceSyncJob
smart constructor.
Instances
newStartDataSourceSyncJob Source #
Create a value of StartDataSourceSyncJob
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:
StartDataSourceSyncJob
, startDataSourceSyncJob_id
- The identifier of the data source connector to synchronize.
$sel:indexId:StartDataSourceSyncJob'
, startDataSourceSyncJob_indexId
- The identifier of the index used with the data source connector.
Request Lenses
startDataSourceSyncJob_id :: Lens' StartDataSourceSyncJob Text Source #
The identifier of the data source connector to synchronize.
startDataSourceSyncJob_indexId :: Lens' StartDataSourceSyncJob Text Source #
The identifier of the index used with the data source connector.
Destructuring the Response
data StartDataSourceSyncJobResponse Source #
See: newStartDataSourceSyncJobResponse
smart constructor.
StartDataSourceSyncJobResponse' | |
|
Instances
Generic StartDataSourceSyncJobResponse Source # | |
Read StartDataSourceSyncJobResponse Source # | |
Show StartDataSourceSyncJobResponse Source # | |
Defined in Amazonka.Kendra.StartDataSourceSyncJob | |
NFData StartDataSourceSyncJobResponse Source # | |
Defined in Amazonka.Kendra.StartDataSourceSyncJob rnf :: StartDataSourceSyncJobResponse -> () # | |
Eq StartDataSourceSyncJobResponse Source # | |
type Rep StartDataSourceSyncJobResponse Source # | |
Defined in Amazonka.Kendra.StartDataSourceSyncJob type Rep StartDataSourceSyncJobResponse = D1 ('MetaData "StartDataSourceSyncJobResponse" "Amazonka.Kendra.StartDataSourceSyncJob" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "StartDataSourceSyncJobResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "executionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newStartDataSourceSyncJobResponse Source #
Create a value of StartDataSourceSyncJobResponse
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:
StartDataSourceSyncJobResponse
, startDataSourceSyncJobResponse_executionId
- Identifies a particular synchronization job.
$sel:httpStatus:StartDataSourceSyncJobResponse'
, startDataSourceSyncJobResponse_httpStatus
- The response's http status code.
Response Lenses
startDataSourceSyncJobResponse_executionId :: Lens' StartDataSourceSyncJobResponse (Maybe Text) Source #
Identifies a particular synchronization job.
startDataSourceSyncJobResponse_httpStatus :: Lens' StartDataSourceSyncJobResponse Int Source #
The response's http status code.