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 |
Disassociates a child asset from the given parent asset through a hierarchy defined in the parent asset's model.
Synopsis
- data DisassociateAssets = DisassociateAssets' {
- clientToken :: Maybe Text
- assetId :: Text
- hierarchyId :: Text
- childAssetId :: Text
- newDisassociateAssets :: Text -> Text -> Text -> DisassociateAssets
- disassociateAssets_clientToken :: Lens' DisassociateAssets (Maybe Text)
- disassociateAssets_assetId :: Lens' DisassociateAssets Text
- disassociateAssets_hierarchyId :: Lens' DisassociateAssets Text
- disassociateAssets_childAssetId :: Lens' DisassociateAssets Text
- data DisassociateAssetsResponse = DisassociateAssetsResponse' {
- newDisassociateAssetsResponse :: DisassociateAssetsResponse
Creating a Request
data DisassociateAssets Source #
See: newDisassociateAssets
smart constructor.
DisassociateAssets' | |
|
Instances
newDisassociateAssets Source #
:: Text | |
-> Text | |
-> Text | |
-> DisassociateAssets |
Create a value of DisassociateAssets
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:DisassociateAssets'
, disassociateAssets_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:DisassociateAssets'
, disassociateAssets_assetId
- The ID of the parent asset from which to disassociate the child asset.
$sel:hierarchyId:DisassociateAssets'
, disassociateAssets_hierarchyId
- The ID of a hierarchy in the parent asset's model. Hierarchies allow
different groupings of assets to be formed that all come from the same
asset model. You can use the hierarchy ID to identify the correct asset
to disassociate. For more information, see
Asset hierarchies
in the IoT SiteWise User Guide.
$sel:childAssetId:DisassociateAssets'
, disassociateAssets_childAssetId
- The ID of the child asset to disassociate.
Request Lenses
disassociateAssets_clientToken :: Lens' DisassociateAssets (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.
disassociateAssets_assetId :: Lens' DisassociateAssets Text Source #
The ID of the parent asset from which to disassociate the child asset.
disassociateAssets_hierarchyId :: Lens' DisassociateAssets Text Source #
The ID of a hierarchy in the parent asset's model. Hierarchies allow different groupings of assets to be formed that all come from the same asset model. You can use the hierarchy ID to identify the correct asset to disassociate. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
disassociateAssets_childAssetId :: Lens' DisassociateAssets Text Source #
The ID of the child asset to disassociate.
Destructuring the Response
data DisassociateAssetsResponse Source #
See: newDisassociateAssetsResponse
smart constructor.
Instances
newDisassociateAssetsResponse :: DisassociateAssetsResponse Source #
Create a value of DisassociateAssetsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.