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 |
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
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.
AssociateAssets
, associateAssets_assetId
- The ID of the parent asset.
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.
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
Generic AssociateAssetsResponse Source # | |
Defined in Amazonka.IoTSiteWise.AssociateAssets type Rep AssociateAssetsResponse :: Type -> Type # | |
Read AssociateAssetsResponse Source # | |
Show AssociateAssetsResponse Source # | |
Defined in Amazonka.IoTSiteWise.AssociateAssets showsPrec :: Int -> AssociateAssetsResponse -> ShowS # show :: AssociateAssetsResponse -> String # showList :: [AssociateAssetsResponse] -> ShowS # | |
NFData AssociateAssetsResponse Source # | |
Defined in Amazonka.IoTSiteWise.AssociateAssets rnf :: AssociateAssetsResponse -> () # | |
Eq AssociateAssetsResponse Source # | |
Defined in Amazonka.IoTSiteWise.AssociateAssets | |
type Rep AssociateAssetsResponse Source # | |
newAssociateAssetsResponse :: AssociateAssetsResponse Source #
Create a value of AssociateAssetsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.