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. This action can't be undone. For more information, see Deleting assets and models in the IoT SiteWise User Guide.
You can't delete an asset that's associated to another asset. For more information, see DisassociateAssets.
Synopsis
- data DeleteAsset = DeleteAsset' {
- clientToken :: Maybe Text
- assetId :: Text
- newDeleteAsset :: Text -> DeleteAsset
- deleteAsset_clientToken :: Lens' DeleteAsset (Maybe Text)
- deleteAsset_assetId :: Lens' DeleteAsset Text
- data DeleteAssetResponse = DeleteAssetResponse' {}
- newDeleteAssetResponse :: Int -> AssetStatus -> DeleteAssetResponse
- deleteAssetResponse_httpStatus :: Lens' DeleteAssetResponse Int
- deleteAssetResponse_assetStatus :: Lens' DeleteAssetResponse AssetStatus
Creating a Request
data DeleteAsset Source #
See: newDeleteAsset
smart constructor.
DeleteAsset' | |
|
Instances
Create a value of DeleteAsset
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:DeleteAsset'
, deleteAsset_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:assetId:DeleteAsset'
, deleteAsset_assetId
- The ID of the asset to delete.
Request Lenses
deleteAsset_clientToken :: Lens' DeleteAsset (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.
deleteAsset_assetId :: Lens' DeleteAsset Text Source #
The ID of the asset to delete.
Destructuring the Response
data DeleteAssetResponse Source #
See: newDeleteAssetResponse
smart constructor.
DeleteAssetResponse' | |
|
Instances
newDeleteAssetResponse Source #
:: Int | |
-> AssetStatus | |
-> DeleteAssetResponse |
Create a value of DeleteAssetResponse
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:DeleteAssetResponse'
, deleteAssetResponse_httpStatus
- The response's http status code.
$sel:assetStatus:DeleteAssetResponse'
, deleteAssetResponse_assetStatus
- The status of the asset, which contains a state (DELETING
after
successfully calling this operation) and any error message.
Response Lenses
deleteAssetResponse_httpStatus :: Lens' DeleteAssetResponse Int Source #
The response's http status code.
deleteAssetResponse_assetStatus :: Lens' DeleteAssetResponse AssetStatus Source #
The status of the asset, which contains a state (DELETING
after
successfully calling this operation) and any error message.