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.Kendra.StartDataSourceSyncJob
Description
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.
Constructors
StartDataSourceSyncJob' | |
Instances
newStartDataSourceSyncJob Source #
Arguments
:: Text | |
-> Text | |
-> StartDataSourceSyncJob |
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.
Constructors
StartDataSourceSyncJobResponse' | |
Fields
|
Instances
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.