Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Bulk update custom inventory items on one more instance. The request adds an inventory item, if it doesn't already exist, or updates an inventory item, if it does exist.
- putInventory :: Text -> NonEmpty InventoryItem -> PutInventory
- data PutInventory
- piInstanceId :: Lens' PutInventory Text
- piItems :: Lens' PutInventory (NonEmpty InventoryItem)
- putInventoryResponse :: Int -> PutInventoryResponse
- data PutInventoryResponse
- pirsMessage :: Lens' PutInventoryResponse (Maybe Text)
- pirsResponseStatus :: Lens' PutInventoryResponse Int
Creating a Request
Creates a value of PutInventory
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
piInstanceId
- One or more instance IDs where you want to add or update inventory items.piItems
- The inventory items that you want to add or update on instances.
data PutInventory Source #
See: putInventory
smart constructor.
Request Lenses
piInstanceId :: Lens' PutInventory Text Source #
One or more instance IDs where you want to add or update inventory items.
piItems :: Lens' PutInventory (NonEmpty InventoryItem) Source #
The inventory items that you want to add or update on instances.
Destructuring the Response
Creates a value of PutInventoryResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pirsMessage
- Information about the request.pirsResponseStatus
- -- | The response status code.
data PutInventoryResponse Source #
See: putInventoryResponse
smart constructor.
Response Lenses
pirsMessage :: Lens' PutInventoryResponse (Maybe Text) Source #
Information about the request.
pirsResponseStatus :: Lens' PutInventoryResponse Int Source #
- - | The response status code.