Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes an existing Amazon Lookout for Vision dataset
.
If your the project has a single dataset, you must create a new dataset before you can create a model.
If you project has a training dataset and a test dataset consider the following.
- If you delete the test dataset, your project reverts to a single dataset project. If you then train the model, Amazon Lookout for Vision internally splits the remaining dataset into a training and test dataset.
- If you delete the training dataset, you must create a training dataset before you can create a model.
This operation requires permissions to perform the
lookoutvision:DeleteDataset
operation.
Synopsis
- data DeleteDataset = DeleteDataset' {
- clientToken :: Maybe Text
- projectName :: Text
- datasetType :: Text
- newDeleteDataset :: Text -> Text -> DeleteDataset
- deleteDataset_clientToken :: Lens' DeleteDataset (Maybe Text)
- deleteDataset_projectName :: Lens' DeleteDataset Text
- deleteDataset_datasetType :: Lens' DeleteDataset Text
- data DeleteDatasetResponse = DeleteDatasetResponse' {
- httpStatus :: Int
- newDeleteDatasetResponse :: Int -> DeleteDatasetResponse
- deleteDatasetResponse_httpStatus :: Lens' DeleteDatasetResponse Int
Creating a Request
data DeleteDataset Source #
See: newDeleteDataset
smart constructor.
DeleteDataset' | |
|
Instances
Create a value of DeleteDataset
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:DeleteDataset'
, deleteDataset_clientToken
- ClientToken is an idempotency token that ensures a call to
DeleteDataset
completes only once. You choose the value to pass. For
example, An issue, such as an network outage, might prevent you from
getting a response from DeleteDataset
. In this case, safely retry your
call to DeleteDataset
by using the same ClientToken
parameter value.
An error occurs if the other input parameters are not the same as in the
first request. Using a different value for ClientToken
is considered a
new call to DeleteDataset
. An idempotency token is active for 8 hours.
$sel:projectName:DeleteDataset'
, deleteDataset_projectName
- The name of the project that contains the dataset that you want to
delete.
$sel:datasetType:DeleteDataset'
, deleteDataset_datasetType
- The type of the dataset to delete. Specify train
to delete the
training dataset. Specify test
to delete the test dataset. To delete
the dataset in a single dataset project, specify train
.
Request Lenses
deleteDataset_clientToken :: Lens' DeleteDataset (Maybe Text) Source #
ClientToken is an idempotency token that ensures a call to
DeleteDataset
completes only once. You choose the value to pass. For
example, An issue, such as an network outage, might prevent you from
getting a response from DeleteDataset
. In this case, safely retry your
call to DeleteDataset
by using the same ClientToken
parameter value.
An error occurs if the other input parameters are not the same as in the
first request. Using a different value for ClientToken
is considered a
new call to DeleteDataset
. An idempotency token is active for 8 hours.
deleteDataset_projectName :: Lens' DeleteDataset Text Source #
The name of the project that contains the dataset that you want to delete.
deleteDataset_datasetType :: Lens' DeleteDataset Text Source #
The type of the dataset to delete. Specify train
to delete the
training dataset. Specify test
to delete the test dataset. To delete
the dataset in a single dataset project, specify train
.
Destructuring the Response
data DeleteDatasetResponse Source #
See: newDeleteDatasetResponse
smart constructor.
DeleteDatasetResponse' | |
|
Instances
newDeleteDatasetResponse Source #
Create a value of DeleteDatasetResponse
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:DeleteDatasetResponse'
, deleteDatasetResponse_httpStatus
- The response's http status code.
Response Lenses
deleteDatasetResponse_httpStatus :: Lens' DeleteDatasetResponse Int Source #
The response's http status code.