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 |
Updates an asset's name. For more information, see Updating assets and models in the IoT SiteWise User Guide.
Synopsis
- data UpdateAsset = UpdateAsset' {}
- newUpdateAsset :: Text -> Text -> UpdateAsset
- updateAsset_clientToken :: Lens' UpdateAsset (Maybe Text)
- updateAsset_assetId :: Lens' UpdateAsset Text
- updateAsset_assetName :: Lens' UpdateAsset Text
- data UpdateAssetResponse = UpdateAssetResponse' {}
- newUpdateAssetResponse :: Int -> AssetStatus -> UpdateAssetResponse
- updateAssetResponse_httpStatus :: Lens' UpdateAssetResponse Int
- updateAssetResponse_assetStatus :: Lens' UpdateAssetResponse AssetStatus
Creating a Request
data UpdateAsset Source #
See: newUpdateAsset
smart constructor.
Instances
Create a value of UpdateAsset
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:UpdateAsset'
, updateAsset_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:UpdateAsset'
, updateAsset_assetId
- The ID of the asset to update.
$sel:assetName:UpdateAsset'
, updateAsset_assetName
- A unique, friendly name for the asset.
Request Lenses
updateAsset_clientToken :: Lens' UpdateAsset (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.
updateAsset_assetId :: Lens' UpdateAsset Text Source #
The ID of the asset to update.
updateAsset_assetName :: Lens' UpdateAsset Text Source #
A unique, friendly name for the asset.
Destructuring the Response
data UpdateAssetResponse Source #
See: newUpdateAssetResponse
smart constructor.
UpdateAssetResponse' | |
|
Instances
newUpdateAssetResponse Source #
:: Int | |
-> AssetStatus | |
-> UpdateAssetResponse |
Create a value of UpdateAssetResponse
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:UpdateAssetResponse'
, updateAssetResponse_httpStatus
- The response's http status code.
$sel:assetStatus:UpdateAssetResponse'
, updateAssetResponse_assetStatus
- The status of the asset, which contains a state (UPDATING
after
successfully calling this operation) and any error message.
Response Lenses
updateAssetResponse_httpStatus :: Lens' UpdateAssetResponse Int Source #
The response's http status code.
updateAssetResponse_assetStatus :: Lens' UpdateAssetResponse AssetStatus Source #
The status of the asset, which contains a state (UPDATING
after
successfully calling this operation) and any error message.