| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoTSiteWise.UpdateAsset
Description
Updates an asset's name. For more information, see Updating assets and models in the IoT SiteWise User Guide.
Synopsis
- data UpdateAsset = UpdateAsset' {
- assetDescription :: Maybe Text
- clientToken :: Maybe Text
- assetId :: Text
- assetName :: Text
- newUpdateAsset :: Text -> Text -> UpdateAsset
- updateAsset_assetDescription :: Lens' UpdateAsset (Maybe Text)
- 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.
Constructors
| UpdateAsset' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateAsset |
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:assetDescription:UpdateAsset', updateAsset_assetDescription - A description for the asset.
$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.
UpdateAsset, updateAsset_assetId - The ID of the asset to update.
$sel:assetName:UpdateAsset', updateAsset_assetName - A friendly name for the asset.
Request Lenses
updateAsset_assetDescription :: Lens' UpdateAsset (Maybe Text) Source #
A description for the asset.
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 friendly name for the asset.
Destructuring the Response
data UpdateAssetResponse Source #
See: newUpdateAssetResponse smart constructor.
Constructors
| UpdateAssetResponse' | |
Fields
| |
Instances
newUpdateAssetResponse Source #
Arguments
| :: 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.