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

Description

Retrieves information about an asset.

Synopsis

Creating a Request

data DescribeAsset Source #

See: newDescribeAsset smart constructor.

Constructors

DescribeAsset' 

Fields

Instances

Instances details
Eq DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Read DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Show DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Generic DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Associated Types

type Rep DescribeAsset :: Type -> Type #

NFData DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Methods

rnf :: DescribeAsset -> () #

Hashable DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

AWSRequest DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Associated Types

type AWSResponse DescribeAsset #

ToHeaders DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

ToPath DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

ToQuery DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

type Rep DescribeAsset Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

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

Defined in Amazonka.IoTSiteWise.DescribeAsset

newDescribeAsset Source #

Create a value of DescribeAsset 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:assetId:DescribeAsset', describeAsset_assetId - The ID of the asset.

Request Lenses

Destructuring the Response

data DescribeAssetResponse Source #

See: newDescribeAssetResponse smart constructor.

Constructors

DescribeAssetResponse' 

Fields

Instances

Instances details
Eq DescribeAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Read DescribeAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Show DescribeAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Generic DescribeAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Associated Types

type Rep DescribeAssetResponse :: Type -> Type #

NFData DescribeAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

Methods

rnf :: DescribeAssetResponse -> () #

type Rep DescribeAssetResponse Source # 
Instance details

Defined in Amazonka.IoTSiteWise.DescribeAsset

type Rep DescribeAssetResponse = D1 ('MetaData "DescribeAssetResponse" "Amazonka.IoTSiteWise.DescribeAsset" "libZSservicesZSamazonka-iotsitewiseZSamazonka-iotsitewise" 'False) (C1 ('MetaCons "DescribeAssetResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "assetCompositeModels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AssetCompositeModel])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "assetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "assetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "assetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) :*: ((S1 ('MetaSel ('Just "assetModelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "assetProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AssetProperty]) :*: S1 ('MetaSel ('Just "assetHierarchies") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AssetHierarchy]))) :*: (S1 ('MetaSel ('Just "assetCreationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: (S1 ('MetaSel ('Just "assetLastUpdateDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: S1 ('MetaSel ('Just "assetStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AssetStatus))))))

newDescribeAssetResponse Source #

Create a value of DescribeAssetResponse 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:assetCompositeModels:DescribeAssetResponse', describeAssetResponse_assetCompositeModels - The composite models for the asset.

$sel:httpStatus:DescribeAssetResponse', describeAssetResponse_httpStatus - The response's http status code.

$sel:assetId:DescribeAsset', describeAssetResponse_assetId - The ID of the asset.

$sel:assetArn:DescribeAssetResponse', describeAssetResponse_assetArn - The ARN of the asset, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}

$sel:assetName:DescribeAssetResponse', describeAssetResponse_assetName - The name of the asset.

$sel:assetModelId:DescribeAssetResponse', describeAssetResponse_assetModelId - The ID of the asset model that was used to create the asset.

$sel:assetProperties:DescribeAssetResponse', describeAssetResponse_assetProperties - The list of asset properties for the asset.

This object doesn't include properties that you define in composite models. You can find composite model properties in the assetCompositeModels object.

$sel:assetHierarchies:DescribeAssetResponse', describeAssetResponse_assetHierarchies - A list of asset hierarchies that each contain a hierarchyId. A hierarchy specifies allowed parent/child asset relationships.

$sel:assetCreationDate:DescribeAssetResponse', describeAssetResponse_assetCreationDate - The date the asset was created, in Unix epoch time.

$sel:assetLastUpdateDate:DescribeAssetResponse', describeAssetResponse_assetLastUpdateDate - The date the asset was last updated, in Unix epoch time.

$sel:assetStatus:DescribeAssetResponse', describeAssetResponse_assetStatus - The current status of the asset, which contains a state and any error message.

Response Lenses

describeAssetResponse_assetArn :: Lens' DescribeAssetResponse Text Source #

The ARN of the asset, which has the following format.

arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}

describeAssetResponse_assetModelId :: Lens' DescribeAssetResponse Text Source #

The ID of the asset model that was used to create the asset.

describeAssetResponse_assetProperties :: Lens' DescribeAssetResponse [AssetProperty] Source #

The list of asset properties for the asset.

This object doesn't include properties that you define in composite models. You can find composite model properties in the assetCompositeModels object.

describeAssetResponse_assetHierarchies :: Lens' DescribeAssetResponse [AssetHierarchy] Source #

A list of asset hierarchies that each contain a hierarchyId. A hierarchy specifies allowed parent/child asset relationships.

describeAssetResponse_assetCreationDate :: Lens' DescribeAssetResponse UTCTime Source #

The date the asset was created, in Unix epoch time.

describeAssetResponse_assetLastUpdateDate :: Lens' DescribeAssetResponse UTCTime Source #

The date the asset was last updated, in Unix epoch time.

describeAssetResponse_assetStatus :: Lens' DescribeAssetResponse AssetStatus Source #

The current status of the asset, which contains a state and any error message.