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 |
Creates an import job for a data destination.
Synopsis
- data CreateImportJob = CreateImportJob' {}
- newCreateImportJob :: ImportDestination -> ImportDataSource -> CreateImportJob
- createImportJob_importDestination :: Lens' CreateImportJob ImportDestination
- createImportJob_importDataSource :: Lens' CreateImportJob ImportDataSource
- data CreateImportJobResponse = CreateImportJobResponse' {
- jobId :: Maybe Text
- httpStatus :: Int
- newCreateImportJobResponse :: Int -> CreateImportJobResponse
- createImportJobResponse_jobId :: Lens' CreateImportJobResponse (Maybe Text)
- createImportJobResponse_httpStatus :: Lens' CreateImportJobResponse Int
Creating a Request
data CreateImportJob Source #
Represents a request to create an import job from a data source for a data destination.
See: newCreateImportJob
smart constructor.
CreateImportJob' | |
|
Instances
Create a value of CreateImportJob
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:
CreateImportJob
, createImportJob_importDestination
- The destination for the import job.
$sel:importDataSource:CreateImportJob'
, createImportJob_importDataSource
- The data source for the import job.
Request Lenses
createImportJob_importDestination :: Lens' CreateImportJob ImportDestination Source #
The destination for the import job.
createImportJob_importDataSource :: Lens' CreateImportJob ImportDataSource Source #
The data source for the import job.
Destructuring the Response
data CreateImportJobResponse Source #
An HTTP 200 response if the request succeeds, or an error message if the request fails.
See: newCreateImportJobResponse
smart constructor.
CreateImportJobResponse' | |
|
Instances
newCreateImportJobResponse Source #
Create a value of CreateImportJobResponse
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:
CreateImportJobResponse
, createImportJobResponse_jobId
- A string that represents the import job ID.
$sel:httpStatus:CreateImportJobResponse'
, createImportJobResponse_httpStatus
- The response's http status code.
Response Lenses
createImportJobResponse_jobId :: Lens' CreateImportJobResponse (Maybe Text) Source #
A string that represents the import job ID.
createImportJobResponse_httpStatus :: Lens' CreateImportJobResponse Int Source #
The response's http status code.