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 asset model. This action can't be undone. You must delete all assets created from an asset model before you can delete the model. Also, you can't delete an asset model if a parent asset model exists that contains a property formula expression that depends on the asset model that you want to delete. For more information, see Deleting assets and models in the IoT SiteWise User Guide.
Synopsis
- data DeleteAssetModel = DeleteAssetModel' {
- clientToken :: Maybe Text
- assetModelId :: Text
- newDeleteAssetModel :: Text -> DeleteAssetModel
- deleteAssetModel_clientToken :: Lens' DeleteAssetModel (Maybe Text)
- deleteAssetModel_assetModelId :: Lens' DeleteAssetModel Text
- data DeleteAssetModelResponse = DeleteAssetModelResponse' {}
- newDeleteAssetModelResponse :: Int -> AssetModelStatus -> DeleteAssetModelResponse
- deleteAssetModelResponse_httpStatus :: Lens' DeleteAssetModelResponse Int
- deleteAssetModelResponse_assetModelStatus :: Lens' DeleteAssetModelResponse AssetModelStatus
Creating a Request
data DeleteAssetModel Source #
See: newDeleteAssetModel
smart constructor.
DeleteAssetModel' | |
|
Instances
Create a value of DeleteAssetModel
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:DeleteAssetModel'
, deleteAssetModel_clientToken
- A unique case-sensitive identifier that you can provide to ensure the
idempotency of the request. Don't reuse this client token if a new
idempotent request is required.
$sel:assetModelId:DeleteAssetModel'
, deleteAssetModel_assetModelId
- The ID of the asset model to delete.
Request Lenses
deleteAssetModel_clientToken :: Lens' DeleteAssetModel (Maybe Text) Source #
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
deleteAssetModel_assetModelId :: Lens' DeleteAssetModel Text Source #
The ID of the asset model to delete.
Destructuring the Response
data DeleteAssetModelResponse Source #
See: newDeleteAssetModelResponse
smart constructor.
DeleteAssetModelResponse' | |
|
Instances
newDeleteAssetModelResponse Source #
Create a value of DeleteAssetModelResponse
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:DeleteAssetModelResponse'
, deleteAssetModelResponse_httpStatus
- The response's http status code.
$sel:assetModelStatus:DeleteAssetModelResponse'
, deleteAssetModelResponse_assetModelStatus
- The status of the asset model, which contains a state (DELETING
after
successfully calling this operation) and any error message.
Response Lenses
deleteAssetModelResponse_httpStatus :: Lens' DeleteAssetModelResponse Int Source #
The response's http status code.
deleteAssetModelResponse_assetModelStatus :: Lens' DeleteAssetModelResponse AssetModelStatus Source #
The status of the asset model, which contains a state (DELETING
after
successfully calling this operation) and any error message.