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 |
Bulk update custom inventory items on one or more managed nodes. The request adds an inventory item, if it doesn't already exist, or updates an inventory item, if it does exist.
Synopsis
- data PutInventory = PutInventory' {}
- newPutInventory :: Text -> NonEmpty InventoryItem -> PutInventory
- putInventory_instanceId :: Lens' PutInventory Text
- putInventory_items :: Lens' PutInventory (NonEmpty InventoryItem)
- data PutInventoryResponse = PutInventoryResponse' {
- message :: Maybe Text
- httpStatus :: Int
- newPutInventoryResponse :: Int -> PutInventoryResponse
- putInventoryResponse_message :: Lens' PutInventoryResponse (Maybe Text)
- putInventoryResponse_httpStatus :: Lens' PutInventoryResponse Int
Creating a Request
data PutInventory Source #
See: newPutInventory
smart constructor.
PutInventory' | |
|
Instances
Create a value of PutInventory
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:
PutInventory
, putInventory_instanceId
- An managed node ID where you want to add or update inventory items.
$sel:items:PutInventory'
, putInventory_items
- The inventory items that you want to add or update on managed nodes.
Request Lenses
putInventory_instanceId :: Lens' PutInventory Text Source #
An managed node ID where you want to add or update inventory items.
putInventory_items :: Lens' PutInventory (NonEmpty InventoryItem) Source #
The inventory items that you want to add or update on managed nodes.
Destructuring the Response
data PutInventoryResponse Source #
See: newPutInventoryResponse
smart constructor.
PutInventoryResponse' | |
|
Instances
newPutInventoryResponse Source #
Create a value of PutInventoryResponse
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:
PutInventoryResponse
, putInventoryResponse_message
- Information about the request.
$sel:httpStatus:PutInventoryResponse'
, putInventoryResponse_httpStatus
- The response's http status code.
Response Lenses
putInventoryResponse_message :: Lens' PutInventoryResponse (Maybe Text) Source #
Information about the request.
putInventoryResponse_httpStatus :: Lens' PutInventoryResponse Int Source #
The response's http status code.