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.ListAssetRelationships

Description

Retrieves a paginated list of asset relationships for an asset. You can use this operation to identify an asset's root asset and all associated assets between that asset and its root.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAssetRelationships Source #

See: newListAssetRelationships smart constructor.

Constructors

ListAssetRelationships' 

Fields

  • nextToken :: Maybe Text

    The token to be used for the next set of paginated results.

  • maxResults :: Maybe Natural

    The maximum number of results to return for each paginated request.

  • assetId :: Text

    The ID of the asset.

  • traversalType :: TraversalType

    The type of traversal to use to identify asset relationships. Choose the following option:

    • PATH_TO_ROOT – Identify the asset's parent assets up to the root asset. The asset that you specify in assetId is the first result in the list of assetRelationshipSummaries, and the root asset is the last result.

Instances

Instances details
Eq ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

Read ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

Show ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

Generic ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

Associated Types

type Rep ListAssetRelationships :: Type -> Type #

NFData ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

Methods

rnf :: ListAssetRelationships -> () #

Hashable ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

AWSPager ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

AWSRequest ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

Associated Types

type AWSResponse ListAssetRelationships #

ToHeaders ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

ToPath ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

ToQuery ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

type Rep ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

type Rep ListAssetRelationships = D1 ('MetaData "ListAssetRelationships" "Amazonka.IoTSiteWise.ListAssetRelationships" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "ListAssetRelationships'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "assetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "traversalType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TraversalType))))
type AWSResponse ListAssetRelationships Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

newListAssetRelationships Source #

Create a value of ListAssetRelationships 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:nextToken:ListAssetRelationships', listAssetRelationships_nextToken - The token to be used for the next set of paginated results.

$sel:maxResults:ListAssetRelationships', listAssetRelationships_maxResults - The maximum number of results to return for each paginated request.

$sel:assetId:ListAssetRelationships', listAssetRelationships_assetId - The ID of the asset.

$sel:traversalType:ListAssetRelationships', listAssetRelationships_traversalType - The type of traversal to use to identify asset relationships. Choose the following option:

  • PATH_TO_ROOT – Identify the asset's parent assets up to the root asset. The asset that you specify in assetId is the first result in the list of assetRelationshipSummaries, and the root asset is the last result.

Request Lenses

listAssetRelationships_nextToken :: Lens' ListAssetRelationships (Maybe Text) Source #

The token to be used for the next set of paginated results.

listAssetRelationships_maxResults :: Lens' ListAssetRelationships (Maybe Natural) Source #

The maximum number of results to return for each paginated request.

listAssetRelationships_traversalType :: Lens' ListAssetRelationships TraversalType Source #

The type of traversal to use to identify asset relationships. Choose the following option:

  • PATH_TO_ROOT – Identify the asset's parent assets up to the root asset. The asset that you specify in assetId is the first result in the list of assetRelationshipSummaries, and the root asset is the last result.

Destructuring the Response

data ListAssetRelationshipsResponse Source #

See: newListAssetRelationshipsResponse smart constructor.

Constructors

ListAssetRelationshipsResponse' 

Fields

Instances

Instances details
Eq ListAssetRelationshipsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

Read ListAssetRelationshipsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

Show ListAssetRelationshipsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

Generic ListAssetRelationshipsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

Associated Types

type Rep ListAssetRelationshipsResponse :: Type -> Type #

NFData ListAssetRelationshipsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

type Rep ListAssetRelationshipsResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.ListAssetRelationships

type Rep ListAssetRelationshipsResponse = D1 ('MetaData "ListAssetRelationshipsResponse" "Amazonka.IoTSiteWise.ListAssetRelationships" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "ListAssetRelationshipsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "assetRelationshipSummaries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AssetRelationshipSummary]))))

newListAssetRelationshipsResponse Source #

Create a value of ListAssetRelationshipsResponse 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:nextToken:ListAssetRelationships', listAssetRelationshipsResponse_nextToken - The token for the next set of results, or null if there are no additional results.

$sel:httpStatus:ListAssetRelationshipsResponse', listAssetRelationshipsResponse_httpStatus - The response's http status code.

$sel:assetRelationshipSummaries:ListAssetRelationshipsResponse', listAssetRelationshipsResponse_assetRelationshipSummaries - A list that summarizes each asset relationship.

Response Lenses

listAssetRelationshipsResponse_nextToken :: Lens' ListAssetRelationshipsResponse (Maybe Text) Source #

The token for the next set of results, or null if there are no additional results.