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 |
Associates a child asset with the given parent asset through a hierarchy defined in the parent asset's model. For more information, see Associating assets in the IoT SiteWise User Guide.
Synopsis
- data AssociateAssets = AssociateAssets' {
- clientToken :: Maybe Text
- assetId :: Text
- hierarchyId :: Text
- childAssetId :: Text
- newAssociateAssets :: Text -> Text -> Text -> AssociateAssets
- associateAssets_clientToken :: Lens' AssociateAssets (Maybe Text)
- associateAssets_assetId :: Lens' AssociateAssets Text
- associateAssets_hierarchyId :: Lens' AssociateAssets Text
- associateAssets_childAssetId :: Lens' AssociateAssets Text
- data AssociateAssetsResponse = AssociateAssetsResponse' {
- newAssociateAssetsResponse :: AssociateAssetsResponse
Creating a Request
data AssociateAssets Source #
See: newAssociateAssets
smart constructor.
AssociateAssets' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> AssociateAssets |
Create a value of AssociateAssets
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:AssociateAssets'
, associateAssets_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:AssociateAssets'
, associateAssets_assetId
- The ID of the parent asset.
$sel:hierarchyId:AssociateAssets'
, associateAssets_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. For more information, see
Asset hierarchies
in the IoT SiteWise User Guide.
$sel:childAssetId:AssociateAssets'
, associateAssets_childAssetId
- The ID of the child asset to be associated.
Request Lenses
associateAssets_clientToken :: Lens' AssociateAssets (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.
associateAssets_assetId :: Lens' AssociateAssets Text Source #
The ID of the parent asset.
associateAssets_hierarchyId :: Lens' AssociateAssets 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. For more information, see Asset hierarchies in the IoT SiteWise User Guide.
associateAssets_childAssetId :: Lens' AssociateAssets Text Source #
The ID of the child asset to be associated.
Destructuring the Response
data AssociateAssetsResponse Source #
See: newAssociateAssetsResponse
smart constructor.
Instances
Eq AssociateAssetsResponse Source # | |
Defined in Amazonka.IoTSiteWise.AssociateAssets | |
Read AssociateAssetsResponse Source # | |
Show AssociateAssetsResponse Source # | |
Defined in Amazonka.IoTSiteWise.AssociateAssets showsPrec :: Int -> AssociateAssetsResponse -> ShowS # show :: AssociateAssetsResponse -> String # showList :: [AssociateAssetsResponse] -> ShowS # | |
Generic AssociateAssetsResponse Source # | |
Defined in Amazonka.IoTSiteWise.AssociateAssets type Rep AssociateAssetsResponse :: Type -> Type # | |
NFData AssociateAssetsResponse Source # | |
Defined in Amazonka.IoTSiteWise.AssociateAssets rnf :: AssociateAssetsResponse -> () # | |
type Rep AssociateAssetsResponse Source # | |
Defined in Amazonka.IoTSiteWise.AssociateAssets |
newAssociateAssetsResponse :: AssociateAssetsResponse Source #
Create a value of AssociateAssetsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.