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 |
This operation returns information about an asset.
Synopsis
- data GetAsset = GetAsset' {}
- newGetAsset :: Text -> Text -> Text -> GetAsset
- getAsset_revisionId :: Lens' GetAsset Text
- getAsset_assetId :: Lens' GetAsset Text
- getAsset_dataSetId :: Lens' GetAsset Text
- data GetAssetResponse = GetAssetResponse' {}
- newGetAssetResponse :: Int -> GetAssetResponse
- getAssetResponse_arn :: Lens' GetAssetResponse (Maybe Text)
- getAssetResponse_createdAt :: Lens' GetAssetResponse (Maybe UTCTime)
- getAssetResponse_sourceId :: Lens' GetAssetResponse (Maybe Text)
- getAssetResponse_dataSetId :: Lens' GetAssetResponse (Maybe Text)
- getAssetResponse_name :: Lens' GetAssetResponse (Maybe Text)
- getAssetResponse_assetDetails :: Lens' GetAssetResponse (Maybe AssetDetails)
- getAssetResponse_id :: Lens' GetAssetResponse (Maybe Text)
- getAssetResponse_assetType :: Lens' GetAssetResponse (Maybe AssetType)
- getAssetResponse_updatedAt :: Lens' GetAssetResponse (Maybe UTCTime)
- getAssetResponse_revisionId :: Lens' GetAssetResponse (Maybe Text)
- getAssetResponse_httpStatus :: Lens' GetAssetResponse Int
Creating a Request
See: newGetAsset
smart constructor.
Instances
Create a value of GetAsset
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:revisionId:GetAsset'
, getAsset_revisionId
- The unique identifier for a revision.
$sel:assetId:GetAsset'
, getAsset_assetId
- The unique identifier for an asset.
$sel:dataSetId:GetAsset'
, getAsset_dataSetId
- The unique identifier for a data set.
Request Lenses
Destructuring the Response
data GetAssetResponse Source #
See: newGetAssetResponse
smart constructor.
GetAssetResponse' | |
|
Instances
Create a value of GetAssetResponse
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:arn:GetAssetResponse'
, getAssetResponse_arn
- The ARN for the asset.
$sel:createdAt:GetAssetResponse'
, getAssetResponse_createdAt
- The date and time that the asset was created, in ISO 8601 format.
$sel:sourceId:GetAssetResponse'
, getAssetResponse_sourceId
- The asset ID of the owned asset corresponding to the entitled asset
being viewed. This parameter is returned when an asset owner is viewing
the entitled copy of its owned asset.
$sel:dataSetId:GetAsset'
, getAssetResponse_dataSetId
- The unique identifier for the data set associated with this asset.
$sel:name:GetAssetResponse'
, getAssetResponse_name
- The name of the asset. When importing from Amazon S3, the S3 object key
is used as the asset name. When exporting to Amazon S3, the asset name
is used as default target S3 object key.
$sel:assetDetails:GetAssetResponse'
, getAssetResponse_assetDetails
- Information about the asset.
$sel:id:GetAssetResponse'
, getAssetResponse_id
- The unique identifier for the asset.
$sel:assetType:GetAssetResponse'
, getAssetResponse_assetType
- The type of asset that is added to a data set.
$sel:updatedAt:GetAssetResponse'
, getAssetResponse_updatedAt
- The date and time that the asset was last updated, in ISO 8601 format.
$sel:revisionId:GetAsset'
, getAssetResponse_revisionId
- The unique identifier for the revision associated with this asset.
$sel:httpStatus:GetAssetResponse'
, getAssetResponse_httpStatus
- The response's http status code.
Response Lenses
getAssetResponse_arn :: Lens' GetAssetResponse (Maybe Text) Source #
The ARN for the asset.
getAssetResponse_createdAt :: Lens' GetAssetResponse (Maybe UTCTime) Source #
The date and time that the asset was created, in ISO 8601 format.
getAssetResponse_sourceId :: Lens' GetAssetResponse (Maybe Text) Source #
The asset ID of the owned asset corresponding to the entitled asset being viewed. This parameter is returned when an asset owner is viewing the entitled copy of its owned asset.
getAssetResponse_dataSetId :: Lens' GetAssetResponse (Maybe Text) Source #
The unique identifier for the data set associated with this asset.
getAssetResponse_name :: Lens' GetAssetResponse (Maybe Text) Source #
The name of the asset. When importing from Amazon S3, the S3 object key is used as the asset name. When exporting to Amazon S3, the asset name is used as default target S3 object key.
getAssetResponse_assetDetails :: Lens' GetAssetResponse (Maybe AssetDetails) Source #
Information about the asset.
getAssetResponse_id :: Lens' GetAssetResponse (Maybe Text) Source #
The unique identifier for the asset.
getAssetResponse_assetType :: Lens' GetAssetResponse (Maybe AssetType) Source #
The type of asset that is added to a data set.
getAssetResponse_updatedAt :: Lens' GetAssetResponse (Maybe UTCTime) Source #
The date and time that the asset was last updated, in ISO 8601 format.
getAssetResponse_revisionId :: Lens' GetAssetResponse (Maybe Text) Source #
The unique identifier for the revision associated with this asset.
getAssetResponse_httpStatus :: Lens' GetAssetResponse Int Source #
The response's http status code.