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 |
Disassociates a group (batch) of assets from an IoT SiteWise Monitor project.
Synopsis
- data BatchDisassociateProjectAssets = BatchDisassociateProjectAssets' {}
- newBatchDisassociateProjectAssets :: Text -> NonEmpty Text -> BatchDisassociateProjectAssets
- batchDisassociateProjectAssets_clientToken :: Lens' BatchDisassociateProjectAssets (Maybe Text)
- batchDisassociateProjectAssets_projectId :: Lens' BatchDisassociateProjectAssets Text
- batchDisassociateProjectAssets_assetIds :: Lens' BatchDisassociateProjectAssets (NonEmpty Text)
- data BatchDisassociateProjectAssetsResponse = BatchDisassociateProjectAssetsResponse' {
- errors :: Maybe [AssetErrorDetails]
- httpStatus :: Int
- newBatchDisassociateProjectAssetsResponse :: Int -> BatchDisassociateProjectAssetsResponse
- batchDisassociateProjectAssetsResponse_errors :: Lens' BatchDisassociateProjectAssetsResponse (Maybe [AssetErrorDetails])
- batchDisassociateProjectAssetsResponse_httpStatus :: Lens' BatchDisassociateProjectAssetsResponse Int
Creating a Request
data BatchDisassociateProjectAssets Source #
See: newBatchDisassociateProjectAssets
smart constructor.
BatchDisassociateProjectAssets' | |
|
Instances
newBatchDisassociateProjectAssets Source #
Create a value of BatchDisassociateProjectAssets
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:BatchDisassociateProjectAssets'
, batchDisassociateProjectAssets_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:BatchDisassociateProjectAssets'
, batchDisassociateProjectAssets_projectId
- The ID of the project from which to disassociate the assets.
$sel:assetIds:BatchDisassociateProjectAssets'
, batchDisassociateProjectAssets_assetIds
- The IDs of the assets to be disassociated from the project.
Request Lenses
batchDisassociateProjectAssets_clientToken :: Lens' BatchDisassociateProjectAssets (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.
batchDisassociateProjectAssets_projectId :: Lens' BatchDisassociateProjectAssets Text Source #
The ID of the project from which to disassociate the assets.
batchDisassociateProjectAssets_assetIds :: Lens' BatchDisassociateProjectAssets (NonEmpty Text) Source #
The IDs of the assets to be disassociated from the project.
Destructuring the Response
data BatchDisassociateProjectAssetsResponse Source #
See: newBatchDisassociateProjectAssetsResponse
smart constructor.
BatchDisassociateProjectAssetsResponse' | |
|
Instances
newBatchDisassociateProjectAssetsResponse Source #
Create a value of BatchDisassociateProjectAssetsResponse
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:BatchDisassociateProjectAssetsResponse'
, batchDisassociateProjectAssetsResponse_errors
- A list of associated error information, if any.
$sel:httpStatus:BatchDisassociateProjectAssetsResponse'
, batchDisassociateProjectAssetsResponse_httpStatus
- The response's http status code.
Response Lenses
batchDisassociateProjectAssetsResponse_errors :: Lens' BatchDisassociateProjectAssetsResponse (Maybe [AssetErrorDetails]) Source #
A list of associated error information, if any.
batchDisassociateProjectAssetsResponse_httpStatus :: Lens' BatchDisassociateProjectAssetsResponse Int Source #
The response's http status code.