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 Amazon Lookout for Vision model. You can't delete a running model. To stop a running model, use the StopModel operation.
It might take a few seconds to delete a model. To determine if a model
has been deleted, call ListProjects and check if the version of the
model (ModelVersion
) is in the Models
array.
This operation requires permissions to perform the
lookoutvision:DeleteModel
operation.
Synopsis
- data DeleteModel = DeleteModel' {
- clientToken :: Maybe Text
- projectName :: Text
- modelVersion :: Text
- newDeleteModel :: Text -> Text -> DeleteModel
- deleteModel_clientToken :: Lens' DeleteModel (Maybe Text)
- deleteModel_projectName :: Lens' DeleteModel Text
- deleteModel_modelVersion :: Lens' DeleteModel Text
- data DeleteModelResponse = DeleteModelResponse' {
- modelArn :: Maybe Text
- httpStatus :: Int
- newDeleteModelResponse :: Int -> DeleteModelResponse
- deleteModelResponse_modelArn :: Lens' DeleteModelResponse (Maybe Text)
- deleteModelResponse_httpStatus :: Lens' DeleteModelResponse Int
Creating a Request
data DeleteModel Source #
See: newDeleteModel
smart constructor.
DeleteModel' | |
|
Instances
Create a value of DeleteModel
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:DeleteModel'
, deleteModel_clientToken
- ClientToken is an idempotency token that ensures a call to DeleteModel
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 DeleteModel
. In this case, safely retry your call to
DeleteModel
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 DeleteModel
. An idempotency token is active for 8 hours.
$sel:projectName:DeleteModel'
, deleteModel_projectName
- The name of the project that contains the model that you want to delete.
$sel:modelVersion:DeleteModel'
, deleteModel_modelVersion
- The version of the model that you want to delete.
Request Lenses
deleteModel_clientToken :: Lens' DeleteModel (Maybe Text) Source #
ClientToken is an idempotency token that ensures a call to DeleteModel
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 DeleteModel
. In this case, safely retry your call to
DeleteModel
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 DeleteModel
. An idempotency token is active for 8 hours.
deleteModel_projectName :: Lens' DeleteModel Text Source #
The name of the project that contains the model that you want to delete.
deleteModel_modelVersion :: Lens' DeleteModel Text Source #
The version of the model that you want to delete.
Destructuring the Response
data DeleteModelResponse Source #
See: newDeleteModelResponse
smart constructor.
DeleteModelResponse' | |
|
Instances
newDeleteModelResponse Source #
Create a value of DeleteModelResponse
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:modelArn:DeleteModelResponse'
, deleteModelResponse_modelArn
- The Amazon Resource Name (ARN) of the model that was deleted.
$sel:httpStatus:DeleteModelResponse'
, deleteModelResponse_httpStatus
- The response's http status code.
Response Lenses
deleteModelResponse_modelArn :: Lens' DeleteModelResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the model that was deleted.
deleteModelResponse_httpStatus :: Lens' DeleteModelResponse Int Source #
The response's http status code.