| 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.BatchAssociateProjectAssets
Description
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.
Constructors
| BatchAssociateProjectAssets' | |
Fields
| |
Instances
newBatchAssociateProjectAssets Source #
Arguments
| :: Text | |
| -> NonEmpty Text | |
| -> BatchAssociateProjectAssets |
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.
Constructors
| BatchAssociateProjectAssetsResponse' | |
Fields
| |
Instances
newBatchAssociateProjectAssetsResponse Source #
Arguments
| :: Int | |
| -> BatchAssociateProjectAssetsResponse |
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:
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.