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 |
Retrieves information about an asset.
Synopsis
- data DescribeAsset = DescribeAsset' {}
- newDescribeAsset :: Text -> DescribeAsset
- describeAsset_assetId :: Lens' DescribeAsset Text
- data DescribeAssetResponse = DescribeAssetResponse' {}
- newDescribeAssetResponse :: Int -> Text -> Text -> Text -> Text -> UTCTime -> UTCTime -> AssetStatus -> DescribeAssetResponse
- describeAssetResponse_assetCompositeModels :: Lens' DescribeAssetResponse (Maybe [AssetCompositeModel])
- describeAssetResponse_httpStatus :: Lens' DescribeAssetResponse Int
- describeAssetResponse_assetId :: Lens' DescribeAssetResponse Text
- describeAssetResponse_assetArn :: Lens' DescribeAssetResponse Text
- describeAssetResponse_assetName :: Lens' DescribeAssetResponse Text
- describeAssetResponse_assetModelId :: Lens' DescribeAssetResponse Text
- describeAssetResponse_assetProperties :: Lens' DescribeAssetResponse [AssetProperty]
- describeAssetResponse_assetHierarchies :: Lens' DescribeAssetResponse [AssetHierarchy]
- describeAssetResponse_assetCreationDate :: Lens' DescribeAssetResponse UTCTime
- describeAssetResponse_assetLastUpdateDate :: Lens' DescribeAssetResponse UTCTime
- describeAssetResponse_assetStatus :: Lens' DescribeAssetResponse AssetStatus
Creating a Request
data DescribeAsset Source #
See: newDescribeAsset
smart constructor.
Instances
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
describeAsset_assetId :: Lens' DescribeAsset Text Source #
The ID of the asset.
Destructuring the Response
data DescribeAssetResponse Source #
See: newDescribeAssetResponse
smart constructor.
DescribeAssetResponse' | |
|
Instances
newDescribeAssetResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> Text | |
-> Text | |
-> UTCTime | |
-> UTCTime | |
-> AssetStatus | |
-> DescribeAssetResponse |
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_assetCompositeModels :: Lens' DescribeAssetResponse (Maybe [AssetCompositeModel]) Source #
The composite models for the asset.
describeAssetResponse_httpStatus :: Lens' DescribeAssetResponse Int Source #
The response's http status code.
describeAssetResponse_assetId :: Lens' DescribeAssetResponse Text Source #
The ID of the asset.
describeAssetResponse_assetArn :: Lens' DescribeAssetResponse Text Source #
The ARN of the asset, which has the following format.
arn:${Partition}:iotsitewise:${Region}:${Account}:asset/${AssetId}
describeAssetResponse_assetName :: Lens' DescribeAssetResponse Text Source #
The name of the asset.
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.