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 data set import task for a specific application.
Synopsis
- data CreateDataSetImportTask = CreateDataSetImportTask' {}
- newCreateDataSetImportTask :: Text -> DataSetImportConfig -> CreateDataSetImportTask
- createDataSetImportTask_clientToken :: Lens' CreateDataSetImportTask (Maybe Text)
- createDataSetImportTask_applicationId :: Lens' CreateDataSetImportTask Text
- createDataSetImportTask_importConfig :: Lens' CreateDataSetImportTask DataSetImportConfig
- data CreateDataSetImportTaskResponse = CreateDataSetImportTaskResponse' {
- httpStatus :: Int
- taskId :: Text
- newCreateDataSetImportTaskResponse :: Int -> Text -> CreateDataSetImportTaskResponse
- createDataSetImportTaskResponse_httpStatus :: Lens' CreateDataSetImportTaskResponse Int
- createDataSetImportTaskResponse_taskId :: Lens' CreateDataSetImportTaskResponse Text
Creating a Request
data CreateDataSetImportTask Source #
See: newCreateDataSetImportTask
smart constructor.
CreateDataSetImportTask' | |
|
Instances
newCreateDataSetImportTask Source #
Create a value of CreateDataSetImportTask
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:clientToken:CreateDataSetImportTask'
, createDataSetImportTask_clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency
of the request to create a data set import. The service generates the
clientToken when the API call is triggered. The token expires after one
hour, so if you retry the API within this timeframe with the same
clientToken, you will get the same response. The service also handles
deleting the clientToken after it expires.
CreateDataSetImportTask
, createDataSetImportTask_applicationId
- The unique identifier of the application for which you want to import
data sets.
$sel:importConfig:CreateDataSetImportTask'
, createDataSetImportTask_importConfig
- The data set import task configuration.
Request Lenses
createDataSetImportTask_clientToken :: Lens' CreateDataSetImportTask (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a data set import. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.
createDataSetImportTask_applicationId :: Lens' CreateDataSetImportTask Text Source #
The unique identifier of the application for which you want to import data sets.
createDataSetImportTask_importConfig :: Lens' CreateDataSetImportTask DataSetImportConfig Source #
The data set import task configuration.
Destructuring the Response
data CreateDataSetImportTaskResponse Source #
See: newCreateDataSetImportTaskResponse
smart constructor.
CreateDataSetImportTaskResponse' | |
|
Instances
Generic CreateDataSetImportTaskResponse Source # | |
Read CreateDataSetImportTaskResponse Source # | |
Show CreateDataSetImportTaskResponse Source # | |
Defined in Amazonka.M2.CreateDataSetImportTask | |
NFData CreateDataSetImportTaskResponse Source # | |
Defined in Amazonka.M2.CreateDataSetImportTask rnf :: CreateDataSetImportTaskResponse -> () # | |
Eq CreateDataSetImportTaskResponse Source # | |
type Rep CreateDataSetImportTaskResponse Source # | |
Defined in Amazonka.M2.CreateDataSetImportTask type Rep CreateDataSetImportTaskResponse = D1 ('MetaData "CreateDataSetImportTaskResponse" "Amazonka.M2.CreateDataSetImportTask" "amazonka-m2-2.0-1kXEGTJs74f5RPbatSDeMH" 'False) (C1 ('MetaCons "CreateDataSetImportTaskResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newCreateDataSetImportTaskResponse Source #
Create a value of CreateDataSetImportTaskResponse
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:httpStatus:CreateDataSetImportTaskResponse'
, createDataSetImportTaskResponse_httpStatus
- The response's http status code.
CreateDataSetImportTaskResponse
, createDataSetImportTaskResponse_taskId
- The task identifier. This operation is asynchronous. Use this identifier
with the GetDataSetImportTask operation to obtain the status of this
task.
Response Lenses
createDataSetImportTaskResponse_httpStatus :: Lens' CreateDataSetImportTaskResponse Int Source #
The response's http status code.
createDataSetImportTaskResponse_taskId :: Lens' CreateDataSetImportTaskResponse Text Source #
The task identifier. This operation is asynchronous. Use this identifier with the GetDataSetImportTask operation to obtain the status of this task.