| 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 |
Amazonka.IoTSiteWise.DescribeAsset
Description
Retrieves information about an asset.
Synopsis
- data DescribeAsset = DescribeAsset' {}
- newDescribeAsset :: Text -> DescribeAsset
- describeAsset_excludeProperties :: Lens' DescribeAsset (Maybe Bool)
- describeAsset_assetId :: Lens' DescribeAsset Text
- data DescribeAssetResponse = DescribeAssetResponse' {
- assetCompositeModels :: Maybe [AssetCompositeModel]
- assetDescription :: Maybe Text
- httpStatus :: Int
- assetId :: Text
- assetArn :: Text
- assetName :: Text
- assetModelId :: Text
- assetProperties :: [AssetProperty]
- assetHierarchies :: [AssetHierarchy]
- assetCreationDate :: POSIX
- assetLastUpdateDate :: POSIX
- assetStatus :: AssetStatus
- newDescribeAssetResponse :: Int -> Text -> Text -> Text -> Text -> UTCTime -> UTCTime -> AssetStatus -> DescribeAssetResponse
- describeAssetResponse_assetCompositeModels :: Lens' DescribeAssetResponse (Maybe [AssetCompositeModel])
- describeAssetResponse_assetDescription :: Lens' DescribeAssetResponse (Maybe Text)
- 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.
Constructors
| DescribeAsset' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DescribeAsset |
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:excludeProperties:DescribeAsset', describeAsset_excludeProperties - Whether or not to exclude asset properties from the response.
DescribeAsset, describeAsset_assetId - The ID of the asset.
Request Lenses
describeAsset_excludeProperties :: Lens' DescribeAsset (Maybe Bool) Source #
Whether or not to exclude asset properties from the response.
describeAsset_assetId :: Lens' DescribeAsset Text Source #
The ID of the asset.
Destructuring the Response
data DescribeAssetResponse Source #
See: newDescribeAssetResponse smart constructor.
Constructors
| DescribeAssetResponse' | |
Fields
| |
Instances
newDescribeAssetResponse Source #
Arguments
| :: 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:assetDescription:DescribeAssetResponse', describeAssetResponse_assetDescription - A description for the asset.
$sel:httpStatus:DescribeAssetResponse', describeAssetResponse_httpStatus - The response's http status code.
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.
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_assetDescription :: Lens' DescribeAssetResponse (Maybe Text) Source #
A description 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.