libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoTSiteWise.AssociateAssets

Description

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

Creating a Request

data AssociateAssets Source #

See: newAssociateAssets smart constructor.

Constructors

AssociateAssets' 

Fields

  • clientToken :: Maybe Text

    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.

  • assetId :: Text

    The ID of the parent asset.

  • hierarchyId :: Text

    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.

  • childAssetId :: Text

    The ID of the child asset to be associated.

Instances

Instances details
Eq AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Read AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Show AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Generic AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Associated Types

type Rep AssociateAssets :: Type -> Type #

NFData AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Methods

rnf :: AssociateAssets -> () #

Hashable AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

ToJSON AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

AWSRequest AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Associated Types

type AWSResponse AssociateAssets #

ToHeaders AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

ToPath AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

ToQuery AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

type Rep AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

type Rep AssociateAssets = D1 ('MetaData "AssociateAssets" "Amazonka.IoTSiteWise.AssociateAssets" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "AssociateAssets'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "assetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "hierarchyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "childAssetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AssociateAssets Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

newAssociateAssets Source #

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_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

Instances details
Eq AssociateAssetsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Read AssociateAssetsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Show AssociateAssetsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Generic AssociateAssetsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Associated Types

type Rep AssociateAssetsResponse :: Type -> Type #

NFData AssociateAssetsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

Methods

rnf :: AssociateAssetsResponse -> () #

type Rep AssociateAssetsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.AssociateAssets

type Rep AssociateAssetsResponse = D1 ('MetaData "AssociateAssetsResponse" "Amazonka.IoTSiteWise.AssociateAssets" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "AssociateAssetsResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newAssociateAssetsResponse :: AssociateAssetsResponse Source #

Create a value of AssociateAssetsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.