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 |
Associates a group (batch) of assets with an IoT SiteWise Monitor project.
Synopsis
- data BatchAssociateProjectAssets = BatchAssociateProjectAssets' {}
- newBatchAssociateProjectAssets :: Text -> NonEmpty Text -> BatchAssociateProjectAssets
- batchAssociateProjectAssets_clientToken :: Lens' BatchAssociateProjectAssets (Maybe Text)
- batchAssociateProjectAssets_projectId :: Lens' BatchAssociateProjectAssets Text
- batchAssociateProjectAssets_assetIds :: Lens' BatchAssociateProjectAssets (NonEmpty Text)
- data BatchAssociateProjectAssetsResponse = BatchAssociateProjectAssetsResponse' {
- errors :: Maybe [AssetErrorDetails]
- httpStatus :: Int
- newBatchAssociateProjectAssetsResponse :: Int -> BatchAssociateProjectAssetsResponse
- batchAssociateProjectAssetsResponse_errors :: Lens' BatchAssociateProjectAssetsResponse (Maybe [AssetErrorDetails])
- batchAssociateProjectAssetsResponse_httpStatus :: Lens' BatchAssociateProjectAssetsResponse Int
Creating a Request
data BatchAssociateProjectAssets Source #
See: newBatchAssociateProjectAssets
smart constructor.
BatchAssociateProjectAssets' | |
|
Instances
newBatchAssociateProjectAssets Source #
Create a value of BatchAssociateProjectAssets
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:clientToken:BatchAssociateProjectAssets'
, batchAssociateProjectAssets_clientToken
- A unique case-sensitive identifier that you can provide to ensure the
idempotency of the request. Don't reuse this client token if a new
idempotent request is required.
$sel:projectId:BatchAssociateProjectAssets'
, batchAssociateProjectAssets_projectId
- The ID of the project to which to associate the assets.
$sel:assetIds:BatchAssociateProjectAssets'
, batchAssociateProjectAssets_assetIds
- The IDs of the assets to be associated to the project.
Request Lenses
batchAssociateProjectAssets_clientToken :: Lens' BatchAssociateProjectAssets (Maybe Text) Source #
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
batchAssociateProjectAssets_projectId :: Lens' BatchAssociateProjectAssets Text Source #
The ID of the project to which to associate the assets.
batchAssociateProjectAssets_assetIds :: Lens' BatchAssociateProjectAssets (NonEmpty Text) Source #
The IDs of the assets to be associated to the project.
Destructuring the Response
data BatchAssociateProjectAssetsResponse Source #
See: newBatchAssociateProjectAssetsResponse
smart constructor.
BatchAssociateProjectAssetsResponse' | |
|
Instances
newBatchAssociateProjectAssetsResponse Source #
Create a value of BatchAssociateProjectAssetsResponse
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:errors:BatchAssociateProjectAssetsResponse'
, batchAssociateProjectAssetsResponse_errors
- A list of associated error information, if any.
$sel:httpStatus:BatchAssociateProjectAssetsResponse'
, batchAssociateProjectAssetsResponse_httpStatus
- The response's http status code.
Response Lenses
batchAssociateProjectAssetsResponse_errors :: Lens' BatchAssociateProjectAssetsResponse (Maybe [AssetErrorDetails]) Source #
A list of associated error information, if any.
batchAssociateProjectAssetsResponse_httpStatus :: Lens' BatchAssociateProjectAssetsResponse Int Source #
The response's http status code.